diff --git a/.ci-mgmt.yaml b/.ci-mgmt.yaml index 1618136a8..a906540f0 100644 --- a/.ci-mgmt.yaml +++ b/.ci-mgmt.yaml @@ -1,5 +1,5 @@ provider: rancher2 -major-version: 5 +major-version: 6 setup-script: testing/setup.sh env: RANCHER_INSECURE: "true" diff --git a/.github/workflows/command-dispatch.yml b/.github/workflows/command-dispatch.yml index dce27e690..3d682b632 100644 --- a/.github/workflows/command-dispatch.yml +++ b/.github/workflows/command-dispatch.yml @@ -30,6 +30,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 jobs: command-dispatch-for-testing: name: command-dispatch-for-testing diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 3d8a84bcc..cdcbf4f99 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -36,6 +36,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 jobs: license_check: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 04878849b..d160325bb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -35,6 +35,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 jobs: lint: diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 124717ce5..298620867 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -30,6 +30,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 jobs: build_sdk: name: build_sdk @@ -455,7 +456,7 @@ jobs: uses: GoTestTools/gotestfmt-action@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - version: v2.4.0 + version: v2.5.0 - name: Run tests run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 8da136e9f..cf96b48f5 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -31,6 +31,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 jobs: build_sdk: name: build_sdk @@ -380,7 +381,7 @@ jobs: uses: GoTestTools/gotestfmt-action@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - version: v2.4.0 + version: v2.5.0 - name: Run tests run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 7f9af5a69..ed2e451db 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -30,6 +30,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 jobs: comment-on-pr: if: github.event.pull_request.head.repo.full_name != github.repository diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eda7dcf85..a5551869a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 jobs: build_sdk: name: build_sdk @@ -428,7 +429,7 @@ jobs: uses: GoTestTools/gotestfmt-action@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - version: v2.4.0 + version: v2.5.0 - name: Run tests run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt diff --git a/.github/workflows/resync-build.yml b/.github/workflows/resync-build.yml index 8519bf786..b00d2a89d 100644 --- a/.github/workflows/resync-build.yml +++ b/.github/workflows/resync-build.yml @@ -32,6 +32,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 jobs: resync_build: name: resync-build diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index e3e8a12c0..bf1b5bfd5 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -31,6 +31,7 @@ env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} TF_APPEND_USER_AGENT: pulumi TRAVIS_OS_NAME: linux + VERSION_PREFIX: 6.0.0 # This should cancel any previous runs of the same workflow on the same branch which are still running. concurrency: @@ -377,7 +378,7 @@ jobs: uses: GoTestTools/gotestfmt-action@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - version: v2.4.0 + version: v2.5.0 - name: Run tests run: cd examples && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt diff --git a/.goreleaser.prerelease.yml b/.goreleaser.prerelease.yml index 244a15ac5..23c58be6b 100644 --- a/.goreleaser.prerelease.yml +++ b/.goreleaser.prerelease.yml @@ -32,7 +32,7 @@ builds: - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache ignore: [] ldflags: - - -X github.com/pulumi/pulumi-rancher2/provider/v5/pkg/version.Version={{.Tag}} + - -X github.com/pulumi/pulumi-rancher2/provider/v6/pkg/version.Version={{.Tag}} main: ./cmd/pulumi-resource-rancher2/ changelog: skip: true diff --git a/.goreleaser.yml b/.goreleaser.yml index b64cecba0..6849eae51 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -32,7 +32,7 @@ builds: - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache ignore: [] ldflags: - - -X github.com/pulumi/pulumi-rancher2/provider/v5/pkg/version.Version={{.Tag}} + - -X github.com/pulumi/pulumi-rancher2/provider/v6/pkg/version.Version={{.Tag}} main: ./cmd/pulumi-resource-rancher2/ changelog: filters: diff --git a/Makefile b/Makefile index 528264812..7c6a2bc57 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PACK := rancher2 ORG := pulumi PROJECT := github.com/$(ORG)/pulumi-$(PACK) -PROVIDER_PATH := provider/v5 +PROVIDER_PATH := provider/v6 VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version TFGEN := pulumi-tfgen-$(PACK) PROVIDER := pulumi-resource-$(PACK) diff --git a/README.md b/README.md index c8a862db5..07d4f9d3e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![NPM version](https://badge.fury.io/js/%40pulumi%2Francher2.svg)](https://www.npmjs.com/package/@pulumi/rancher2) [![Python version](https://badge.fury.io/py/pulumi-rancher2.svg)](https://pypi.org/project/pulumi-rancher2) [![NuGet version](https://badge.fury.io/nu/pulumi.rancher2.svg)](https://badge.fury.io/nu/pulumi.rancher2) -[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-rancher2/sdk/v5/go)](https://pkg.go.dev/github.com/pulumi/pulumi-rancher2/sdk/v5/go) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-rancher2/sdk/v6/go)](https://pkg.go.dev/github.com/pulumi/pulumi-rancher2/sdk/v6/go) [![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](https://github.com/pulumi/pulumi-rancher2/blob/master/LICENSE) # Rancher2 Resource Provider diff --git a/examples/go.mod b/examples/go.mod index 567fa6eef..8c4adb0b6 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,4 +1,4 @@ -module github.com/pulumi/pulumi-rancher2/examples/v5 +module github.com/pulumi/pulumi-rancher2/examples/v6 go 1.21 diff --git a/provider/cmd/pulumi-resource-rancher2/bridge-metadata.json b/provider/cmd/pulumi-resource-rancher2/bridge-metadata.json index 6dc4a7eff..dce61aaed 100644 --- a/provider/cmd/pulumi-resource-rancher2/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-rancher2/bridge-metadata.json @@ -3,27 +3,15 @@ "resources": { "rancher2_app": { "current": "rancher2:index/app:App", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_app_v2": { "current": "rancher2:index/appV2:AppV2", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_auth_config_activedirectory": { "current": "rancher2:index/authConfigActiveDirectory:AuthConfigActiveDirectory", - "majorVersion": 5, - "fields": { - "allowed_principal_ids": { - "maxItemsOne": false - }, - "servers": { - "maxItemsOne": false - } - } - }, - "rancher2_auth_config_activedirectory_legacy": { - "current": "rancher2:index/activeDirectory:ActiveDirectory", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -35,7 +23,7 @@ }, "rancher2_auth_config_adfs": { "current": "rancher2:index/authConfigAdfs:AuthConfigAdfs", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -44,7 +32,7 @@ }, "rancher2_auth_config_azuread": { "current": "rancher2:index/authConfigAzureAd:AuthConfigAzureAd", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -53,7 +41,7 @@ }, "rancher2_auth_config_freeipa": { "current": "rancher2:index/authConfigFreeIpa:AuthConfigFreeIpa", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -65,7 +53,7 @@ }, "rancher2_auth_config_github": { "current": "rancher2:index/authConfigGithub:AuthConfigGithub", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -74,7 +62,7 @@ }, "rancher2_auth_config_keycloak": { "current": "rancher2:index/authConfigKeycloak:AuthConfigKeycloak", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -83,7 +71,7 @@ }, "rancher2_auth_config_okta": { "current": "rancher2:index/authConfigOkta:AuthConfigOkta", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -92,7 +80,7 @@ }, "rancher2_auth_config_openldap": { "current": "rancher2:index/authConfigOpenLdap:AuthConfigOpenLdap", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -104,7 +92,7 @@ }, "rancher2_auth_config_ping": { "current": "rancher2:index/authConfigPing:AuthConfigPing", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_principal_ids": { "maxItemsOne": false @@ -113,23 +101,23 @@ }, "rancher2_bootstrap": { "current": "rancher2:index/bootstrap:Bootstrap", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_catalog": { "current": "rancher2:index/catalog:Catalog", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_catalog_v2": { "current": "rancher2:index/catalogV2:CatalogV2", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_certificate": { "current": "rancher2:index/certificate:Certificate", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_cloud_credential": { "current": "rancher2:index/cloudCredential:CloudCredential", - "majorVersion": 5, + "majorVersion": 6, "fields": { "amazonec2_credential_config": { "maxItemsOne": true @@ -162,7 +150,7 @@ }, "rancher2_cluster": { "current": "rancher2:index/cluster:Cluster", - "majorVersion": 5, + "majorVersion": 6, "fields": { "agent_env_vars": { "maxItemsOne": false @@ -750,16 +738,7 @@ }, "rancher2_cluster_alert_group": { "current": "rancher2:index/clusterAlertGroup:ClusterAlertGroup", - "majorVersion": 5, - "fields": { - "recipients": { - "maxItemsOne": false - } - } - }, - "rancher2_cluster_alert_group_legacy": { - "current": "rancher2:index/clusterAlterGroup:ClusterAlterGroup", - "majorVersion": 5, + "majorVersion": 6, "fields": { "recipients": { "maxItemsOne": false @@ -768,25 +747,7 @@ }, "rancher2_cluster_alert_rule": { "current": "rancher2:index/clusterAlertRule:ClusterAlertRule", - "majorVersion": 5, - "fields": { - "event_rule": { - "maxItemsOne": true - }, - "metric_rule": { - "maxItemsOne": true - }, - "node_rule": { - "maxItemsOne": true - }, - "system_service_rule": { - "maxItemsOne": true - } - } - }, - "rancher2_cluster_alert_rule_legacy": { - "current": "rancher2:index/clusterAlterRule:ClusterAlterRule", - "majorVersion": 5, + "majorVersion": 6, "fields": { "event_rule": { "maxItemsOne": true @@ -804,7 +765,7 @@ }, "rancher2_cluster_driver": { "current": "rancher2:index/clusterDriver:ClusterDriver", - "majorVersion": 5, + "majorVersion": 6, "fields": { "whitelist_domains": { "maxItemsOne": false @@ -813,11 +774,11 @@ }, "rancher2_cluster_role_template_binding": { "current": "rancher2:index/clusterRoleTemplateBinding:ClusterRoleTemplateBinding", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_cluster_sync": { "current": "rancher2:index/clusterSync:ClusterSync", - "majorVersion": 5, + "majorVersion": 6, "fields": { "node_pool_ids": { "maxItemsOne": false @@ -836,7 +797,7 @@ }, "rancher2_cluster_template": { "current": "rancher2:index/clusterTemplate:ClusterTemplate", - "majorVersion": 5, + "majorVersion": 6, "fields": { "members": { "maxItemsOne": false @@ -1222,7 +1183,7 @@ }, "rancher2_cluster_v2": { "current": "rancher2:index/clusterV2:ClusterV2", - "majorVersion": 5, + "majorVersion": 6, "fields": { "agent_env_vars": { "maxItemsOne": false @@ -1325,6 +1286,57 @@ } } }, + "machine_selector_files": { + "maxItemsOne": false, + "elem": { + "fields": { + "file_sources": { + "maxItemsOne": false, + "elem": { + "fields": { + "configmap": { + "maxItemsOne": true, + "elem": { + "fields": { + "items": { + "maxItemsOne": false + } + } + } + }, + "secret": { + "maxItemsOne": true, + "elem": { + "fields": { + "items": { + "maxItemsOne": false + } + } + } + } + } + } + }, + "machine_label_selector": { + "maxItemsOne": true, + "elem": { + "fields": { + "match_expressions": { + "maxItemsOne": false, + "elem": { + "fields": { + "values": { + "maxItemsOne": false + } + } + } + } + } + } + } + } + } + }, "registries": { "maxItemsOne": true, "elem": { @@ -1375,15 +1387,15 @@ }, "rancher2_config_map_v2": { "current": "rancher2:index/configMapV2:ConfigMapV2", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_custom_user_token": { "current": "rancher2:index/customUserToken:CustomUserToken", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_etcd_backup": { "current": "rancher2:index/etcdBackup:EtcdBackup", - "majorVersion": 5, + "majorVersion": 6, "fields": { "backup_config": { "maxItemsOne": true, @@ -1399,11 +1411,11 @@ }, "rancher2_feature": { "current": "rancher2:index/feature:Feature", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_global_dns": { "current": "rancher2:index/globalDns:GlobalDns", - "majorVersion": 5, + "majorVersion": 6, "fields": { "project_ids": { "maxItemsOne": false @@ -1412,7 +1424,7 @@ }, "rancher2_global_dns_provider": { "current": "rancher2:index/globalDnsProvider:GlobalDnsProvider", - "majorVersion": 5, + "majorVersion": 6, "fields": { "alidns_config": { "maxItemsOne": true @@ -1427,8 +1439,11 @@ }, "rancher2_global_role": { "current": "rancher2:index/globalRole:GlobalRole", - "majorVersion": 5, + "majorVersion": 6, "fields": { + "inherited_cluster_roles": { + "maxItemsOne": false + }, "rules": { "maxItemsOne": false, "elem": { @@ -1455,11 +1470,11 @@ }, "rancher2_global_role_binding": { "current": "rancher2:index/globalRoleBinding:GlobalRoleBinding", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_machine_config_v2": { "current": "rancher2:index/machineConfigV2:MachineConfigV2", - "majorVersion": 5, + "majorVersion": 6, "fields": { "amazonec2_config": { "maxItemsOne": true, @@ -1522,7 +1537,7 @@ }, "rancher2_multi_cluster_app": { "current": "rancher2:index/multiClusterApp:MultiClusterApp", - "majorVersion": 5, + "majorVersion": 6, "fields": { "answers": { "maxItemsOne": false @@ -1550,7 +1565,7 @@ }, "rancher2_namespace": { "current": "rancher2:index/namespace:Namespace", - "majorVersion": 5, + "majorVersion": 6, "fields": { "container_resource_limit": { "maxItemsOne": true @@ -1569,7 +1584,7 @@ }, "rancher2_node_driver": { "current": "rancher2:index/nodeDriver:NodeDriver", - "majorVersion": 5, + "majorVersion": 6, "fields": { "whitelist_domains": { "maxItemsOne": false @@ -1578,7 +1593,7 @@ }, "rancher2_node_pool": { "current": "rancher2:index/nodePool:NodePool", - "majorVersion": 5, + "majorVersion": 6, "fields": { "node_taints": { "maxItemsOne": false @@ -1587,7 +1602,7 @@ }, "rancher2_node_template": { "current": "rancher2:index/nodeTemplate:NodeTemplate", - "majorVersion": 5, + "majorVersion": 6, "fields": { "amazonec2_config": { "maxItemsOne": true, @@ -1681,7 +1696,7 @@ }, "rancher2_notifier": { "current": "rancher2:index/notifier:Notifier", - "majorVersion": 5, + "majorVersion": 6, "fields": { "dingtalk_config": { "maxItemsOne": true @@ -1708,7 +1723,7 @@ }, "rancher2_pod_security_policy_template": { "current": "rancher2:index/podSecurityPolicyTemplate:PodSecurityPolicyTemplate", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_capabilities": { "maxItemsOne": false @@ -1807,7 +1822,7 @@ }, "rancher2_project": { "current": "rancher2:index/project:Project", - "majorVersion": 5, + "majorVersion": 6, "fields": { "container_resource_limit": { "maxItemsOne": true @@ -1832,7 +1847,7 @@ }, "rancher2_project_alert_group": { "current": "rancher2:index/projectAlertGroup:ProjectAlertGroup", - "majorVersion": 5, + "majorVersion": 6, "fields": { "recipients": { "maxItemsOne": false @@ -1841,7 +1856,7 @@ }, "rancher2_project_alert_rule": { "current": "rancher2:index/projectAlertRule:ProjectAlertRule", - "majorVersion": 5, + "majorVersion": 6, "fields": { "metric_rule": { "maxItemsOne": true @@ -1856,11 +1871,11 @@ }, "rancher2_project_role_template_binding": { "current": "rancher2:index/projectRoleTemplateBinding:ProjectRoleTemplateBinding", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_registry": { "current": "rancher2:index/registry:Registry", - "majorVersion": 5, + "majorVersion": 6, "fields": { "registries": { "maxItemsOne": false @@ -1869,38 +1884,7 @@ }, "rancher2_role_template": { "current": "rancher2:index/roleTemplate:RoleTemplate", - "majorVersion": 5, - "fields": { - "role_template_ids": { - "maxItemsOne": false - }, - "rules": { - "maxItemsOne": false, - "elem": { - "fields": { - "api_groups": { - "maxItemsOne": false - }, - "non_resource_urls": { - "maxItemsOne": false - }, - "resource_names": { - "maxItemsOne": false - }, - "resources": { - "maxItemsOne": false - }, - "verbs": { - "maxItemsOne": false - } - } - } - } - } - }, - "rancher2_role_template_legacy": { - "current": "rancher2:index/roleTempalte:RoleTempalte", - "majorVersion": 5, + "majorVersion": 6, "fields": { "role_template_ids": { "maxItemsOne": false @@ -1931,19 +1915,19 @@ }, "rancher2_secret": { "current": "rancher2:index/secret:Secret", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_secret_v2": { "current": "rancher2:index/secretV2:SecretV2", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_setting": { "current": "rancher2:index/setting:Setting", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_storage_class_v2": { "current": "rancher2:index/storageClassV2:StorageClassV2", - "majorVersion": 5, + "majorVersion": 6, "fields": { "mount_options": { "maxItemsOne": false @@ -1952,11 +1936,11 @@ }, "rancher2_token": { "current": "rancher2:index/token:Token", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_user": { "current": "rancher2:index/user:User", - "majorVersion": 5, + "majorVersion": 6, "fields": { "principal_ids": { "maxItemsOne": false @@ -1967,27 +1951,27 @@ "datasources": { "rancher2_app": { "current": "rancher2:index/getApp:getApp", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_catalog": { "current": "rancher2:index/getCatalog:getCatalog", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_catalog_v2": { "current": "rancher2:index/getCatalogV2:getCatalogV2", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_certificate": { "current": "rancher2:index/getCertificate:getCertificate", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_cloud_credential": { "current": "rancher2:index/getCloudCredential:getCloudCredential", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_cluster": { "current": "rancher2:index/getCluster:getCluster", - "majorVersion": 5, + "majorVersion": 6, "fields": { "agent_env_vars": { "maxItemsOne": false @@ -2549,7 +2533,7 @@ }, "rancher2_cluster_alert_group": { "current": "rancher2:index/getClusterAlertGroup:getClusterAlertGroup", - "majorVersion": 5, + "majorVersion": 6, "fields": { "recipients": { "maxItemsOne": false @@ -2557,8 +2541,15 @@ } }, "rancher2_cluster_alert_rule": { - "current": "rancher2:index/getClusterAlterRule:getClusterAlterRule", - "majorVersion": 5, + "current": "rancher2:index/getClusterAlertRule:getClusterAlertRule", + "past": [ + { + "name": "rancher2:index/getClusterAlterRule:getClusterAlterRule", + "inCodegen": true, + "majorVersion": 5 + } + ], + "majorVersion": 6, "fields": { "event_rule": { "maxItemsOne": true @@ -2576,7 +2567,7 @@ }, "rancher2_cluster_driver": { "current": "rancher2:index/getClusterDriver:getClusterDriver", - "majorVersion": 5, + "majorVersion": 6, "fields": { "whitelist_domains": { "maxItemsOne": false @@ -2585,11 +2576,11 @@ }, "rancher2_cluster_role_template_binding": { "current": "rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_cluster_template": { "current": "rancher2:index/getClusterTemplate:getClusterTemplate", - "majorVersion": 5, + "majorVersion": 6, "fields": { "members": { "maxItemsOne": false @@ -2975,7 +2966,7 @@ }, "rancher2_cluster_v2": { "current": "rancher2:index/getClusterV2:getClusterV2", - "majorVersion": 5, + "majorVersion": 6, "fields": { "agent_env_vars": { "maxItemsOne": false @@ -3049,6 +3040,57 @@ } } }, + "machine_selector_files": { + "maxItemsOne": false, + "elem": { + "fields": { + "file_sources": { + "maxItemsOne": false, + "elem": { + "fields": { + "configmap": { + "maxItemsOne": true, + "elem": { + "fields": { + "items": { + "maxItemsOne": false + } + } + } + }, + "secret": { + "maxItemsOne": true, + "elem": { + "fields": { + "items": { + "maxItemsOne": false + } + } + } + } + } + } + }, + "machine_label_selector": { + "maxItemsOne": true, + "elem": { + "fields": { + "match_expressions": { + "maxItemsOne": false, + "elem": { + "fields": { + "values": { + "maxItemsOne": false + } + } + } + } + } + } + } + } + } + }, "registries": { "maxItemsOne": true, "elem": { @@ -3099,11 +3141,11 @@ }, "rancher2_config_map_v2": { "current": "rancher2:index/getConfigMapV2:getConfigMapV2", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_etcd_backup": { "current": "rancher2:index/getEtcdBackup:getEtcdBackup", - "majorVersion": 5, + "majorVersion": 6, "fields": { "backup_config": { "maxItemsOne": true, @@ -3119,7 +3161,7 @@ }, "rancher2_global_dns_provider": { "current": "rancher2:index/getGlobalDnsProvider:getGlobalDnsProvider", - "majorVersion": 5, + "majorVersion": 6, "fields": { "alidns_config": { "maxItemsOne": true @@ -3134,8 +3176,11 @@ }, "rancher2_global_role": { "current": "rancher2:index/getGlobalRole:getGlobalRole", - "majorVersion": 5, + "majorVersion": 6, "fields": { + "inherited_cluster_roles": { + "maxItemsOne": false + }, "rules": { "maxItemsOne": false, "elem": { @@ -3162,11 +3207,11 @@ }, "rancher2_global_role_binding": { "current": "rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_multi_cluster_app": { "current": "rancher2:index/getMultiClusterApp:getMultiClusterApp", - "majorVersion": 5, + "majorVersion": 6, "fields": { "answers": { "maxItemsOne": false @@ -3194,7 +3239,7 @@ }, "rancher2_namespace": { "current": "rancher2:index/getNamespace:getNamespace", - "majorVersion": 5, + "majorVersion": 6, "fields": { "container_resource_limit": { "maxItemsOne": true @@ -3213,7 +3258,7 @@ }, "rancher2_node_driver": { "current": "rancher2:index/getNodeDriver:getNodeDriver", - "majorVersion": 5, + "majorVersion": 6, "fields": { "whitelist_domains": { "maxItemsOne": false @@ -3222,7 +3267,7 @@ }, "rancher2_node_pool": { "current": "rancher2:index/getNodePool:getNodePool", - "majorVersion": 5, + "majorVersion": 6, "fields": { "node_taints": { "maxItemsOne": false @@ -3231,7 +3276,7 @@ }, "rancher2_node_template": { "current": "rancher2:index/getNodeTemplate:getNodeTemplate", - "majorVersion": 5, + "majorVersion": 6, "fields": { "engine_insecure_registry": { "maxItemsOne": false @@ -3246,7 +3291,7 @@ }, "rancher2_notifier": { "current": "rancher2:index/getNotifier:getNotifier", - "majorVersion": 5, + "majorVersion": 6, "fields": { "dingtalk_config": { "maxItemsOne": true @@ -3273,7 +3318,7 @@ }, "rancher2_pod_security_policy_template": { "current": "rancher2:index/getPodSecurityPolicyTemplate:getPodSecurityPolicyTemplate", - "majorVersion": 5, + "majorVersion": 6, "fields": { "allowed_capabilities": { "maxItemsOne": false @@ -3372,11 +3417,11 @@ }, "rancher2_principal": { "current": "rancher2:index/getPrincipal:getPrincipal", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_project": { "current": "rancher2:index/getProject:getProject", - "majorVersion": 5, + "majorVersion": 6, "fields": { "container_resource_limit": { "maxItemsOne": true @@ -3398,7 +3443,7 @@ }, "rancher2_project_alert_group": { "current": "rancher2:index/getProjectAlertGroup:getProjectAlertGroup", - "majorVersion": 5, + "majorVersion": 6, "fields": { "recipients": { "maxItemsOne": false @@ -3407,7 +3452,7 @@ }, "rancher2_project_alert_rule": { "current": "rancher2:index/getProjectAlertRule:getProjectAlertRule", - "majorVersion": 5, + "majorVersion": 6, "fields": { "metric_rule": { "maxItemsOne": true @@ -3422,11 +3467,11 @@ }, "rancher2_project_role_template_binding": { "current": "rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_registry": { "current": "rancher2:index/getRegistry:getRegistry", - "majorVersion": 5, + "majorVersion": 6, "fields": { "registries": { "maxItemsOne": false @@ -3435,38 +3480,7 @@ }, "rancher2_role_template": { "current": "rancher2:index/getRoleTemplate:getRoleTemplate", - "majorVersion": 5, - "fields": { - "role_template_ids": { - "maxItemsOne": false - }, - "rules": { - "maxItemsOne": false, - "elem": { - "fields": { - "api_groups": { - "maxItemsOne": false - }, - "non_resource_urls": { - "maxItemsOne": false - }, - "resource_names": { - "maxItemsOne": false - }, - "resources": { - "maxItemsOne": false - }, - "verbs": { - "maxItemsOne": false - } - } - } - } - } - }, - "rancher2_role_template_legacy": { - "current": "rancher2:index/getRoleTempalte:getRoleTempalte", - "majorVersion": 5, + "majorVersion": 6, "fields": { "role_template_ids": { "maxItemsOne": false @@ -3497,19 +3511,19 @@ }, "rancher2_secret": { "current": "rancher2:index/getSecret:getSecret", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_secret_v2": { "current": "rancher2:index/getSecretV2:getSecretV2", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_setting": { "current": "rancher2:index/getSetting:getSetting", - "majorVersion": 5 + "majorVersion": 6 }, "rancher2_storage_class_v2": { "current": "rancher2:index/getStorageClassV2:getStorageClassV2", - "majorVersion": 5, + "majorVersion": 6, "fields": { "mount_options": { "maxItemsOne": false @@ -3518,7 +3532,7 @@ }, "rancher2_user": { "current": "rancher2:index/getUser:getUser", - "majorVersion": 5, + "majorVersion": 6, "fields": { "principal_ids": { "maxItemsOne": false @@ -3530,7 +3544,6 @@ "auto-settings": {}, "renames": { "resources": { - "rancher2:index/activeDirectory:ActiveDirectory": "rancher2_auth_config_activedirectory_legacy", "rancher2:index/app:App": "rancher2_app", "rancher2:index/appV2:AppV2": "rancher2_app_v2", "rancher2:index/authConfigActiveDirectory:AuthConfigActiveDirectory": "rancher2_auth_config_activedirectory", @@ -3550,8 +3563,6 @@ "rancher2:index/cluster:Cluster": "rancher2_cluster", "rancher2:index/clusterAlertGroup:ClusterAlertGroup": "rancher2_cluster_alert_group", "rancher2:index/clusterAlertRule:ClusterAlertRule": "rancher2_cluster_alert_rule", - "rancher2:index/clusterAlterGroup:ClusterAlterGroup": "rancher2_cluster_alert_group_legacy", - "rancher2:index/clusterAlterRule:ClusterAlterRule": "rancher2_cluster_alert_rule_legacy", "rancher2:index/clusterDriver:ClusterDriver": "rancher2_cluster_driver", "rancher2:index/clusterRoleTemplateBinding:ClusterRoleTemplateBinding": "rancher2_cluster_role_template_binding", "rancher2:index/clusterSync:ClusterSync": "rancher2_cluster_sync", @@ -3578,7 +3589,6 @@ "rancher2:index/projectAlertRule:ProjectAlertRule": "rancher2_project_alert_rule", "rancher2:index/projectRoleTemplateBinding:ProjectRoleTemplateBinding": "rancher2_project_role_template_binding", "rancher2:index/registry:Registry": "rancher2_registry", - "rancher2:index/roleTempalte:RoleTempalte": "rancher2_role_template_legacy", "rancher2:index/roleTemplate:RoleTemplate": "rancher2_role_template", "rancher2:index/secret:Secret": "rancher2_secret", "rancher2:index/secretV2:SecretV2": "rancher2_secret_v2", @@ -3595,7 +3605,7 @@ "rancher2:index/getCloudCredential:getCloudCredential": "rancher2_cloud_credential", "rancher2:index/getCluster:getCluster": "rancher2_cluster", "rancher2:index/getClusterAlertGroup:getClusterAlertGroup": "rancher2_cluster_alert_group", - "rancher2:index/getClusterAlterRule:getClusterAlterRule": "rancher2_cluster_alert_rule", + "rancher2:index/getClusterAlertRule:getClusterAlertRule": "rancher2_cluster_alert_rule", "rancher2:index/getClusterDriver:getClusterDriver": "rancher2_cluster_driver", "rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding": "rancher2_cluster_role_template_binding", "rancher2:index/getClusterTemplate:getClusterTemplate": "rancher2_cluster_template", @@ -3618,7 +3628,6 @@ "rancher2:index/getProjectAlertRule:getProjectAlertRule": "rancher2_project_alert_rule", "rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding": "rancher2_project_role_template_binding", "rancher2:index/getRegistry:getRegistry": "rancher2_registry", - "rancher2:index/getRoleTempalte:getRoleTempalte": "rancher2_role_template_legacy", "rancher2:index/getRoleTemplate:getRoleTemplate": "rancher2_role_template", "rancher2:index/getSecret:getSecret": "rancher2_secret", "rancher2:index/getSecretV2:getSecretV2": "rancher2_secret_v2", @@ -3754,23 +3763,6 @@ "memThreshold": "mem_threshold", "nodeId": "node_id" }, - "rancher2:index/ClusterAlterGroupRecipient:ClusterAlterGroupRecipient": { - "defaultRecipient": "default_recipient", - "notifierId": "notifier_id", - "notifierType": "notifier_type" - }, - "rancher2:index/ClusterAlterRuleEventRule:ClusterAlterRuleEventRule": { - "eventType": "event_type", - "resourceKind": "resource_kind" - }, - "rancher2:index/ClusterAlterRuleMetricRule:ClusterAlterRuleMetricRule": { - "thresholdValue": "threshold_value" - }, - "rancher2:index/ClusterAlterRuleNodeRule:ClusterAlterRuleNodeRule": { - "cpuThreshold": "cpu_threshold", - "memThreshold": "mem_threshold", - "nodeId": "node_id" - }, "rancher2:index/ClusterClusterAgentDeploymentCustomization:ClusterClusterAgentDeploymentCustomization": { "appendTolerations": "append_tolerations", "overrideAffinity": "override_affinity", @@ -4133,6 +4125,7 @@ "scsiControllerType": "scsi_controller_type" }, "rancher2:index/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal:ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal": { + "gracefulShutdownTimeout": "graceful_shutdown_timeout", "insecureFlag": "insecure_flag", "soapRoundtripCount": "soap_roundtrip_count" }, @@ -4537,6 +4530,7 @@ "scsiControllerType": "scsi_controller_type" }, "rancher2:index/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal:ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal": { + "gracefulShutdownTimeout": "graceful_shutdown_timeout", "insecureFlag": "insecure_flag", "soapRoundtripCount": "soap_roundtrip_count" }, @@ -4828,6 +4822,7 @@ "machinePoolDefaults": "machine_pool_defaults", "machinePools": "machine_pools", "machineSelectorConfigs": "machine_selector_config", + "machineSelectorFiles": "machine_selector_files", "rotateCertificates": "rotate_certificates", "upgradeStrategy": "upgrade_strategy" }, @@ -4867,6 +4862,9 @@ "rancher2:index/ClusterV2RkeConfigMachinePoolDefault:ClusterV2RkeConfigMachinePoolDefault": { "hostnameLengthLimit": "hostname_length_limit" }, + "rancher2:index/ClusterV2RkeConfigMachinePoolMachineConfig:ClusterV2RkeConfigMachinePoolMachineConfig": { + "apiVersion": "api_version" + }, "rancher2:index/ClusterV2RkeConfigMachinePoolRollingUpdate:ClusterV2RkeConfigMachinePoolRollingUpdate": { "maxSurge": "max_surge", "maxUnavailable": "max_unavailable" @@ -4878,6 +4876,20 @@ "matchExpressions": "match_expressions", "matchLabels": "match_labels" }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFile:ClusterV2RkeConfigMachineSelectorFile": { + "fileSources": "file_sources", + "machineLabelSelector": "machine_label_selector" + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap:ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap": { + "defaultPermissions": "default_permissions" + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret:ClusterV2RkeConfigMachineSelectorFileFileSourceSecret": { + "defaultPermissions": "default_permissions" + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector:ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector": { + "matchExpressions": "match_expressions", + "matchLabels": "match_labels" + }, "rancher2:index/ClusterV2RkeConfigRegistriesConfig:ClusterV2RkeConfigRegistriesConfig": { "authConfigSecretName": "auth_config_secret_name", "caBundle": "ca_bundle", @@ -5078,6 +5090,7 @@ "customAttributes": "custom_attributes", "datastoreCluster": "datastore_cluster", "diskSize": "disk_size", + "gracefulShutdownTimeout": "graceful_shutdown_timeout", "memorySize": "memory_size", "networks": "network", "sshPassword": "ssh_password", @@ -5304,6 +5317,7 @@ "customAttributes": "custom_attributes", "datastoreCluster": "datastore_cluster", "diskSize": "disk_size", + "gracefulShutdownTimeout": "graceful_shutdown_timeout", "memorySize": "memory_size", "networks": "network", "sshPassword": "ssh_password", @@ -5415,44 +5429,11 @@ "servicesLoadBalancers": "services_load_balancers", "servicesNodePorts": "services_node_ports" }, - "rancher2:index/RoleTempalteRule:RoleTempalteRule": { - "apiGroups": "api_groups", - "nonResourceUrls": "non_resource_urls", - "resourceNames": "resource_names" - }, "rancher2:index/RoleTemplateRule:RoleTemplateRule": { "apiGroups": "api_groups", "nonResourceUrls": "non_resource_urls", "resourceNames": "resource_names" }, - "rancher2:index/activeDirectory:ActiveDirectory": { - "accessMode": "access_mode", - "allowedPrincipalIds": "allowed_principal_ids", - "connectionTimeout": "connection_timeout", - "defaultLoginDomain": "default_login_domain", - "groupDnAttribute": "group_dn_attribute", - "groupMemberMappingAttribute": "group_member_mapping_attribute", - "groupMemberUserAttribute": "group_member_user_attribute", - "groupNameAttribute": "group_name_attribute", - "groupObjectClass": "group_object_class", - "groupSearchAttribute": "group_search_attribute", - "groupSearchBase": "group_search_base", - "groupSearchFilter": "group_search_filter", - "nestedGroupMembershipEnabled": "nested_group_membership_enabled", - "serviceAccountPassword": "service_account_password", - "serviceAccountUsername": "service_account_username", - "startTls": "start_tls", - "testPassword": "test_password", - "testUsername": "test_username", - "userDisabledBitMask": "user_disabled_bit_mask", - "userEnabledAttribute": "user_enabled_attribute", - "userLoginAttribute": "user_login_attribute", - "userNameAttribute": "user_name_attribute", - "userObjectClass": "user_object_class", - "userSearchAttribute": "user_search_attribute", - "userSearchBase": "user_search_base", - "userSearchFilter": "user_search_filter" - }, "rancher2:index/app:App": { "catalogName": "catalog_name", "externalId": "external_id", @@ -5724,23 +5705,6 @@ "repeatIntervalSeconds": "repeat_interval_seconds", "systemServiceRule": "system_service_rule" }, - "rancher2:index/clusterAlterGroup:ClusterAlterGroup": { - "clusterId": "cluster_id", - "groupIntervalSeconds": "group_interval_seconds", - "groupWaitSeconds": "group_wait_seconds", - "repeatIntervalSeconds": "repeat_interval_seconds" - }, - "rancher2:index/clusterAlterRule:ClusterAlterRule": { - "clusterId": "cluster_id", - "eventRule": "event_rule", - "groupId": "group_id", - "groupIntervalSeconds": "group_interval_seconds", - "groupWaitSeconds": "group_wait_seconds", - "metricRule": "metric_rule", - "nodeRule": "node_rule", - "repeatIntervalSeconds": "repeat_interval_seconds", - "systemServiceRule": "system_service_rule" - }, "rancher2:index/clusterDriver:ClusterDriver": { "actualUrl": "actual_url", "uiUrl": "ui_url", @@ -5949,7 +5913,7 @@ "notifierId": "notifier_id", "notifierType": "notifier_type" }, - "rancher2:index/getClusterAlterRule:getClusterAlterRule": { + "rancher2:index/getClusterAlertRule:getClusterAlertRule": { "clusterId": "cluster_id", "eventRule": "event_rule", "groupId": "group_id", @@ -5960,14 +5924,14 @@ "repeatIntervalSeconds": "repeat_interval_seconds", "systemServiceRule": "system_service_rule" }, - "rancher2:index/getClusterAlterRuleEventRule:getClusterAlterRuleEventRule": { + "rancher2:index/getClusterAlertRuleEventRule:getClusterAlertRuleEventRule": { "eventType": "event_type", "resourceKind": "resource_kind" }, - "rancher2:index/getClusterAlterRuleMetricRule:getClusterAlterRuleMetricRule": { + "rancher2:index/getClusterAlertRuleMetricRule:getClusterAlertRuleMetricRule": { "thresholdValue": "threshold_value" }, - "rancher2:index/getClusterAlterRuleNodeRule:getClusterAlterRuleNodeRule": { + "rancher2:index/getClusterAlertRuleNodeRule:getClusterAlertRuleNodeRule": { "cpuThreshold": "cpu_threshold", "memThreshold": "mem_threshold", "nodeId": "node_id" @@ -6317,6 +6281,7 @@ "scsiControllerType": "scsi_controller_type" }, "rancher2:index/getClusterRkeConfigCloudProviderVsphereCloudProviderGlobal:getClusterRkeConfigCloudProviderVsphereCloudProviderGlobal": { + "gracefulShutdownTimeout": "graceful_shutdown_timeout", "insecureFlag": "insecure_flag", "soapRoundtripCount": "soap_roundtrip_count" }, @@ -6722,6 +6687,7 @@ "scsiControllerType": "scsi_controller_type" }, "rancher2:index/getClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal:getClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal": { + "gracefulShutdownTimeout": "graceful_shutdown_timeout", "insecureFlag": "insecure_flag", "soapRoundtripCount": "soap_roundtrip_count" }, @@ -7003,6 +6969,7 @@ "machinePoolDefaults": "machine_pool_defaults", "machinePools": "machine_pools", "machineSelectorConfigs": "machine_selector_config", + "machineSelectorFiles": "machine_selector_files", "rotateCertificates": "rotate_certificates", "upgradeStrategy": "upgrade_strategy" }, @@ -7042,6 +7009,9 @@ "rancher2:index/getClusterV2RkeConfigMachinePoolDefault:getClusterV2RkeConfigMachinePoolDefault": { "hostnameLengthLimit": "hostname_length_limit" }, + "rancher2:index/getClusterV2RkeConfigMachinePoolMachineConfig:getClusterV2RkeConfigMachinePoolMachineConfig": { + "apiVersion": "api_version" + }, "rancher2:index/getClusterV2RkeConfigMachinePoolRollingUpdate:getClusterV2RkeConfigMachinePoolRollingUpdate": { "maxSurge": "max_surge", "maxUnavailable": "max_unavailable" @@ -7053,6 +7023,20 @@ "matchExpressions": "match_expressions", "matchLabels": "match_labels" }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFile:getClusterV2RkeConfigMachineSelectorFile": { + "fileSources": "file_sources", + "machineLabelSelector": "machine_label_selector" + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap:getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap": { + "defaultPermissions": "default_permissions" + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceSecret:getClusterV2RkeConfigMachineSelectorFileFileSourceSecret": { + "defaultPermissions": "default_permissions" + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileMachineLabelSelector:getClusterV2RkeConfigMachineSelectorFileMachineLabelSelector": { + "matchExpressions": "match_expressions", + "matchLabels": "match_labels" + }, "rancher2:index/getClusterV2RkeConfigRegistriesConfig:getClusterV2RkeConfigRegistriesConfig": { "authConfigSecretName": "auth_config_secret_name", "caBundle": "ca_bundle", @@ -7124,6 +7108,7 @@ "zoneType": "zone_type" }, "rancher2:index/getGlobalRole:getGlobalRole": { + "inheritedClusterRoles": "inherited_cluster_roles", "newUserDefault": "new_user_default" }, "rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding": { @@ -7387,15 +7372,6 @@ "namespaceId": "namespace_id", "projectId": "project_id" }, - "rancher2:index/getRoleTempalte:getRoleTempalte": { - "defaultRole": "default_role", - "roleTemplateIds": "role_template_ids" - }, - "rancher2:index/getRoleTempalteRule:getRoleTempalteRule": { - "apiGroups": "api_groups", - "nonResourceUrls": "non_resource_urls", - "resourceNames": "resource_names" - }, "rancher2:index/getRoleTemplate:getRoleTemplate": { "defaultRole": "default_role", "roleTemplateIds": "role_template_ids" @@ -7439,6 +7415,7 @@ "route53Config": "route53_config" }, "rancher2:index/globalRole:GlobalRole": { + "inheritedClusterRoles": "inherited_cluster_roles", "newUserDefault": "new_user_default" }, "rancher2:index/globalRoleBinding:GlobalRoleBinding": { @@ -7584,10 +7561,6 @@ "namespaceId": "namespace_id", "projectId": "project_id" }, - "rancher2:index/roleTempalte:RoleTempalte": { - "defaultRole": "default_role", - "roleTemplateIds": "role_template_ids" - }, "rancher2:index/roleTemplate:RoleTemplate": { "defaultRole": "default_role", "roleTemplateIds": "role_template_ids" diff --git a/provider/cmd/pulumi-resource-rancher2/main.go b/provider/cmd/pulumi-resource-rancher2/main.go index e6cf2e554..88f5bcad9 100644 --- a/provider/cmd/pulumi-resource-rancher2/main.go +++ b/provider/cmd/pulumi-resource-rancher2/main.go @@ -21,8 +21,8 @@ import ( "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge" - rancher2 "github.com/pulumi/pulumi-rancher2/provider/v5" - "github.com/pulumi/pulumi-rancher2/provider/v5/pkg/version" + rancher2 "github.com/pulumi/pulumi-rancher2/provider/v6" + "github.com/pulumi/pulumi-rancher2/provider/v6/pkg/version" ) //go:embed schema-embed.json diff --git a/provider/cmd/pulumi-resource-rancher2/schema.json b/provider/cmd/pulumi-resource-rancher2/schema.json index 9483f8908..925841c79 100644 --- a/provider/cmd/pulumi-resource-rancher2/schema.json +++ b/provider/cmd/pulumi-resource-rancher2/schema.json @@ -17,14 +17,10 @@ "packageReferences": { "Pulumi": "3.*" }, - "namespaces": { - "index": "index", - "rancher2": "Rancher2" - }, "compatibility": "tfbridge20" }, "go": { - "importBasePath": "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2", + "importBasePath": "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2", "generateResourceContainerTypes": true, "generateExtraInputTypes": true }, @@ -921,122 +917,6 @@ }, "type": "object" }, - "rancher2:index/ClusterAlterGroupRecipient:ClusterAlterGroupRecipient": { - "properties": { - "defaultRecipient": { - "type": "boolean", - "description": "Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool)\n" - }, - "notifierId": { - "type": "string", - "description": "Recipient notifier ID (string)\n" - }, - "notifierType": { - "type": "string", - "description": "Recipient notifier ID. Supported values : `\"dingtalk\" | \"msteams\" | \"pagerduty\" | \"slack\" | \"email\" | \"webhook\" | \"wechat\"` (string)\n" - }, - "recipient": { - "type": "string", - "description": "Recipient (string)\n" - } - }, - "type": "object", - "required": [ - "notifierId" - ], - "language": { - "nodejs": { - "requiredOutputs": [ - "notifierId", - "notifierType", - "recipient" - ] - } - } - }, - "rancher2:index/ClusterAlterRuleEventRule:ClusterAlterRuleEventRule": { - "properties": { - "eventType": { - "type": "string", - "description": "Event type\n" - }, - "resourceKind": { - "type": "string", - "description": "Resource kind\n" - } - }, - "type": "object", - "required": [ - "resourceKind" - ] - }, - "rancher2:index/ClusterAlterRuleMetricRule:ClusterAlterRuleMetricRule": { - "properties": { - "comparison": { - "type": "string", - "description": "Metric rule comparison\n" - }, - "description": { - "type": "string", - "description": "The cluster alert group description (string)\n" - }, - "duration": { - "type": "string", - "description": "Metric rule duration\n" - }, - "expression": { - "type": "string", - "description": "Metric rule expression\n" - }, - "thresholdValue": { - "type": "number", - "description": "Metric rule threshold value\n" - } - }, - "type": "object", - "required": [ - "duration", - "expression", - "thresholdValue" - ] - }, - "rancher2:index/ClusterAlterRuleNodeRule:ClusterAlterRuleNodeRule": { - "properties": { - "condition": { - "type": "string", - "description": "Node rule condition\n" - }, - "cpuThreshold": { - "type": "integer", - "description": "Node rule cpu threshold\n" - }, - "memThreshold": { - "type": "integer", - "description": "Node rule mem threshold\n" - }, - "nodeId": { - "type": "string", - "description": "Node ID\n" - }, - "selector": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Node rule selector\n" - } - }, - "type": "object" - }, - "rancher2:index/ClusterAlterRuleSystemServiceRule:ClusterAlterRuleSystemServiceRule": { - "properties": { - "condition": { - "type": "string", - "description": "System service rule condition\n" - } - }, - "type": "object" - }, "rancher2:index/ClusterClusterAgentDeploymentCustomization:ClusterClusterAgentDeploymentCustomization": { "properties": { "appendTolerations": { @@ -1404,7 +1284,7 @@ }, "kmsKey": { "type": "string", - "description": "The AWS kms key to use (string)\n" + "description": "The AWS kms label ARN to use (string, e.g. arn:aws:kms:\u003cZONE\u003e:\u003c123456789100\u003e:alias/\u003cNAME\u003e)\n" }, "kubernetesVersion": { "type": "string", @@ -3556,6 +3436,9 @@ "type": "string", "description": "(string)\n" }, + "gracefulShutdownTimeout": { + "type": "string" + }, "insecureFlag": { "type": "boolean", "description": "(bool)\n" @@ -6407,6 +6290,9 @@ "datacenters": { "type": "string" }, + "gracefulShutdownTimeout": { + "type": "string" + }, "insecureFlag": { "type": "boolean" }, @@ -8017,11 +7903,11 @@ "properties": { "name": { "type": "string", - "description": "The name of the Cluster v2 (string)\n" + "description": "The name of the cluster.\n" }, "value": { "type": "string", - "description": "The taint value (string)\n" + "description": "The taint value.\n" } }, "type": "object", @@ -8037,18 +7923,18 @@ "items": { "$ref": "#/types/rancher2:index/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration:ClusterV2ClusterAgentDeploymentCustomizationAppendToleration" }, - "description": "User defined tolerations to append to agent (list)\n" + "description": "A list of tolerations to be appended to the default tolerations.\n" }, "overrideAffinity": { "type": "string", - "description": "User defined affinity to override default agent affinity (string)\n" + "description": "Override affinity overrides the global default affinity setting.\n" }, "overrideResourceRequirements": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement:ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement" }, - "description": "User defined resource requirements to set on the agent (list)\n" + "description": "Override resource requirements overrides the default value for requests and/or limits.\n" } }, "type": "object" @@ -8057,23 +7943,23 @@ "properties": { "effect": { "type": "string", - "description": "The taint effect. Default: `\\\"NoExecute\\\"` (string)\n" + "description": "The taint effect. Default: `\\\"NoExecute\\\"`.\n" }, "key": { "type": "string", - "description": "Machine selector label match expressions key (string)\n" + "description": "Key is the name of the key of the item to retrieve.\n" }, "operator": { "type": "string", - "description": "Machine selector label match expressions operator (string)\n" + "description": "Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.\n" }, "seconds": { "type": "integer", - "description": "The number of seconds a pod will stay bound to a node with a matching taint (int)\n" + "description": "The number of seconds a pod will stay bound to a node with a matching taint.\n" }, "value": { "type": "string", - "description": "The taint value (string)\n" + "description": "The taint value.\n" } }, "type": "object", @@ -8093,19 +7979,19 @@ "properties": { "cpuLimit": { "type": "string", - "description": "The maximum CPU limit for agent (string)\n" + "description": "The maximum CPU limit for agent.\n" }, "cpuRequest": { "type": "string", - "description": "The minimum CPU required for agent (string)\n" + "description": "The minimum CPU required for agent.\n" }, "memoryLimit": { "type": "string", - "description": "The maximum memory limit for agent (string)\n" + "description": "The maximum memory limit for agent.\n" }, "memoryRequest": { "type": "string", - "description": "The minimum memory required for agent (string)\n" + "description": "The minimum memory required for agent.\n" } }, "type": "object" @@ -8117,59 +8003,59 @@ "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Annotations for the Cluster V2 (map)\n" + "description": "Annotations for the Cluster.\n" }, "clusterId": { "type": "string", - "description": "Cluster ID (string)\n" + "description": "Cluster ID.\n" }, "command": { "type": "string", - "description": "Command to execute in a imported k8s cluster (string)\n" + "description": "Command to execute in an imported k8s cluster.\n" }, "id": { "type": "string", - "description": "(Computed) The ID of the resource (string)\n" + "description": "(Computed, string) The ID of the resource.\n" }, "insecureCommand": { "type": "string", - "description": "Insecure command to execute in a imported k8s cluster (string)\n" + "description": "Insecure command to execute in an imported k8s cluster.\n" }, "insecureNodeCommand": { "type": "string", - "description": "Insecure node command to execute in a imported k8s cluster (string)\n" + "description": "Insecure node command to execute in an imported k8s cluster.\n" }, "insecureWindowsNodeCommand": { "type": "string", - "description": "Insecure windows command to execute in a imported k8s cluster (string)\n" + "description": "Insecure windows command to execute in an imported k8s cluster.\n" }, "labels": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Labels for the Cluster V2 (map)\n" + "description": "Labels for the Cluster.\n" }, "manifestUrl": { "type": "string", - "description": "K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string)\n" + "description": "K8s manifest url to execute with `kubectl` to import an existing k8s cluster.\n" }, "name": { "type": "string", - "description": "The name of the Cluster v2 (string)\n" + "description": "The name of the cluster.\n" }, "nodeCommand": { "type": "string", - "description": "Node command to execute in linux nodes for custom k8s cluster (string)\n" + "description": "Node command to execute in Linux nodes for custom k8s cluster.\n" }, "token": { "type": "string", - "description": "Token for cluster registration token object (string)\n", + "description": "Token for cluster registration token object.\n", "secret": true }, "windowsNodeCommand": { "type": "string", - "description": "Node command to execute in windows nodes for custom k8s cluster (string)\n" + "description": "Node command to execute in Windows nodes for custom k8s cluster.\n" } }, "type": "object", @@ -8200,18 +8086,18 @@ "items": { "$ref": "#/types/rancher2:index/ClusterV2FleetAgentDeploymentCustomizationAppendToleration:ClusterV2FleetAgentDeploymentCustomizationAppendToleration" }, - "description": "User defined tolerations to append to agent (list)\n" + "description": "A list of tolerations to be appended to the default tolerations.\n" }, "overrideAffinity": { "type": "string", - "description": "User defined affinity to override default agent affinity (string)\n" + "description": "Override affinity overrides the global default affinity setting.\n" }, "overrideResourceRequirements": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement:ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement" }, - "description": "User defined resource requirements to set on the agent (list)\n" + "description": "Override resource requirements overrides the default value for requests and/or limits.\n" } }, "type": "object" @@ -8220,23 +8106,23 @@ "properties": { "effect": { "type": "string", - "description": "The taint effect. Default: `\\\"NoExecute\\\"` (string)\n" + "description": "The taint effect. Default: `\\\"NoExecute\\\"`.\n" }, "key": { "type": "string", - "description": "Machine selector label match expressions key (string)\n" + "description": "Key is the name of the key of the item to retrieve.\n" }, "operator": { "type": "string", - "description": "Machine selector label match expressions operator (string)\n" + "description": "Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.\n" }, "seconds": { "type": "integer", - "description": "The number of seconds a pod will stay bound to a node with a matching taint (int)\n" + "description": "The number of seconds a pod will stay bound to a node with a matching taint.\n" }, "value": { "type": "string", - "description": "The taint value (string)\n" + "description": "The taint value.\n" } }, "type": "object", @@ -8256,19 +8142,19 @@ "properties": { "cpuLimit": { "type": "string", - "description": "The maximum CPU limit for agent (string)\n" + "description": "The maximum CPU limit for agent.\n" }, "cpuRequest": { "type": "string", - "description": "The minimum CPU required for agent (string)\n" + "description": "The minimum CPU required for agent.\n" }, "memoryLimit": { "type": "string", - "description": "The maximum memory limit for agent (string)\n" + "description": "The maximum memory limit for agent.\n" }, "memoryRequest": { "type": "string", - "description": "The minimum memory required for agent (string)\n" + "description": "The minimum memory required for agent.\n" } }, "type": "object" @@ -8277,15 +8163,15 @@ "properties": { "caCerts": { "type": "string", - "description": "CA certs for the authorized cluster endpoint (string)\n" + "description": "CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field.\n" }, "enabled": { "type": "boolean", - "description": "Drain options enabled? Default `true` (bool)\n" + "description": "If `enabled` is set to true, nodes will be drained before upgrade.\n" }, "fqdn": { "type": "string", - "description": "FQDN for the authorized cluster endpoint (string)\n" + "description": "FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster.\n" } }, "type": "object" @@ -8294,32 +8180,32 @@ "properties": { "additionalManifest": { "type": "string", - "description": "Cluster V2 additional manifest (string)\n" + "description": "The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes.\n" }, "chartValues": { "type": "string", - "description": "Cluster V2 chart values. Must be in YAML format (string)\n" + "description": "The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components).\n" }, "etcd": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigEtcd:ClusterV2RkeConfigEtcd", - "description": "Cluster V2 etcd (list maxitems:1)\n" + "description": "Etcd configures the behavior of the automatic etcd snapshot feature.\n" }, "etcdSnapshotCreate": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigEtcdSnapshotCreate:ClusterV2RkeConfigEtcdSnapshotCreate", - "description": "Cluster V2 etcd snapshot create (list maxitems:1)\n" + "description": "Cluster V2 etcd snapshot create.\n" }, "etcdSnapshotRestore": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigEtcdSnapshotRestore:ClusterV2RkeConfigEtcdSnapshotRestore", - "description": "Cluster V2 etcd snapshot restore (list maxitems:1)\n" + "description": "Cluster V2 etcd snapshot restore.\n" }, "localAuthEndpoint": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigLocalAuthEndpoint:ClusterV2RkeConfigLocalAuthEndpoint", - "description": "Cluster V2 local auth endpoint (list maxitems:1)\n", + "description": "Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters).\n", "deprecationMessage": "Use rancher2_cluster_v2.local_auth_endpoint instead" }, "machineGlobalConfig": { "type": "string", - "description": "Cluster V2 machine global config. Must be in YAML format (string)\n" + "description": "Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server).\n" }, "machinePoolDefaults": { "type": "array", @@ -8333,26 +8219,33 @@ "items": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachinePool:ClusterV2RkeConfigMachinePool" }, - "description": "Cluster V2 machine pools (list)\n" + "description": "Cluster V2 machine pools.\n" }, "machineSelectorConfigs": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorConfig:ClusterV2RkeConfigMachineSelectorConfig" }, - "description": "Cluster V2 machine selector config (list)\n" + "description": "Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later.\n" + }, + "machineSelectorFiles": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorFile:ClusterV2RkeConfigMachineSelectorFile" + }, + "description": "Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later.\n" }, "registries": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigRegistries:ClusterV2RkeConfigRegistries", - "description": "Cluster V2 docker registries (list maxitems:1)\n" + "description": "Docker registries from which the cluster pulls images.\n" }, "rotateCertificates": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigRotateCertificates:ClusterV2RkeConfigRotateCertificates", - "description": "Cluster V2 certificate rotation (list maxitems:1)\n" + "description": "Cluster V2 certificate rotation.\n" }, "upgradeStrategy": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigUpgradeStrategy:ClusterV2RkeConfigUpgradeStrategy", - "description": "Cluster V2 upgrade strategy (list maxitems:1)\n" + "description": "Cluster upgrade strategy.\n" } }, "type": "object", @@ -8362,7 +8255,8 @@ "etcd", "machinePoolDefaults", "machinePools", - "machineSelectorConfigs" + "machineSelectorConfigs", + "machineSelectorFiles" ] } } @@ -8371,19 +8265,19 @@ "properties": { "disableSnapshots": { "type": "boolean", - "description": "Disable ETCD snapshots. Default: `false` (bool)\n" + "description": "Disable ETCD snapshots.\n" }, "s3Config": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigEtcdS3Config:ClusterV2RkeConfigEtcdS3Config", - "description": "Creation option for etcd service (list maxitems:1)\n" + "description": "Creation option for etcd service.\n" }, "snapshotRetention": { "type": "integer", - "description": "ETCD snapshot retention (int)\n" + "description": "ETCD snapshot retention.\n" }, "snapshotScheduleCron": { "type": "string", - "description": "ETCD snapshot schedule cron (e.g `\\\"0 */5 * * *\\\"`) (string)\n" + "description": "ETCD snapshot schedule cron (e.g `\\\"0 */5 * * *\\\"`).\n" } }, "type": "object" @@ -8392,31 +8286,31 @@ "properties": { "bucket": { "type": "string", - "description": "Bucket name for S3 service (string)\n" + "description": "Bucket name for S3 service.\n" }, "cloudCredentialName": { "type": "string", - "description": "ETCD snapshot S3 cloud credential name (string)\n" + "description": "ETCD snapshot S3 cloud credential name.\n" }, "endpoint": { "type": "string", - "description": "ETCD snapshot S3 endpoint (string)\n" + "description": "ETCD snapshot S3 endpoint.\n" }, "endpointCa": { "type": "string", - "description": "ETCD snapshot S3 endpoint CA (string)\n" + "description": "ETCD snapshot S3 endpoint CA.\n" }, "folder": { "type": "string", - "description": "ETCD snapshot S3 folder (string)\n" + "description": "ETCD snapshot S3 folder.\n" }, "region": { "type": "string", - "description": "ETCD snapshot S3 region (string)\n" + "description": "ETCD snapshot S3 region.\n" }, "skipSslVerify": { "type": "boolean", - "description": "Disable ETCD skip ssl verify. Default: `false` (bool)\n" + "description": "Disable ETCD skip ssl verify.\n" } }, "type": "object", @@ -8429,7 +8323,7 @@ "properties": { "generation": { "type": "integer", - "description": "ETCD snapshot desired generation (int)\n" + "description": "ETCD snapshot desired generation.\n" } }, "type": "object", @@ -8441,15 +8335,15 @@ "properties": { "generation": { "type": "integer", - "description": "ETCD snapshot desired generation (int)\n" + "description": "ETCD snapshot desired generation.\n" }, "name": { "type": "string", - "description": "The name of the Cluster v2 (string)\n" + "description": "The name of the cluster.\n" }, "restoreRkeConfig": { "type": "string", - "description": "ETCD restore RKE config (set to none, all, or kubernetesVersion) (string)\n" + "description": "ETCD restore RKE config (set to none, all, or kubernetesVersion).\n" } }, "type": "object", @@ -8462,15 +8356,15 @@ "properties": { "caCerts": { "type": "string", - "description": "CA certs for the authorized cluster endpoint (string)\n" + "description": "CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field.\n" }, "enabled": { "type": "boolean", - "description": "Drain options enabled? Default `true` (bool)\n" + "description": "If `enabled` is set to true, nodes will be drained before upgrade.\n" }, "fqdn": { "type": "string", - "description": "FQDN for the authorized cluster endpoint (string)\n" + "description": "FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster.\n" } }, "type": "object" @@ -8482,23 +8376,23 @@ "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Annotations for the Cluster V2 (map)\n" + "description": "Annotations for the Cluster.\n" }, "cloudCredentialSecretName": { "type": "string", - "description": "Cluster V2 cloud credential secret name (string)\n" + "description": "Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level.\n" }, "controlPlaneRole": { "type": "boolean", - "description": "Machine pool control plane role? (bool)\n" + "description": "Machine pool control plane role?\n" }, "drainBeforeDelete": { "type": "boolean", - "description": "Machine Pool Drain Before Delete? (bool)\n" + "description": "Machine Pool Drain Before Delete?\n" }, "etcdRole": { "type": "boolean", - "description": "Machine pool etcd role? (bool)\n" + "description": "Machine pool etcd role?\n" }, "hostnameLengthLimit": { "type": "integer", @@ -8509,65 +8403,65 @@ "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Labels for the Cluster V2 (map)\n" + "description": "Labels for the Cluster.\n" }, "machineConfig": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachinePoolMachineConfig:ClusterV2RkeConfigMachinePoolMachineConfig", - "description": "Machine pool node config (list)\n" + "description": "Machine pool node config.\n" }, "machineLabels": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Labels for Machine pool nodes (map)\n" + "description": "Labels for Machine pool nodes.\n" }, "maxUnhealthy": { "type": "string", - "description": "Max unhealthy nodes for automated replacement to be allowed (string)\n" + "description": "Max unhealthy nodes for automated replacement to be allowed.\n" }, "name": { "type": "string", - "description": "The name of the Cluster v2 (string)\n" + "description": "The name of the cluster.\n" }, "nodeDrainTimeout": { "type": "integer", - "description": "Seconds a machine has to drain before deletion (int)\n" + "description": "Seconds a machine has to drain before deletion.\n" }, "nodeStartupTimeoutSeconds": { "type": "integer", - "description": "Seconds a new node has to become active before it is replaced (int)\n" + "description": "Seconds a new node has to become active before it is replaced.\n" }, "paused": { "type": "boolean", - "description": "Machine pool paused? (bool)\n" + "description": "Machine pool paused?\n" }, "quantity": { "type": "integer", - "description": "Machine pool quantity (int)\n" + "description": "Machine pool quantity.\n" }, "rollingUpdate": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachinePoolRollingUpdate:ClusterV2RkeConfigMachinePoolRollingUpdate", - "description": "Machine pool rolling update (List maxitems:1)\n" + "description": "Machine pool rolling update.\n" }, "taints": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachinePoolTaint:ClusterV2RkeConfigMachinePoolTaint" }, - "description": "Machine pool taints (list)\n" + "description": "Machine pool taints.\n" }, "unhealthyNodeTimeoutSeconds": { "type": "integer", - "description": "Seconds an unhealthy node has to become active before it is replaced (int)\n" + "description": "Seconds an unhealthy node has to become active before it is replaced.\n" }, "unhealthyRange": { "type": "string", - "description": "Range of unhealthy nodes for automated replacement to be allowed (string)\n" + "description": "Range of unhealthy nodes for automated replacement to be allowed.\n" }, "workerRole": { "type": "boolean", - "description": "Machine pool worker role? (bool)\n" + "description": "Machine pool worker role?\n" } }, "type": "object", @@ -8598,13 +8492,17 @@ }, "rancher2:index/ClusterV2RkeConfigMachinePoolMachineConfig:ClusterV2RkeConfigMachinePoolMachineConfig": { "properties": { + "apiVersion": { + "type": "string", + "description": "Api version of the machine_config.\n" + }, "kind": { "type": "string", - "description": "Machine config kind (string)\n" + "description": "Machine config kind.\n" }, "name": { "type": "string", - "description": "The name of the Cluster v2 (string)\n" + "description": "The name of the cluster.\n" } }, "type": "object", @@ -8617,11 +8515,11 @@ "properties": { "maxSurge": { "type": "string", - "description": "Rolling update max surge (string)\n" + "description": "Rolling update max surge.\n" }, "maxUnavailable": { "type": "string", - "description": "Rolling update max unavailable (string)\n" + "description": "Rolling update max unavailable.\n" } }, "type": "object" @@ -8630,15 +8528,15 @@ "properties": { "effect": { "type": "string", - "description": "The taint effect. Default: `\\\"NoExecute\\\"` (string)\n" + "description": "The taint effect. Default: `\\\"NoExecute\\\"`.\n" }, "key": { "type": "string", - "description": "Machine selector label match expressions key (string)\n" + "description": "Key is the name of the key of the item to retrieve.\n" }, "value": { "type": "string", - "description": "The taint value (string)\n" + "description": "The taint value.\n" } }, "type": "object", @@ -8651,11 +8549,11 @@ "properties": { "config": { "type": "string", - "description": "Machine selector config. Must be in YAML format (string)\n" + "description": "Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig)\n" }, "machineLabelSelector": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector:ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector", - "description": "Machine selector label (list maxitems:1)\n" + "description": "Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.\n" } }, "type": "object" @@ -8667,14 +8565,14 @@ "items": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression:ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression" }, - "description": "Machine selector label match expressions (list)\n" + "description": "Match expressions is a list of label selector requirements. The requirements are ANDed.\n" }, "matchLabels": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Machine selector label match labels (map)\n" + "description": "Machine selector label is a map of {key,value} pairs, the requirements are ANDed.\n" } }, "type": "object" @@ -8683,18 +8581,190 @@ "properties": { "key": { "type": "string", - "description": "Machine selector label match expressions key (string)\n" + "description": "Key is the name of the key of the item to retrieve.\n" + }, + "operator": { + "type": "string", + "description": "Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.\n" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Values is a list of string values.\n" + } + }, + "type": "object" + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFile:ClusterV2RkeConfigMachineSelectorFile": { + "properties": { + "fileSources": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSource:ClusterV2RkeConfigMachineSelectorFileFileSource" + }, + "description": "File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector.\n" + }, + "machineLabelSelector": { + "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector:ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector", + "description": "Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.\n" + } + }, + "type": "object" + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSource:ClusterV2RkeConfigMachineSelectorFileFileSource": { + "properties": { + "configmap": { + "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap:ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap", + "description": "Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret.\n" + }, + "secret": { + "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret:ClusterV2RkeConfigMachineSelectorFileFileSourceSecret", + "description": "Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap.\n" + } + }, + "type": "object" + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap:ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap": { + "properties": { + "defaultPermissions": { + "type": "string", + "description": "The numeric representation of the default file permissions for all files defined under the items.\n" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem:ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem" + }, + "description": "Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc.\n" + }, + "name": { + "type": "string", + "description": "The name of the cluster.\n" + } + }, + "type": "object", + "required": [ + "name" + ] + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem:ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem": { + "properties": { + "dynamic": { + "type": "boolean", + "description": "If true, the file is ignored when determining whether the node should be drained before updating the node plan.\n" + }, + "hash": { + "type": "string", + "description": "Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content.\n" + }, + "key": { + "type": "string", + "description": "Key is the name of the key of the item to retrieve.\n" + }, + "path": { + "type": "string", + "description": "Path is the absolute path to put the file in the target node.\n" + }, + "permissions": { + "type": "string", + "description": "Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level.\n" + } + }, + "type": "object", + "required": [ + "key", + "path" + ] + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret:ClusterV2RkeConfigMachineSelectorFileFileSourceSecret": { + "properties": { + "defaultPermissions": { + "type": "string", + "description": "The numeric representation of the default file permissions for all files defined under the items.\n" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem:ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem" + }, + "description": "Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc.\n" + }, + "name": { + "type": "string", + "description": "The name of the cluster.\n" + } + }, + "type": "object", + "required": [ + "name" + ] + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem:ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem": { + "properties": { + "dynamic": { + "type": "boolean", + "description": "If true, the file is ignored when determining whether the node should be drained before updating the node plan.\n" + }, + "hash": { + "type": "string", + "description": "Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content.\n" + }, + "key": { + "type": "string", + "description": "Key is the name of the key of the item to retrieve.\n" + }, + "path": { + "type": "string", + "description": "Path is the absolute path to put the file in the target node.\n" + }, + "permissions": { + "type": "string", + "description": "Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level.\n" + } + }, + "type": "object", + "required": [ + "key", + "path" + ] + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector:ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector": { + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression:ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression" + }, + "description": "Match expressions is a list of label selector requirements. The requirements are ANDed.\n" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "Machine selector label is a map of {key,value} pairs, the requirements are ANDed.\n" + } + }, + "type": "object" + }, + "rancher2:index/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression:ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression": { + "properties": { + "key": { + "type": "string", + "description": "Key is the name of the key of the item to retrieve.\n" }, "operator": { "type": "string", - "description": "Machine selector label match expressions operator (string)\n" + "description": "Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.\n" }, "values": { "type": "array", "items": { "type": "string" }, - "description": "Machine selector label match expressions values (List string)\n" + "description": "Values is a list of string values.\n" } }, "type": "object" @@ -8706,14 +8776,14 @@ "items": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigRegistriesConfig:ClusterV2RkeConfigRegistriesConfig" }, - "description": "Cluster V2 docker registries config (list)\n" + "description": "Cluster V2 docker registries config.\n" }, "mirrors": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigRegistriesMirror:ClusterV2RkeConfigRegistriesMirror" }, - "description": "Cluster V2 docker registries mirror (list)\n" + "description": "Cluster V2 docker registries mirror.\n" } }, "type": "object" @@ -8722,23 +8792,23 @@ "properties": { "authConfigSecretName": { "type": "string", - "description": "Registry auth config secret name (string)\n" + "description": "Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated.\n" }, "caBundle": { "type": "string", - "description": "Registry CA bundle (string)\n" + "description": "Registry CA bundle.\n" }, "hostname": { "type": "string", - "description": "Registry hostname (string)\n" + "description": "Registry hostname.\n" }, "insecure": { "type": "boolean", - "description": "Registry insecure connectivity (bool)\n" + "description": "Registry insecure connectivity.\n" }, "tlsSecretName": { "type": "string", - "description": "Registry TLS secret name. TLS is a pair of Cert/Key (string)\n" + "description": "Registry TLS secret name. TLS is a pair of Cert/Key.\n" } }, "type": "object", @@ -8753,18 +8823,18 @@ "items": { "type": "string" }, - "description": "Registry mirror endpoints (List)\n" + "description": "Registry mirror endpoints.\n" }, "hostname": { "type": "string", - "description": "Registry hostname (string)\n" + "description": "Registry hostname.\n" }, "rewrites": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Registry mirror rewrites (map)\n" + "description": "Registry mirror rewrites.\n" } }, "type": "object", @@ -8776,14 +8846,14 @@ "properties": { "generation": { "type": "integer", - "description": "ETCD snapshot desired generation (int)\n" + "description": "ETCD snapshot desired generation.\n" }, "services": { "type": "array", "items": { "type": "string" }, - "description": "Service certificates to rotate with this generation (string)\n" + "description": "Service certificates to rotate with this generation.\n" } }, "type": "object", @@ -8795,19 +8865,19 @@ "properties": { "controlPlaneConcurrency": { "type": "string", - "description": "How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string)\n" + "description": "How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted.\n" }, "controlPlaneDrainOptions": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions:ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions", - "description": "Controlplane nodes drain options (list maxitems:1)\n" + "description": "Controlplane nodes drain options.\n" }, "workerConcurrency": { "type": "string", - "description": "How many worker nodes should be upgrade at time. Percentages are also accepted (string)\n" + "description": "How many worker nodes should be upgraded at a time. Percentages are also accepted.\n" }, "workerDrainOptions": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions:ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions", - "description": "Worker nodes drain options (list maxitems:1)\n" + "description": "Worker nodes drain options.\n" } }, "type": "object" @@ -8816,39 +8886,39 @@ "properties": { "deleteEmptyDirData": { "type": "boolean", - "description": "Drain options delete empty dir data. Default `false` (bool)\n" + "description": "if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage).\n" }, "disableEviction": { "type": "boolean", - "description": "Drain options disable eviction. Default `false` (bool)\n" + "description": "If `disable_eviction` is set to true, force drain to use delete rather than evict.\n" }, "enabled": { "type": "boolean", - "description": "Drain options enabled? Default `true` (bool)\n" + "description": "If `enabled` is set to true, nodes will be drained before upgrade.\n" }, "force": { "type": "boolean", - "description": "Drain options force. Default `false` (bool)\n" + "description": "If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods.\n" }, "gracePeriod": { "type": "integer", - "description": "Drain options grace period (int)\n" + "description": "Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.\n" }, "ignoreDaemonSets": { "type": "boolean", - "description": "Drain options ignore daemon sets. Default `true` (bool)\n" + "description": "If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods.\n" }, "ignoreErrors": { "type": "boolean", - "description": "Drain options ignore errors. Default `false` (bool)\n" + "description": "If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored.\n" }, "skipWaitForDeleteTimeoutSeconds": { "type": "integer", - "description": "Drain options skip wait for delete timeout seconds (int)\n" + "description": "Skip waiting for the pods that have a DeletionTimeStamp \u003e N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted.\n" }, "timeout": { "type": "integer", - "description": "Drain options timeout (int)\n" + "description": "Time to wait (in seconds) before giving up for one try.\n" } }, "type": "object", @@ -8866,39 +8936,39 @@ "properties": { "deleteEmptyDirData": { "type": "boolean", - "description": "Drain options delete empty dir data. Default `false` (bool)\n" + "description": "if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage).\n" }, "disableEviction": { "type": "boolean", - "description": "Drain options disable eviction. Default `false` (bool)\n" + "description": "If `disable_eviction` is set to true, force drain to use delete rather than evict.\n" }, "enabled": { "type": "boolean", - "description": "Drain options enabled? Default `true` (bool)\n" + "description": "If `enabled` is set to true, nodes will be drained before upgrade.\n" }, "force": { "type": "boolean", - "description": "Drain options force. Default `false` (bool)\n" + "description": "If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods.\n" }, "gracePeriod": { "type": "integer", - "description": "Drain options grace period (int)\n" + "description": "Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.\n" }, "ignoreDaemonSets": { "type": "boolean", - "description": "Drain options ignore daemon sets. Default `true` (bool)\n" + "description": "If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods.\n" }, "ignoreErrors": { "type": "boolean", - "description": "Drain options ignore errors. Default `false` (bool)\n" + "description": "If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored.\n" }, "skipWaitForDeleteTimeoutSeconds": { "type": "integer", - "description": "Drain options skip wait for delete timeout seconds (int)\n" + "description": "Skip waiting for the pods that have a DeletionTimeStamp \u003e N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted.\n" }, "timeout": { "type": "integer", - "description": "Drain options timeout (int)\n" + "description": "Time to wait (in seconds) before giving up for one try.\n" } }, "type": "object", @@ -9854,6 +9924,10 @@ "type": "string", "description": "vSphere folder for the docker VM. This folder must already exist in the datacenter (string)\n" }, + "gracefulShutdownTimeout": { + "type": "string", + "description": "Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string)\n" + }, "hostsystem": { "type": "string", "description": "vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string)\n" @@ -11129,6 +11203,10 @@ "type": "string", "description": "vSphere folder for the docker VM. This folder must already exist in the datacenter (string)\n" }, + "gracefulShutdownTimeout": { + "type": "string", + "description": "Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero\n" + }, "hostsystem": { "type": "string", "description": "vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string)\n" @@ -11936,46 +12014,6 @@ "address" ] }, - "rancher2:index/RoleTempalteRule:RoleTempalteRule": { - "properties": { - "apiGroups": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule api groups (list)\n" - }, - "nonResourceUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule non resource urls (list)\n" - }, - "resourceNames": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule resource names (list)\n" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule resources (list)\n" - }, - "verbs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list)\n" - } - }, - "type": "object" - }, "rancher2:index/RoleTemplateRule:RoleTemplateRule": { "properties": { "apiGroups": { @@ -12490,7 +12528,7 @@ } } }, - "rancher2:index/getClusterAlterRuleEventRule:getClusterAlterRuleEventRule": { + "rancher2:index/getClusterAlertRuleEventRule:getClusterAlertRuleEventRule": { "properties": { "eventType": { "type": "string", @@ -12511,7 +12549,7 @@ } } }, - "rancher2:index/getClusterAlterRuleMetricRule:getClusterAlterRuleMetricRule": { + "rancher2:index/getClusterAlertRuleMetricRule:getClusterAlertRuleMetricRule": { "properties": { "comparison": { "type": "string", @@ -12546,7 +12584,7 @@ } } }, - "rancher2:index/getClusterAlterRuleNodeRule:getClusterAlterRuleNodeRule": { + "rancher2:index/getClusterAlertRuleNodeRule:getClusterAlertRuleNodeRule": { "properties": { "condition": { "type": "string", @@ -12574,7 +12612,7 @@ }, "type": "object" }, - "rancher2:index/getClusterAlterRuleSystemServiceRule:getClusterAlterRuleSystemServiceRule": { + "rancher2:index/getClusterAlertRuleSystemServiceRule:getClusterAlertRuleSystemServiceRule": { "properties": { "condition": { "type": "string", @@ -14801,6 +14839,9 @@ "datacenters": { "type": "string" }, + "gracefulShutdownTimeout": { + "type": "string" + }, "insecureFlag": { "type": "boolean" }, @@ -17309,6 +17350,9 @@ "datacenters": { "type": "string" }, + "gracefulShutdownTimeout": { + "type": "string" + }, "insecureFlag": { "type": "boolean" }, @@ -19094,6 +19138,13 @@ }, "description": "Cluster V2 machine selector config\n" }, + "machineSelectorFiles": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/getClusterV2RkeConfigMachineSelectorFile:getClusterV2RkeConfigMachineSelectorFile" + }, + "description": "Cluster V2 machine selector files\n" + }, "registries": { "$ref": "#/types/rancher2:index/getClusterV2RkeConfigRegistries:getClusterV2RkeConfigRegistries", "description": "Cluster V2 registries\n" @@ -19112,7 +19163,8 @@ "etcd", "machinePoolDefaults", "machinePools", - "machineSelectorConfigs" + "machineSelectorConfigs", + "machineSelectorFiles" ], "language": { "nodejs": { @@ -19360,6 +19412,10 @@ }, "rancher2:index/getClusterV2RkeConfigMachinePoolMachineConfig:getClusterV2RkeConfigMachinePoolMachineConfig": { "properties": { + "apiVersion": { + "type": "string", + "description": "Machine config API version\n" + }, "kind": { "type": "string", "description": "Machine config kind\n" @@ -19468,6 +19524,198 @@ }, "type": "object" }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFile:getClusterV2RkeConfigMachineSelectorFile": { + "properties": { + "fileSources": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSource:getClusterV2RkeConfigMachineSelectorFileFileSource" + }, + "description": "File sources\n" + }, + "machineLabelSelector": { + "$ref": "#/types/rancher2:index/getClusterV2RkeConfigMachineSelectorFileMachineLabelSelector:getClusterV2RkeConfigMachineSelectorFileMachineLabelSelector", + "description": "Machine label selector\n" + } + }, + "type": "object" + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSource:getClusterV2RkeConfigMachineSelectorFileFileSource": { + "properties": { + "configmap": { + "$ref": "#/types/rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap:getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap", + "description": "The configmap which is the source of files\n" + }, + "secret": { + "$ref": "#/types/rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceSecret:getClusterV2RkeConfigMachineSelectorFileFileSourceSecret", + "description": "The secret which is the source of files\n" + } + }, + "type": "object" + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap:getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap": { + "properties": { + "defaultPermissions": { + "type": "string", + "description": "The default permissions to be applied when they are not set at the item level\n" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem:getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem" + }, + "description": "Items(files) to retrieve from the K8s object\n" + }, + "name": { + "type": "string", + "description": "The name of the Cluster v2 (string)\n" + } + }, + "type": "object", + "required": [ + "name" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem:getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem": { + "properties": { + "dynamic": { + "type": "boolean", + "description": "If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true).\n" + }, + "hash": { + "type": "string", + "description": "The base64 encoded value of the SHA256 checksum of the file's content\n" + }, + "key": { + "type": "string", + "description": "The key of the item(file) to retrieve\n" + }, + "path": { + "type": "string", + "description": "The path to put the file in the target node\n" + }, + "permissions": { + "type": "string", + "description": "The numeric representation of the file permissions\n" + } + }, + "type": "object", + "required": [ + "key", + "path" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceSecret:getClusterV2RkeConfigMachineSelectorFileFileSourceSecret": { + "properties": { + "defaultPermissions": { + "type": "string", + "description": "The default permissions to be applied when they are not set at the item level\n" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem:getClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem" + }, + "description": "Items(files) to retrieve from the K8s object\n" + }, + "name": { + "type": "string", + "description": "The name of the Cluster v2 (string)\n" + } + }, + "type": "object", + "required": [ + "name" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem:getClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem": { + "properties": { + "dynamic": { + "type": "boolean", + "description": "If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true).\n" + }, + "hash": { + "type": "string", + "description": "The base64 encoded value of the SHA256 checksum of the file's content\n" + }, + "key": { + "type": "string", + "description": "The key of the item(file) to retrieve\n" + }, + "path": { + "type": "string", + "description": "The path to put the file in the target node\n" + }, + "permissions": { + "type": "string", + "description": "The numeric representation of the file permissions\n" + } + }, + "type": "object", + "required": [ + "key", + "path" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileMachineLabelSelector:getClusterV2RkeConfigMachineSelectorFileMachineLabelSelector": { + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "$ref": "#/types/rancher2:index/getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression:getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression" + }, + "description": "Label selector match expressions\n" + }, + "matchLabels": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "Label selector match labels\n" + } + }, + "type": "object" + }, + "rancher2:index/getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression:getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression": { + "properties": { + "key": { + "type": "string", + "description": "Label selector requirement key\n" + }, + "operator": { + "type": "string", + "description": "Label selector operator\n" + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Label selector requirement values\n" + } + }, + "type": "object" + }, "rancher2:index/getClusterV2RkeConfigRegistries:getClusterV2RkeConfigRegistries": { "properties": { "configs": { @@ -20834,46 +21082,6 @@ } } }, - "rancher2:index/getRoleTempalteRule:getRoleTempalteRule": { - "properties": { - "apiGroups": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule api groups\n" - }, - "nonResourceUrls": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule non resource urls\n" - }, - "resourceNames": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule resource names\n" - }, - "resources": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule resources\n" - }, - "verbs": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Policy rule verbs\n" - } - }, - "type": "object" - }, "rancher2:index/getRoleTemplateRule:getRoleTemplateRule": { "properties": { "apiGroups": { @@ -21021,519 +21229,8 @@ ] }, "resources": { - "rancher2:index/activeDirectory:ActiveDirectory": { - "description": "Provides a Rancher v2 Auth Config ActiveDirectory resource. This can be used to configure and enable Auth Config ActiveDirectory for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time.\n", - "properties": { - "accessMode": { - "type": "string", - "description": "Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string)\n" - }, - "allowedPrincipalIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://\u003cDN\u003e` `activedirectory_group://\u003cDN\u003e`. The local admin (`local://\u003cadmin id\u003e`) and the `test_username` must be added too. (list)\n" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Annotations of the resource (map)\n" - }, - "certificate": { - "type": "string", - "description": "CA certificate for TLS if selfsigned (string)\n", - "secret": true - }, - "connectionTimeout": { - "type": "integer", - "description": "ActiveDirectory connection timeout. Default `5000` (int)\n" - }, - "defaultLoginDomain": { - "type": "string", - "description": "ActiveDirectory defult login domain (string)\n" - }, - "enabled": { - "type": "boolean", - "description": "Enable auth config provider. Default `true` (bool)\n" - }, - "groupDnAttribute": { - "type": "string", - "description": "Group DN attribute. Default `distinguishedName` (string)\n" - }, - "groupMemberMappingAttribute": { - "type": "string", - "description": "Group member mapping attribute. Default `member` (string)\n" - }, - "groupMemberUserAttribute": { - "type": "string", - "description": "Group member user attribute. Default `distinguishedName` (string)\n" - }, - "groupNameAttribute": { - "type": "string", - "description": "Group name attribute. Default `name` (string)\n" - }, - "groupObjectClass": { - "type": "string", - "description": "Group object class. Default `group` (string)\n" - }, - "groupSearchAttribute": { - "type": "string", - "description": "Group search attribute. Default `sAMAccountName` (string)\n" - }, - "groupSearchBase": { - "type": "string", - "description": "Group search base (string)\n" - }, - "groupSearchFilter": { - "type": "string", - "description": "Group search filter (string)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Labels of the resource (map)\n" - }, - "name": { - "type": "string", - "description": "(Computed) The name of the resource (string)\n" - }, - "nestedGroupMembershipEnabled": { - "type": "boolean", - "description": "Nested group membership enable. Default `false` (bool)\n" - }, - "port": { - "type": "integer", - "description": "ActiveDirectory port. Default `389` (int)\n" - }, - "servers": { - "type": "array", - "items": { - "type": "string" - }, - "description": "ActiveDirectory servers list (list)\n" - }, - "serviceAccountPassword": { - "type": "string", - "description": "Service account password for access ActiveDirectory service (string)\n", - "secret": true - }, - "serviceAccountUsername": { - "type": "string", - "description": "Service account DN for access ActiveDirectory service (string)\n", - "secret": true - }, - "startTls": { - "type": "boolean", - "description": "Enable start TLS connection (bool)\n" - }, - "testPassword": { - "type": "string", - "description": "Password for test access to ActiveDirectory service (string)\n", - "secret": true - }, - "testUsername": { - "type": "string", - "description": "Username for test access to ActiveDirectory service (string)\n" - }, - "tls": { - "type": "boolean", - "description": "Enable TLS connection (bool)\n" - }, - "type": { - "type": "string", - "description": "(Computed) The type of the resource (string)\n" - }, - "userDisabledBitMask": { - "type": "integer", - "description": "User disabled bit mask. Default `2` (int)\n" - }, - "userEnabledAttribute": { - "type": "string", - "description": "User enable attribute (string)\n" - }, - "userLoginAttribute": { - "type": "string", - "description": "User login attribute. Default `sAMAccountName` (string)\n" - }, - "userNameAttribute": { - "type": "string", - "description": "User name attribute. Default `name` (string)\n" - }, - "userObjectClass": { - "type": "string", - "description": "User object class. Default `person` (string)\n" - }, - "userSearchAttribute": { - "type": "string", - "description": "User search attribute. Default `sAMAccountName|sn|givenName` (string)\n" - }, - "userSearchBase": { - "type": "string", - "description": "User search base DN (string)\n" - }, - "userSearchFilter": { - "type": "string", - "description": "User search filter (string)\n" - } - }, - "required": [ - "annotations", - "groupDnAttribute", - "groupMemberMappingAttribute", - "groupMemberUserAttribute", - "groupNameAttribute", - "groupObjectClass", - "groupSearchAttribute", - "groupSearchBase", - "groupSearchFilter", - "labels", - "name", - "nestedGroupMembershipEnabled", - "servers", - "serviceAccountPassword", - "serviceAccountUsername", - "startTls", - "testPassword", - "testUsername", - "tls", - "type", - "userEnabledAttribute", - "userLoginAttribute", - "userNameAttribute", - "userObjectClass", - "userSearchAttribute", - "userSearchBase", - "userSearchFilter" - ], - "inputProperties": { - "accessMode": { - "type": "string", - "description": "Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string)\n" - }, - "allowedPrincipalIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://\u003cDN\u003e` `activedirectory_group://\u003cDN\u003e`. The local admin (`local://\u003cadmin id\u003e`) and the `test_username` must be added too. (list)\n" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Annotations of the resource (map)\n" - }, - "certificate": { - "type": "string", - "description": "CA certificate for TLS if selfsigned (string)\n", - "secret": true - }, - "connectionTimeout": { - "type": "integer", - "description": "ActiveDirectory connection timeout. Default `5000` (int)\n" - }, - "defaultLoginDomain": { - "type": "string", - "description": "ActiveDirectory defult login domain (string)\n" - }, - "enabled": { - "type": "boolean", - "description": "Enable auth config provider. Default `true` (bool)\n" - }, - "groupDnAttribute": { - "type": "string", - "description": "Group DN attribute. Default `distinguishedName` (string)\n" - }, - "groupMemberMappingAttribute": { - "type": "string", - "description": "Group member mapping attribute. Default `member` (string)\n" - }, - "groupMemberUserAttribute": { - "type": "string", - "description": "Group member user attribute. Default `distinguishedName` (string)\n" - }, - "groupNameAttribute": { - "type": "string", - "description": "Group name attribute. Default `name` (string)\n" - }, - "groupObjectClass": { - "type": "string", - "description": "Group object class. Default `group` (string)\n" - }, - "groupSearchAttribute": { - "type": "string", - "description": "Group search attribute. Default `sAMAccountName` (string)\n" - }, - "groupSearchBase": { - "type": "string", - "description": "Group search base (string)\n" - }, - "groupSearchFilter": { - "type": "string", - "description": "Group search filter (string)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Labels of the resource (map)\n" - }, - "nestedGroupMembershipEnabled": { - "type": "boolean", - "description": "Nested group membership enable. Default `false` (bool)\n" - }, - "port": { - "type": "integer", - "description": "ActiveDirectory port. Default `389` (int)\n" - }, - "servers": { - "type": "array", - "items": { - "type": "string" - }, - "description": "ActiveDirectory servers list (list)\n" - }, - "serviceAccountPassword": { - "type": "string", - "description": "Service account password for access ActiveDirectory service (string)\n", - "secret": true - }, - "serviceAccountUsername": { - "type": "string", - "description": "Service account DN for access ActiveDirectory service (string)\n", - "secret": true - }, - "startTls": { - "type": "boolean", - "description": "Enable start TLS connection (bool)\n" - }, - "testPassword": { - "type": "string", - "description": "Password for test access to ActiveDirectory service (string)\n", - "secret": true - }, - "testUsername": { - "type": "string", - "description": "Username for test access to ActiveDirectory service (string)\n" - }, - "tls": { - "type": "boolean", - "description": "Enable TLS connection (bool)\n" - }, - "userDisabledBitMask": { - "type": "integer", - "description": "User disabled bit mask. Default `2` (int)\n" - }, - "userEnabledAttribute": { - "type": "string", - "description": "User enable attribute (string)\n" - }, - "userLoginAttribute": { - "type": "string", - "description": "User login attribute. Default `sAMAccountName` (string)\n" - }, - "userNameAttribute": { - "type": "string", - "description": "User name attribute. Default `name` (string)\n" - }, - "userObjectClass": { - "type": "string", - "description": "User object class. Default `person` (string)\n" - }, - "userSearchAttribute": { - "type": "string", - "description": "User search attribute. Default `sAMAccountName|sn|givenName` (string)\n" - }, - "userSearchBase": { - "type": "string", - "description": "User search base DN (string)\n" - }, - "userSearchFilter": { - "type": "string", - "description": "User search filter (string)\n" - } - }, - "requiredInputs": [ - "servers", - "serviceAccountPassword", - "serviceAccountUsername", - "testPassword", - "testUsername", - "userSearchBase" - ], - "stateInputs": { - "description": "Input properties used for looking up and filtering ActiveDirectory resources.\n", - "properties": { - "accessMode": { - "type": "string", - "description": "Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string)\n" - }, - "allowedPrincipalIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://\u003cDN\u003e` `activedirectory_group://\u003cDN\u003e`. The local admin (`local://\u003cadmin id\u003e`) and the `test_username` must be added too. (list)\n" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Annotations of the resource (map)\n" - }, - "certificate": { - "type": "string", - "description": "CA certificate for TLS if selfsigned (string)\n", - "secret": true - }, - "connectionTimeout": { - "type": "integer", - "description": "ActiveDirectory connection timeout. Default `5000` (int)\n" - }, - "defaultLoginDomain": { - "type": "string", - "description": "ActiveDirectory defult login domain (string)\n" - }, - "enabled": { - "type": "boolean", - "description": "Enable auth config provider. Default `true` (bool)\n" - }, - "groupDnAttribute": { - "type": "string", - "description": "Group DN attribute. Default `distinguishedName` (string)\n" - }, - "groupMemberMappingAttribute": { - "type": "string", - "description": "Group member mapping attribute. Default `member` (string)\n" - }, - "groupMemberUserAttribute": { - "type": "string", - "description": "Group member user attribute. Default `distinguishedName` (string)\n" - }, - "groupNameAttribute": { - "type": "string", - "description": "Group name attribute. Default `name` (string)\n" - }, - "groupObjectClass": { - "type": "string", - "description": "Group object class. Default `group` (string)\n" - }, - "groupSearchAttribute": { - "type": "string", - "description": "Group search attribute. Default `sAMAccountName` (string)\n" - }, - "groupSearchBase": { - "type": "string", - "description": "Group search base (string)\n" - }, - "groupSearchFilter": { - "type": "string", - "description": "Group search filter (string)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Labels of the resource (map)\n" - }, - "name": { - "type": "string", - "description": "(Computed) The name of the resource (string)\n" - }, - "nestedGroupMembershipEnabled": { - "type": "boolean", - "description": "Nested group membership enable. Default `false` (bool)\n" - }, - "port": { - "type": "integer", - "description": "ActiveDirectory port. Default `389` (int)\n" - }, - "servers": { - "type": "array", - "items": { - "type": "string" - }, - "description": "ActiveDirectory servers list (list)\n" - }, - "serviceAccountPassword": { - "type": "string", - "description": "Service account password for access ActiveDirectory service (string)\n", - "secret": true - }, - "serviceAccountUsername": { - "type": "string", - "description": "Service account DN for access ActiveDirectory service (string)\n", - "secret": true - }, - "startTls": { - "type": "boolean", - "description": "Enable start TLS connection (bool)\n" - }, - "testPassword": { - "type": "string", - "description": "Password for test access to ActiveDirectory service (string)\n", - "secret": true - }, - "testUsername": { - "type": "string", - "description": "Username for test access to ActiveDirectory service (string)\n" - }, - "tls": { - "type": "boolean", - "description": "Enable TLS connection (bool)\n" - }, - "type": { - "type": "string", - "description": "(Computed) The type of the resource (string)\n" - }, - "userDisabledBitMask": { - "type": "integer", - "description": "User disabled bit mask. Default `2` (int)\n" - }, - "userEnabledAttribute": { - "type": "string", - "description": "User enable attribute (string)\n" - }, - "userLoginAttribute": { - "type": "string", - "description": "User login attribute. Default `sAMAccountName` (string)\n" - }, - "userNameAttribute": { - "type": "string", - "description": "User name attribute. Default `name` (string)\n" - }, - "userObjectClass": { - "type": "string", - "description": "User object class. Default `person` (string)\n" - }, - "userSearchAttribute": { - "type": "string", - "description": "User search attribute. Default `sAMAccountName|sn|givenName` (string)\n" - }, - "userSearchBase": { - "type": "string", - "description": "User search base DN (string)\n" - }, - "userSearchFilter": { - "type": "string", - "description": "User search filter (string)\n" - } - }, - "type": "object" - }, - "deprecationMessage": "rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory" - }, "rancher2:index/app:App": { - "description": "Provides a Rancher v2 app resource. This can be used to deploy apps within Rancher v2 projects.\n\nThis resource can also modify Rancher v2 apps in 3 ways:\n- `Update`: If `description`, `annotations` or `labels` arguments are modified the app will be updated. No new `revision_id` will be generated in Rancher.\n- `Upgrade`: If `answers`, `catalog_name`, `template_name`, `template_version` or `values_yaml` arguments are modified, the app will be upgraded. A new `revision_id` will be generated in Rancher.\n- `Rollback`: If `revision_id` argument is provided or modified the app will be rolled back accordingly. A new `revision_id` will be generated in Rancher. It will also generate a non-empty pulumi preview that will require manual .tf file intervention. Use carefully.\n\nNote: In case of multiple resource modifications in a row, `rollback` has preference over `upgrade`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 App\nconst foo = new rancher2.App(\"foo\", {\n answers: {\n foo: \"bar\",\n \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": true,\n ingress_host: \"test.xip.io\",\n },\n catalogName: \"\u003ccatalog_name\u003e\",\n description: \"Foo app\",\n projectId: \"\u003cproject_id\u003e\",\n targetNamespace: \"\u003cnamespace_name\u003e\",\n templateName: \"\u003ctemplate_name\u003e\",\n templateVersion: \"\u003ctemplate_version\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 App\nfoo = rancher2.App(\"foo\",\n answers={\n \"foo\": \"bar\",\n \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": True,\n \"ingress_host\": \"test.xip.io\",\n },\n catalog_name=\"\u003ccatalog_name\u003e\",\n description=\"Foo app\",\n project_id=\"\u003cproject_id\u003e\",\n target_namespace=\"\u003cnamespace_name\u003e\",\n template_name=\"\u003ctemplate_name\u003e\",\n template_version=\"\u003ctemplate_version\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 App\n var foo = new Rancher2.App(\"foo\", new()\n {\n Answers = \n {\n { \"foo\", \"bar\" },\n { \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\", true },\n { \"ingress_host\", \"test.xip.io\" },\n },\n CatalogName = \"\u003ccatalog_name\u003e\",\n Description = \"Foo app\",\n ProjectId = \"\u003cproject_id\u003e\",\n TargetNamespace = \"\u003cnamespace_name\u003e\",\n TemplateName = \"\u003ctemplate_name\u003e\",\n TemplateVersion = \"\u003ctemplate_version\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewApp(ctx, \"foo\", \u0026rancher2.AppArgs{\n\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\"foo\": pulumi.Any(\"bar\"),\n\t\t\t\t\"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": pulumi.Any(true),\n\t\t\t\t\"ingress_host\": pulumi.Any(\"test.xip.io\"),\n\t\t\t},\n\t\t\tCatalogName: pulumi.String(\"\u003ccatalog_name\u003e\"),\n\t\t\tDescription: pulumi.String(\"Foo app\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tTargetNamespace: pulumi.String(\"\u003cnamespace_name\u003e\"),\n\t\t\tTemplateName: pulumi.String(\"\u003ctemplate_name\u003e\"),\n\t\t\tTemplateVersion: pulumi.String(\"\u003ctemplate_version\u003e\"),\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.rancher2.App;\nimport com.pulumi.rancher2.AppArgs;\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 foo = new App(\"foo\", AppArgs.builder() \n .answers(Map.ofEntries(\n Map.entry(\"foo\", \"bar\"),\n Map.entry(\"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\", true),\n Map.entry(\"ingress_host\", \"test.xip.io\")\n ))\n .catalogName(\"\u003ccatalog_name\u003e\")\n .description(\"Foo app\")\n .projectId(\"\u003cproject_id\u003e\")\n .targetNamespace(\"\u003cnamespace_name\u003e\")\n .templateName(\"\u003ctemplate_name\u003e\")\n .templateVersion(\"\u003ctemplate_version\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 App\n foo:\n type: rancher2:App\n properties:\n answers:\n foo: bar\n ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect: true\n ingress_host: test.xip.io\n catalogName: \u003ccatalog_name\u003e\n description: Foo app\n projectId: \u003cproject_id\u003e\n targetNamespace: \u003cnamespace_name\u003e\n templateName: \u003ctemplate_name\u003e\n templateVersion: \u003ctemplate_version\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 App in a new namespace\nconst fooNamespace = new rancher2.Namespace(\"fooNamespace\", {\n description: \"Foo namespace\",\n projectId: \"\u003cproject_id\u003e\",\n resourceQuota: {\n limit: {\n limitsCpu: \"100m\",\n limitsMemory: \"100Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n});\nconst fooApp = new rancher2.App(\"fooApp\", {\n catalogName: \"\u003ccatalog_name\u003e\",\n description: \"Foo app\",\n projectId: \"\u003cproject_id\u003e\",\n templateName: \"\u003ctemplate_name\u003e\",\n templateVersion: \"\u003ctemplate_version\u003e\",\n targetNamespace: fooNamespace.id,\n answers: {\n ingress_host: \"test.xip.io\",\n foo: \"bar\",\n \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 App in a new namespace\nfoo_namespace = rancher2.Namespace(\"fooNamespace\",\n description=\"Foo namespace\",\n project_id=\"\u003cproject_id\u003e\",\n resource_quota=rancher2.NamespaceResourceQuotaArgs(\n limit=rancher2.NamespaceResourceQuotaLimitArgs(\n limits_cpu=\"100m\",\n limits_memory=\"100Mi\",\n requests_storage=\"1Gi\",\n ),\n ))\nfoo_app = rancher2.App(\"fooApp\",\n catalog_name=\"\u003ccatalog_name\u003e\",\n description=\"Foo app\",\n project_id=\"\u003cproject_id\u003e\",\n template_name=\"\u003ctemplate_name\u003e\",\n template_version=\"\u003ctemplate_version\u003e\",\n target_namespace=foo_namespace.id,\n answers={\n \"ingress_host\": \"test.xip.io\",\n \"foo\": \"bar\",\n \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": True,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 App in a new namespace\n var fooNamespace = new Rancher2.Namespace(\"fooNamespace\", new()\n {\n Description = \"Foo namespace\",\n ProjectId = \"\u003cproject_id\u003e\",\n ResourceQuota = new Rancher2.Inputs.NamespaceResourceQuotaArgs\n {\n Limit = new Rancher2.Inputs.NamespaceResourceQuotaLimitArgs\n {\n LimitsCpu = \"100m\",\n LimitsMemory = \"100Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n });\n\n var fooApp = new Rancher2.App(\"fooApp\", new()\n {\n CatalogName = \"\u003ccatalog_name\u003e\",\n Description = \"Foo app\",\n ProjectId = \"\u003cproject_id\u003e\",\n TemplateName = \"\u003ctemplate_name\u003e\",\n TemplateVersion = \"\u003ctemplate_version\u003e\",\n TargetNamespace = fooNamespace.Id,\n Answers = \n {\n { \"ingress_host\", \"test.xip.io\" },\n { \"foo\", \"bar\" },\n { \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\", true },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooNamespace, err := rancher2.NewNamespace(ctx, \"fooNamespace\", \u0026rancher2.NamespaceArgs{\n\t\t\tDescription: pulumi.String(\"Foo namespace\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tResourceQuota: \u0026rancher2.NamespaceResourceQuotaArgs{\n\t\t\t\tLimit: \u0026rancher2.NamespaceResourceQuotaLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"100m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"100Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\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\t_, err = rancher2.NewApp(ctx, \"fooApp\", \u0026rancher2.AppArgs{\n\t\t\tCatalogName: pulumi.String(\"\u003ccatalog_name\u003e\"),\n\t\t\tDescription: pulumi.String(\"Foo app\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tTemplateName: pulumi.String(\"\u003ctemplate_name\u003e\"),\n\t\t\tTemplateVersion: pulumi.String(\"\u003ctemplate_version\u003e\"),\n\t\t\tTargetNamespace: fooNamespace.ID(),\n\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\"ingress_host\": pulumi.Any(\"test.xip.io\"),\n\t\t\t\t\"foo\": pulumi.Any(\"bar\"),\n\t\t\t\t\"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": pulumi.Any(true),\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.rancher2.Namespace;\nimport com.pulumi.rancher2.NamespaceArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaLimitArgs;\nimport com.pulumi.rancher2.App;\nimport com.pulumi.rancher2.AppArgs;\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 fooNamespace = new Namespace(\"fooNamespace\", NamespaceArgs.builder() \n .description(\"Foo namespace\")\n .projectId(\"\u003cproject_id\u003e\")\n .resourceQuota(NamespaceResourceQuotaArgs.builder()\n .limit(NamespaceResourceQuotaLimitArgs.builder()\n .limitsCpu(\"100m\")\n .limitsMemory(\"100Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .build());\n\n var fooApp = new App(\"fooApp\", AppArgs.builder() \n .catalogName(\"\u003ccatalog_name\u003e\")\n .description(\"Foo app\")\n .projectId(\"\u003cproject_id\u003e\")\n .templateName(\"\u003ctemplate_name\u003e\")\n .templateVersion(\"\u003ctemplate_version\u003e\")\n .targetNamespace(fooNamespace.id())\n .answers(Map.ofEntries(\n Map.entry(\"ingress_host\", \"test.xip.io\"),\n Map.entry(\"foo\", \"bar\"),\n Map.entry(\"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\", true)\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 App in a new namespace\n fooNamespace:\n type: rancher2:Namespace\n properties:\n description: Foo namespace\n projectId: \u003cproject_id\u003e\n resourceQuota:\n limit:\n limitsCpu: 100m\n limitsMemory: 100Mi\n requestsStorage: 1Gi\n fooApp:\n type: rancher2:App\n properties:\n catalogName: \u003ccatalog_name\u003e\n description: Foo app\n projectId: \u003cproject_id\u003e\n templateName: \u003ctemplate_name\u003e\n templateVersion: \u003ctemplate_version\u003e\n targetNamespace: ${fooNamespace.id}\n answers:\n ingress_host: test.xip.io\n foo: bar\n ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect: true\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nApps can be imported using the app ID in the format `\u003cproject_id\u003e:\u003capp_name\u003e`\n\n```sh\n $ pulumi import rancher2:index/app:App foo \u0026lt;PROJECT_ID_ID\u0026gt;:\u0026lt;APP_NAME\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 app resource. This can be used to deploy apps within Rancher v2 projects.\n\nThis resource can also modify Rancher v2 apps in 3 ways:\n- `Update`: If `description`, `annotations` or `labels` arguments are modified the app will be updated. No new `revision_id` will be generated in Rancher.\n- `Upgrade`: If `answers`, `catalog_name`, `template_name`, `template_version` or `values_yaml` arguments are modified, the app will be upgraded. A new `revision_id` will be generated in Rancher.\n- `Rollback`: If `revision_id` argument is provided or modified the app will be rolled back accordingly. A new `revision_id` will be generated in Rancher. It will also generate a non-empty pulumi preview that will require manual .tf file intervention. Use carefully.\n\nNote: In case of multiple resource modifications in a row, `rollback` has preference over `upgrade`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 App\nconst foo = new rancher2.App(\"foo\", {\n answers: {\n foo: \"bar\",\n \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": true,\n ingress_host: \"test.xip.io\",\n },\n catalogName: \"\u003ccatalog_name\u003e\",\n description: \"Foo app\",\n projectId: \"\u003cproject_id\u003e\",\n targetNamespace: \"\u003cnamespace_name\u003e\",\n templateName: \"\u003ctemplate_name\u003e\",\n templateVersion: \"\u003ctemplate_version\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 App\nfoo = rancher2.App(\"foo\",\n answers={\n \"foo\": \"bar\",\n \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": True,\n \"ingress_host\": \"test.xip.io\",\n },\n catalog_name=\"\u003ccatalog_name\u003e\",\n description=\"Foo app\",\n project_id=\"\u003cproject_id\u003e\",\n target_namespace=\"\u003cnamespace_name\u003e\",\n template_name=\"\u003ctemplate_name\u003e\",\n template_version=\"\u003ctemplate_version\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 App\n var foo = new Rancher2.App(\"foo\", new()\n {\n Answers = \n {\n { \"foo\", \"bar\" },\n { \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\", true },\n { \"ingress_host\", \"test.xip.io\" },\n },\n CatalogName = \"\u003ccatalog_name\u003e\",\n Description = \"Foo app\",\n ProjectId = \"\u003cproject_id\u003e\",\n TargetNamespace = \"\u003cnamespace_name\u003e\",\n TemplateName = \"\u003ctemplate_name\u003e\",\n TemplateVersion = \"\u003ctemplate_version\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewApp(ctx, \"foo\", \u0026rancher2.AppArgs{\n\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\"foo\": pulumi.Any(\"bar\"),\n\t\t\t\t\"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": pulumi.Any(true),\n\t\t\t\t\"ingress_host\": pulumi.Any(\"test.xip.io\"),\n\t\t\t},\n\t\t\tCatalogName: pulumi.String(\"\u003ccatalog_name\u003e\"),\n\t\t\tDescription: pulumi.String(\"Foo app\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tTargetNamespace: pulumi.String(\"\u003cnamespace_name\u003e\"),\n\t\t\tTemplateName: pulumi.String(\"\u003ctemplate_name\u003e\"),\n\t\t\tTemplateVersion: pulumi.String(\"\u003ctemplate_version\u003e\"),\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.rancher2.App;\nimport com.pulumi.rancher2.AppArgs;\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 foo = new App(\"foo\", AppArgs.builder() \n .answers(Map.ofEntries(\n Map.entry(\"foo\", \"bar\"),\n Map.entry(\"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\", true),\n Map.entry(\"ingress_host\", \"test.xip.io\")\n ))\n .catalogName(\"\u003ccatalog_name\u003e\")\n .description(\"Foo app\")\n .projectId(\"\u003cproject_id\u003e\")\n .targetNamespace(\"\u003cnamespace_name\u003e\")\n .templateName(\"\u003ctemplate_name\u003e\")\n .templateVersion(\"\u003ctemplate_version\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 App\n foo:\n type: rancher2:App\n properties:\n answers:\n foo: bar\n ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect: true\n ingress_host: test.xip.io\n catalogName: \u003ccatalog_name\u003e\n description: Foo app\n projectId: \u003cproject_id\u003e\n targetNamespace: \u003cnamespace_name\u003e\n templateName: \u003ctemplate_name\u003e\n templateVersion: \u003ctemplate_version\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 App in a new namespace\nconst fooNamespace = new rancher2.Namespace(\"fooNamespace\", {\n description: \"Foo namespace\",\n projectId: \"\u003cproject_id\u003e\",\n resourceQuota: {\n limit: {\n limitsCpu: \"100m\",\n limitsMemory: \"100Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n});\nconst fooApp = new rancher2.App(\"fooApp\", {\n catalogName: \"\u003ccatalog_name\u003e\",\n description: \"Foo app\",\n projectId: \"\u003cproject_id\u003e\",\n templateName: \"\u003ctemplate_name\u003e\",\n templateVersion: \"\u003ctemplate_version\u003e\",\n targetNamespace: fooNamespace.id,\n answers: {\n ingress_host: \"test.xip.io\",\n foo: \"bar\",\n \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 App in a new namespace\nfoo_namespace = rancher2.Namespace(\"fooNamespace\",\n description=\"Foo namespace\",\n project_id=\"\u003cproject_id\u003e\",\n resource_quota=rancher2.NamespaceResourceQuotaArgs(\n limit=rancher2.NamespaceResourceQuotaLimitArgs(\n limits_cpu=\"100m\",\n limits_memory=\"100Mi\",\n requests_storage=\"1Gi\",\n ),\n ))\nfoo_app = rancher2.App(\"fooApp\",\n catalog_name=\"\u003ccatalog_name\u003e\",\n description=\"Foo app\",\n project_id=\"\u003cproject_id\u003e\",\n template_name=\"\u003ctemplate_name\u003e\",\n template_version=\"\u003ctemplate_version\u003e\",\n target_namespace=foo_namespace.id,\n answers={\n \"ingress_host\": \"test.xip.io\",\n \"foo\": \"bar\",\n \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": True,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 App in a new namespace\n var fooNamespace = new Rancher2.Namespace(\"fooNamespace\", new()\n {\n Description = \"Foo namespace\",\n ProjectId = \"\u003cproject_id\u003e\",\n ResourceQuota = new Rancher2.Inputs.NamespaceResourceQuotaArgs\n {\n Limit = new Rancher2.Inputs.NamespaceResourceQuotaLimitArgs\n {\n LimitsCpu = \"100m\",\n LimitsMemory = \"100Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n });\n\n var fooApp = new Rancher2.App(\"fooApp\", new()\n {\n CatalogName = \"\u003ccatalog_name\u003e\",\n Description = \"Foo app\",\n ProjectId = \"\u003cproject_id\u003e\",\n TemplateName = \"\u003ctemplate_name\u003e\",\n TemplateVersion = \"\u003ctemplate_version\u003e\",\n TargetNamespace = fooNamespace.Id,\n Answers = \n {\n { \"ingress_host\", \"test.xip.io\" },\n { \"foo\", \"bar\" },\n { \"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\", true },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooNamespace, err := rancher2.NewNamespace(ctx, \"fooNamespace\", \u0026rancher2.NamespaceArgs{\n\t\t\tDescription: pulumi.String(\"Foo namespace\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tResourceQuota: \u0026rancher2.NamespaceResourceQuotaArgs{\n\t\t\t\tLimit: \u0026rancher2.NamespaceResourceQuotaLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"100m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"100Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\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\t_, err = rancher2.NewApp(ctx, \"fooApp\", \u0026rancher2.AppArgs{\n\t\t\tCatalogName: pulumi.String(\"\u003ccatalog_name\u003e\"),\n\t\t\tDescription: pulumi.String(\"Foo app\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tTemplateName: pulumi.String(\"\u003ctemplate_name\u003e\"),\n\t\t\tTemplateVersion: pulumi.String(\"\u003ctemplate_version\u003e\"),\n\t\t\tTargetNamespace: fooNamespace.ID(),\n\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\"ingress_host\": pulumi.Any(\"test.xip.io\"),\n\t\t\t\t\"foo\": pulumi.Any(\"bar\"),\n\t\t\t\t\"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\": pulumi.Any(true),\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.rancher2.Namespace;\nimport com.pulumi.rancher2.NamespaceArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaLimitArgs;\nimport com.pulumi.rancher2.App;\nimport com.pulumi.rancher2.AppArgs;\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 fooNamespace = new Namespace(\"fooNamespace\", NamespaceArgs.builder() \n .description(\"Foo namespace\")\n .projectId(\"\u003cproject_id\u003e\")\n .resourceQuota(NamespaceResourceQuotaArgs.builder()\n .limit(NamespaceResourceQuotaLimitArgs.builder()\n .limitsCpu(\"100m\")\n .limitsMemory(\"100Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .build());\n\n var fooApp = new App(\"fooApp\", AppArgs.builder() \n .catalogName(\"\u003ccatalog_name\u003e\")\n .description(\"Foo app\")\n .projectId(\"\u003cproject_id\u003e\")\n .templateName(\"\u003ctemplate_name\u003e\")\n .templateVersion(\"\u003ctemplate_version\u003e\")\n .targetNamespace(fooNamespace.id())\n .answers(Map.ofEntries(\n Map.entry(\"ingress_host\", \"test.xip.io\"),\n Map.entry(\"foo\", \"bar\"),\n Map.entry(\"ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect\", true)\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 App in a new namespace\n fooNamespace:\n type: rancher2:Namespace\n properties:\n description: Foo namespace\n projectId: \u003cproject_id\u003e\n resourceQuota:\n limit:\n limitsCpu: 100m\n limitsMemory: 100Mi\n requestsStorage: 1Gi\n fooApp:\n type: rancher2:App\n properties:\n catalogName: \u003ccatalog_name\u003e\n description: Foo app\n projectId: \u003cproject_id\u003e\n templateName: \u003ctemplate_name\u003e\n templateVersion: \u003ctemplate_version\u003e\n targetNamespace: ${fooNamespace.id}\n answers:\n ingress_host: test.xip.io\n foo: bar\n ingress.annotations.nginx.ingress.kubernetes.io/force-ssl-redirect: true\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nApps can be imported using the app ID in the format `\u003cproject_id\u003e:\u003capp_name\u003e`\n\n```sh\n $ pulumi import rancher2:index/app:App foo \u0026lt;PROJECT_ID_ID\u0026gt;:\u0026lt;APP_NAME\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -21774,7 +21471,7 @@ } }, "rancher2:index/appV2:AppV2": { - "description": "Provides a Rancher App v2 resource. This can be used to manage helm charts for Rancher v2 environments and retrieve their information. App v2 resource is available at Rancher v2.5.x and above.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fs from \"fs\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 App V2 using\nconst foo = new rancher2.AppV2(\"foo\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n namespace: \"cattle-monitoring-system\",\n repoName: \"rancher-charts\",\n chartName: \"rancher-monitoring\",\n chartVersion: \"9.4.200\",\n values: fs.readFileSync(\"values.yaml\", \"utf8\"),\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 App V2 using\nfoo = rancher2.AppV2(\"foo\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n namespace=\"cattle-monitoring-system\",\n repo_name=\"rancher-charts\",\n chart_name=\"rancher-monitoring\",\n chart_version=\"9.4.200\",\n values=(lambda path: open(path).read())(\"values.yaml\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 App V2 using\n var foo = new Rancher2.AppV2(\"foo\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Namespace = \"cattle-monitoring-system\",\n RepoName = \"rancher-charts\",\n ChartName = \"rancher-monitoring\",\n ChartVersion = \"9.4.200\",\n Values = File.ReadAllText(\"values.yaml\"),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc readFileOrPanic(path string) pulumi.StringPtrInput {\n\tdata, err := os.ReadFile(path)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\treturn pulumi.String(string(data))\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := rancher2.NewAppV2(ctx, \"foo\", \u0026rancher2.AppV2Args{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tNamespace: pulumi.String(\"cattle-monitoring-system\"),\n\t\t\tRepoName: pulumi.String(\"rancher-charts\"),\n\t\t\tChartName: pulumi.String(\"rancher-monitoring\"),\n\t\t\tChartVersion: pulumi.String(\"9.4.200\"),\n\t\t\tValues: readFileOrPanic(\"values.yaml\"),\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.rancher2.AppV2;\nimport com.pulumi.rancher2.AppV2Args;\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 foo = new AppV2(\"foo\", AppV2Args.builder() \n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .namespace(\"cattle-monitoring-system\")\n .repoName(\"rancher-charts\")\n .chartName(\"rancher-monitoring\")\n .chartVersion(\"9.4.200\")\n .values(Files.readString(Paths.get(\"values.yaml\")))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 App V2 using\n foo:\n type: rancher2:AppV2\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n namespace: cattle-monitoring-system\n repoName: rancher-charts\n chartName: rancher-monitoring\n chartVersion: 9.4.200\n values:\n fn::readFile: values.yaml\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nV2 apps can be imported using the Rancher cluster ID and App V2 name, which is composed of `\u003cnamespace\u003e/\u003capplication_name\u003e`.\n\n```sh\n $ pulumi import rancher2:index/appV2:AppV2 foo \u0026lt;CLUSTER_ID\u0026gt;.\u0026lt;APP_V2_NAME\u0026gt;\n```\n ", + "description": "Provides a Rancher App v2 resource. This can be used to manage helm charts for Rancher v2 environments and retrieve their information. App v2 resource is available at Rancher v2.5.x and above.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as fs from \"fs\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 App V2 using\nconst foo = new rancher2.AppV2(\"foo\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n namespace: \"cattle-monitoring-system\",\n repoName: \"rancher-charts\",\n chartName: \"rancher-monitoring\",\n chartVersion: \"9.4.200\",\n values: fs.readFileSync(\"values.yaml\", \"utf8\"),\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 App V2 using\nfoo = rancher2.AppV2(\"foo\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n namespace=\"cattle-monitoring-system\",\n repo_name=\"rancher-charts\",\n chart_name=\"rancher-monitoring\",\n chart_version=\"9.4.200\",\n values=(lambda path: open(path).read())(\"values.yaml\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 App V2 using\n var foo = new Rancher2.AppV2(\"foo\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Namespace = \"cattle-monitoring-system\",\n RepoName = \"rancher-charts\",\n ChartName = \"rancher-monitoring\",\n ChartVersion = \"9.4.200\",\n Values = File.ReadAllText(\"values.yaml\"),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc readFileOrPanic(path string) pulumi.StringPtrInput {\n\tdata, err := os.ReadFile(path)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\treturn pulumi.String(string(data))\n}\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := rancher2.NewAppV2(ctx, \"foo\", \u0026rancher2.AppV2Args{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tNamespace: pulumi.String(\"cattle-monitoring-system\"),\n\t\t\tRepoName: pulumi.String(\"rancher-charts\"),\n\t\t\tChartName: pulumi.String(\"rancher-monitoring\"),\n\t\t\tChartVersion: pulumi.String(\"9.4.200\"),\n\t\t\tValues: readFileOrPanic(\"values.yaml\"),\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.rancher2.AppV2;\nimport com.pulumi.rancher2.AppV2Args;\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 foo = new AppV2(\"foo\", AppV2Args.builder() \n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .namespace(\"cattle-monitoring-system\")\n .repoName(\"rancher-charts\")\n .chartName(\"rancher-monitoring\")\n .chartVersion(\"9.4.200\")\n .values(Files.readString(Paths.get(\"values.yaml\")))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 App V2 using\n foo:\n type: rancher2:AppV2\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n namespace: cattle-monitoring-system\n repoName: rancher-charts\n chartName: rancher-monitoring\n chartVersion: 9.4.200\n values:\n fn::readFile: values.yaml\n```\n{{% /example %}}\n{{% example %}}\n### Create an App from a Helm Chart using a different registry\n\nThe `system_default_registry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst cisBenchmark = new rancher2.AppV2(\"cisBenchmark\", {\n chartName: \"rancher-cis-benchmark\",\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n namespace: \"cis-operator-system\",\n repoName: \"rancher-charts\",\n systemDefaultRegistry: \"\u003csome.dns.here\u003e:\u003cPORT\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\ncis_benchmark = rancher2.AppV2(\"cisBenchmark\",\n chart_name=\"rancher-cis-benchmark\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n namespace=\"cis-operator-system\",\n repo_name=\"rancher-charts\",\n system_default_registry=\"\u003csome.dns.here\u003e:\u003cPORT\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var cisBenchmark = new Rancher2.AppV2(\"cisBenchmark\", new()\n {\n ChartName = \"rancher-cis-benchmark\",\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Namespace = \"cis-operator-system\",\n RepoName = \"rancher-charts\",\n SystemDefaultRegistry = \"\u003csome.dns.here\u003e:\u003cPORT\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewAppV2(ctx, \"cisBenchmark\", \u0026rancher2.AppV2Args{\n\t\t\tChartName: pulumi.String(\"rancher-cis-benchmark\"),\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tNamespace: pulumi.String(\"cis-operator-system\"),\n\t\t\tRepoName: pulumi.String(\"rancher-charts\"),\n\t\t\tSystemDefaultRegistry: pulumi.String(\"\u003csome.dns.here\u003e:\u003cPORT\u003e\"),\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.rancher2.AppV2;\nimport com.pulumi.rancher2.AppV2Args;\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 cisBenchmark = new AppV2(\"cisBenchmark\", AppV2Args.builder() \n .chartName(\"rancher-cis-benchmark\")\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .namespace(\"cis-operator-system\")\n .repoName(\"rancher-charts\")\n .systemDefaultRegistry(\"\u003csome.dns.here\u003e:\u003cPORT\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n cisBenchmark:\n type: rancher2:AppV2\n properties:\n chartName: rancher-cis-benchmark\n clusterId: \u003cCLUSTER_ID\u003e\n namespace: cis-operator-system\n repoName: rancher-charts\n # Valid DNS for Private Registry\n systemDefaultRegistry: \u003csome.dns.here\u003e:\u003cPORT\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nV2 apps can be imported using the Rancher cluster ID and App V2 name, which is composed of `\u003cnamespace\u003e/\u003capplication_name\u003e`.\n\n```sh\n $ pulumi import rancher2:index/appV2:AppV2 foo \u0026lt;CLUSTER_ID\u0026gt;.\u0026lt;APP_V2_NAME\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -21844,7 +21541,7 @@ }, "systemDefaultRegistry": { "type": "string", - "description": "(Computed) The system default registry of the app (string)\n" + "description": "System default registry providing images for app deployment (string)\n" }, "values": { "type": "string", @@ -21930,6 +21627,10 @@ "type": "string", "description": "Repo name (string)\n" }, + "systemDefaultRegistry": { + "type": "string", + "description": "System default registry providing images for app deployment (string)\n" + }, "values": { "type": "string", "description": "The app v2 values yaml. Yaml format is required (string)\n" @@ -22019,7 +21720,7 @@ }, "systemDefaultRegistry": { "type": "string", - "description": "(Computed) The system default registry of the app (string)\n" + "description": "System default registry providing images for app deployment (string)\n" }, "values": { "type": "string", @@ -22541,15 +22242,10 @@ } }, "type": "object" - }, - "aliases": [ - { - "type": "rancher2:index/activeDirectory:ActiveDirectory" - } - ] + } }, "rancher2:index/authConfigAdfs:AuthConfigAdfs": { - "description": "Provides a Rancher v2 Auth Config ADFS resource. This can be used to configure and enable Auth Config ADFS for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config ADFS\nconst adfs = new rancher2.AuthConfigAdfs(\"adfs\", {\n displayNameField: \"\u003cDISPLAY_NAME_FIELD\u003e\",\n groupsField: \"\u003cGROUPS_FIELD\u003e\",\n idpMetadataContent: \"\u003cIDP_METADATA_CONTENT\u003e\",\n rancherApiHost: \"https://\u003cRANCHER_API_HOST\u003e\",\n spCert: \"\u003cSP_CERT\u003e\",\n spKey: \"\u003cSP_KEY\u003e\",\n uidField: \"\u003cUID_FIELD\u003e\",\n userNameField: \"\u003cUSER_NAME_FIELD\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config ADFS\nadfs = rancher2.AuthConfigAdfs(\"adfs\",\n display_name_field=\"\u003cDISPLAY_NAME_FIELD\u003e\",\n groups_field=\"\u003cGROUPS_FIELD\u003e\",\n idp_metadata_content=\"\u003cIDP_METADATA_CONTENT\u003e\",\n rancher_api_host=\"https://\u003cRANCHER_API_HOST\u003e\",\n sp_cert=\"\u003cSP_CERT\u003e\",\n sp_key=\"\u003cSP_KEY\u003e\",\n uid_field=\"\u003cUID_FIELD\u003e\",\n user_name_field=\"\u003cUSER_NAME_FIELD\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config ADFS\n var adfs = new Rancher2.AuthConfigAdfs(\"adfs\", new()\n {\n DisplayNameField = \"\u003cDISPLAY_NAME_FIELD\u003e\",\n GroupsField = \"\u003cGROUPS_FIELD\u003e\",\n IdpMetadataContent = \"\u003cIDP_METADATA_CONTENT\u003e\",\n RancherApiHost = \"https://\u003cRANCHER_API_HOST\u003e\",\n SpCert = \"\u003cSP_CERT\u003e\",\n SpKey = \"\u003cSP_KEY\u003e\",\n UidField = \"\u003cUID_FIELD\u003e\",\n UserNameField = \"\u003cUSER_NAME_FIELD\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewAuthConfigAdfs(ctx, \"adfs\", \u0026rancher2.AuthConfigAdfsArgs{\n\t\t\tDisplayNameField: pulumi.String(\"\u003cDISPLAY_NAME_FIELD\u003e\"),\n\t\t\tGroupsField: pulumi.String(\"\u003cGROUPS_FIELD\u003e\"),\n\t\t\tIdpMetadataContent: pulumi.String(\"\u003cIDP_METADATA_CONTENT\u003e\"),\n\t\t\tRancherApiHost: pulumi.String(\"https://\u003cRANCHER_API_HOST\u003e\"),\n\t\t\tSpCert: pulumi.String(\"\u003cSP_CERT\u003e\"),\n\t\t\tSpKey: pulumi.String(\"\u003cSP_KEY\u003e\"),\n\t\t\tUidField: pulumi.String(\"\u003cUID_FIELD\u003e\"),\n\t\t\tUserNameField: pulumi.String(\"\u003cUSER_NAME_FIELD\u003e\"),\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.rancher2.AuthConfigAdfs;\nimport com.pulumi.rancher2.AuthConfigAdfsArgs;\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 adfs = new AuthConfigAdfs(\"adfs\", AuthConfigAdfsArgs.builder() \n .displayNameField(\"\u003cDISPLAY_NAME_FIELD\u003e\")\n .groupsField(\"\u003cGROUPS_FIELD\u003e\")\n .idpMetadataContent(\"\u003cIDP_METADATA_CONTENT\u003e\")\n .rancherApiHost(\"https://\u003cRANCHER_API_HOST\u003e\")\n .spCert(\"\u003cSP_CERT\u003e\")\n .spKey(\"\u003cSP_KEY\u003e\")\n .uidField(\"\u003cUID_FIELD\u003e\")\n .userNameField(\"\u003cUSER_NAME_FIELD\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config ADFS\n adfs:\n type: rancher2:AuthConfigAdfs\n properties:\n displayNameField: \u003cDISPLAY_NAME_FIELD\u003e\n groupsField: \u003cGROUPS_FIELD\u003e\n idpMetadataContent: \u003cIDP_METADATA_CONTENT\u003e\n rancherApiHost: https://\u003cRANCHER_API_HOST\u003e\n spCert: \u003cSP_CERT\u003e\n spKey: \u003cSP_KEY\u003e\n uidField: \u003cUID_FIELD\u003e\n userNameField: \u003cUSER_NAME_FIELD\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Auth Config ADFS resource. This can be used to configure and enable Auth Config ADFS for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config ADFS\nconst adfs = new rancher2.AuthConfigAdfs(\"adfs\", {\n displayNameField: \"\u003cDISPLAY_NAME_FIELD\u003e\",\n groupsField: \"\u003cGROUPS_FIELD\u003e\",\n idpMetadataContent: \"\u003cIDP_METADATA_CONTENT\u003e\",\n rancherApiHost: \"https://\u003cRANCHER_API_HOST\u003e\",\n spCert: \"\u003cSP_CERT\u003e\",\n spKey: \"\u003cSP_KEY\u003e\",\n uidField: \"\u003cUID_FIELD\u003e\",\n userNameField: \"\u003cUSER_NAME_FIELD\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config ADFS\nadfs = rancher2.AuthConfigAdfs(\"adfs\",\n display_name_field=\"\u003cDISPLAY_NAME_FIELD\u003e\",\n groups_field=\"\u003cGROUPS_FIELD\u003e\",\n idp_metadata_content=\"\u003cIDP_METADATA_CONTENT\u003e\",\n rancher_api_host=\"https://\u003cRANCHER_API_HOST\u003e\",\n sp_cert=\"\u003cSP_CERT\u003e\",\n sp_key=\"\u003cSP_KEY\u003e\",\n uid_field=\"\u003cUID_FIELD\u003e\",\n user_name_field=\"\u003cUSER_NAME_FIELD\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config ADFS\n var adfs = new Rancher2.AuthConfigAdfs(\"adfs\", new()\n {\n DisplayNameField = \"\u003cDISPLAY_NAME_FIELD\u003e\",\n GroupsField = \"\u003cGROUPS_FIELD\u003e\",\n IdpMetadataContent = \"\u003cIDP_METADATA_CONTENT\u003e\",\n RancherApiHost = \"https://\u003cRANCHER_API_HOST\u003e\",\n SpCert = \"\u003cSP_CERT\u003e\",\n SpKey = \"\u003cSP_KEY\u003e\",\n UidField = \"\u003cUID_FIELD\u003e\",\n UserNameField = \"\u003cUSER_NAME_FIELD\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewAuthConfigAdfs(ctx, \"adfs\", \u0026rancher2.AuthConfigAdfsArgs{\n\t\t\tDisplayNameField: pulumi.String(\"\u003cDISPLAY_NAME_FIELD\u003e\"),\n\t\t\tGroupsField: pulumi.String(\"\u003cGROUPS_FIELD\u003e\"),\n\t\t\tIdpMetadataContent: pulumi.String(\"\u003cIDP_METADATA_CONTENT\u003e\"),\n\t\t\tRancherApiHost: pulumi.String(\"https://\u003cRANCHER_API_HOST\u003e\"),\n\t\t\tSpCert: pulumi.String(\"\u003cSP_CERT\u003e\"),\n\t\t\tSpKey: pulumi.String(\"\u003cSP_KEY\u003e\"),\n\t\t\tUidField: pulumi.String(\"\u003cUID_FIELD\u003e\"),\n\t\t\tUserNameField: pulumi.String(\"\u003cUSER_NAME_FIELD\u003e\"),\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.rancher2.AuthConfigAdfs;\nimport com.pulumi.rancher2.AuthConfigAdfsArgs;\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 adfs = new AuthConfigAdfs(\"adfs\", AuthConfigAdfsArgs.builder() \n .displayNameField(\"\u003cDISPLAY_NAME_FIELD\u003e\")\n .groupsField(\"\u003cGROUPS_FIELD\u003e\")\n .idpMetadataContent(\"\u003cIDP_METADATA_CONTENT\u003e\")\n .rancherApiHost(\"https://\u003cRANCHER_API_HOST\u003e\")\n .spCert(\"\u003cSP_CERT\u003e\")\n .spKey(\"\u003cSP_KEY\u003e\")\n .uidField(\"\u003cUID_FIELD\u003e\")\n .userNameField(\"\u003cUSER_NAME_FIELD\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config ADFS\n adfs:\n type: rancher2:AuthConfigAdfs\n properties:\n displayNameField: \u003cDISPLAY_NAME_FIELD\u003e\n groupsField: \u003cGROUPS_FIELD\u003e\n idpMetadataContent: \u003cIDP_METADATA_CONTENT\u003e\n rancherApiHost: https://\u003cRANCHER_API_HOST\u003e\n spCert: \u003cSP_CERT\u003e\n spKey: \u003cSP_KEY\u003e\n uidField: \u003cUID_FIELD\u003e\n userNameField: \u003cUSER_NAME_FIELD\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "accessMode": { "type": "string", @@ -22794,7 +22490,7 @@ } }, "rancher2:index/authConfigAzureAd:AuthConfigAzureAd": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config AzureAD\nconst azuread = new rancher2.AuthConfigAzureAd(\"azuread\", {\n applicationId: \"\u003cAZUREAD_APP_ID\u003e\",\n applicationSecret: \"\u003cAZUREAD_APP_SECRET\u003e\",\n authEndpoint: \"\u003cAZUREAD_AUTH_ENDPOINT\u003e\",\n graphEndpoint: \"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\",\n rancherUrl: \"\u003cRANCHER_URL\u003e\",\n tenantId: \"\u003cAZUREAD_TENANT_ID\u003e\",\n tokenEndpoint: \"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config AzureAD\nazuread = rancher2.AuthConfigAzureAd(\"azuread\",\n application_id=\"\u003cAZUREAD_APP_ID\u003e\",\n application_secret=\"\u003cAZUREAD_APP_SECRET\u003e\",\n auth_endpoint=\"\u003cAZUREAD_AUTH_ENDPOINT\u003e\",\n graph_endpoint=\"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\",\n rancher_url=\"\u003cRANCHER_URL\u003e\",\n tenant_id=\"\u003cAZUREAD_TENANT_ID\u003e\",\n token_endpoint=\"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config AzureAD\n var azuread = new Rancher2.AuthConfigAzureAd(\"azuread\", new()\n {\n ApplicationId = \"\u003cAZUREAD_APP_ID\u003e\",\n ApplicationSecret = \"\u003cAZUREAD_APP_SECRET\u003e\",\n AuthEndpoint = \"\u003cAZUREAD_AUTH_ENDPOINT\u003e\",\n GraphEndpoint = \"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\",\n RancherUrl = \"\u003cRANCHER_URL\u003e\",\n TenantId = \"\u003cAZUREAD_TENANT_ID\u003e\",\n TokenEndpoint = \"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewAuthConfigAzureAd(ctx, \"azuread\", \u0026rancher2.AuthConfigAzureAdArgs{\n\t\t\tApplicationId: pulumi.String(\"\u003cAZUREAD_APP_ID\u003e\"),\n\t\t\tApplicationSecret: pulumi.String(\"\u003cAZUREAD_APP_SECRET\u003e\"),\n\t\t\tAuthEndpoint: pulumi.String(\"\u003cAZUREAD_AUTH_ENDPOINT\u003e\"),\n\t\t\tGraphEndpoint: pulumi.String(\"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\"),\n\t\t\tRancherUrl: pulumi.String(\"\u003cRANCHER_URL\u003e\"),\n\t\t\tTenantId: pulumi.String(\"\u003cAZUREAD_TENANT_ID\u003e\"),\n\t\t\tTokenEndpoint: pulumi.String(\"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\"),\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.rancher2.AuthConfigAzureAd;\nimport com.pulumi.rancher2.AuthConfigAzureAdArgs;\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 azuread = new AuthConfigAzureAd(\"azuread\", AuthConfigAzureAdArgs.builder() \n .applicationId(\"\u003cAZUREAD_APP_ID\u003e\")\n .applicationSecret(\"\u003cAZUREAD_APP_SECRET\u003e\")\n .authEndpoint(\"\u003cAZUREAD_AUTH_ENDPOINT\u003e\")\n .graphEndpoint(\"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\")\n .rancherUrl(\"\u003cRANCHER_URL\u003e\")\n .tenantId(\"\u003cAZUREAD_TENANT_ID\u003e\")\n .tokenEndpoint(\"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config AzureAD\n azuread:\n type: rancher2:AuthConfigAzureAd\n properties:\n applicationId: \u003cAZUREAD_APP_ID\u003e\n applicationSecret: \u003cAZUREAD_APP_SECRET\u003e\n authEndpoint: \u003cAZUREAD_AUTH_ENDPOINT\u003e\n graphEndpoint: \u003cAZUREAD_GRAPH_ENDPOINT\u003e\n rancherUrl: \u003cRANCHER_URL\u003e\n tenantId: \u003cAZUREAD_TENANT_ID\u003e\n tokenEndpoint: \u003cAZUREAD_TOKEN_ENDPOINT\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config AzureAD\nconst azuread = new rancher2.AuthConfigAzureAd(\"azuread\", {\n applicationId: \"\u003cAZUREAD_APP_ID\u003e\",\n applicationSecret: \"\u003cAZUREAD_APP_SECRET\u003e\",\n authEndpoint: \"\u003cAZUREAD_AUTH_ENDPOINT\u003e\",\n graphEndpoint: \"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\",\n rancherUrl: \"\u003cRANCHER_URL\u003e\",\n tenantId: \"\u003cAZUREAD_TENANT_ID\u003e\",\n tokenEndpoint: \"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config AzureAD\nazuread = rancher2.AuthConfigAzureAd(\"azuread\",\n application_id=\"\u003cAZUREAD_APP_ID\u003e\",\n application_secret=\"\u003cAZUREAD_APP_SECRET\u003e\",\n auth_endpoint=\"\u003cAZUREAD_AUTH_ENDPOINT\u003e\",\n graph_endpoint=\"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\",\n rancher_url=\"\u003cRANCHER_URL\u003e\",\n tenant_id=\"\u003cAZUREAD_TENANT_ID\u003e\",\n token_endpoint=\"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config AzureAD\n var azuread = new Rancher2.AuthConfigAzureAd(\"azuread\", new()\n {\n ApplicationId = \"\u003cAZUREAD_APP_ID\u003e\",\n ApplicationSecret = \"\u003cAZUREAD_APP_SECRET\u003e\",\n AuthEndpoint = \"\u003cAZUREAD_AUTH_ENDPOINT\u003e\",\n GraphEndpoint = \"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\",\n RancherUrl = \"\u003cRANCHER_URL\u003e\",\n TenantId = \"\u003cAZUREAD_TENANT_ID\u003e\",\n TokenEndpoint = \"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewAuthConfigAzureAd(ctx, \"azuread\", \u0026rancher2.AuthConfigAzureAdArgs{\n\t\t\tApplicationId: pulumi.String(\"\u003cAZUREAD_APP_ID\u003e\"),\n\t\t\tApplicationSecret: pulumi.String(\"\u003cAZUREAD_APP_SECRET\u003e\"),\n\t\t\tAuthEndpoint: pulumi.String(\"\u003cAZUREAD_AUTH_ENDPOINT\u003e\"),\n\t\t\tGraphEndpoint: pulumi.String(\"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\"),\n\t\t\tRancherUrl: pulumi.String(\"\u003cRANCHER_URL\u003e\"),\n\t\t\tTenantId: pulumi.String(\"\u003cAZUREAD_TENANT_ID\u003e\"),\n\t\t\tTokenEndpoint: pulumi.String(\"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\"),\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.rancher2.AuthConfigAzureAd;\nimport com.pulumi.rancher2.AuthConfigAzureAdArgs;\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 azuread = new AuthConfigAzureAd(\"azuread\", AuthConfigAzureAdArgs.builder() \n .applicationId(\"\u003cAZUREAD_APP_ID\u003e\")\n .applicationSecret(\"\u003cAZUREAD_APP_SECRET\u003e\")\n .authEndpoint(\"\u003cAZUREAD_AUTH_ENDPOINT\u003e\")\n .graphEndpoint(\"\u003cAZUREAD_GRAPH_ENDPOINT\u003e\")\n .rancherUrl(\"\u003cRANCHER_URL\u003e\")\n .tenantId(\"\u003cAZUREAD_TENANT_ID\u003e\")\n .tokenEndpoint(\"\u003cAZUREAD_TOKEN_ENDPOINT\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config AzureAD\n azuread:\n type: rancher2:AuthConfigAzureAd\n properties:\n applicationId: \u003cAZUREAD_APP_ID\u003e\n applicationSecret: \u003cAZUREAD_APP_SECRET\u003e\n authEndpoint: \u003cAZUREAD_AUTH_ENDPOINT\u003e\n graphEndpoint: \u003cAZUREAD_GRAPH_ENDPOINT\u003e\n rancherUrl: \u003cRANCHER_URL\u003e\n tenantId: \u003cAZUREAD_TENANT_ID\u003e\n tokenEndpoint: \u003cAZUREAD_TOKEN_ENDPOINT\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "accessMode": { "type": "string", @@ -23535,7 +23231,7 @@ } }, "rancher2:index/authConfigGithub:AuthConfigGithub": { - "description": "Provides a Rancher v2 Auth Config Github resource. This can be used to configure and enable Auth Config Github for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config Github\nconst github = new rancher2.AuthConfigGithub(\"github\", {\n clientId: \"\u003cGITHUB_CLIENT_ID\u003e\",\n clientSecret: \"\u003cGITHUB_CLIENT_SECRET\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config Github\ngithub = rancher2.AuthConfigGithub(\"github\",\n client_id=\"\u003cGITHUB_CLIENT_ID\u003e\",\n client_secret=\"\u003cGITHUB_CLIENT_SECRET\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config Github\n var github = new Rancher2.AuthConfigGithub(\"github\", new()\n {\n ClientId = \"\u003cGITHUB_CLIENT_ID\u003e\",\n ClientSecret = \"\u003cGITHUB_CLIENT_SECRET\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewAuthConfigGithub(ctx, \"github\", \u0026rancher2.AuthConfigGithubArgs{\n\t\t\tClientId: pulumi.String(\"\u003cGITHUB_CLIENT_ID\u003e\"),\n\t\t\tClientSecret: pulumi.String(\"\u003cGITHUB_CLIENT_SECRET\u003e\"),\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.rancher2.AuthConfigGithub;\nimport com.pulumi.rancher2.AuthConfigGithubArgs;\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 github = new AuthConfigGithub(\"github\", AuthConfigGithubArgs.builder() \n .clientId(\"\u003cGITHUB_CLIENT_ID\u003e\")\n .clientSecret(\"\u003cGITHUB_CLIENT_SECRET\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config Github\n github:\n type: rancher2:AuthConfigGithub\n properties:\n clientId: \u003cGITHUB_CLIENT_ID\u003e\n clientSecret: \u003cGITHUB_CLIENT_SECRET\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Auth Config Github resource. This can be used to configure and enable Auth Config Github for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config Github\nconst github = new rancher2.AuthConfigGithub(\"github\", {\n clientId: \"\u003cGITHUB_CLIENT_ID\u003e\",\n clientSecret: \"\u003cGITHUB_CLIENT_SECRET\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config Github\ngithub = rancher2.AuthConfigGithub(\"github\",\n client_id=\"\u003cGITHUB_CLIENT_ID\u003e\",\n client_secret=\"\u003cGITHUB_CLIENT_SECRET\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config Github\n var github = new Rancher2.AuthConfigGithub(\"github\", new()\n {\n ClientId = \"\u003cGITHUB_CLIENT_ID\u003e\",\n ClientSecret = \"\u003cGITHUB_CLIENT_SECRET\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewAuthConfigGithub(ctx, \"github\", \u0026rancher2.AuthConfigGithubArgs{\n\t\t\tClientId: pulumi.String(\"\u003cGITHUB_CLIENT_ID\u003e\"),\n\t\t\tClientSecret: pulumi.String(\"\u003cGITHUB_CLIENT_SECRET\u003e\"),\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.rancher2.AuthConfigGithub;\nimport com.pulumi.rancher2.AuthConfigGithubArgs;\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 github = new AuthConfigGithub(\"github\", AuthConfigGithubArgs.builder() \n .clientId(\"\u003cGITHUB_CLIENT_ID\u003e\")\n .clientSecret(\"\u003cGITHUB_CLIENT_SECRET\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config Github\n github:\n type: rancher2:AuthConfigGithub\n properties:\n clientId: \u003cGITHUB_CLIENT_ID\u003e\n clientSecret: \u003cGITHUB_CLIENT_SECRET\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "accessMode": { "type": "string", @@ -23717,7 +23413,7 @@ } }, "rancher2:index/authConfigKeycloak:AuthConfigKeycloak": { - "description": "Provides a Rancher v2 Auth Config KeyCloak resource. This can be used to configure and enable Auth Config KeyCloak for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config KeyCloak\nconst keycloak = new rancher2.AuthConfigKeycloak(\"keycloak\", {\n displayNameField: \"\u003cDISPLAY_NAME_FIELD\u003e\",\n groupsField: \"\u003cGROUPS_FIELD\u003e\",\n idpMetadataContent: \"\u003cIDP_METADATA_CONTENT\u003e\",\n rancherApiHost: \"https://\u003cRANCHER_API_HOST\u003e\",\n spCert: \"\u003cSP_CERT\u003e\",\n spKey: \"\u003cSP_KEY\u003e\",\n uidField: \"\u003cUID_FIELD\u003e\",\n userNameField: \"\u003cUSER_NAME_FIELD\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config KeyCloak\nkeycloak = rancher2.AuthConfigKeycloak(\"keycloak\",\n display_name_field=\"\u003cDISPLAY_NAME_FIELD\u003e\",\n groups_field=\"\u003cGROUPS_FIELD\u003e\",\n idp_metadata_content=\"\u003cIDP_METADATA_CONTENT\u003e\",\n rancher_api_host=\"https://\u003cRANCHER_API_HOST\u003e\",\n sp_cert=\"\u003cSP_CERT\u003e\",\n sp_key=\"\u003cSP_KEY\u003e\",\n uid_field=\"\u003cUID_FIELD\u003e\",\n user_name_field=\"\u003cUSER_NAME_FIELD\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config KeyCloak\n var keycloak = new Rancher2.AuthConfigKeycloak(\"keycloak\", new()\n {\n DisplayNameField = \"\u003cDISPLAY_NAME_FIELD\u003e\",\n GroupsField = \"\u003cGROUPS_FIELD\u003e\",\n IdpMetadataContent = \"\u003cIDP_METADATA_CONTENT\u003e\",\n RancherApiHost = \"https://\u003cRANCHER_API_HOST\u003e\",\n SpCert = \"\u003cSP_CERT\u003e\",\n SpKey = \"\u003cSP_KEY\u003e\",\n UidField = \"\u003cUID_FIELD\u003e\",\n UserNameField = \"\u003cUSER_NAME_FIELD\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewAuthConfigKeycloak(ctx, \"keycloak\", \u0026rancher2.AuthConfigKeycloakArgs{\n\t\t\tDisplayNameField: pulumi.String(\"\u003cDISPLAY_NAME_FIELD\u003e\"),\n\t\t\tGroupsField: pulumi.String(\"\u003cGROUPS_FIELD\u003e\"),\n\t\t\tIdpMetadataContent: pulumi.String(\"\u003cIDP_METADATA_CONTENT\u003e\"),\n\t\t\tRancherApiHost: pulumi.String(\"https://\u003cRANCHER_API_HOST\u003e\"),\n\t\t\tSpCert: pulumi.String(\"\u003cSP_CERT\u003e\"),\n\t\t\tSpKey: pulumi.String(\"\u003cSP_KEY\u003e\"),\n\t\t\tUidField: pulumi.String(\"\u003cUID_FIELD\u003e\"),\n\t\t\tUserNameField: pulumi.String(\"\u003cUSER_NAME_FIELD\u003e\"),\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.rancher2.AuthConfigKeycloak;\nimport com.pulumi.rancher2.AuthConfigKeycloakArgs;\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 keycloak = new AuthConfigKeycloak(\"keycloak\", AuthConfigKeycloakArgs.builder() \n .displayNameField(\"\u003cDISPLAY_NAME_FIELD\u003e\")\n .groupsField(\"\u003cGROUPS_FIELD\u003e\")\n .idpMetadataContent(\"\u003cIDP_METADATA_CONTENT\u003e\")\n .rancherApiHost(\"https://\u003cRANCHER_API_HOST\u003e\")\n .spCert(\"\u003cSP_CERT\u003e\")\n .spKey(\"\u003cSP_KEY\u003e\")\n .uidField(\"\u003cUID_FIELD\u003e\")\n .userNameField(\"\u003cUSER_NAME_FIELD\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config KeyCloak\n keycloak:\n type: rancher2:AuthConfigKeycloak\n properties:\n displayNameField: \u003cDISPLAY_NAME_FIELD\u003e\n groupsField: \u003cGROUPS_FIELD\u003e\n idpMetadataContent: \u003cIDP_METADATA_CONTENT\u003e\n rancherApiHost: https://\u003cRANCHER_API_HOST\u003e\n spCert: \u003cSP_CERT\u003e\n spKey: \u003cSP_KEY\u003e\n uidField: \u003cUID_FIELD\u003e\n userNameField: \u003cUSER_NAME_FIELD\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Auth Config KeyCloak resource. This can be used to configure and enable Auth Config KeyCloak for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config KeyCloak\nconst keycloak = new rancher2.AuthConfigKeycloak(\"keycloak\", {\n displayNameField: \"\u003cDISPLAY_NAME_FIELD\u003e\",\n groupsField: \"\u003cGROUPS_FIELD\u003e\",\n idpMetadataContent: \"\u003cIDP_METADATA_CONTENT\u003e\",\n rancherApiHost: \"https://\u003cRANCHER_API_HOST\u003e\",\n spCert: \"\u003cSP_CERT\u003e\",\n spKey: \"\u003cSP_KEY\u003e\",\n uidField: \"\u003cUID_FIELD\u003e\",\n userNameField: \"\u003cUSER_NAME_FIELD\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config KeyCloak\nkeycloak = rancher2.AuthConfigKeycloak(\"keycloak\",\n display_name_field=\"\u003cDISPLAY_NAME_FIELD\u003e\",\n groups_field=\"\u003cGROUPS_FIELD\u003e\",\n idp_metadata_content=\"\u003cIDP_METADATA_CONTENT\u003e\",\n rancher_api_host=\"https://\u003cRANCHER_API_HOST\u003e\",\n sp_cert=\"\u003cSP_CERT\u003e\",\n sp_key=\"\u003cSP_KEY\u003e\",\n uid_field=\"\u003cUID_FIELD\u003e\",\n user_name_field=\"\u003cUSER_NAME_FIELD\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config KeyCloak\n var keycloak = new Rancher2.AuthConfigKeycloak(\"keycloak\", new()\n {\n DisplayNameField = \"\u003cDISPLAY_NAME_FIELD\u003e\",\n GroupsField = \"\u003cGROUPS_FIELD\u003e\",\n IdpMetadataContent = \"\u003cIDP_METADATA_CONTENT\u003e\",\n RancherApiHost = \"https://\u003cRANCHER_API_HOST\u003e\",\n SpCert = \"\u003cSP_CERT\u003e\",\n SpKey = \"\u003cSP_KEY\u003e\",\n UidField = \"\u003cUID_FIELD\u003e\",\n UserNameField = \"\u003cUSER_NAME_FIELD\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewAuthConfigKeycloak(ctx, \"keycloak\", \u0026rancher2.AuthConfigKeycloakArgs{\n\t\t\tDisplayNameField: pulumi.String(\"\u003cDISPLAY_NAME_FIELD\u003e\"),\n\t\t\tGroupsField: pulumi.String(\"\u003cGROUPS_FIELD\u003e\"),\n\t\t\tIdpMetadataContent: pulumi.String(\"\u003cIDP_METADATA_CONTENT\u003e\"),\n\t\t\tRancherApiHost: pulumi.String(\"https://\u003cRANCHER_API_HOST\u003e\"),\n\t\t\tSpCert: pulumi.String(\"\u003cSP_CERT\u003e\"),\n\t\t\tSpKey: pulumi.String(\"\u003cSP_KEY\u003e\"),\n\t\t\tUidField: pulumi.String(\"\u003cUID_FIELD\u003e\"),\n\t\t\tUserNameField: pulumi.String(\"\u003cUSER_NAME_FIELD\u003e\"),\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.rancher2.AuthConfigKeycloak;\nimport com.pulumi.rancher2.AuthConfigKeycloakArgs;\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 keycloak = new AuthConfigKeycloak(\"keycloak\", AuthConfigKeycloakArgs.builder() \n .displayNameField(\"\u003cDISPLAY_NAME_FIELD\u003e\")\n .groupsField(\"\u003cGROUPS_FIELD\u003e\")\n .idpMetadataContent(\"\u003cIDP_METADATA_CONTENT\u003e\")\n .rancherApiHost(\"https://\u003cRANCHER_API_HOST\u003e\")\n .spCert(\"\u003cSP_CERT\u003e\")\n .spKey(\"\u003cSP_KEY\u003e\")\n .uidField(\"\u003cUID_FIELD\u003e\")\n .userNameField(\"\u003cUSER_NAME_FIELD\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config KeyCloak\n keycloak:\n type: rancher2:AuthConfigKeycloak\n properties:\n displayNameField: \u003cDISPLAY_NAME_FIELD\u003e\n groupsField: \u003cGROUPS_FIELD\u003e\n idpMetadataContent: \u003cIDP_METADATA_CONTENT\u003e\n rancherApiHost: https://\u003cRANCHER_API_HOST\u003e\n spCert: \u003cSP_CERT\u003e\n spKey: \u003cSP_KEY\u003e\n uidField: \u003cUID_FIELD\u003e\n userNameField: \u003cUSER_NAME_FIELD\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "accessMode": { "type": "string", @@ -23975,7 +23671,7 @@ } }, "rancher2:index/authConfigOkta:AuthConfigOkta": { - "description": "Provides a Rancher v2 Auth Config OKTA resource. This can be used to configure and enable Auth Config OKTA for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config OKTA\nconst okta = new rancher2.AuthConfigOkta(\"okta\", {\n displayNameField: \"\u003cDISPLAY_NAME_FIELD\u003e\",\n groupsField: \"\u003cGROUPS_FIELD\u003e\",\n idpMetadataContent: \"\u003cIDP_METADATA_CONTENT\u003e\",\n rancherApiHost: \"https://\u003cRANCHER_API_HOST\u003e\",\n spCert: \"\u003cSP_CERT\u003e\",\n spKey: \"\u003cSP_KEY\u003e\",\n uidField: \"\u003cUID_FIELD\u003e\",\n userNameField: \"\u003cUSER_NAME_FIELD\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config OKTA\nokta = rancher2.AuthConfigOkta(\"okta\",\n display_name_field=\"\u003cDISPLAY_NAME_FIELD\u003e\",\n groups_field=\"\u003cGROUPS_FIELD\u003e\",\n idp_metadata_content=\"\u003cIDP_METADATA_CONTENT\u003e\",\n rancher_api_host=\"https://\u003cRANCHER_API_HOST\u003e\",\n sp_cert=\"\u003cSP_CERT\u003e\",\n sp_key=\"\u003cSP_KEY\u003e\",\n uid_field=\"\u003cUID_FIELD\u003e\",\n user_name_field=\"\u003cUSER_NAME_FIELD\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config OKTA\n var okta = new Rancher2.AuthConfigOkta(\"okta\", new()\n {\n DisplayNameField = \"\u003cDISPLAY_NAME_FIELD\u003e\",\n GroupsField = \"\u003cGROUPS_FIELD\u003e\",\n IdpMetadataContent = \"\u003cIDP_METADATA_CONTENT\u003e\",\n RancherApiHost = \"https://\u003cRANCHER_API_HOST\u003e\",\n SpCert = \"\u003cSP_CERT\u003e\",\n SpKey = \"\u003cSP_KEY\u003e\",\n UidField = \"\u003cUID_FIELD\u003e\",\n UserNameField = \"\u003cUSER_NAME_FIELD\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewAuthConfigOkta(ctx, \"okta\", \u0026rancher2.AuthConfigOktaArgs{\n\t\t\tDisplayNameField: pulumi.String(\"\u003cDISPLAY_NAME_FIELD\u003e\"),\n\t\t\tGroupsField: pulumi.String(\"\u003cGROUPS_FIELD\u003e\"),\n\t\t\tIdpMetadataContent: pulumi.String(\"\u003cIDP_METADATA_CONTENT\u003e\"),\n\t\t\tRancherApiHost: pulumi.String(\"https://\u003cRANCHER_API_HOST\u003e\"),\n\t\t\tSpCert: pulumi.String(\"\u003cSP_CERT\u003e\"),\n\t\t\tSpKey: pulumi.String(\"\u003cSP_KEY\u003e\"),\n\t\t\tUidField: pulumi.String(\"\u003cUID_FIELD\u003e\"),\n\t\t\tUserNameField: pulumi.String(\"\u003cUSER_NAME_FIELD\u003e\"),\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.rancher2.AuthConfigOkta;\nimport com.pulumi.rancher2.AuthConfigOktaArgs;\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 okta = new AuthConfigOkta(\"okta\", AuthConfigOktaArgs.builder() \n .displayNameField(\"\u003cDISPLAY_NAME_FIELD\u003e\")\n .groupsField(\"\u003cGROUPS_FIELD\u003e\")\n .idpMetadataContent(\"\u003cIDP_METADATA_CONTENT\u003e\")\n .rancherApiHost(\"https://\u003cRANCHER_API_HOST\u003e\")\n .spCert(\"\u003cSP_CERT\u003e\")\n .spKey(\"\u003cSP_KEY\u003e\")\n .uidField(\"\u003cUID_FIELD\u003e\")\n .userNameField(\"\u003cUSER_NAME_FIELD\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config OKTA\n okta:\n type: rancher2:AuthConfigOkta\n properties:\n displayNameField: \u003cDISPLAY_NAME_FIELD\u003e\n groupsField: \u003cGROUPS_FIELD\u003e\n idpMetadataContent: \u003cIDP_METADATA_CONTENT\u003e\n rancherApiHost: https://\u003cRANCHER_API_HOST\u003e\n spCert: \u003cSP_CERT\u003e\n spKey: \u003cSP_KEY\u003e\n uidField: \u003cUID_FIELD\u003e\n userNameField: \u003cUSER_NAME_FIELD\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Auth Config OKTA resource. This can be used to configure and enable Auth Config OKTA for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config OKTA\nconst okta = new rancher2.AuthConfigOkta(\"okta\", {\n displayNameField: \"\u003cDISPLAY_NAME_FIELD\u003e\",\n groupsField: \"\u003cGROUPS_FIELD\u003e\",\n idpMetadataContent: \"\u003cIDP_METADATA_CONTENT\u003e\",\n rancherApiHost: \"https://\u003cRANCHER_API_HOST\u003e\",\n spCert: \"\u003cSP_CERT\u003e\",\n spKey: \"\u003cSP_KEY\u003e\",\n uidField: \"\u003cUID_FIELD\u003e\",\n userNameField: \"\u003cUSER_NAME_FIELD\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config OKTA\nokta = rancher2.AuthConfigOkta(\"okta\",\n display_name_field=\"\u003cDISPLAY_NAME_FIELD\u003e\",\n groups_field=\"\u003cGROUPS_FIELD\u003e\",\n idp_metadata_content=\"\u003cIDP_METADATA_CONTENT\u003e\",\n rancher_api_host=\"https://\u003cRANCHER_API_HOST\u003e\",\n sp_cert=\"\u003cSP_CERT\u003e\",\n sp_key=\"\u003cSP_KEY\u003e\",\n uid_field=\"\u003cUID_FIELD\u003e\",\n user_name_field=\"\u003cUSER_NAME_FIELD\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config OKTA\n var okta = new Rancher2.AuthConfigOkta(\"okta\", new()\n {\n DisplayNameField = \"\u003cDISPLAY_NAME_FIELD\u003e\",\n GroupsField = \"\u003cGROUPS_FIELD\u003e\",\n IdpMetadataContent = \"\u003cIDP_METADATA_CONTENT\u003e\",\n RancherApiHost = \"https://\u003cRANCHER_API_HOST\u003e\",\n SpCert = \"\u003cSP_CERT\u003e\",\n SpKey = \"\u003cSP_KEY\u003e\",\n UidField = \"\u003cUID_FIELD\u003e\",\n UserNameField = \"\u003cUSER_NAME_FIELD\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewAuthConfigOkta(ctx, \"okta\", \u0026rancher2.AuthConfigOktaArgs{\n\t\t\tDisplayNameField: pulumi.String(\"\u003cDISPLAY_NAME_FIELD\u003e\"),\n\t\t\tGroupsField: pulumi.String(\"\u003cGROUPS_FIELD\u003e\"),\n\t\t\tIdpMetadataContent: pulumi.String(\"\u003cIDP_METADATA_CONTENT\u003e\"),\n\t\t\tRancherApiHost: pulumi.String(\"https://\u003cRANCHER_API_HOST\u003e\"),\n\t\t\tSpCert: pulumi.String(\"\u003cSP_CERT\u003e\"),\n\t\t\tSpKey: pulumi.String(\"\u003cSP_KEY\u003e\"),\n\t\t\tUidField: pulumi.String(\"\u003cUID_FIELD\u003e\"),\n\t\t\tUserNameField: pulumi.String(\"\u003cUSER_NAME_FIELD\u003e\"),\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.rancher2.AuthConfigOkta;\nimport com.pulumi.rancher2.AuthConfigOktaArgs;\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 okta = new AuthConfigOkta(\"okta\", AuthConfigOktaArgs.builder() \n .displayNameField(\"\u003cDISPLAY_NAME_FIELD\u003e\")\n .groupsField(\"\u003cGROUPS_FIELD\u003e\")\n .idpMetadataContent(\"\u003cIDP_METADATA_CONTENT\u003e\")\n .rancherApiHost(\"https://\u003cRANCHER_API_HOST\u003e\")\n .spCert(\"\u003cSP_CERT\u003e\")\n .spKey(\"\u003cSP_KEY\u003e\")\n .uidField(\"\u003cUID_FIELD\u003e\")\n .userNameField(\"\u003cUSER_NAME_FIELD\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config OKTA\n okta:\n type: rancher2:AuthConfigOkta\n properties:\n displayNameField: \u003cDISPLAY_NAME_FIELD\u003e\n groupsField: \u003cGROUPS_FIELD\u003e\n idpMetadataContent: \u003cIDP_METADATA_CONTENT\u003e\n rancherApiHost: https://\u003cRANCHER_API_HOST\u003e\n spCert: \u003cSP_CERT\u003e\n spKey: \u003cSP_KEY\u003e\n uidField: \u003cUID_FIELD\u003e\n userNameField: \u003cUSER_NAME_FIELD\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "accessMode": { "type": "string", @@ -24721,7 +24417,7 @@ } }, "rancher2:index/authConfigPing:AuthConfigPing": { - "description": "Provides a Rancher v2 Auth Config Ping resource. This can be used to configure and enable Auth Config Ping for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config Ping\nconst ping = new rancher2.AuthConfigPing(\"ping\", {\n displayNameField: \"\u003cDISPLAY_NAME_FIELD\u003e\",\n groupsField: \"\u003cGROUPS_FIELD\u003e\",\n idpMetadataContent: \"\u003cIDP_METADATA_CONTENT\u003e\",\n rancherApiHost: \"https://\u003cRANCHER_API_HOST\u003e\",\n spCert: \"\u003cSP_CERT\u003e\",\n spKey: \"\u003cSP_KEY\u003e\",\n uidField: \"\u003cUID_FIELD\u003e\",\n userNameField: \"\u003cUSER_NAME_FIELD\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config Ping\nping = rancher2.AuthConfigPing(\"ping\",\n display_name_field=\"\u003cDISPLAY_NAME_FIELD\u003e\",\n groups_field=\"\u003cGROUPS_FIELD\u003e\",\n idp_metadata_content=\"\u003cIDP_METADATA_CONTENT\u003e\",\n rancher_api_host=\"https://\u003cRANCHER_API_HOST\u003e\",\n sp_cert=\"\u003cSP_CERT\u003e\",\n sp_key=\"\u003cSP_KEY\u003e\",\n uid_field=\"\u003cUID_FIELD\u003e\",\n user_name_field=\"\u003cUSER_NAME_FIELD\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config Ping\n var ping = new Rancher2.AuthConfigPing(\"ping\", new()\n {\n DisplayNameField = \"\u003cDISPLAY_NAME_FIELD\u003e\",\n GroupsField = \"\u003cGROUPS_FIELD\u003e\",\n IdpMetadataContent = \"\u003cIDP_METADATA_CONTENT\u003e\",\n RancherApiHost = \"https://\u003cRANCHER_API_HOST\u003e\",\n SpCert = \"\u003cSP_CERT\u003e\",\n SpKey = \"\u003cSP_KEY\u003e\",\n UidField = \"\u003cUID_FIELD\u003e\",\n UserNameField = \"\u003cUSER_NAME_FIELD\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewAuthConfigPing(ctx, \"ping\", \u0026rancher2.AuthConfigPingArgs{\n\t\t\tDisplayNameField: pulumi.String(\"\u003cDISPLAY_NAME_FIELD\u003e\"),\n\t\t\tGroupsField: pulumi.String(\"\u003cGROUPS_FIELD\u003e\"),\n\t\t\tIdpMetadataContent: pulumi.String(\"\u003cIDP_METADATA_CONTENT\u003e\"),\n\t\t\tRancherApiHost: pulumi.String(\"https://\u003cRANCHER_API_HOST\u003e\"),\n\t\t\tSpCert: pulumi.String(\"\u003cSP_CERT\u003e\"),\n\t\t\tSpKey: pulumi.String(\"\u003cSP_KEY\u003e\"),\n\t\t\tUidField: pulumi.String(\"\u003cUID_FIELD\u003e\"),\n\t\t\tUserNameField: pulumi.String(\"\u003cUSER_NAME_FIELD\u003e\"),\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.rancher2.AuthConfigPing;\nimport com.pulumi.rancher2.AuthConfigPingArgs;\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 ping = new AuthConfigPing(\"ping\", AuthConfigPingArgs.builder() \n .displayNameField(\"\u003cDISPLAY_NAME_FIELD\u003e\")\n .groupsField(\"\u003cGROUPS_FIELD\u003e\")\n .idpMetadataContent(\"\u003cIDP_METADATA_CONTENT\u003e\")\n .rancherApiHost(\"https://\u003cRANCHER_API_HOST\u003e\")\n .spCert(\"\u003cSP_CERT\u003e\")\n .spKey(\"\u003cSP_KEY\u003e\")\n .uidField(\"\u003cUID_FIELD\u003e\")\n .userNameField(\"\u003cUSER_NAME_FIELD\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config Ping\n ping:\n type: rancher2:AuthConfigPing\n properties:\n displayNameField: \u003cDISPLAY_NAME_FIELD\u003e\n groupsField: \u003cGROUPS_FIELD\u003e\n idpMetadataContent: \u003cIDP_METADATA_CONTENT\u003e\n rancherApiHost: https://\u003cRANCHER_API_HOST\u003e\n spCert: \u003cSP_CERT\u003e\n spKey: \u003cSP_KEY\u003e\n uidField: \u003cUID_FIELD\u003e\n userNameField: \u003cUSER_NAME_FIELD\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Auth Config Ping resource. This can be used to configure and enable Auth Config Ping for Rancher v2 RKE clusters and retrieve their information.\n\nIn addition to the built-in local auth, only one external auth config provider can be enabled at a time.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Auth Config Ping\nconst ping = new rancher2.AuthConfigPing(\"ping\", {\n displayNameField: \"\u003cDISPLAY_NAME_FIELD\u003e\",\n groupsField: \"\u003cGROUPS_FIELD\u003e\",\n idpMetadataContent: \"\u003cIDP_METADATA_CONTENT\u003e\",\n rancherApiHost: \"https://\u003cRANCHER_API_HOST\u003e\",\n spCert: \"\u003cSP_CERT\u003e\",\n spKey: \"\u003cSP_KEY\u003e\",\n uidField: \"\u003cUID_FIELD\u003e\",\n userNameField: \"\u003cUSER_NAME_FIELD\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Auth Config Ping\nping = rancher2.AuthConfigPing(\"ping\",\n display_name_field=\"\u003cDISPLAY_NAME_FIELD\u003e\",\n groups_field=\"\u003cGROUPS_FIELD\u003e\",\n idp_metadata_content=\"\u003cIDP_METADATA_CONTENT\u003e\",\n rancher_api_host=\"https://\u003cRANCHER_API_HOST\u003e\",\n sp_cert=\"\u003cSP_CERT\u003e\",\n sp_key=\"\u003cSP_KEY\u003e\",\n uid_field=\"\u003cUID_FIELD\u003e\",\n user_name_field=\"\u003cUSER_NAME_FIELD\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Auth Config Ping\n var ping = new Rancher2.AuthConfigPing(\"ping\", new()\n {\n DisplayNameField = \"\u003cDISPLAY_NAME_FIELD\u003e\",\n GroupsField = \"\u003cGROUPS_FIELD\u003e\",\n IdpMetadataContent = \"\u003cIDP_METADATA_CONTENT\u003e\",\n RancherApiHost = \"https://\u003cRANCHER_API_HOST\u003e\",\n SpCert = \"\u003cSP_CERT\u003e\",\n SpKey = \"\u003cSP_KEY\u003e\",\n UidField = \"\u003cUID_FIELD\u003e\",\n UserNameField = \"\u003cUSER_NAME_FIELD\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewAuthConfigPing(ctx, \"ping\", \u0026rancher2.AuthConfigPingArgs{\n\t\t\tDisplayNameField: pulumi.String(\"\u003cDISPLAY_NAME_FIELD\u003e\"),\n\t\t\tGroupsField: pulumi.String(\"\u003cGROUPS_FIELD\u003e\"),\n\t\t\tIdpMetadataContent: pulumi.String(\"\u003cIDP_METADATA_CONTENT\u003e\"),\n\t\t\tRancherApiHost: pulumi.String(\"https://\u003cRANCHER_API_HOST\u003e\"),\n\t\t\tSpCert: pulumi.String(\"\u003cSP_CERT\u003e\"),\n\t\t\tSpKey: pulumi.String(\"\u003cSP_KEY\u003e\"),\n\t\t\tUidField: pulumi.String(\"\u003cUID_FIELD\u003e\"),\n\t\t\tUserNameField: pulumi.String(\"\u003cUSER_NAME_FIELD\u003e\"),\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.rancher2.AuthConfigPing;\nimport com.pulumi.rancher2.AuthConfigPingArgs;\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 ping = new AuthConfigPing(\"ping\", AuthConfigPingArgs.builder() \n .displayNameField(\"\u003cDISPLAY_NAME_FIELD\u003e\")\n .groupsField(\"\u003cGROUPS_FIELD\u003e\")\n .idpMetadataContent(\"\u003cIDP_METADATA_CONTENT\u003e\")\n .rancherApiHost(\"https://\u003cRANCHER_API_HOST\u003e\")\n .spCert(\"\u003cSP_CERT\u003e\")\n .spKey(\"\u003cSP_KEY\u003e\")\n .uidField(\"\u003cUID_FIELD\u003e\")\n .userNameField(\"\u003cUSER_NAME_FIELD\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Auth Config Ping\n ping:\n type: rancher2:AuthConfigPing\n properties:\n displayNameField: \u003cDISPLAY_NAME_FIELD\u003e\n groupsField: \u003cGROUPS_FIELD\u003e\n idpMetadataContent: \u003cIDP_METADATA_CONTENT\u003e\n rancherApiHost: https://\u003cRANCHER_API_HOST\u003e\n spCert: \u003cSP_CERT\u003e\n spKey: \u003cSP_KEY\u003e\n uidField: \u003cUID_FIELD\u003e\n userNameField: \u003cUSER_NAME_FIELD\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "accessMode": { "type": "string", @@ -24978,7 +24674,7 @@ } }, "rancher2:index/bootstrap:Bootstrap": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2_bootstrap\nconst admin = new rancher2.Bootstrap(\"admin\", {\n password: \"blahblah\",\n telemetry: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2_bootstrap\nadmin = rancher2.Bootstrap(\"admin\",\n password=\"blahblah\",\n telemetry=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2_bootstrap\n var admin = new Rancher2.Bootstrap(\"admin\", new()\n {\n Password = \"blahblah\",\n Telemetry = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewBootstrap(ctx, \"admin\", \u0026rancher2.BootstrapArgs{\n\t\t\tPassword: pulumi.String(\"blahblah\"),\n\t\t\tTelemetry: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.Bootstrap;\nimport com.pulumi.rancher2.BootstrapArgs;\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 admin = new Bootstrap(\"admin\", BootstrapArgs.builder() \n .password(\"blahblah\")\n .telemetry(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2_bootstrap\n admin:\n type: rancher2:Bootstrap\n properties:\n password: blahblah\n telemetry: true\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2_bootstrap for Rancher v2.6.0 and above\nconst admin = new rancher2.Bootstrap(\"admin\", {\n initialPassword: \"\u003cINSTALL_PASSWORD\u003e\",\n password: \"blahblah\",\n telemetry: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2_bootstrap for Rancher v2.6.0 and above\nadmin = rancher2.Bootstrap(\"admin\",\n initial_password=\"\u003cINSTALL_PASSWORD\u003e\",\n password=\"blahblah\",\n telemetry=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2_bootstrap for Rancher v2.6.0 and above\n var admin = new Rancher2.Bootstrap(\"admin\", new()\n {\n InitialPassword = \"\u003cINSTALL_PASSWORD\u003e\",\n Password = \"blahblah\",\n Telemetry = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewBootstrap(ctx, \"admin\", \u0026rancher2.BootstrapArgs{\n\t\t\tInitialPassword: pulumi.String(\"\u003cINSTALL_PASSWORD\u003e\"),\n\t\t\tPassword: pulumi.String(\"blahblah\"),\n\t\t\tTelemetry: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.Bootstrap;\nimport com.pulumi.rancher2.BootstrapArgs;\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 admin = new Bootstrap(\"admin\", BootstrapArgs.builder() \n .initialPassword(\"\u003cINSTALL_PASSWORD\u003e\")\n .password(\"blahblah\")\n .telemetry(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2_bootstrap for Rancher v2.6.0 and above\n admin:\n type: rancher2:Bootstrap\n properties:\n initialPassword: \u003cINSTALL_PASSWORD\u003e\n password: blahblah\n telemetry: true\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Provider bootstrap config with alias\nconst bootstrap = new rancher2.Provider(\"bootstrap\", {\n apiUrl: \"https://rancher.my-domain.com\",\n bootstrap: true,\n});\n// Create a new rancher2_bootstrap using bootstrap provider config\nconst admin = new rancher2.Bootstrap(\"admin\", {\n password: \"blahblah\",\n telemetry: true,\n}, {\n provider: \"rancher2.bootstrap\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Provider bootstrap config with alias\nbootstrap = rancher2.Provider(\"bootstrap\",\n api_url=\"https://rancher.my-domain.com\",\n bootstrap=True)\n# Create a new rancher2_bootstrap using bootstrap provider config\nadmin = rancher2.Bootstrap(\"admin\",\n password=\"blahblah\",\n telemetry=True,\n opts=pulumi.ResourceOptions(provider=\"rancher2.bootstrap\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Provider bootstrap config with alias\n var bootstrap = new Rancher2.Provider(\"bootstrap\", new()\n {\n ApiUrl = \"https://rancher.my-domain.com\",\n Bootstrap = true,\n });\n\n // Create a new rancher2_bootstrap using bootstrap provider config\n var admin = new Rancher2.Bootstrap(\"admin\", new()\n {\n Password = \"blahblah\",\n Telemetry = true,\n }, new CustomResourceOptions\n {\n Provider = \"rancher2.bootstrap\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewProvider(ctx, \"bootstrap\", \u0026rancher2.ProviderArgs{\n\t\t\tApiUrl: pulumi.String(\"https://rancher.my-domain.com\"),\n\t\t\tBootstrap: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewBootstrap(ctx, \"admin\", \u0026rancher2.BootstrapArgs{\n\t\t\tPassword: pulumi.String(\"blahblah\"),\n\t\t\tTelemetry: pulumi.Bool(true),\n\t\t}, pulumi.Provider(\"rancher2.bootstrap\"))\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.rancher2.Provider;\nimport com.pulumi.rancher2.ProviderArgs;\nimport com.pulumi.rancher2.Bootstrap;\nimport com.pulumi.rancher2.BootstrapArgs;\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 var bootstrap = new Provider(\"bootstrap\", ProviderArgs.builder() \n .apiUrl(\"https://rancher.my-domain.com\")\n .bootstrap(true)\n .build());\n\n var admin = new Bootstrap(\"admin\", BootstrapArgs.builder() \n .password(\"blahblah\")\n .telemetry(true)\n .build(), CustomResourceOptions.builder()\n .provider(\"rancher2.bootstrap\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Provider bootstrap config with alias\n bootstrap:\n type: pulumi:providers:rancher2\n properties:\n apiUrl: https://rancher.my-domain.com\n bootstrap: true\n # Create a new rancher2_bootstrap using bootstrap provider config\n admin:\n type: rancher2:Bootstrap\n properties:\n password: blahblah\n telemetry: true\n options:\n provider: rancher2.bootstrap\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2_bootstrap\nconst admin = new rancher2.Bootstrap(\"admin\", {\n password: \"blahblah\",\n telemetry: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2_bootstrap\nadmin = rancher2.Bootstrap(\"admin\",\n password=\"blahblah\",\n telemetry=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2_bootstrap\n var admin = new Rancher2.Bootstrap(\"admin\", new()\n {\n Password = \"blahblah\",\n Telemetry = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewBootstrap(ctx, \"admin\", \u0026rancher2.BootstrapArgs{\n\t\t\tPassword: pulumi.String(\"blahblah\"),\n\t\t\tTelemetry: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.Bootstrap;\nimport com.pulumi.rancher2.BootstrapArgs;\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 admin = new Bootstrap(\"admin\", BootstrapArgs.builder() \n .password(\"blahblah\")\n .telemetry(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2_bootstrap\n admin:\n type: rancher2:Bootstrap\n properties:\n password: blahblah\n telemetry: true\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2_bootstrap for Rancher v2.6.0 and above\nconst admin = new rancher2.Bootstrap(\"admin\", {\n initialPassword: \"\u003cINSTALL_PASSWORD\u003e\",\n password: \"blahblah\",\n telemetry: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2_bootstrap for Rancher v2.6.0 and above\nadmin = rancher2.Bootstrap(\"admin\",\n initial_password=\"\u003cINSTALL_PASSWORD\u003e\",\n password=\"blahblah\",\n telemetry=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2_bootstrap for Rancher v2.6.0 and above\n var admin = new Rancher2.Bootstrap(\"admin\", new()\n {\n InitialPassword = \"\u003cINSTALL_PASSWORD\u003e\",\n Password = \"blahblah\",\n Telemetry = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewBootstrap(ctx, \"admin\", \u0026rancher2.BootstrapArgs{\n\t\t\tInitialPassword: pulumi.String(\"\u003cINSTALL_PASSWORD\u003e\"),\n\t\t\tPassword: pulumi.String(\"blahblah\"),\n\t\t\tTelemetry: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.Bootstrap;\nimport com.pulumi.rancher2.BootstrapArgs;\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 admin = new Bootstrap(\"admin\", BootstrapArgs.builder() \n .initialPassword(\"\u003cINSTALL_PASSWORD\u003e\")\n .password(\"blahblah\")\n .telemetry(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2_bootstrap for Rancher v2.6.0 and above\n admin:\n type: rancher2:Bootstrap\n properties:\n initialPassword: \u003cINSTALL_PASSWORD\u003e\n password: blahblah\n telemetry: true\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Provider bootstrap config with alias\nconst bootstrap = new rancher2.Provider(\"bootstrap\", {\n apiUrl: \"https://rancher.my-domain.com\",\n bootstrap: true,\n});\n// Create a new rancher2_bootstrap using bootstrap provider config\nconst admin = new rancher2.Bootstrap(\"admin\", {\n password: \"blahblah\",\n telemetry: true,\n}, {\n provider: \"rancher2.bootstrap\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Provider bootstrap config with alias\nbootstrap = rancher2.Provider(\"bootstrap\",\n api_url=\"https://rancher.my-domain.com\",\n bootstrap=True)\n# Create a new rancher2_bootstrap using bootstrap provider config\nadmin = rancher2.Bootstrap(\"admin\",\n password=\"blahblah\",\n telemetry=True,\n opts=pulumi.ResourceOptions(provider=\"rancher2.bootstrap\"))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Provider bootstrap config with alias\n var bootstrap = new Rancher2.Provider(\"bootstrap\", new()\n {\n ApiUrl = \"https://rancher.my-domain.com\",\n Bootstrap = true,\n });\n\n // Create a new rancher2_bootstrap using bootstrap provider config\n var admin = new Rancher2.Bootstrap(\"admin\", new()\n {\n Password = \"blahblah\",\n Telemetry = true,\n }, new CustomResourceOptions\n {\n Provider = \"rancher2.bootstrap\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewProvider(ctx, \"bootstrap\", \u0026rancher2.ProviderArgs{\n\t\t\tApiUrl: pulumi.String(\"https://rancher.my-domain.com\"),\n\t\t\tBootstrap: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewBootstrap(ctx, \"admin\", \u0026rancher2.BootstrapArgs{\n\t\t\tPassword: pulumi.String(\"blahblah\"),\n\t\t\tTelemetry: pulumi.Bool(true),\n\t\t}, pulumi.Provider(\"rancher2.bootstrap\"))\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.rancher2.Provider;\nimport com.pulumi.rancher2.ProviderArgs;\nimport com.pulumi.rancher2.Bootstrap;\nimport com.pulumi.rancher2.BootstrapArgs;\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 var bootstrap = new Provider(\"bootstrap\", ProviderArgs.builder() \n .apiUrl(\"https://rancher.my-domain.com\")\n .bootstrap(true)\n .build());\n\n var admin = new Bootstrap(\"admin\", BootstrapArgs.builder() \n .password(\"blahblah\")\n .telemetry(true)\n .build(), CustomResourceOptions.builder()\n .provider(\"rancher2.bootstrap\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Provider bootstrap config with alias\n bootstrap:\n type: pulumi:providers:rancher2\n properties:\n apiUrl: https://rancher.my-domain.com\n bootstrap: true\n # Create a new rancher2_bootstrap using bootstrap provider config\n admin:\n type: rancher2:Bootstrap\n properties:\n password: blahblah\n telemetry: true\n options:\n provider: rancher2.bootstrap\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "currentPassword": { "type": "string", @@ -25141,7 +24837,7 @@ } }, "rancher2:index/catalog:Catalog": { - "description": "Provides a Rancher v2 Catalog resource. This can be used to create cluster, global and/or project catalogs for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Global Catalog\nconst foo_global = new rancher2.Catalog(\"foo-global\", {url: \"https://\u003cCATALOG_URL\u003e\"});\n// Create a new Rancher2 Cluster Catalog\nconst foo_cluster = new rancher2.Catalog(\"foo-cluster\", {\n scope: \"cluster\",\n url: \"https://\u003cCATALOG_URL\u003e\",\n});\n// Create a new Rancher2 Project Catalog\nconst foo_project = new rancher2.Catalog(\"foo-project\", {\n scope: \"project\",\n url: \"https://\u003cCATALOG_URL\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Global Catalog\nfoo_global = rancher2.Catalog(\"foo-global\", url=\"https://\u003cCATALOG_URL\u003e\")\n# Create a new Rancher2 Cluster Catalog\nfoo_cluster = rancher2.Catalog(\"foo-cluster\",\n scope=\"cluster\",\n url=\"https://\u003cCATALOG_URL\u003e\")\n# Create a new Rancher2 Project Catalog\nfoo_project = rancher2.Catalog(\"foo-project\",\n scope=\"project\",\n url=\"https://\u003cCATALOG_URL\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Global Catalog\n var foo_global = new Rancher2.Catalog(\"foo-global\", new()\n {\n Url = \"https://\u003cCATALOG_URL\u003e\",\n });\n\n // Create a new Rancher2 Cluster Catalog\n var foo_cluster = new Rancher2.Catalog(\"foo-cluster\", new()\n {\n Scope = \"cluster\",\n Url = \"https://\u003cCATALOG_URL\u003e\",\n });\n\n // Create a new Rancher2 Project Catalog\n var foo_project = new Rancher2.Catalog(\"foo-project\", new()\n {\n Scope = \"project\",\n Url = \"https://\u003cCATALOG_URL\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCatalog(ctx, \"foo-global\", \u0026rancher2.CatalogArgs{\n\t\t\tUrl: pulumi.String(\"https://\u003cCATALOG_URL\u003e\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCatalog(ctx, \"foo-cluster\", \u0026rancher2.CatalogArgs{\n\t\t\tScope: pulumi.String(\"cluster\"),\n\t\t\tUrl: pulumi.String(\"https://\u003cCATALOG_URL\u003e\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCatalog(ctx, \"foo-project\", \u0026rancher2.CatalogArgs{\n\t\t\tScope: pulumi.String(\"project\"),\n\t\t\tUrl: pulumi.String(\"https://\u003cCATALOG_URL\u003e\"),\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.rancher2.Catalog;\nimport com.pulumi.rancher2.CatalogArgs;\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 foo_global = new Catalog(\"foo-global\", CatalogArgs.builder() \n .url(\"https://\u003cCATALOG_URL\u003e\")\n .build());\n\n var foo_cluster = new Catalog(\"foo-cluster\", CatalogArgs.builder() \n .scope(\"cluster\")\n .url(\"https://\u003cCATALOG_URL\u003e\")\n .build());\n\n var foo_project = new Catalog(\"foo-project\", CatalogArgs.builder() \n .scope(\"project\")\n .url(\"https://\u003cCATALOG_URL\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Global Catalog\n foo-global:\n type: rancher2:Catalog\n properties:\n url: https://\u003cCATALOG_URL\u003e\n # Create a new Rancher2 Cluster Catalog\n foo-cluster:\n type: rancher2:Catalog\n properties:\n scope: cluster\n url: https://\u003cCATALOG_URL\u003e\n # Create a new Rancher2 Project Catalog\n foo-project:\n type: rancher2:Catalog\n properties:\n scope: project\n url: https://\u003cCATALOG_URL\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCatalogs can be imported using the Rancher Catalog ID and its scope.\n\n```sh\n $ pulumi import rancher2:index/catalog:Catalog foo \u0026lt;SCOPE\u0026gt;.\u0026lt;CATALOG_ID_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Catalog resource. This can be used to create cluster, global and/or project catalogs for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Global Catalog\nconst foo_global = new rancher2.Catalog(\"foo-global\", {url: \"https://\u003cCATALOG_URL\u003e\"});\n// Create a new Rancher2 Cluster Catalog\nconst foo_cluster = new rancher2.Catalog(\"foo-cluster\", {\n scope: \"cluster\",\n url: \"https://\u003cCATALOG_URL\u003e\",\n});\n// Create a new Rancher2 Project Catalog\nconst foo_project = new rancher2.Catalog(\"foo-project\", {\n scope: \"project\",\n url: \"https://\u003cCATALOG_URL\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Global Catalog\nfoo_global = rancher2.Catalog(\"foo-global\", url=\"https://\u003cCATALOG_URL\u003e\")\n# Create a new Rancher2 Cluster Catalog\nfoo_cluster = rancher2.Catalog(\"foo-cluster\",\n scope=\"cluster\",\n url=\"https://\u003cCATALOG_URL\u003e\")\n# Create a new Rancher2 Project Catalog\nfoo_project = rancher2.Catalog(\"foo-project\",\n scope=\"project\",\n url=\"https://\u003cCATALOG_URL\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Global Catalog\n var foo_global = new Rancher2.Catalog(\"foo-global\", new()\n {\n Url = \"https://\u003cCATALOG_URL\u003e\",\n });\n\n // Create a new Rancher2 Cluster Catalog\n var foo_cluster = new Rancher2.Catalog(\"foo-cluster\", new()\n {\n Scope = \"cluster\",\n Url = \"https://\u003cCATALOG_URL\u003e\",\n });\n\n // Create a new Rancher2 Project Catalog\n var foo_project = new Rancher2.Catalog(\"foo-project\", new()\n {\n Scope = \"project\",\n Url = \"https://\u003cCATALOG_URL\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCatalog(ctx, \"foo-global\", \u0026rancher2.CatalogArgs{\n\t\t\tUrl: pulumi.String(\"https://\u003cCATALOG_URL\u003e\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCatalog(ctx, \"foo-cluster\", \u0026rancher2.CatalogArgs{\n\t\t\tScope: pulumi.String(\"cluster\"),\n\t\t\tUrl: pulumi.String(\"https://\u003cCATALOG_URL\u003e\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCatalog(ctx, \"foo-project\", \u0026rancher2.CatalogArgs{\n\t\t\tScope: pulumi.String(\"project\"),\n\t\t\tUrl: pulumi.String(\"https://\u003cCATALOG_URL\u003e\"),\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.rancher2.Catalog;\nimport com.pulumi.rancher2.CatalogArgs;\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 foo_global = new Catalog(\"foo-global\", CatalogArgs.builder() \n .url(\"https://\u003cCATALOG_URL\u003e\")\n .build());\n\n var foo_cluster = new Catalog(\"foo-cluster\", CatalogArgs.builder() \n .scope(\"cluster\")\n .url(\"https://\u003cCATALOG_URL\u003e\")\n .build());\n\n var foo_project = new Catalog(\"foo-project\", CatalogArgs.builder() \n .scope(\"project\")\n .url(\"https://\u003cCATALOG_URL\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Global Catalog\n foo-global:\n type: rancher2:Catalog\n properties:\n url: https://\u003cCATALOG_URL\u003e\n # Create a new Rancher2 Cluster Catalog\n foo-cluster:\n type: rancher2:Catalog\n properties:\n scope: cluster\n url: https://\u003cCATALOG_URL\u003e\n # Create a new Rancher2 Project Catalog\n foo-project:\n type: rancher2:Catalog\n properties:\n scope: project\n url: https://\u003cCATALOG_URL\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCatalogs can be imported using the Rancher Catalog ID and its scope.\n\n```sh\n $ pulumi import rancher2:index/catalog:Catalog foo \u0026lt;SCOPE\u0026gt;.\u0026lt;CATALOG_ID_ID\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -25375,7 +25071,7 @@ }, "caBundle": { "type": "string", - "description": "PEM encoded CA bundle which will be used to validate the repo's certificate (string)\n" + "description": "CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string)\n" }, "clusterId": { "type": "string", @@ -25451,7 +25147,7 @@ }, "caBundle": { "type": "string", - "description": "PEM encoded CA bundle which will be used to validate the repo's certificate (string)\n" + "description": "CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string)\n" }, "clusterId": { "type": "string", @@ -25521,7 +25217,7 @@ }, "caBundle": { "type": "string", - "description": "PEM encoded CA bundle which will be used to validate the repo's certificate (string)\n" + "description": "CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string)\n" }, "clusterId": { "type": "string", @@ -25733,7 +25429,7 @@ } }, "rancher2:index/cloudCredential:CloudCredential": { - "description": "Provides a Rancher v2 Cloud Credential resource. This can be used to create Cloud Credential for Rancher v2.2.x and retrieve their information.\n\namazonec2, azure, digitalocean, harvester, linode, openstack and vsphere credentials config are supported for Cloud Credential.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cloud Credential\nconst foo = new rancher2.CloudCredential(\"foo\", {\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n description: \"foo test\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cloud Credential\nfoo = rancher2.CloudCredential(\"foo\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ),\n description=\"foo test\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cloud Credential\n var foo = new Rancher2.CloudCredential(\"foo\", new()\n {\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n Description = \"foo test\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCloudCredential(ctx, \"foo\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"foo test\"),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\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 foo = new CloudCredential(\"foo\", CloudCredentialArgs.builder() \n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .description(\"foo test\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cloud Credential\n foo:\n type: rancher2:CloudCredential\n properties:\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n description: foo test\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-harvesterClusterV2 = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvesterCloudCredential\", {harvesterCredentialConfig: {\n clusterId: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.kubeConfig),\n}});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_harvester_cluster_v2 = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvesterCloudCredential\", harvester_credential_config=rancher2.CloudCredentialHarvesterCredentialConfigArgs(\n cluster_id=foo_harvester_cluster_v2.cluster_v1_id,\n cluster_type=\"imported\",\n kubeconfig_content=foo_harvester_cluster_v2.kube_config,\n))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_harvesterClusterV2 = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvesterCloudCredential\", new()\n {\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfoo_harvesterClusterV2, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvesterCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: *pulumi.String(foo_harvesterClusterV2.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: *pulumi.String(foo_harvesterClusterV2.KubeConfig),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo-harvesterClusterV2 = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder() \n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvesterClusterV2.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvesterClusterV2.kubeConfig())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n properties:\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvesterClusterV2\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvesterClusterV2\"].kubeConfig}\nvariables:\n foo-harvesterClusterV2:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCloud Credential can be imported using the Cloud Credential ID and the Driver name.\n\n bash\n\n ```sh\n $ pulumi import rancher2:index/cloudCredential:CloudCredential foo \u0026lt;CLOUD_CREDENTIAL_ID\u0026gt;.\u0026lt;DRIVER\u0026gt;\n```\n\n The following drivers are supported:\n\n * amazonec2\n\n * azure\n\n * digitalocean\n\n * googlekubernetesengine\n\n * linode\n\n * openstack\n\n * s3\n\n * vmwarevsphere\n\n ", + "description": "Provides a Rancher v2 Cloud Credential resource. This can be used to create Cloud Credential for Rancher v2.2.x and retrieve their information.\n\namazonec2, azure, digitalocean, harvester, linode, openstack and vsphere credentials config are supported for Cloud Credential.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cloud Credential\nconst foo = new rancher2.CloudCredential(\"foo\", {\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n description: \"foo test\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cloud Credential\nfoo = rancher2.CloudCredential(\"foo\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ),\n description=\"foo test\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cloud Credential\n var foo = new Rancher2.CloudCredential(\"foo\", new()\n {\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n Description = \"foo test\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCloudCredential(ctx, \"foo\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"foo test\"),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\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 foo = new CloudCredential(\"foo\", CloudCredentialArgs.builder() \n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .description(\"foo test\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cloud Credential\n foo:\n type: rancher2:CloudCredential\n properties:\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n description: foo test\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-harvesterClusterV2 = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvesterCloudCredential\", {harvesterCredentialConfig: {\n clusterId: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.kubeConfig),\n}});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_harvester_cluster_v2 = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvesterCloudCredential\", harvester_credential_config=rancher2.CloudCredentialHarvesterCredentialConfigArgs(\n cluster_id=foo_harvester_cluster_v2.cluster_v1_id,\n cluster_type=\"imported\",\n kubeconfig_content=foo_harvester_cluster_v2.kube_config,\n))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_harvesterClusterV2 = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvesterCloudCredential\", new()\n {\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfoo_harvesterClusterV2, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvesterCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: *pulumi.String(foo_harvesterClusterV2.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: *pulumi.String(foo_harvesterClusterV2.KubeConfig),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo-harvesterClusterV2 = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder() \n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvesterClusterV2.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvesterClusterV2.kubeConfig())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n properties:\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvesterClusterV2\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvesterClusterV2\"].kubeConfig}\nvariables:\n foo-harvesterClusterV2:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCloud Credential can be imported using the Cloud Credential ID and the Driver name.\n\n bash\n\n ```sh\n $ pulumi import rancher2:index/cloudCredential:CloudCredential foo \u0026lt;CLOUD_CREDENTIAL_ID\u0026gt;.\u0026lt;DRIVER\u0026gt;\n```\n\n The following drivers are supported:\n\n * amazonec2\n\n * azure\n\n * digitalocean\n\n * googlekubernetesengine\n\n * linode\n\n * openstack\n\n * s3\n\n * vmwarevsphere\n\n ", "properties": { "amazonec2CredentialConfig": { "$ref": "#/types/rancher2:index/CloudCredentialAmazonec2CredentialConfig:CloudCredentialAmazonec2CredentialConfig", @@ -25934,7 +25630,7 @@ } }, "rancher2:index/cluster:Cluster": { - "description": "Provides a Rancher v2 Cluster resource. This can be used to create Clusters for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n\n**Note optional/computed arguments** If any `optional/computed` argument of this resource is defined by the user, removing it from tf file will NOT reset its value. To reset it, let its definition at tf file as empty/false object. Ex: `enable_cluster_monitoring = false`, `cloud_provider {}`, `name = \"\"`\n{{% example %}}\n### Creating Rancher v2 RKE cluster enabling and customizing monitoring\n\n**Note** Cluster monitoring version `0.2.0` and above, can't be enabled until cluster is fully deployed as [`kubeVersion`](https://github.com/rancher/system-charts/blob/52be656700468904b9bf15c3f39cd7112e1f8c9b/charts/rancher-monitoring/v0.2.0/Chart.yaml#L12) requirement has been introduced to helm chart\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 RKE Cluster\nconst foo_custom = new rancher2.Cluster(\"foo-custom\", {\n clusterMonitoringInput: {\n answers: {\n \"exporter-kubelets.https\": true,\n \"exporter-node.enabled\": true,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": false,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n version: \"0.1.0\",\n },\n description: \"Foo rancher2 custom cluster\",\n enableClusterMonitoring: true,\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 RKE Cluster\nfoo_custom = rancher2.Cluster(\"foo-custom\",\n cluster_monitoring_input=rancher2.ClusterClusterMonitoringInputArgs(\n answers={\n \"exporter-kubelets.https\": True,\n \"exporter-node.enabled\": True,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": False,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n version=\"0.1.0\",\n ),\n description=\"Foo rancher2 custom cluster\",\n enable_cluster_monitoring=True,\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 RKE Cluster\n var foo_custom = new Rancher2.Cluster(\"foo-custom\", new()\n {\n ClusterMonitoringInput = new Rancher2.Inputs.ClusterClusterMonitoringInputArgs\n {\n Answers = \n {\n { \"exporter-kubelets.https\", true },\n { \"exporter-node.enabled\", true },\n { \"exporter-node.ports.metrics.port\", 9796 },\n { \"exporter-node.resources.limits.cpu\", \"200m\" },\n { \"exporter-node.resources.limits.memory\", \"200Mi\" },\n { \"grafana.persistence.enabled\", false },\n { \"grafana.persistence.size\", \"10Gi\" },\n { \"grafana.persistence.storageClass\", \"default\" },\n { \"operator.resources.limits.memory\", \"500Mi\" },\n { \"prometheus.persistence.enabled\", \"false\" },\n { \"prometheus.persistence.size\", \"50Gi\" },\n { \"prometheus.persistence.storageClass\", \"default\" },\n { \"prometheus.persistent.useReleaseName\", \"true\" },\n { \"prometheus.resources.core.limits.cpu\", \"1000m\" },\n { \"prometheus.resources.core.limits.memory\", \"1500Mi\" },\n { \"prometheus.resources.core.requests.cpu\", \"750m\" },\n { \"prometheus.resources.core.requests.memory\", \"750Mi\" },\n { \"prometheus.retention\", \"12h\" },\n },\n Version = \"0.1.0\",\n },\n Description = \"Foo rancher2 custom cluster\",\n EnableClusterMonitoring = true,\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-custom\", \u0026rancher2.ClusterArgs{\n\t\t\tClusterMonitoringInput: \u0026rancher2.ClusterClusterMonitoringInputArgs{\n\t\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\t\"exporter-kubelets.https\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.enabled\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.ports.metrics.port\": pulumi.Any(9796),\n\t\t\t\t\t\"exporter-node.resources.limits.cpu\": pulumi.Any(\"200m\"),\n\t\t\t\t\t\"exporter-node.resources.limits.memory\": pulumi.Any(\"200Mi\"),\n\t\t\t\t\t\"grafana.persistence.enabled\": pulumi.Any(false),\n\t\t\t\t\t\"grafana.persistence.size\": pulumi.Any(\"10Gi\"),\n\t\t\t\t\t\"grafana.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"operator.resources.limits.memory\": pulumi.Any(\"500Mi\"),\n\t\t\t\t\t\"prometheus.persistence.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\t\"prometheus.persistence.size\": pulumi.Any(\"50Gi\"),\n\t\t\t\t\t\"prometheus.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"prometheus.persistent.useReleaseName\": pulumi.Any(\"true\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.memory\": pulumi.Any(\"1500Mi\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.cpu\": pulumi.Any(\"750m\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.memory\": pulumi.Any(\"750Mi\"),\n\t\t\t\t\t\"prometheus.retention\": pulumi.Any(\"12h\"),\n\t\t\t\t},\n\t\t\t\tVersion: pulumi.String(\"0.1.0\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tEnableClusterMonitoring: pulumi.Bool(true),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterClusterMonitoringInputArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\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 foo_custom = new Cluster(\"foo-custom\", ClusterArgs.builder() \n .clusterMonitoringInput(ClusterClusterMonitoringInputArgs.builder()\n .answers(Map.ofEntries(\n Map.entry(\"exporter-kubelets.https\", true),\n Map.entry(\"exporter-node.enabled\", true),\n Map.entry(\"exporter-node.ports.metrics.port\", 9796),\n Map.entry(\"exporter-node.resources.limits.cpu\", \"200m\"),\n Map.entry(\"exporter-node.resources.limits.memory\", \"200Mi\"),\n Map.entry(\"grafana.persistence.enabled\", false),\n Map.entry(\"grafana.persistence.size\", \"10Gi\"),\n Map.entry(\"grafana.persistence.storageClass\", \"default\"),\n Map.entry(\"operator.resources.limits.memory\", \"500Mi\"),\n Map.entry(\"prometheus.persistence.enabled\", \"false\"),\n Map.entry(\"prometheus.persistence.size\", \"50Gi\"),\n Map.entry(\"prometheus.persistence.storageClass\", \"default\"),\n Map.entry(\"prometheus.persistent.useReleaseName\", \"true\"),\n Map.entry(\"prometheus.resources.core.limits.cpu\", \"1000m\"),\n Map.entry(\"prometheus.resources.core.limits.memory\", \"1500Mi\"),\n Map.entry(\"prometheus.resources.core.requests.cpu\", \"750m\"),\n Map.entry(\"prometheus.resources.core.requests.memory\", \"750Mi\"),\n Map.entry(\"prometheus.retention\", \"12h\")\n ))\n .version(\"0.1.0\")\n .build())\n .description(\"Foo rancher2 custom cluster\")\n .enableClusterMonitoring(true)\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 RKE Cluster\n foo-custom:\n type: rancher2:Cluster\n properties:\n clusterMonitoringInput:\n answers:\n exporter-kubelets.https: true\n exporter-node.enabled: true\n exporter-node.ports.metrics.port: 9796\n exporter-node.resources.limits.cpu: 200m\n exporter-node.resources.limits.memory: 200Mi\n grafana.persistence.enabled: false\n grafana.persistence.size: 10Gi\n grafana.persistence.storageClass: default\n operator.resources.limits.memory: 500Mi\n prometheus.persistence.enabled: 'false'\n prometheus.persistence.size: 50Gi\n prometheus.persistence.storageClass: default\n prometheus.persistent.useReleaseName: 'true'\n prometheus.resources.core.limits.cpu: 1000m\n prometheus.resources.core.limits.memory: 1500Mi\n prometheus.resources.core.requests.cpu: 750m\n prometheus.resources.core.requests.memory: 750Mi\n prometheus.retention: 12h\n version: 0.1.0\n description: Foo rancher2 custom cluster\n enableClusterMonitoring: true\n rkeConfig:\n network:\n plugin: canal\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster enabling/customizing monitoring and istio\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 RKE Cluster\nconst foo_customCluster = new rancher2.Cluster(\"foo-customCluster\", {\n description: \"Foo rancher2 custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n enableClusterMonitoring: true,\n clusterMonitoringInput: {\n answers: {\n \"exporter-kubelets.https\": true,\n \"exporter-node.enabled\": true,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": false,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n version: \"0.1.0\",\n },\n});\n// Create a new rancher2 Cluster Sync for foo-custom cluster\nconst foo_customClusterSync = new rancher2.ClusterSync(\"foo-customClusterSync\", {\n clusterId: foo_customCluster.id,\n waitMonitoring: foo_customCluster.enableClusterMonitoring,\n});\n// Create a new rancher2 Namespace\nconst foo_istio = new rancher2.Namespace(\"foo-istio\", {\n projectId: foo_customClusterSync.systemProjectId,\n description: \"istio namespace\",\n});\n// Create a new rancher2 App deploying istio (should wait until monitoring is up and running)\nconst istio = new rancher2.App(\"istio\", {\n catalogName: \"system-library\",\n description: \"Terraform app acceptance test\",\n projectId: foo_istio.projectId,\n templateName: \"rancher-istio\",\n templateVersion: \"0.1.1\",\n targetNamespace: foo_istio.id,\n answers: {\n \"certmanager.enabled\": false,\n enableCRDs: true,\n \"galley.enabled\": true,\n \"gateways.enabled\": false,\n \"gateways.istio-ingressgateway.resources.limits.cpu\": \"2000m\",\n \"gateways.istio-ingressgateway.resources.limits.memory\": \"1024Mi\",\n \"gateways.istio-ingressgateway.resources.requests.cpu\": \"100m\",\n \"gateways.istio-ingressgateway.resources.requests.memory\": \"128Mi\",\n \"gateways.istio-ingressgateway.type\": \"NodePort\",\n \"global.monitoring.type\": \"cluster-monitoring\",\n \"global.rancher.clusterId\": foo_customClusterSync.clusterId,\n \"istio_cni.enabled\": \"false\",\n \"istiocoredns.enabled\": \"false\",\n \"kiali.enabled\": \"true\",\n \"mixer.enabled\": \"true\",\n \"mixer.policy.enabled\": \"true\",\n \"mixer.policy.resources.limits.cpu\": \"4800m\",\n \"mixer.policy.resources.limits.memory\": \"4096Mi\",\n \"mixer.policy.resources.requests.cpu\": \"1000m\",\n \"mixer.policy.resources.requests.memory\": \"1024Mi\",\n \"mixer.telemetry.resources.limits.cpu\": \"4800m\",\n \"mixer.telemetry.resources.limits.memory\": \"4096Mi\",\n \"mixer.telemetry.resources.requests.cpu\": \"1000m\",\n \"mixer.telemetry.resources.requests.memory\": \"1024Mi\",\n \"mtls.enabled\": false,\n \"nodeagent.enabled\": false,\n \"pilot.enabled\": true,\n \"pilot.resources.limits.cpu\": \"1000m\",\n \"pilot.resources.limits.memory\": \"4096Mi\",\n \"pilot.resources.requests.cpu\": \"500m\",\n \"pilot.resources.requests.memory\": \"2048Mi\",\n \"pilot.traceSampling\": \"1\",\n \"security.enabled\": true,\n \"sidecarInjectorWebhook.enabled\": true,\n \"tracing.enabled\": true,\n \"tracing.jaeger.resources.limits.cpu\": \"500m\",\n \"tracing.jaeger.resources.limits.memory\": \"1024Mi\",\n \"tracing.jaeger.resources.requests.cpu\": \"100m\",\n \"tracing.jaeger.resources.requests.memory\": \"100Mi\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 RKE Cluster\nfoo_custom_cluster = rancher2.Cluster(\"foo-customCluster\",\n description=\"Foo rancher2 custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ),\n enable_cluster_monitoring=True,\n cluster_monitoring_input=rancher2.ClusterClusterMonitoringInputArgs(\n answers={\n \"exporter-kubelets.https\": True,\n \"exporter-node.enabled\": True,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": False,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n version=\"0.1.0\",\n ))\n# Create a new rancher2 Cluster Sync for foo-custom cluster\nfoo_custom_cluster_sync = rancher2.ClusterSync(\"foo-customClusterSync\",\n cluster_id=foo_custom_cluster.id,\n wait_monitoring=foo_custom_cluster.enable_cluster_monitoring)\n# Create a new rancher2 Namespace\nfoo_istio = rancher2.Namespace(\"foo-istio\",\n project_id=foo_custom_cluster_sync.system_project_id,\n description=\"istio namespace\")\n# Create a new rancher2 App deploying istio (should wait until monitoring is up and running)\nistio = rancher2.App(\"istio\",\n catalog_name=\"system-library\",\n description=\"Terraform app acceptance test\",\n project_id=foo_istio.project_id,\n template_name=\"rancher-istio\",\n template_version=\"0.1.1\",\n target_namespace=foo_istio.id,\n answers={\n \"certmanager.enabled\": False,\n \"enableCRDs\": True,\n \"galley.enabled\": True,\n \"gateways.enabled\": False,\n \"gateways.istio-ingressgateway.resources.limits.cpu\": \"2000m\",\n \"gateways.istio-ingressgateway.resources.limits.memory\": \"1024Mi\",\n \"gateways.istio-ingressgateway.resources.requests.cpu\": \"100m\",\n \"gateways.istio-ingressgateway.resources.requests.memory\": \"128Mi\",\n \"gateways.istio-ingressgateway.type\": \"NodePort\",\n \"global.monitoring.type\": \"cluster-monitoring\",\n \"global.rancher.clusterId\": foo_custom_cluster_sync.cluster_id,\n \"istio_cni.enabled\": \"false\",\n \"istiocoredns.enabled\": \"false\",\n \"kiali.enabled\": \"true\",\n \"mixer.enabled\": \"true\",\n \"mixer.policy.enabled\": \"true\",\n \"mixer.policy.resources.limits.cpu\": \"4800m\",\n \"mixer.policy.resources.limits.memory\": \"4096Mi\",\n \"mixer.policy.resources.requests.cpu\": \"1000m\",\n \"mixer.policy.resources.requests.memory\": \"1024Mi\",\n \"mixer.telemetry.resources.limits.cpu\": \"4800m\",\n \"mixer.telemetry.resources.limits.memory\": \"4096Mi\",\n \"mixer.telemetry.resources.requests.cpu\": \"1000m\",\n \"mixer.telemetry.resources.requests.memory\": \"1024Mi\",\n \"mtls.enabled\": False,\n \"nodeagent.enabled\": False,\n \"pilot.enabled\": True,\n \"pilot.resources.limits.cpu\": \"1000m\",\n \"pilot.resources.limits.memory\": \"4096Mi\",\n \"pilot.resources.requests.cpu\": \"500m\",\n \"pilot.resources.requests.memory\": \"2048Mi\",\n \"pilot.traceSampling\": \"1\",\n \"security.enabled\": True,\n \"sidecarInjectorWebhook.enabled\": True,\n \"tracing.enabled\": True,\n \"tracing.jaeger.resources.limits.cpu\": \"500m\",\n \"tracing.jaeger.resources.limits.memory\": \"1024Mi\",\n \"tracing.jaeger.resources.requests.cpu\": \"100m\",\n \"tracing.jaeger.resources.requests.memory\": \"100Mi\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 RKE Cluster\n var foo_customCluster = new Rancher2.Cluster(\"foo-customCluster\", new()\n {\n Description = \"Foo rancher2 custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n EnableClusterMonitoring = true,\n ClusterMonitoringInput = new Rancher2.Inputs.ClusterClusterMonitoringInputArgs\n {\n Answers = \n {\n { \"exporter-kubelets.https\", true },\n { \"exporter-node.enabled\", true },\n { \"exporter-node.ports.metrics.port\", 9796 },\n { \"exporter-node.resources.limits.cpu\", \"200m\" },\n { \"exporter-node.resources.limits.memory\", \"200Mi\" },\n { \"grafana.persistence.enabled\", false },\n { \"grafana.persistence.size\", \"10Gi\" },\n { \"grafana.persistence.storageClass\", \"default\" },\n { \"operator.resources.limits.memory\", \"500Mi\" },\n { \"prometheus.persistence.enabled\", \"false\" },\n { \"prometheus.persistence.size\", \"50Gi\" },\n { \"prometheus.persistence.storageClass\", \"default\" },\n { \"prometheus.persistent.useReleaseName\", \"true\" },\n { \"prometheus.resources.core.limits.cpu\", \"1000m\" },\n { \"prometheus.resources.core.limits.memory\", \"1500Mi\" },\n { \"prometheus.resources.core.requests.cpu\", \"750m\" },\n { \"prometheus.resources.core.requests.memory\", \"750Mi\" },\n { \"prometheus.retention\", \"12h\" },\n },\n Version = \"0.1.0\",\n },\n });\n\n // Create a new rancher2 Cluster Sync for foo-custom cluster\n var foo_customClusterSync = new Rancher2.ClusterSync(\"foo-customClusterSync\", new()\n {\n ClusterId = foo_customCluster.Id,\n WaitMonitoring = foo_customCluster.EnableClusterMonitoring,\n });\n\n // Create a new rancher2 Namespace\n var foo_istio = new Rancher2.Namespace(\"foo-istio\", new()\n {\n ProjectId = foo_customClusterSync.SystemProjectId,\n Description = \"istio namespace\",\n });\n\n // Create a new rancher2 App deploying istio (should wait until monitoring is up and running)\n var istio = new Rancher2.App(\"istio\", new()\n {\n CatalogName = \"system-library\",\n Description = \"Terraform app acceptance test\",\n ProjectId = foo_istio.ProjectId,\n TemplateName = \"rancher-istio\",\n TemplateVersion = \"0.1.1\",\n TargetNamespace = foo_istio.Id,\n Answers = \n {\n { \"certmanager.enabled\", false },\n { \"enableCRDs\", true },\n { \"galley.enabled\", true },\n { \"gateways.enabled\", false },\n { \"gateways.istio-ingressgateway.resources.limits.cpu\", \"2000m\" },\n { \"gateways.istio-ingressgateway.resources.limits.memory\", \"1024Mi\" },\n { \"gateways.istio-ingressgateway.resources.requests.cpu\", \"100m\" },\n { \"gateways.istio-ingressgateway.resources.requests.memory\", \"128Mi\" },\n { \"gateways.istio-ingressgateway.type\", \"NodePort\" },\n { \"global.monitoring.type\", \"cluster-monitoring\" },\n { \"global.rancher.clusterId\", foo_customClusterSync.ClusterId },\n { \"istio_cni.enabled\", \"false\" },\n { \"istiocoredns.enabled\", \"false\" },\n { \"kiali.enabled\", \"true\" },\n { \"mixer.enabled\", \"true\" },\n { \"mixer.policy.enabled\", \"true\" },\n { \"mixer.policy.resources.limits.cpu\", \"4800m\" },\n { \"mixer.policy.resources.limits.memory\", \"4096Mi\" },\n { \"mixer.policy.resources.requests.cpu\", \"1000m\" },\n { \"mixer.policy.resources.requests.memory\", \"1024Mi\" },\n { \"mixer.telemetry.resources.limits.cpu\", \"4800m\" },\n { \"mixer.telemetry.resources.limits.memory\", \"4096Mi\" },\n { \"mixer.telemetry.resources.requests.cpu\", \"1000m\" },\n { \"mixer.telemetry.resources.requests.memory\", \"1024Mi\" },\n { \"mtls.enabled\", false },\n { \"nodeagent.enabled\", false },\n { \"pilot.enabled\", true },\n { \"pilot.resources.limits.cpu\", \"1000m\" },\n { \"pilot.resources.limits.memory\", \"4096Mi\" },\n { \"pilot.resources.requests.cpu\", \"500m\" },\n { \"pilot.resources.requests.memory\", \"2048Mi\" },\n { \"pilot.traceSampling\", \"1\" },\n { \"security.enabled\", true },\n { \"sidecarInjectorWebhook.enabled\", true },\n { \"tracing.enabled\", true },\n { \"tracing.jaeger.resources.limits.cpu\", \"500m\" },\n { \"tracing.jaeger.resources.limits.memory\", \"1024Mi\" },\n { \"tracing.jaeger.resources.requests.cpu\", \"100m\" },\n { \"tracing.jaeger.resources.requests.memory\", \"100Mi\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-customCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEnableClusterMonitoring: pulumi.Bool(true),\n\t\t\tClusterMonitoringInput: \u0026rancher2.ClusterClusterMonitoringInputArgs{\n\t\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\t\"exporter-kubelets.https\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.enabled\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.ports.metrics.port\": pulumi.Any(9796),\n\t\t\t\t\t\"exporter-node.resources.limits.cpu\": pulumi.Any(\"200m\"),\n\t\t\t\t\t\"exporter-node.resources.limits.memory\": pulumi.Any(\"200Mi\"),\n\t\t\t\t\t\"grafana.persistence.enabled\": pulumi.Any(false),\n\t\t\t\t\t\"grafana.persistence.size\": pulumi.Any(\"10Gi\"),\n\t\t\t\t\t\"grafana.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"operator.resources.limits.memory\": pulumi.Any(\"500Mi\"),\n\t\t\t\t\t\"prometheus.persistence.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\t\"prometheus.persistence.size\": pulumi.Any(\"50Gi\"),\n\t\t\t\t\t\"prometheus.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"prometheus.persistent.useReleaseName\": pulumi.Any(\"true\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.memory\": pulumi.Any(\"1500Mi\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.cpu\": pulumi.Any(\"750m\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.memory\": pulumi.Any(\"750Mi\"),\n\t\t\t\t\t\"prometheus.retention\": pulumi.Any(\"12h\"),\n\t\t\t\t},\n\t\t\t\tVersion: pulumi.String(\"0.1.0\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewClusterSync(ctx, \"foo-customClusterSync\", \u0026rancher2.ClusterSyncArgs{\n\t\t\tClusterId: foo_customCluster.ID(),\n\t\t\tWaitMonitoring: foo_customCluster.EnableClusterMonitoring,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNamespace(ctx, \"foo-istio\", \u0026rancher2.NamespaceArgs{\n\t\t\tProjectId: foo_customClusterSync.SystemProjectId,\n\t\t\tDescription: pulumi.String(\"istio namespace\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewApp(ctx, \"istio\", \u0026rancher2.AppArgs{\n\t\t\tCatalogName: pulumi.String(\"system-library\"),\n\t\t\tDescription: pulumi.String(\"Terraform app acceptance test\"),\n\t\t\tProjectId: foo_istio.ProjectId,\n\t\t\tTemplateName: pulumi.String(\"rancher-istio\"),\n\t\t\tTemplateVersion: pulumi.String(\"0.1.1\"),\n\t\t\tTargetNamespace: foo_istio.ID(),\n\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\"certmanager.enabled\": pulumi.Any(false),\n\t\t\t\t\"enableCRDs\": pulumi.Any(true),\n\t\t\t\t\"galley.enabled\": pulumi.Any(true),\n\t\t\t\t\"gateways.enabled\": pulumi.Any(false),\n\t\t\t\t\"gateways.istio-ingressgateway.resources.limits.cpu\": pulumi.Any(\"2000m\"),\n\t\t\t\t\"gateways.istio-ingressgateway.resources.limits.memory\": pulumi.Any(\"1024Mi\"),\n\t\t\t\t\"gateways.istio-ingressgateway.resources.requests.cpu\": pulumi.Any(\"100m\"),\n\t\t\t\t\"gateways.istio-ingressgateway.resources.requests.memory\": pulumi.Any(\"128Mi\"),\n\t\t\t\t\"gateways.istio-ingressgateway.type\": pulumi.Any(\"NodePort\"),\n\t\t\t\t\"global.monitoring.type\": pulumi.Any(\"cluster-monitoring\"),\n\t\t\t\t\"global.rancher.clusterId\": foo_customClusterSync.ClusterId,\n\t\t\t\t\"istio_cni.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\"istiocoredns.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\"kiali.enabled\": pulumi.Any(\"true\"),\n\t\t\t\t\"mixer.enabled\": pulumi.Any(\"true\"),\n\t\t\t\t\"mixer.policy.enabled\": pulumi.Any(\"true\"),\n\t\t\t\t\"mixer.policy.resources.limits.cpu\": pulumi.Any(\"4800m\"),\n\t\t\t\t\"mixer.policy.resources.limits.memory\": pulumi.Any(\"4096Mi\"),\n\t\t\t\t\"mixer.policy.resources.requests.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\"mixer.policy.resources.requests.memory\": pulumi.Any(\"1024Mi\"),\n\t\t\t\t\"mixer.telemetry.resources.limits.cpu\": pulumi.Any(\"4800m\"),\n\t\t\t\t\"mixer.telemetry.resources.limits.memory\": pulumi.Any(\"4096Mi\"),\n\t\t\t\t\"mixer.telemetry.resources.requests.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\"mixer.telemetry.resources.requests.memory\": pulumi.Any(\"1024Mi\"),\n\t\t\t\t\"mtls.enabled\": pulumi.Any(false),\n\t\t\t\t\"nodeagent.enabled\": pulumi.Any(false),\n\t\t\t\t\"pilot.enabled\": pulumi.Any(true),\n\t\t\t\t\"pilot.resources.limits.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\"pilot.resources.limits.memory\": pulumi.Any(\"4096Mi\"),\n\t\t\t\t\"pilot.resources.requests.cpu\": pulumi.Any(\"500m\"),\n\t\t\t\t\"pilot.resources.requests.memory\": pulumi.Any(\"2048Mi\"),\n\t\t\t\t\"pilot.traceSampling\": pulumi.Any(\"1\"),\n\t\t\t\t\"security.enabled\": pulumi.Any(true),\n\t\t\t\t\"sidecarInjectorWebhook.enabled\": pulumi.Any(true),\n\t\t\t\t\"tracing.enabled\": pulumi.Any(true),\n\t\t\t\t\"tracing.jaeger.resources.limits.cpu\": pulumi.Any(\"500m\"),\n\t\t\t\t\"tracing.jaeger.resources.limits.memory\": pulumi.Any(\"1024Mi\"),\n\t\t\t\t\"tracing.jaeger.resources.requests.cpu\": pulumi.Any(\"100m\"),\n\t\t\t\t\"tracing.jaeger.resources.requests.memory\": pulumi.Any(\"100Mi\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterClusterMonitoringInputArgs;\nimport com.pulumi.rancher2.ClusterSync;\nimport com.pulumi.rancher2.ClusterSyncArgs;\nimport com.pulumi.rancher2.Namespace;\nimport com.pulumi.rancher2.NamespaceArgs;\nimport com.pulumi.rancher2.App;\nimport com.pulumi.rancher2.AppArgs;\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 foo_customCluster = new Cluster(\"foo-customCluster\", ClusterArgs.builder() \n .description(\"Foo rancher2 custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .enableClusterMonitoring(true)\n .clusterMonitoringInput(ClusterClusterMonitoringInputArgs.builder()\n .answers(Map.ofEntries(\n Map.entry(\"exporter-kubelets.https\", true),\n Map.entry(\"exporter-node.enabled\", true),\n Map.entry(\"exporter-node.ports.metrics.port\", 9796),\n Map.entry(\"exporter-node.resources.limits.cpu\", \"200m\"),\n Map.entry(\"exporter-node.resources.limits.memory\", \"200Mi\"),\n Map.entry(\"grafana.persistence.enabled\", false),\n Map.entry(\"grafana.persistence.size\", \"10Gi\"),\n Map.entry(\"grafana.persistence.storageClass\", \"default\"),\n Map.entry(\"operator.resources.limits.memory\", \"500Mi\"),\n Map.entry(\"prometheus.persistence.enabled\", \"false\"),\n Map.entry(\"prometheus.persistence.size\", \"50Gi\"),\n Map.entry(\"prometheus.persistence.storageClass\", \"default\"),\n Map.entry(\"prometheus.persistent.useReleaseName\", \"true\"),\n Map.entry(\"prometheus.resources.core.limits.cpu\", \"1000m\"),\n Map.entry(\"prometheus.resources.core.limits.memory\", \"1500Mi\"),\n Map.entry(\"prometheus.resources.core.requests.cpu\", \"750m\"),\n Map.entry(\"prometheus.resources.core.requests.memory\", \"750Mi\"),\n Map.entry(\"prometheus.retention\", \"12h\")\n ))\n .version(\"0.1.0\")\n .build())\n .build());\n\n var foo_customClusterSync = new ClusterSync(\"foo-customClusterSync\", ClusterSyncArgs.builder() \n .clusterId(foo_customCluster.id())\n .waitMonitoring(foo_customCluster.enableClusterMonitoring())\n .build());\n\n var foo_istio = new Namespace(\"foo-istio\", NamespaceArgs.builder() \n .projectId(foo_customClusterSync.systemProjectId())\n .description(\"istio namespace\")\n .build());\n\n var istio = new App(\"istio\", AppArgs.builder() \n .catalogName(\"system-library\")\n .description(\"Terraform app acceptance test\")\n .projectId(foo_istio.projectId())\n .templateName(\"rancher-istio\")\n .templateVersion(\"0.1.1\")\n .targetNamespace(foo_istio.id())\n .answers(Map.ofEntries(\n Map.entry(\"certmanager.enabled\", false),\n Map.entry(\"enableCRDs\", true),\n Map.entry(\"galley.enabled\", true),\n Map.entry(\"gateways.enabled\", false),\n Map.entry(\"gateways.istio-ingressgateway.resources.limits.cpu\", \"2000m\"),\n Map.entry(\"gateways.istio-ingressgateway.resources.limits.memory\", \"1024Mi\"),\n Map.entry(\"gateways.istio-ingressgateway.resources.requests.cpu\", \"100m\"),\n Map.entry(\"gateways.istio-ingressgateway.resources.requests.memory\", \"128Mi\"),\n Map.entry(\"gateways.istio-ingressgateway.type\", \"NodePort\"),\n Map.entry(\"global.monitoring.type\", \"cluster-monitoring\"),\n Map.entry(\"global.rancher.clusterId\", foo_customClusterSync.clusterId()),\n Map.entry(\"istio_cni.enabled\", \"false\"),\n Map.entry(\"istiocoredns.enabled\", \"false\"),\n Map.entry(\"kiali.enabled\", \"true\"),\n Map.entry(\"mixer.enabled\", \"true\"),\n Map.entry(\"mixer.policy.enabled\", \"true\"),\n Map.entry(\"mixer.policy.resources.limits.cpu\", \"4800m\"),\n Map.entry(\"mixer.policy.resources.limits.memory\", \"4096Mi\"),\n Map.entry(\"mixer.policy.resources.requests.cpu\", \"1000m\"),\n Map.entry(\"mixer.policy.resources.requests.memory\", \"1024Mi\"),\n Map.entry(\"mixer.telemetry.resources.limits.cpu\", \"4800m\"),\n Map.entry(\"mixer.telemetry.resources.limits.memory\", \"4096Mi\"),\n Map.entry(\"mixer.telemetry.resources.requests.cpu\", \"1000m\"),\n Map.entry(\"mixer.telemetry.resources.requests.memory\", \"1024Mi\"),\n Map.entry(\"mtls.enabled\", false),\n Map.entry(\"nodeagent.enabled\", false),\n Map.entry(\"pilot.enabled\", true),\n Map.entry(\"pilot.resources.limits.cpu\", \"1000m\"),\n Map.entry(\"pilot.resources.limits.memory\", \"4096Mi\"),\n Map.entry(\"pilot.resources.requests.cpu\", \"500m\"),\n Map.entry(\"pilot.resources.requests.memory\", \"2048Mi\"),\n Map.entry(\"pilot.traceSampling\", \"1\"),\n Map.entry(\"security.enabled\", true),\n Map.entry(\"sidecarInjectorWebhook.enabled\", true),\n Map.entry(\"tracing.enabled\", true),\n Map.entry(\"tracing.jaeger.resources.limits.cpu\", \"500m\"),\n Map.entry(\"tracing.jaeger.resources.limits.memory\", \"1024Mi\"),\n Map.entry(\"tracing.jaeger.resources.requests.cpu\", \"100m\"),\n Map.entry(\"tracing.jaeger.resources.requests.memory\", \"100Mi\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 RKE Cluster\n foo-customCluster:\n type: rancher2:Cluster\n properties:\n description: Foo rancher2 custom cluster\n rkeConfig:\n network:\n plugin: canal\n enableClusterMonitoring: true\n clusterMonitoringInput:\n answers:\n exporter-kubelets.https: true\n exporter-node.enabled: true\n exporter-node.ports.metrics.port: 9796\n exporter-node.resources.limits.cpu: 200m\n exporter-node.resources.limits.memory: 200Mi\n grafana.persistence.enabled: false\n grafana.persistence.size: 10Gi\n grafana.persistence.storageClass: default\n operator.resources.limits.memory: 500Mi\n prometheus.persistence.enabled: 'false'\n prometheus.persistence.size: 50Gi\n prometheus.persistence.storageClass: default\n prometheus.persistent.useReleaseName: 'true'\n prometheus.resources.core.limits.cpu: 1000m\n prometheus.resources.core.limits.memory: 1500Mi\n prometheus.resources.core.requests.cpu: 750m\n prometheus.resources.core.requests.memory: 750Mi\n prometheus.retention: 12h\n version: 0.1.0\n # Create a new rancher2 Cluster Sync for foo-custom cluster\n foo-customClusterSync:\n type: rancher2:ClusterSync\n properties:\n clusterId: ${[\"foo-customCluster\"].id}\n waitMonitoring: ${[\"foo-customCluster\"].enableClusterMonitoring}\n # Create a new rancher2 Namespace\n foo-istio:\n type: rancher2:Namespace\n properties:\n projectId: ${[\"foo-customClusterSync\"].systemProjectId}\n description: istio namespace\n # Create a new rancher2 App deploying istio (should wait until monitoring is up and running)\n istio:\n type: rancher2:App\n properties:\n catalogName: system-library\n description: Terraform app acceptance test\n projectId: ${[\"foo-istio\"].projectId}\n templateName: rancher-istio\n templateVersion: 0.1.1\n targetNamespace: ${[\"foo-istio\"].id}\n answers:\n certmanager.enabled: false\n enableCRDs: true\n galley.enabled: true\n gateways.enabled: false\n gateways.istio-ingressgateway.resources.limits.cpu: 2000m\n gateways.istio-ingressgateway.resources.limits.memory: 1024Mi\n gateways.istio-ingressgateway.resources.requests.cpu: 100m\n gateways.istio-ingressgateway.resources.requests.memory: 128Mi\n gateways.istio-ingressgateway.type: NodePort\n global.monitoring.type: cluster-monitoring\n global.rancher.clusterId: ${[\"foo-customClusterSync\"].clusterId}\n istio_cni.enabled: 'false'\n istiocoredns.enabled: 'false'\n kiali.enabled: 'true'\n mixer.enabled: 'true'\n mixer.policy.enabled: 'true'\n mixer.policy.resources.limits.cpu: 4800m\n mixer.policy.resources.limits.memory: 4096Mi\n mixer.policy.resources.requests.cpu: 1000m\n mixer.policy.resources.requests.memory: 1024Mi\n mixer.telemetry.resources.limits.cpu: 4800m\n mixer.telemetry.resources.limits.memory: 4096Mi\n mixer.telemetry.resources.requests.cpu: 1000m\n mixer.telemetry.resources.requests.memory: 1024Mi\n mtls.enabled: false\n nodeagent.enabled: false\n pilot.enabled: true\n pilot.resources.limits.cpu: 1000m\n pilot.resources.limits.memory: 4096Mi\n pilot.resources.requests.cpu: 500m\n pilot.resources.requests.memory: 2048Mi\n pilot.traceSampling: '1'\n security.enabled: true\n sidecarInjectorWebhook.enabled: true\n tracing.enabled: true\n tracing.jaeger.resources.limits.cpu: 500m\n tracing.jaeger.resources.limits.memory: 1024Mi\n tracing.jaeger.resources.requests.cpu: 100m\n tracing.jaeger.resources.requests.memory: 100Mi\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster assigning a node pool (overlapped planes)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 RKE Cluster\nconst foo_custom = new rancher2.Cluster(\"foo-custom\", {\n description: \"Foo rancher2 custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n// Create a new rancher2 Node Template\nconst fooNodeTemplate = new rancher2.NodeTemplate(\"fooNodeTemplate\", {\n description: \"foo test\",\n amazonec2Config: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n// Create a new rancher2 Node Pool\nconst fooNodePool = new rancher2.NodePool(\"fooNodePool\", {\n clusterId: foo_custom.id,\n hostnamePrefix: \"foo-cluster-0\",\n nodeTemplateId: fooNodeTemplate.id,\n quantity: 3,\n controlPlane: true,\n etcd: true,\n worker: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 RKE Cluster\nfoo_custom = rancher2.Cluster(\"foo-custom\",\n description=\"Foo rancher2 custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n# Create a new rancher2 Node Template\nfoo_node_template = rancher2.NodeTemplate(\"fooNodeTemplate\",\n description=\"foo test\",\n amazonec2_config=rancher2.NodeTemplateAmazonec2ConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ami=\"\u003cAMI_ID\u003e\",\n region=\"\u003cREGION\u003e\",\n security_groups=[\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnet_id=\"\u003cSUBNET_ID\u003e\",\n vpc_id=\"\u003cVPC_ID\u003e\",\n zone=\"\u003cZONE\u003e\",\n ))\n# Create a new rancher2 Node Pool\nfoo_node_pool = rancher2.NodePool(\"fooNodePool\",\n cluster_id=foo_custom.id,\n hostname_prefix=\"foo-cluster-0\",\n node_template_id=foo_node_template.id,\n quantity=3,\n control_plane=True,\n etcd=True,\n worker=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 RKE Cluster\n var foo_custom = new Rancher2.Cluster(\"foo-custom\", new()\n {\n Description = \"Foo rancher2 custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n // Create a new rancher2 Node Template\n var fooNodeTemplate = new Rancher2.NodeTemplate(\"fooNodeTemplate\", new()\n {\n Description = \"foo test\",\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n // Create a new rancher2 Node Pool\n var fooNodePool = new Rancher2.NodePool(\"fooNodePool\", new()\n {\n ClusterId = foo_custom.Id,\n HostnamePrefix = \"foo-cluster-0\",\n NodeTemplateId = fooNodeTemplate.Id,\n Quantity = 3,\n ControlPlane = true,\n Etcd = true,\n Worker = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-custom\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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\tfooNodeTemplate, err := rancher2.NewNodeTemplate(ctx, \"fooNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodePool(ctx, \"fooNodePool\", \u0026rancher2.NodePoolArgs{\n\t\t\tClusterId: foo_custom.ID(),\n\t\t\tHostnamePrefix: pulumi.String(\"foo-cluster-0\"),\n\t\t\tNodeTemplateId: fooNodeTemplate.ID(),\n\t\t\tQuantity: pulumi.Int(3),\n\t\t\tControlPlane: pulumi.Bool(true),\n\t\t\tEtcd: pulumi.Bool(true),\n\t\t\tWorker: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\nimport com.pulumi.rancher2.NodePool;\nimport com.pulumi.rancher2.NodePoolArgs;\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 foo_custom = new Cluster(\"foo-custom\", ClusterArgs.builder() \n .description(\"Foo rancher2 custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n var fooNodeTemplate = new NodeTemplate(\"fooNodeTemplate\", NodeTemplateArgs.builder() \n .description(\"foo test\")\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n var fooNodePool = new NodePool(\"fooNodePool\", NodePoolArgs.builder() \n .clusterId(foo_custom.id())\n .hostnamePrefix(\"foo-cluster-0\")\n .nodeTemplateId(fooNodeTemplate.id())\n .quantity(3)\n .controlPlane(true)\n .etcd(true)\n .worker(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 RKE Cluster\n foo-custom:\n type: rancher2:Cluster\n properties:\n description: Foo rancher2 custom cluster\n rkeConfig:\n network:\n plugin: canal\n # Create a new rancher2 Node Template\n fooNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n description: foo test\n amazonec2Config:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n # Create a new rancher2 Node Pool\n fooNodePool:\n type: rancher2:NodePool\n properties:\n clusterId: ${[\"foo-custom\"].id}\n hostnamePrefix: foo-cluster-0\n nodeTemplateId: ${fooNodeTemplate.id}\n quantity: 3\n controlPlane: true\n etcd: true\n worker: true\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster from template. For Rancher v2.3.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 cluster template\nconst fooClusterTemplate = new rancher2.ClusterTemplate(\"fooClusterTemplate\", {\n members: [{\n accessType: \"owner\",\n userPrincipalId: \"local://user-XXXXX\",\n }],\n templateRevisions: [{\n name: \"V1\",\n clusterConfig: {\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n services: {\n etcd: {\n creation: \"6h\",\n retention: \"24h\",\n },\n },\n },\n },\n \"default\": true,\n }],\n description: \"Test cluster template v2\",\n});\n// Create a new rancher2 RKE Cluster from template\nconst fooCluster = new rancher2.Cluster(\"fooCluster\", {\n clusterTemplateId: fooClusterTemplate.id,\n clusterTemplateRevisionId: fooClusterTemplate.templateRevisions.apply(templateRevisions =\u003e templateRevisions[0].id),\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 cluster template\nfoo_cluster_template = rancher2.ClusterTemplate(\"fooClusterTemplate\",\n members=[rancher2.ClusterTemplateMemberArgs(\n access_type=\"owner\",\n user_principal_id=\"local://user-XXXXX\",\n )],\n template_revisions=[rancher2.ClusterTemplateTemplateRevisionArgs(\n name=\"V1\",\n cluster_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs(\n rke_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs(\n network=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n services=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs(\n etcd=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs(\n creation=\"6h\",\n retention=\"24h\",\n ),\n ),\n ),\n ),\n default=True,\n )],\n description=\"Test cluster template v2\")\n# Create a new rancher2 RKE Cluster from template\nfoo_cluster = rancher2.Cluster(\"fooCluster\",\n cluster_template_id=foo_cluster_template.id,\n cluster_template_revision_id=foo_cluster_template.template_revisions[0].id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 cluster template\n var fooClusterTemplate = new Rancher2.ClusterTemplate(\"fooClusterTemplate\", new()\n {\n Members = new[]\n {\n new Rancher2.Inputs.ClusterTemplateMemberArgs\n {\n AccessType = \"owner\",\n UserPrincipalId = \"local://user-XXXXX\",\n },\n },\n TemplateRevisions = new[]\n {\n new Rancher2.Inputs.ClusterTemplateTemplateRevisionArgs\n {\n Name = \"V1\",\n ClusterConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigArgs\n {\n RkeConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n Services = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs\n {\n Etcd = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs\n {\n Creation = \"6h\",\n Retention = \"24h\",\n },\n },\n },\n },\n Default = true,\n },\n },\n Description = \"Test cluster template v2\",\n });\n\n // Create a new rancher2 RKE Cluster from template\n var fooCluster = new Rancher2.Cluster(\"fooCluster\", new()\n {\n ClusterTemplateId = fooClusterTemplate.Id,\n ClusterTemplateRevisionId = fooClusterTemplate.TemplateRevisions.Apply(templateRevisions =\u003e templateRevisions[0].Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooClusterTemplate, err := rancher2.NewClusterTemplate(ctx, \"fooClusterTemplate\", \u0026rancher2.ClusterTemplateArgs{\n\t\t\tMembers: rancher2.ClusterTemplateMemberArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateMemberArgs{\n\t\t\t\t\tAccessType: pulumi.String(\"owner\"),\n\t\t\t\t\tUserPrincipalId: pulumi.String(\"local://user-XXXXX\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateRevisions: rancher2.ClusterTemplateTemplateRevisionArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateTemplateRevisionArgs{\n\t\t\t\t\tName: pulumi.String(\"V1\"),\n\t\t\t\t\tClusterConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs{\n\t\t\t\t\t\tRkeConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs{\n\t\t\t\t\t\t\tNetwork: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{\n\t\t\t\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tServices: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{\n\t\t\t\t\t\t\t\tEtcd: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{\n\t\t\t\t\t\t\t\t\tCreation: pulumi.String(\"6h\"),\n\t\t\t\t\t\t\t\t\tRetention: pulumi.String(\"24h\"),\n\t\t\t\t\t\t\t\t},\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\tDefault: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"Test cluster template v2\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"fooCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tClusterTemplateId: fooClusterTemplate.ID(),\n\t\t\tClusterTemplateRevisionId: fooClusterTemplate.TemplateRevisions.ApplyT(func(templateRevisions []rancher2.ClusterTemplateTemplateRevision) (*string, error) {\n\t\t\t\treturn \u0026templateRevisions[0].Id, nil\n\t\t\t}).(pulumi.StringPtrOutput),\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.rancher2.ClusterTemplate;\nimport com.pulumi.rancher2.ClusterTemplateArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateMemberArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\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 fooClusterTemplate = new ClusterTemplate(\"fooClusterTemplate\", ClusterTemplateArgs.builder() \n .members(ClusterTemplateMemberArgs.builder()\n .accessType(\"owner\")\n .userPrincipalId(\"local://user-XXXXX\")\n .build())\n .templateRevisions(ClusterTemplateTemplateRevisionArgs.builder()\n .name(\"V1\")\n .clusterConfig(ClusterTemplateTemplateRevisionClusterConfigArgs.builder()\n .rkeConfig(ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs.builder()\n .network(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .services(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs.builder()\n .etcd(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs.builder()\n .creation(\"6h\")\n .retention(\"24h\")\n .build())\n .build())\n .build())\n .build())\n .default_(true)\n .build())\n .description(\"Test cluster template v2\")\n .build());\n\n var fooCluster = new Cluster(\"fooCluster\", ClusterArgs.builder() \n .clusterTemplateId(fooClusterTemplate.id())\n .clusterTemplateRevisionId(fooClusterTemplate.templateRevisions().applyValue(templateRevisions -\u003e templateRevisions[0].id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 cluster template\n fooClusterTemplate:\n type: rancher2:ClusterTemplate\n properties:\n members:\n - accessType: owner\n userPrincipalId: local://user-XXXXX\n templateRevisions:\n - name: V1\n clusterConfig:\n rkeConfig:\n network:\n plugin: canal\n services:\n etcd:\n creation: 6h\n retention: 24h\n default: true\n description: Test cluster template v2\n # Create a new rancher2 RKE Cluster from template\n fooCluster:\n type: rancher2:Cluster\n properties:\n clusterTemplateId: ${fooClusterTemplate.id}\n clusterTemplateRevisionId: ${fooClusterTemplate.templateRevisions[0].id}\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster with upgrade strategy. For Rancher v2.4.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = new rancher2.Cluster(\"foo\", {\n description: \"Terraform custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n services: {\n etcd: {\n creation: \"6h\",\n retention: \"24h\",\n },\n kubeApi: {\n auditLog: {\n configuration: {\n format: \"json\",\n maxAge: 5,\n maxBackup: 5,\n maxSize: 100,\n path: \"-\",\n policy: `apiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n`,\n },\n enabled: true,\n },\n },\n },\n upgradeStrategy: {\n drain: true,\n maxUnavailableWorker: \"20%\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.Cluster(\"foo\",\n description=\"Terraform custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n services=rancher2.ClusterRkeConfigServicesArgs(\n etcd=rancher2.ClusterRkeConfigServicesEtcdArgs(\n creation=\"6h\",\n retention=\"24h\",\n ),\n kube_api=rancher2.ClusterRkeConfigServicesKubeApiArgs(\n audit_log=rancher2.ClusterRkeConfigServicesKubeApiAuditLogArgs(\n configuration=rancher2.ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs(\n format=\"json\",\n max_age=5,\n max_backup=5,\n max_size=100,\n path=\"-\",\n policy=\"\"\"apiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n\"\"\",\n ),\n enabled=True,\n ),\n ),\n ),\n upgrade_strategy=rancher2.ClusterRkeConfigUpgradeStrategyArgs(\n drain=True,\n max_unavailable_worker=\"20%\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = new Rancher2.Cluster(\"foo\", new()\n {\n Description = \"Terraform custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n Services = new Rancher2.Inputs.ClusterRkeConfigServicesArgs\n {\n Etcd = new Rancher2.Inputs.ClusterRkeConfigServicesEtcdArgs\n {\n Creation = \"6h\",\n Retention = \"24h\",\n },\n KubeApi = new Rancher2.Inputs.ClusterRkeConfigServicesKubeApiArgs\n {\n AuditLog = new Rancher2.Inputs.ClusterRkeConfigServicesKubeApiAuditLogArgs\n {\n Configuration = new Rancher2.Inputs.ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs\n {\n Format = \"json\",\n MaxAge = 5,\n MaxBackup = 5,\n MaxSize = 100,\n Path = \"-\",\n Policy = @\"apiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n\",\n },\n Enabled = true,\n },\n },\n },\n UpgradeStrategy = new Rancher2.Inputs.ClusterRkeConfigUpgradeStrategyArgs\n {\n Drain = true,\n MaxUnavailableWorker = \"20%\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t},\n\t\t\t\tServices: \u0026rancher2.ClusterRkeConfigServicesArgs{\n\t\t\t\t\tEtcd: \u0026rancher2.ClusterRkeConfigServicesEtcdArgs{\n\t\t\t\t\t\tCreation: pulumi.String(\"6h\"),\n\t\t\t\t\t\tRetention: pulumi.String(\"24h\"),\n\t\t\t\t\t},\n\t\t\t\t\tKubeApi: \u0026rancher2.ClusterRkeConfigServicesKubeApiArgs{\n\t\t\t\t\t\tAuditLog: \u0026rancher2.ClusterRkeConfigServicesKubeApiAuditLogArgs{\n\t\t\t\t\t\t\tConfiguration: \u0026rancher2.ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs{\n\t\t\t\t\t\t\t\tFormat: pulumi.String(\"json\"),\n\t\t\t\t\t\t\t\tMaxAge: pulumi.Int(5),\n\t\t\t\t\t\t\t\tMaxBackup: pulumi.Int(5),\n\t\t\t\t\t\t\t\tMaxSize: pulumi.Int(100),\n\t\t\t\t\t\t\t\tPath: pulumi.String(\"-\"),\n\t\t\t\t\t\t\t\tPolicy: pulumi.String(`apiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n`),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tUpgradeStrategy: \u0026rancher2.ClusterRkeConfigUpgradeStrategyArgs{\n\t\t\t\t\tDrain: pulumi.Bool(true),\n\t\t\t\t\tMaxUnavailableWorker: pulumi.String(\"20%\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesEtcdArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesKubeApiArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesKubeApiAuditLogArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigUpgradeStrategyArgs;\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 foo = new Cluster(\"foo\", ClusterArgs.builder() \n .description(\"Terraform custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .services(ClusterRkeConfigServicesArgs.builder()\n .etcd(ClusterRkeConfigServicesEtcdArgs.builder()\n .creation(\"6h\")\n .retention(\"24h\")\n .build())\n .kubeApi(ClusterRkeConfigServicesKubeApiArgs.builder()\n .auditLog(ClusterRkeConfigServicesKubeApiAuditLogArgs.builder()\n .configuration(ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs.builder()\n .format(\"json\")\n .maxAge(5)\n .maxBackup(5)\n .maxSize(100)\n .path(\"-\")\n .policy(\"\"\"\napiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n \"\"\")\n .build())\n .enabled(true)\n .build())\n .build())\n .build())\n .upgradeStrategy(ClusterRkeConfigUpgradeStrategyArgs.builder()\n .drain(true)\n .maxUnavailableWorker(\"20%\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: rancher2:Cluster\n properties:\n description: Terraform custom cluster\n rkeConfig:\n network:\n plugin: canal\n services:\n etcd:\n creation: 6h\n retention: 24h\n kubeApi:\n auditLog:\n configuration:\n format: json\n maxAge: 5\n maxBackup: 5\n maxSize: 100\n path: '-'\n policy: |+\n apiVersion: audit.k8s.io/v1\n kind: Policy\n metadata:\n creationTimestamp: null\n omitStages:\n - RequestReceived\n rules:\n - level: RequestResponse\n resources:\n - resources:\n - pods\n\n enabled: true\n upgradeStrategy:\n drain: true\n maxUnavailableWorker: 20%\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster with cluster agent customization. For Rancher v2.7.5 and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = new rancher2.Cluster(\"foo\", {\n clusterAgentDeploymentCustomizations: [{\n appendTolerations: [{\n effect: \"NoSchedule\",\n key: \"tolerate/control-plane\",\n value: \"true\",\n }],\n overrideAffinity: `{\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n}\n\n`,\n overrideResourceRequirements: [{\n cpuLimit: \"800\",\n cpuRequest: \"500\",\n memoryLimit: \"800\",\n memoryRequest: \"500\",\n }],\n }],\n description: \"Terraform cluster with agent customization\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.Cluster(\"foo\",\n cluster_agent_deployment_customizations=[rancher2.ClusterClusterAgentDeploymentCustomizationArgs(\n append_tolerations=[rancher2.ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs(\n effect=\"NoSchedule\",\n key=\"tolerate/control-plane\",\n value=\"true\",\n )],\n override_affinity=\"\"\"{\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n}\n\n\"\"\",\n override_resource_requirements=[rancher2.ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs(\n cpu_limit=\"800\",\n cpu_request=\"500\",\n memory_limit=\"800\",\n memory_request=\"500\",\n )],\n )],\n description=\"Terraform cluster with agent customization\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = new Rancher2.Cluster(\"foo\", new()\n {\n ClusterAgentDeploymentCustomizations = new[]\n {\n new Rancher2.Inputs.ClusterClusterAgentDeploymentCustomizationArgs\n {\n AppendTolerations = new[]\n {\n new Rancher2.Inputs.ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs\n {\n Effect = \"NoSchedule\",\n Key = \"tolerate/control-plane\",\n Value = \"true\",\n },\n },\n OverrideAffinity = @\"{\n \"\"nodeAffinity\"\": {\n \"\"requiredDuringSchedulingIgnoredDuringExecution\"\": {\n \"\"nodeSelectorTerms\"\": [{\n \"\"matchExpressions\"\": [{\n \"\"key\"\": \"\"not.this/nodepool\"\",\n \"\"operator\"\": \"\"In\"\",\n \"\"values\"\": [\n \"\"true\"\"\n ]\n }]\n }]\n }\n }\n}\n\n\",\n OverrideResourceRequirements = new[]\n {\n new Rancher2.Inputs.ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs\n {\n CpuLimit = \"800\",\n CpuRequest = \"500\",\n MemoryLimit = \"800\",\n MemoryRequest = \"500\",\n },\n },\n },\n },\n Description = \"Terraform cluster with agent customization\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo\", \u0026rancher2.ClusterArgs{\n\t\t\tClusterAgentDeploymentCustomizations: rancher2.ClusterClusterAgentDeploymentCustomizationArray{\n\t\t\t\t\u0026rancher2.ClusterClusterAgentDeploymentCustomizationArgs{\n\t\t\t\t\tAppendTolerations: rancher2.ClusterClusterAgentDeploymentCustomizationAppendTolerationArray{\n\t\t\t\t\t\t\u0026rancher2.ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs{\n\t\t\t\t\t\t\tEffect: pulumi.String(\"NoSchedule\"),\n\t\t\t\t\t\t\tKey: pulumi.String(\"tolerate/control-plane\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"true\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tOverrideAffinity: pulumi.String(`{\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n}\n\n`),\n\t\t\t\t\tOverrideResourceRequirements: rancher2.ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray{\n\t\t\t\t\t\t\u0026rancher2.ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{\n\t\t\t\t\t\t\tCpuLimit: pulumi.String(\"800\"),\n\t\t\t\t\t\t\tCpuRequest: pulumi.String(\"500\"),\n\t\t\t\t\t\t\tMemoryLimit: pulumi.String(\"800\"),\n\t\t\t\t\t\t\tMemoryRequest: pulumi.String(\"500\"),\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\tDescription: pulumi.String(\"Terraform cluster with agent customization\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterClusterAgentDeploymentCustomizationArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\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 foo = new Cluster(\"foo\", ClusterArgs.builder() \n .clusterAgentDeploymentCustomizations(ClusterClusterAgentDeploymentCustomizationArgs.builder()\n .appendTolerations(ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs.builder()\n .effect(\"NoSchedule\")\n .key(\"tolerate/control-plane\")\n .value(\"true\")\n .build())\n .overrideAffinity(\"\"\"\n{\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n}\n\n \"\"\")\n .overrideResourceRequirements(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs.builder()\n .cpuLimit(\"800\")\n .cpuRequest(\"500\")\n .memoryLimit(\"800\")\n .memoryRequest(\"500\")\n .build())\n .build())\n .description(\"Terraform cluster with agent customization\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: rancher2:Cluster\n properties:\n clusterAgentDeploymentCustomizations:\n - appendTolerations:\n - effect: NoSchedule\n key: tolerate/control-plane\n value: 'true'\n overrideAffinity: |+\n {\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n }\n\n overrideResourceRequirements:\n - cpuLimit: '800'\n cpuRequest: '500'\n memoryLimit: '800'\n memoryRequest: '500'\n description: Terraform cluster with agent customization\n rkeConfig:\n network:\n plugin: canal\n```\n{{% /example %}}\n{{% example %}}\n### Importing EKS cluster to Rancher v2, using `eks_config_v2`. For Rancher v2.5.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst fooCloudCredential = new rancher2.CloudCredential(\"fooCloudCredential\", {\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooCluster = new rancher2.Cluster(\"fooCluster\", {\n description: \"Terraform EKS cluster\",\n eksConfigV2: {\n cloudCredentialId: fooCloudCredential.id,\n name: \"\u003cCLUSTER_NAME\u003e\",\n region: \"\u003cEKS_REGION\u003e\",\n imported: true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_cloud_credential = rancher2.CloudCredential(\"fooCloudCredential\",\n description=\"foo test\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ))\nfoo_cluster = rancher2.Cluster(\"fooCluster\",\n description=\"Terraform EKS cluster\",\n eks_config_v2=rancher2.ClusterEksConfigV2Args(\n cloud_credential_id=foo_cloud_credential.id,\n name=\"\u003cCLUSTER_NAME\u003e\",\n region=\"\u003cEKS_REGION\u003e\",\n imported=True,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooCloudCredential = new Rancher2.CloudCredential(\"fooCloudCredential\", new()\n {\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooCluster = new Rancher2.Cluster(\"fooCluster\", new()\n {\n Description = \"Terraform EKS cluster\",\n EksConfigV2 = new Rancher2.Inputs.ClusterEksConfigV2Args\n {\n CloudCredentialId = fooCloudCredential.Id,\n Name = \"\u003cCLUSTER_NAME\u003e\",\n Region = \"\u003cEKS_REGION\u003e\",\n Imported = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooCloudCredential, err := rancher2.NewCloudCredential(ctx, \"fooCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"fooCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform EKS cluster\"),\n\t\t\tEksConfigV2: \u0026rancher2.ClusterEksConfigV2Args{\n\t\t\t\tCloudCredentialId: fooCloudCredential.ID(),\n\t\t\t\tName: pulumi.String(\"\u003cCLUSTER_NAME\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cEKS_REGION\u003e\"),\n\t\t\t\tImported: pulumi.Bool(true),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterEksConfigV2Args;\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 fooCloudCredential = new CloudCredential(\"fooCloudCredential\", CloudCredentialArgs.builder() \n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooCluster = new Cluster(\"fooCluster\", ClusterArgs.builder() \n .description(\"Terraform EKS cluster\")\n .eksConfigV2(ClusterEksConfigV2Args.builder()\n .cloudCredentialId(fooCloudCredential.id())\n .name(\"\u003cCLUSTER_NAME\u003e\")\n .region(\"\u003cEKS_REGION\u003e\")\n .imported(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooCloudCredential:\n type: rancher2:CloudCredential\n properties:\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooCluster:\n type: rancher2:Cluster\n properties:\n description: Terraform EKS cluster\n eksConfigV2:\n cloudCredentialId: ${fooCloudCredential.id}\n name: \u003cCLUSTER_NAME\u003e\n region: \u003cEKS_REGION\u003e\n imported: true\n```\n{{% /example %}}\n{{% example %}}\n### Creating EKS cluster from Rancher v2, using `eks_config_v2`. For Rancher v2.5.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst fooCloudCredential = new rancher2.CloudCredential(\"fooCloudCredential\", {\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooCluster = new rancher2.Cluster(\"fooCluster\", {\n description: \"Terraform EKS cluster\",\n eksConfigV2: {\n cloudCredentialId: fooCloudCredential.id,\n region: \"\u003cEKS_REGION\u003e\",\n kubernetesVersion: \"1.24\",\n loggingTypes: [\n \"audit\",\n \"api\",\n ],\n nodeGroups: [\n {\n name: \"node_group1\",\n instanceType: \"t3.medium\",\n desiredSize: 3,\n maxSize: 5,\n },\n {\n name: \"node_group2\",\n instanceType: \"m5.xlarge\",\n desiredSize: 2,\n maxSize: 3,\n nodeRole: \"arn:aws:iam::role/test-NodeInstanceRole\",\n },\n ],\n privateAccess: true,\n publicAccess: false,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_cloud_credential = rancher2.CloudCredential(\"fooCloudCredential\",\n description=\"foo test\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ))\nfoo_cluster = rancher2.Cluster(\"fooCluster\",\n description=\"Terraform EKS cluster\",\n eks_config_v2=rancher2.ClusterEksConfigV2Args(\n cloud_credential_id=foo_cloud_credential.id,\n region=\"\u003cEKS_REGION\u003e\",\n kubernetes_version=\"1.24\",\n logging_types=[\n \"audit\",\n \"api\",\n ],\n node_groups=[\n rancher2.ClusterEksConfigV2NodeGroupArgs(\n name=\"node_group1\",\n instance_type=\"t3.medium\",\n desired_size=3,\n max_size=5,\n ),\n rancher2.ClusterEksConfigV2NodeGroupArgs(\n name=\"node_group2\",\n instance_type=\"m5.xlarge\",\n desired_size=2,\n max_size=3,\n node_role=\"arn:aws:iam::role/test-NodeInstanceRole\",\n ),\n ],\n private_access=True,\n public_access=False,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooCloudCredential = new Rancher2.CloudCredential(\"fooCloudCredential\", new()\n {\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooCluster = new Rancher2.Cluster(\"fooCluster\", new()\n {\n Description = \"Terraform EKS cluster\",\n EksConfigV2 = new Rancher2.Inputs.ClusterEksConfigV2Args\n {\n CloudCredentialId = fooCloudCredential.Id,\n Region = \"\u003cEKS_REGION\u003e\",\n KubernetesVersion = \"1.24\",\n LoggingTypes = new[]\n {\n \"audit\",\n \"api\",\n },\n NodeGroups = new[]\n {\n new Rancher2.Inputs.ClusterEksConfigV2NodeGroupArgs\n {\n Name = \"node_group1\",\n InstanceType = \"t3.medium\",\n DesiredSize = 3,\n MaxSize = 5,\n },\n new Rancher2.Inputs.ClusterEksConfigV2NodeGroupArgs\n {\n Name = \"node_group2\",\n InstanceType = \"m5.xlarge\",\n DesiredSize = 2,\n MaxSize = 3,\n NodeRole = \"arn:aws:iam::role/test-NodeInstanceRole\",\n },\n },\n PrivateAccess = true,\n PublicAccess = false,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooCloudCredential, err := rancher2.NewCloudCredential(ctx, \"fooCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"fooCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform EKS cluster\"),\n\t\t\tEksConfigV2: \u0026rancher2.ClusterEksConfigV2Args{\n\t\t\t\tCloudCredentialId: fooCloudCredential.ID(),\n\t\t\t\tRegion: pulumi.String(\"\u003cEKS_REGION\u003e\"),\n\t\t\t\tKubernetesVersion: pulumi.String(\"1.24\"),\n\t\t\t\tLoggingTypes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"audit\"),\n\t\t\t\t\tpulumi.String(\"api\"),\n\t\t\t\t},\n\t\t\t\tNodeGroups: rancher2.ClusterEksConfigV2NodeGroupArray{\n\t\t\t\t\t\u0026rancher2.ClusterEksConfigV2NodeGroupArgs{\n\t\t\t\t\t\tName: pulumi.String(\"node_group1\"),\n\t\t\t\t\t\tInstanceType: pulumi.String(\"t3.medium\"),\n\t\t\t\t\t\tDesiredSize: pulumi.Int(3),\n\t\t\t\t\t\tMaxSize: pulumi.Int(5),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.ClusterEksConfigV2NodeGroupArgs{\n\t\t\t\t\t\tName: pulumi.String(\"node_group2\"),\n\t\t\t\t\t\tInstanceType: pulumi.String(\"m5.xlarge\"),\n\t\t\t\t\t\tDesiredSize: pulumi.Int(2),\n\t\t\t\t\t\tMaxSize: pulumi.Int(3),\n\t\t\t\t\t\tNodeRole: pulumi.String(\"arn:aws:iam::role/test-NodeInstanceRole\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tPrivateAccess: pulumi.Bool(true),\n\t\t\t\tPublicAccess: pulumi.Bool(false),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterEksConfigV2Args;\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 fooCloudCredential = new CloudCredential(\"fooCloudCredential\", CloudCredentialArgs.builder() \n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooCluster = new Cluster(\"fooCluster\", ClusterArgs.builder() \n .description(\"Terraform EKS cluster\")\n .eksConfigV2(ClusterEksConfigV2Args.builder()\n .cloudCredentialId(fooCloudCredential.id())\n .region(\"\u003cEKS_REGION\u003e\")\n .kubernetesVersion(\"1.24\")\n .loggingTypes( \n \"audit\",\n \"api\")\n .nodeGroups( \n ClusterEksConfigV2NodeGroupArgs.builder()\n .name(\"node_group1\")\n .instanceType(\"t3.medium\")\n .desiredSize(3)\n .maxSize(5)\n .build(),\n ClusterEksConfigV2NodeGroupArgs.builder()\n .name(\"node_group2\")\n .instanceType(\"m5.xlarge\")\n .desiredSize(2)\n .maxSize(3)\n .nodeRole(\"arn:aws:iam::role/test-NodeInstanceRole\")\n .build())\n .privateAccess(true)\n .publicAccess(false)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooCloudCredential:\n type: rancher2:CloudCredential\n properties:\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooCluster:\n type: rancher2:Cluster\n properties:\n description: Terraform EKS cluster\n eksConfigV2:\n cloudCredentialId: ${fooCloudCredential.id}\n region: \u003cEKS_REGION\u003e\n kubernetesVersion: '1.24'\n loggingTypes:\n - audit\n - api\n nodeGroups:\n - name: node_group1\n instanceType: t3.medium\n desiredSize: 3\n maxSize: 5\n - name: node_group2\n instanceType: m5.xlarge\n desiredSize: 2\n maxSize: 3\n nodeRole: arn:aws:iam::role/test-NodeInstanceRole\n privateAccess: true\n publicAccess: false\n```\n{{% /example %}}\n{{% example %}}\n### Creating EKS cluster from Rancher v2, using `eks_config_v2` and launch template. For Rancher v2.5.6 and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst fooCloudCredential = new rancher2.CloudCredential(\"fooCloudCredential\", {\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooCluster = new rancher2.Cluster(\"fooCluster\", {\n description: \"Terraform EKS cluster\",\n eksConfigV2: {\n cloudCredentialId: fooCloudCredential.id,\n region: \"\u003cEKS_REGION\u003e\",\n kubernetesVersion: \"1.24\",\n loggingTypes: [\n \"audit\",\n \"api\",\n ],\n nodeGroups: [{\n desiredSize: 3,\n maxSize: 5,\n name: \"node_group1\",\n launchTemplates: [{\n id: \"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\",\n version: 1,\n }],\n }],\n privateAccess: true,\n publicAccess: true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_cloud_credential = rancher2.CloudCredential(\"fooCloudCredential\",\n description=\"foo test\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ))\nfoo_cluster = rancher2.Cluster(\"fooCluster\",\n description=\"Terraform EKS cluster\",\n eks_config_v2=rancher2.ClusterEksConfigV2Args(\n cloud_credential_id=foo_cloud_credential.id,\n region=\"\u003cEKS_REGION\u003e\",\n kubernetes_version=\"1.24\",\n logging_types=[\n \"audit\",\n \"api\",\n ],\n node_groups=[rancher2.ClusterEksConfigV2NodeGroupArgs(\n desired_size=3,\n max_size=5,\n name=\"node_group1\",\n launch_templates=[rancher2.ClusterEksConfigV2NodeGroupLaunchTemplateArgs(\n id=\"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\",\n version=1,\n )],\n )],\n private_access=True,\n public_access=True,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooCloudCredential = new Rancher2.CloudCredential(\"fooCloudCredential\", new()\n {\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooCluster = new Rancher2.Cluster(\"fooCluster\", new()\n {\n Description = \"Terraform EKS cluster\",\n EksConfigV2 = new Rancher2.Inputs.ClusterEksConfigV2Args\n {\n CloudCredentialId = fooCloudCredential.Id,\n Region = \"\u003cEKS_REGION\u003e\",\n KubernetesVersion = \"1.24\",\n LoggingTypes = new[]\n {\n \"audit\",\n \"api\",\n },\n NodeGroups = new[]\n {\n new Rancher2.Inputs.ClusterEksConfigV2NodeGroupArgs\n {\n DesiredSize = 3,\n MaxSize = 5,\n Name = \"node_group1\",\n LaunchTemplates = new[]\n {\n new Rancher2.Inputs.ClusterEksConfigV2NodeGroupLaunchTemplateArgs\n {\n Id = \"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\",\n Version = 1,\n },\n },\n },\n },\n PrivateAccess = true,\n PublicAccess = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooCloudCredential, err := rancher2.NewCloudCredential(ctx, \"fooCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"fooCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform EKS cluster\"),\n\t\t\tEksConfigV2: \u0026rancher2.ClusterEksConfigV2Args{\n\t\t\t\tCloudCredentialId: fooCloudCredential.ID(),\n\t\t\t\tRegion: pulumi.String(\"\u003cEKS_REGION\u003e\"),\n\t\t\t\tKubernetesVersion: pulumi.String(\"1.24\"),\n\t\t\t\tLoggingTypes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"audit\"),\n\t\t\t\t\tpulumi.String(\"api\"),\n\t\t\t\t},\n\t\t\t\tNodeGroups: rancher2.ClusterEksConfigV2NodeGroupArray{\n\t\t\t\t\t\u0026rancher2.ClusterEksConfigV2NodeGroupArgs{\n\t\t\t\t\t\tDesiredSize: pulumi.Int(3),\n\t\t\t\t\t\tMaxSize: pulumi.Int(5),\n\t\t\t\t\t\tName: pulumi.String(\"node_group1\"),\n\t\t\t\t\t\tLaunchTemplates: rancher2.ClusterEksConfigV2NodeGroupLaunchTemplateArray{\n\t\t\t\t\t\t\t\u0026rancher2.ClusterEksConfigV2NodeGroupLaunchTemplateArgs{\n\t\t\t\t\t\t\t\tId: pulumi.String(\"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\"),\n\t\t\t\t\t\t\t\tVersion: pulumi.Int(1),\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\tPrivateAccess: pulumi.Bool(true),\n\t\t\t\tPublicAccess: pulumi.Bool(true),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterEksConfigV2Args;\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 fooCloudCredential = new CloudCredential(\"fooCloudCredential\", CloudCredentialArgs.builder() \n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooCluster = new Cluster(\"fooCluster\", ClusterArgs.builder() \n .description(\"Terraform EKS cluster\")\n .eksConfigV2(ClusterEksConfigV2Args.builder()\n .cloudCredentialId(fooCloudCredential.id())\n .region(\"\u003cEKS_REGION\u003e\")\n .kubernetesVersion(\"1.24\")\n .loggingTypes( \n \"audit\",\n \"api\")\n .nodeGroups(ClusterEksConfigV2NodeGroupArgs.builder()\n .desiredSize(3)\n .maxSize(5)\n .name(\"node_group1\")\n .launchTemplates(ClusterEksConfigV2NodeGroupLaunchTemplateArgs.builder()\n .id(\"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\")\n .version(1)\n .build())\n .build())\n .privateAccess(true)\n .publicAccess(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooCloudCredential:\n type: rancher2:CloudCredential\n properties:\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooCluster:\n type: rancher2:Cluster\n properties:\n description: Terraform EKS cluster\n eksConfigV2:\n cloudCredentialId: ${fooCloudCredential.id}\n region: \u003cEKS_REGION\u003e\n kubernetesVersion: '1.24'\n loggingTypes:\n - audit\n - api\n nodeGroups:\n - desiredSize: 3\n maxSize: 5\n name: node_group1\n launchTemplates:\n - id: \u003cEC2_LAUNCH_TEMPLATE_ID\u003e\n version: 1\n privateAccess: true\n publicAccess: true\n```\n{{% /example %}}\n{{% example %}}\n### Creating AKS cluster from Rancher v2, using `aks_config_v2`. For Rancher v2.6.0 and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo_aks = new rancher2.CloudCredential(\"foo-aks\", {azureCredentialConfig: {\n clientId: \"\u003cCLIENT_ID\u003e\",\n clientSecret: \"\u003cCLIENT_SECRET\u003e\",\n subscriptionId: \"\u003cSUBSCRIPTION_ID\u003e\",\n}});\nconst foo = new rancher2.Cluster(\"foo\", {\n description: \"Terraform AKS cluster\",\n aksConfigV2: {\n cloudCredentialId: foo_aks.id,\n resourceGroup: \"\u003cRESOURCE_GROUP\u003e\",\n resourceLocation: \"\u003cRESOURCE_LOCATION\u003e\",\n dnsPrefix: \"\u003cDNS_PREFIX\u003e\",\n kubernetesVersion: \"1.24.6\",\n networkPlugin: \"\u003cNETWORK_PLUGIN\u003e\",\n nodePools: [\n {\n availabilityZones: [\n \"1\",\n \"2\",\n \"3\",\n ],\n name: \"\u003cNODEPOOL_NAME_1\u003e\",\n mode: \"System\",\n count: 1,\n orchestratorVersion: \"1.21.2\",\n osDiskSizeGb: 128,\n vmSize: \"Standard_DS2_v2\",\n },\n {\n availabilityZones: [\n \"1\",\n \"2\",\n \"3\",\n ],\n name: \"\u003cNODEPOOL_NAME_2\u003e\",\n count: 1,\n mode: \"User\",\n orchestratorVersion: \"1.21.2\",\n osDiskSizeGb: 128,\n vmSize: \"Standard_DS2_v2\",\n maxSurge: \"25%\",\n labels: {\n test1: \"data1\",\n test2: \"data2\",\n },\n taints: [\"none:PreferNoSchedule\"],\n },\n ],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_aks = rancher2.CloudCredential(\"foo-aks\", azure_credential_config=rancher2.CloudCredentialAzureCredentialConfigArgs(\n client_id=\"\u003cCLIENT_ID\u003e\",\n client_secret=\"\u003cCLIENT_SECRET\u003e\",\n subscription_id=\"\u003cSUBSCRIPTION_ID\u003e\",\n))\nfoo = rancher2.Cluster(\"foo\",\n description=\"Terraform AKS cluster\",\n aks_config_v2=rancher2.ClusterAksConfigV2Args(\n cloud_credential_id=foo_aks.id,\n resource_group=\"\u003cRESOURCE_GROUP\u003e\",\n resource_location=\"\u003cRESOURCE_LOCATION\u003e\",\n dns_prefix=\"\u003cDNS_PREFIX\u003e\",\n kubernetes_version=\"1.24.6\",\n network_plugin=\"\u003cNETWORK_PLUGIN\u003e\",\n node_pools=[\n rancher2.ClusterAksConfigV2NodePoolArgs(\n availability_zones=[\n \"1\",\n \"2\",\n \"3\",\n ],\n name=\"\u003cNODEPOOL_NAME_1\u003e\",\n mode=\"System\",\n count=1,\n orchestrator_version=\"1.21.2\",\n os_disk_size_gb=128,\n vm_size=\"Standard_DS2_v2\",\n ),\n rancher2.ClusterAksConfigV2NodePoolArgs(\n availability_zones=[\n \"1\",\n \"2\",\n \"3\",\n ],\n name=\"\u003cNODEPOOL_NAME_2\u003e\",\n count=1,\n mode=\"User\",\n orchestrator_version=\"1.21.2\",\n os_disk_size_gb=128,\n vm_size=\"Standard_DS2_v2\",\n max_surge=\"25%\",\n labels={\n \"test1\": \"data1\",\n \"test2\": \"data2\",\n },\n taints=[\"none:PreferNoSchedule\"],\n ),\n ],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_aks = new Rancher2.CloudCredential(\"foo-aks\", new()\n {\n AzureCredentialConfig = new Rancher2.Inputs.CloudCredentialAzureCredentialConfigArgs\n {\n ClientId = \"\u003cCLIENT_ID\u003e\",\n ClientSecret = \"\u003cCLIENT_SECRET\u003e\",\n SubscriptionId = \"\u003cSUBSCRIPTION_ID\u003e\",\n },\n });\n\n var foo = new Rancher2.Cluster(\"foo\", new()\n {\n Description = \"Terraform AKS cluster\",\n AksConfigV2 = new Rancher2.Inputs.ClusterAksConfigV2Args\n {\n CloudCredentialId = foo_aks.Id,\n ResourceGroup = \"\u003cRESOURCE_GROUP\u003e\",\n ResourceLocation = \"\u003cRESOURCE_LOCATION\u003e\",\n DnsPrefix = \"\u003cDNS_PREFIX\u003e\",\n KubernetesVersion = \"1.24.6\",\n NetworkPlugin = \"\u003cNETWORK_PLUGIN\u003e\",\n NodePools = new[]\n {\n new Rancher2.Inputs.ClusterAksConfigV2NodePoolArgs\n {\n AvailabilityZones = new[]\n {\n \"1\",\n \"2\",\n \"3\",\n },\n Name = \"\u003cNODEPOOL_NAME_1\u003e\",\n Mode = \"System\",\n Count = 1,\n OrchestratorVersion = \"1.21.2\",\n OsDiskSizeGb = 128,\n VmSize = \"Standard_DS2_v2\",\n },\n new Rancher2.Inputs.ClusterAksConfigV2NodePoolArgs\n {\n AvailabilityZones = new[]\n {\n \"1\",\n \"2\",\n \"3\",\n },\n Name = \"\u003cNODEPOOL_NAME_2\u003e\",\n Count = 1,\n Mode = \"User\",\n OrchestratorVersion = \"1.21.2\",\n OsDiskSizeGb = 128,\n VmSize = \"Standard_DS2_v2\",\n MaxSurge = \"25%\",\n Labels = \n {\n { \"test1\", \"data1\" },\n { \"test2\", \"data2\" },\n },\n Taints = new[]\n {\n \"none:PreferNoSchedule\",\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCloudCredential(ctx, \"foo-aks\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tAzureCredentialConfig: \u0026rancher2.CloudCredentialAzureCredentialConfigArgs{\n\t\t\t\tClientId: pulumi.String(\"\u003cCLIENT_ID\u003e\"),\n\t\t\t\tClientSecret: pulumi.String(\"\u003cCLIENT_SECRET\u003e\"),\n\t\t\t\tSubscriptionId: pulumi.String(\"\u003cSUBSCRIPTION_ID\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"foo\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform AKS cluster\"),\n\t\t\tAksConfigV2: \u0026rancher2.ClusterAksConfigV2Args{\n\t\t\t\tCloudCredentialId: foo_aks.ID(),\n\t\t\t\tResourceGroup: pulumi.String(\"\u003cRESOURCE_GROUP\u003e\"),\n\t\t\t\tResourceLocation: pulumi.String(\"\u003cRESOURCE_LOCATION\u003e\"),\n\t\t\t\tDnsPrefix: pulumi.String(\"\u003cDNS_PREFIX\u003e\"),\n\t\t\t\tKubernetesVersion: pulumi.String(\"1.24.6\"),\n\t\t\t\tNetworkPlugin: pulumi.String(\"\u003cNETWORK_PLUGIN\u003e\"),\n\t\t\t\tNodePools: rancher2.ClusterAksConfigV2NodePoolArray{\n\t\t\t\t\t\u0026rancher2.ClusterAksConfigV2NodePoolArgs{\n\t\t\t\t\t\tAvailabilityZones: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"1\"),\n\t\t\t\t\t\t\tpulumi.String(\"2\"),\n\t\t\t\t\t\t\tpulumi.String(\"3\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"\u003cNODEPOOL_NAME_1\u003e\"),\n\t\t\t\t\t\tMode: pulumi.String(\"System\"),\n\t\t\t\t\t\tCount: pulumi.Int(1),\n\t\t\t\t\t\tOrchestratorVersion: pulumi.String(\"1.21.2\"),\n\t\t\t\t\t\tOsDiskSizeGb: pulumi.Int(128),\n\t\t\t\t\t\tVmSize: pulumi.String(\"Standard_DS2_v2\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.ClusterAksConfigV2NodePoolArgs{\n\t\t\t\t\t\tAvailabilityZones: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"1\"),\n\t\t\t\t\t\t\tpulumi.String(\"2\"),\n\t\t\t\t\t\t\tpulumi.String(\"3\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"\u003cNODEPOOL_NAME_2\u003e\"),\n\t\t\t\t\t\tCount: pulumi.Int(1),\n\t\t\t\t\t\tMode: pulumi.String(\"User\"),\n\t\t\t\t\t\tOrchestratorVersion: pulumi.String(\"1.21.2\"),\n\t\t\t\t\t\tOsDiskSizeGb: pulumi.Int(128),\n\t\t\t\t\t\tVmSize: pulumi.String(\"Standard_DS2_v2\"),\n\t\t\t\t\t\tMaxSurge: pulumi.String(\"25%\"),\n\t\t\t\t\t\tLabels: pulumi.Map{\n\t\t\t\t\t\t\t\"test1\": pulumi.Any(\"data1\"),\n\t\t\t\t\t\t\t\"test2\": pulumi.Any(\"data2\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tTaints: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"none:PreferNoSchedule\"),\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})\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAzureCredentialConfigArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterAksConfigV2Args;\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 foo_aks = new CloudCredential(\"foo-aks\", CloudCredentialArgs.builder() \n .azureCredentialConfig(CloudCredentialAzureCredentialConfigArgs.builder()\n .clientId(\"\u003cCLIENT_ID\u003e\")\n .clientSecret(\"\u003cCLIENT_SECRET\u003e\")\n .subscriptionId(\"\u003cSUBSCRIPTION_ID\u003e\")\n .build())\n .build());\n\n var foo = new Cluster(\"foo\", ClusterArgs.builder() \n .description(\"Terraform AKS cluster\")\n .aksConfigV2(ClusterAksConfigV2Args.builder()\n .cloudCredentialId(foo_aks.id())\n .resourceGroup(\"\u003cRESOURCE_GROUP\u003e\")\n .resourceLocation(\"\u003cRESOURCE_LOCATION\u003e\")\n .dnsPrefix(\"\u003cDNS_PREFIX\u003e\")\n .kubernetesVersion(\"1.24.6\")\n .networkPlugin(\"\u003cNETWORK_PLUGIN\u003e\")\n .nodePools( \n ClusterAksConfigV2NodePoolArgs.builder()\n .availabilityZones( \n \"1\",\n \"2\",\n \"3\")\n .name(\"\u003cNODEPOOL_NAME_1\u003e\")\n .mode(\"System\")\n .count(1)\n .orchestratorVersion(\"1.21.2\")\n .osDiskSizeGb(128)\n .vmSize(\"Standard_DS2_v2\")\n .build(),\n ClusterAksConfigV2NodePoolArgs.builder()\n .availabilityZones( \n \"1\",\n \"2\",\n \"3\")\n .name(\"\u003cNODEPOOL_NAME_2\u003e\")\n .count(1)\n .mode(\"User\")\n .orchestratorVersion(\"1.21.2\")\n .osDiskSizeGb(128)\n .vmSize(\"Standard_DS2_v2\")\n .maxSurge(\"25%\")\n .labels(Map.ofEntries(\n Map.entry(\"test1\", \"data1\"),\n Map.entry(\"test2\", \"data2\")\n ))\n .taints(\"none:PreferNoSchedule\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo-aks:\n type: rancher2:CloudCredential\n properties:\n azureCredentialConfig:\n clientId: \u003cCLIENT_ID\u003e\n clientSecret: \u003cCLIENT_SECRET\u003e\n subscriptionId: \u003cSUBSCRIPTION_ID\u003e\n foo:\n type: rancher2:Cluster\n properties:\n description: Terraform AKS cluster\n aksConfigV2:\n cloudCredentialId: ${[\"foo-aks\"].id}\n resourceGroup: \u003cRESOURCE_GROUP\u003e\n resourceLocation: \u003cRESOURCE_LOCATION\u003e\n dnsPrefix: \u003cDNS_PREFIX\u003e\n kubernetesVersion: 1.24.6\n networkPlugin: \u003cNETWORK_PLUGIN\u003e\n nodePools:\n - availabilityZones:\n - '1'\n - '2'\n - '3'\n name: \u003cNODEPOOL_NAME_1\u003e\n mode: System\n count: 1\n orchestratorVersion: 1.21.2\n osDiskSizeGb: 128\n vmSize: Standard_DS2_v2\n - availabilityZones:\n - '1'\n - '2'\n - '3'\n name: \u003cNODEPOOL_NAME_2\u003e\n count: 1\n mode: User\n orchestratorVersion: 1.21.2\n osDiskSizeGb: 128\n vmSize: Standard_DS2_v2\n maxSurge: 25%\n labels:\n test1: data1\n test2: data2\n taints:\n - none:PreferNoSchedule\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nClusters can be imported using the Rancher Cluster ID\n\n```sh\n $ pulumi import rancher2:index/cluster:Cluster foo \u0026lt;CLUSTER_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Cluster resource. This can be used to create Clusters for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n\n**Note optional/computed arguments** If any `optional/computed` argument of this resource is defined by the user, removing it from tf file will NOT reset its value. To reset it, let its definition at tf file as empty/false object. Ex: `enable_cluster_monitoring = false`, `cloud_provider {}`, `name = \"\"`\n{{% example %}}\n### Creating Rancher v2 RKE cluster enabling and customizing monitoring\n\n**Note** Cluster monitoring version `0.2.0` and above, can't be enabled until cluster is fully deployed as [`kubeVersion`](https://github.com/rancher/system-charts/blob/52be656700468904b9bf15c3f39cd7112e1f8c9b/charts/rancher-monitoring/v0.2.0/Chart.yaml#L12) requirement has been introduced to helm chart\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 RKE Cluster\nconst foo_custom = new rancher2.Cluster(\"foo-custom\", {\n clusterMonitoringInput: {\n answers: {\n \"exporter-kubelets.https\": true,\n \"exporter-node.enabled\": true,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": false,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n version: \"0.1.0\",\n },\n description: \"Foo rancher2 custom cluster\",\n enableClusterMonitoring: true,\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 RKE Cluster\nfoo_custom = rancher2.Cluster(\"foo-custom\",\n cluster_monitoring_input=rancher2.ClusterClusterMonitoringInputArgs(\n answers={\n \"exporter-kubelets.https\": True,\n \"exporter-node.enabled\": True,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": False,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n version=\"0.1.0\",\n ),\n description=\"Foo rancher2 custom cluster\",\n enable_cluster_monitoring=True,\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 RKE Cluster\n var foo_custom = new Rancher2.Cluster(\"foo-custom\", new()\n {\n ClusterMonitoringInput = new Rancher2.Inputs.ClusterClusterMonitoringInputArgs\n {\n Answers = \n {\n { \"exporter-kubelets.https\", true },\n { \"exporter-node.enabled\", true },\n { \"exporter-node.ports.metrics.port\", 9796 },\n { \"exporter-node.resources.limits.cpu\", \"200m\" },\n { \"exporter-node.resources.limits.memory\", \"200Mi\" },\n { \"grafana.persistence.enabled\", false },\n { \"grafana.persistence.size\", \"10Gi\" },\n { \"grafana.persistence.storageClass\", \"default\" },\n { \"operator.resources.limits.memory\", \"500Mi\" },\n { \"prometheus.persistence.enabled\", \"false\" },\n { \"prometheus.persistence.size\", \"50Gi\" },\n { \"prometheus.persistence.storageClass\", \"default\" },\n { \"prometheus.persistent.useReleaseName\", \"true\" },\n { \"prometheus.resources.core.limits.cpu\", \"1000m\" },\n { \"prometheus.resources.core.limits.memory\", \"1500Mi\" },\n { \"prometheus.resources.core.requests.cpu\", \"750m\" },\n { \"prometheus.resources.core.requests.memory\", \"750Mi\" },\n { \"prometheus.retention\", \"12h\" },\n },\n Version = \"0.1.0\",\n },\n Description = \"Foo rancher2 custom cluster\",\n EnableClusterMonitoring = true,\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-custom\", \u0026rancher2.ClusterArgs{\n\t\t\tClusterMonitoringInput: \u0026rancher2.ClusterClusterMonitoringInputArgs{\n\t\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\t\"exporter-kubelets.https\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.enabled\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.ports.metrics.port\": pulumi.Any(9796),\n\t\t\t\t\t\"exporter-node.resources.limits.cpu\": pulumi.Any(\"200m\"),\n\t\t\t\t\t\"exporter-node.resources.limits.memory\": pulumi.Any(\"200Mi\"),\n\t\t\t\t\t\"grafana.persistence.enabled\": pulumi.Any(false),\n\t\t\t\t\t\"grafana.persistence.size\": pulumi.Any(\"10Gi\"),\n\t\t\t\t\t\"grafana.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"operator.resources.limits.memory\": pulumi.Any(\"500Mi\"),\n\t\t\t\t\t\"prometheus.persistence.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\t\"prometheus.persistence.size\": pulumi.Any(\"50Gi\"),\n\t\t\t\t\t\"prometheus.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"prometheus.persistent.useReleaseName\": pulumi.Any(\"true\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.memory\": pulumi.Any(\"1500Mi\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.cpu\": pulumi.Any(\"750m\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.memory\": pulumi.Any(\"750Mi\"),\n\t\t\t\t\t\"prometheus.retention\": pulumi.Any(\"12h\"),\n\t\t\t\t},\n\t\t\t\tVersion: pulumi.String(\"0.1.0\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tEnableClusterMonitoring: pulumi.Bool(true),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterClusterMonitoringInputArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\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 foo_custom = new Cluster(\"foo-custom\", ClusterArgs.builder() \n .clusterMonitoringInput(ClusterClusterMonitoringInputArgs.builder()\n .answers(Map.ofEntries(\n Map.entry(\"exporter-kubelets.https\", true),\n Map.entry(\"exporter-node.enabled\", true),\n Map.entry(\"exporter-node.ports.metrics.port\", 9796),\n Map.entry(\"exporter-node.resources.limits.cpu\", \"200m\"),\n Map.entry(\"exporter-node.resources.limits.memory\", \"200Mi\"),\n Map.entry(\"grafana.persistence.enabled\", false),\n Map.entry(\"grafana.persistence.size\", \"10Gi\"),\n Map.entry(\"grafana.persistence.storageClass\", \"default\"),\n Map.entry(\"operator.resources.limits.memory\", \"500Mi\"),\n Map.entry(\"prometheus.persistence.enabled\", \"false\"),\n Map.entry(\"prometheus.persistence.size\", \"50Gi\"),\n Map.entry(\"prometheus.persistence.storageClass\", \"default\"),\n Map.entry(\"prometheus.persistent.useReleaseName\", \"true\"),\n Map.entry(\"prometheus.resources.core.limits.cpu\", \"1000m\"),\n Map.entry(\"prometheus.resources.core.limits.memory\", \"1500Mi\"),\n Map.entry(\"prometheus.resources.core.requests.cpu\", \"750m\"),\n Map.entry(\"prometheus.resources.core.requests.memory\", \"750Mi\"),\n Map.entry(\"prometheus.retention\", \"12h\")\n ))\n .version(\"0.1.0\")\n .build())\n .description(\"Foo rancher2 custom cluster\")\n .enableClusterMonitoring(true)\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 RKE Cluster\n foo-custom:\n type: rancher2:Cluster\n properties:\n clusterMonitoringInput:\n answers:\n exporter-kubelets.https: true\n exporter-node.enabled: true\n exporter-node.ports.metrics.port: 9796\n exporter-node.resources.limits.cpu: 200m\n exporter-node.resources.limits.memory: 200Mi\n grafana.persistence.enabled: false\n grafana.persistence.size: 10Gi\n grafana.persistence.storageClass: default\n operator.resources.limits.memory: 500Mi\n prometheus.persistence.enabled: 'false'\n prometheus.persistence.size: 50Gi\n prometheus.persistence.storageClass: default\n prometheus.persistent.useReleaseName: 'true'\n prometheus.resources.core.limits.cpu: 1000m\n prometheus.resources.core.limits.memory: 1500Mi\n prometheus.resources.core.requests.cpu: 750m\n prometheus.resources.core.requests.memory: 750Mi\n prometheus.retention: 12h\n version: 0.1.0\n description: Foo rancher2 custom cluster\n enableClusterMonitoring: true\n rkeConfig:\n network:\n plugin: canal\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster enabling/customizing monitoring and istio\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 RKE Cluster\nconst foo_customCluster = new rancher2.Cluster(\"foo-customCluster\", {\n description: \"Foo rancher2 custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n enableClusterMonitoring: true,\n clusterMonitoringInput: {\n answers: {\n \"exporter-kubelets.https\": true,\n \"exporter-node.enabled\": true,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": false,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n version: \"0.1.0\",\n },\n});\n// Create a new rancher2 Cluster Sync for foo-custom cluster\nconst foo_customClusterSync = new rancher2.ClusterSync(\"foo-customClusterSync\", {\n clusterId: foo_customCluster.id,\n waitMonitoring: foo_customCluster.enableClusterMonitoring,\n});\n// Create a new rancher2 Namespace\nconst foo_istio = new rancher2.Namespace(\"foo-istio\", {\n projectId: foo_customClusterSync.systemProjectId,\n description: \"istio namespace\",\n});\n// Create a new rancher2 App deploying istio (should wait until monitoring is up and running)\nconst istio = new rancher2.App(\"istio\", {\n catalogName: \"system-library\",\n description: \"Terraform app acceptance test\",\n projectId: foo_istio.projectId,\n templateName: \"rancher-istio\",\n templateVersion: \"0.1.1\",\n targetNamespace: foo_istio.id,\n answers: {\n \"certmanager.enabled\": false,\n enableCRDs: true,\n \"galley.enabled\": true,\n \"gateways.enabled\": false,\n \"gateways.istio-ingressgateway.resources.limits.cpu\": \"2000m\",\n \"gateways.istio-ingressgateway.resources.limits.memory\": \"1024Mi\",\n \"gateways.istio-ingressgateway.resources.requests.cpu\": \"100m\",\n \"gateways.istio-ingressgateway.resources.requests.memory\": \"128Mi\",\n \"gateways.istio-ingressgateway.type\": \"NodePort\",\n \"global.monitoring.type\": \"cluster-monitoring\",\n \"global.rancher.clusterId\": foo_customClusterSync.clusterId,\n \"istio_cni.enabled\": \"false\",\n \"istiocoredns.enabled\": \"false\",\n \"kiali.enabled\": \"true\",\n \"mixer.enabled\": \"true\",\n \"mixer.policy.enabled\": \"true\",\n \"mixer.policy.resources.limits.cpu\": \"4800m\",\n \"mixer.policy.resources.limits.memory\": \"4096Mi\",\n \"mixer.policy.resources.requests.cpu\": \"1000m\",\n \"mixer.policy.resources.requests.memory\": \"1024Mi\",\n \"mixer.telemetry.resources.limits.cpu\": \"4800m\",\n \"mixer.telemetry.resources.limits.memory\": \"4096Mi\",\n \"mixer.telemetry.resources.requests.cpu\": \"1000m\",\n \"mixer.telemetry.resources.requests.memory\": \"1024Mi\",\n \"mtls.enabled\": false,\n \"nodeagent.enabled\": false,\n \"pilot.enabled\": true,\n \"pilot.resources.limits.cpu\": \"1000m\",\n \"pilot.resources.limits.memory\": \"4096Mi\",\n \"pilot.resources.requests.cpu\": \"500m\",\n \"pilot.resources.requests.memory\": \"2048Mi\",\n \"pilot.traceSampling\": \"1\",\n \"security.enabled\": true,\n \"sidecarInjectorWebhook.enabled\": true,\n \"tracing.enabled\": true,\n \"tracing.jaeger.resources.limits.cpu\": \"500m\",\n \"tracing.jaeger.resources.limits.memory\": \"1024Mi\",\n \"tracing.jaeger.resources.requests.cpu\": \"100m\",\n \"tracing.jaeger.resources.requests.memory\": \"100Mi\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 RKE Cluster\nfoo_custom_cluster = rancher2.Cluster(\"foo-customCluster\",\n description=\"Foo rancher2 custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ),\n enable_cluster_monitoring=True,\n cluster_monitoring_input=rancher2.ClusterClusterMonitoringInputArgs(\n answers={\n \"exporter-kubelets.https\": True,\n \"exporter-node.enabled\": True,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": False,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n version=\"0.1.0\",\n ))\n# Create a new rancher2 Cluster Sync for foo-custom cluster\nfoo_custom_cluster_sync = rancher2.ClusterSync(\"foo-customClusterSync\",\n cluster_id=foo_custom_cluster.id,\n wait_monitoring=foo_custom_cluster.enable_cluster_monitoring)\n# Create a new rancher2 Namespace\nfoo_istio = rancher2.Namespace(\"foo-istio\",\n project_id=foo_custom_cluster_sync.system_project_id,\n description=\"istio namespace\")\n# Create a new rancher2 App deploying istio (should wait until monitoring is up and running)\nistio = rancher2.App(\"istio\",\n catalog_name=\"system-library\",\n description=\"Terraform app acceptance test\",\n project_id=foo_istio.project_id,\n template_name=\"rancher-istio\",\n template_version=\"0.1.1\",\n target_namespace=foo_istio.id,\n answers={\n \"certmanager.enabled\": False,\n \"enableCRDs\": True,\n \"galley.enabled\": True,\n \"gateways.enabled\": False,\n \"gateways.istio-ingressgateway.resources.limits.cpu\": \"2000m\",\n \"gateways.istio-ingressgateway.resources.limits.memory\": \"1024Mi\",\n \"gateways.istio-ingressgateway.resources.requests.cpu\": \"100m\",\n \"gateways.istio-ingressgateway.resources.requests.memory\": \"128Mi\",\n \"gateways.istio-ingressgateway.type\": \"NodePort\",\n \"global.monitoring.type\": \"cluster-monitoring\",\n \"global.rancher.clusterId\": foo_custom_cluster_sync.cluster_id,\n \"istio_cni.enabled\": \"false\",\n \"istiocoredns.enabled\": \"false\",\n \"kiali.enabled\": \"true\",\n \"mixer.enabled\": \"true\",\n \"mixer.policy.enabled\": \"true\",\n \"mixer.policy.resources.limits.cpu\": \"4800m\",\n \"mixer.policy.resources.limits.memory\": \"4096Mi\",\n \"mixer.policy.resources.requests.cpu\": \"1000m\",\n \"mixer.policy.resources.requests.memory\": \"1024Mi\",\n \"mixer.telemetry.resources.limits.cpu\": \"4800m\",\n \"mixer.telemetry.resources.limits.memory\": \"4096Mi\",\n \"mixer.telemetry.resources.requests.cpu\": \"1000m\",\n \"mixer.telemetry.resources.requests.memory\": \"1024Mi\",\n \"mtls.enabled\": False,\n \"nodeagent.enabled\": False,\n \"pilot.enabled\": True,\n \"pilot.resources.limits.cpu\": \"1000m\",\n \"pilot.resources.limits.memory\": \"4096Mi\",\n \"pilot.resources.requests.cpu\": \"500m\",\n \"pilot.resources.requests.memory\": \"2048Mi\",\n \"pilot.traceSampling\": \"1\",\n \"security.enabled\": True,\n \"sidecarInjectorWebhook.enabled\": True,\n \"tracing.enabled\": True,\n \"tracing.jaeger.resources.limits.cpu\": \"500m\",\n \"tracing.jaeger.resources.limits.memory\": \"1024Mi\",\n \"tracing.jaeger.resources.requests.cpu\": \"100m\",\n \"tracing.jaeger.resources.requests.memory\": \"100Mi\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 RKE Cluster\n var foo_customCluster = new Rancher2.Cluster(\"foo-customCluster\", new()\n {\n Description = \"Foo rancher2 custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n EnableClusterMonitoring = true,\n ClusterMonitoringInput = new Rancher2.Inputs.ClusterClusterMonitoringInputArgs\n {\n Answers = \n {\n { \"exporter-kubelets.https\", true },\n { \"exporter-node.enabled\", true },\n { \"exporter-node.ports.metrics.port\", 9796 },\n { \"exporter-node.resources.limits.cpu\", \"200m\" },\n { \"exporter-node.resources.limits.memory\", \"200Mi\" },\n { \"grafana.persistence.enabled\", false },\n { \"grafana.persistence.size\", \"10Gi\" },\n { \"grafana.persistence.storageClass\", \"default\" },\n { \"operator.resources.limits.memory\", \"500Mi\" },\n { \"prometheus.persistence.enabled\", \"false\" },\n { \"prometheus.persistence.size\", \"50Gi\" },\n { \"prometheus.persistence.storageClass\", \"default\" },\n { \"prometheus.persistent.useReleaseName\", \"true\" },\n { \"prometheus.resources.core.limits.cpu\", \"1000m\" },\n { \"prometheus.resources.core.limits.memory\", \"1500Mi\" },\n { \"prometheus.resources.core.requests.cpu\", \"750m\" },\n { \"prometheus.resources.core.requests.memory\", \"750Mi\" },\n { \"prometheus.retention\", \"12h\" },\n },\n Version = \"0.1.0\",\n },\n });\n\n // Create a new rancher2 Cluster Sync for foo-custom cluster\n var foo_customClusterSync = new Rancher2.ClusterSync(\"foo-customClusterSync\", new()\n {\n ClusterId = foo_customCluster.Id,\n WaitMonitoring = foo_customCluster.EnableClusterMonitoring,\n });\n\n // Create a new rancher2 Namespace\n var foo_istio = new Rancher2.Namespace(\"foo-istio\", new()\n {\n ProjectId = foo_customClusterSync.SystemProjectId,\n Description = \"istio namespace\",\n });\n\n // Create a new rancher2 App deploying istio (should wait until monitoring is up and running)\n var istio = new Rancher2.App(\"istio\", new()\n {\n CatalogName = \"system-library\",\n Description = \"Terraform app acceptance test\",\n ProjectId = foo_istio.ProjectId,\n TemplateName = \"rancher-istio\",\n TemplateVersion = \"0.1.1\",\n TargetNamespace = foo_istio.Id,\n Answers = \n {\n { \"certmanager.enabled\", false },\n { \"enableCRDs\", true },\n { \"galley.enabled\", true },\n { \"gateways.enabled\", false },\n { \"gateways.istio-ingressgateway.resources.limits.cpu\", \"2000m\" },\n { \"gateways.istio-ingressgateway.resources.limits.memory\", \"1024Mi\" },\n { \"gateways.istio-ingressgateway.resources.requests.cpu\", \"100m\" },\n { \"gateways.istio-ingressgateway.resources.requests.memory\", \"128Mi\" },\n { \"gateways.istio-ingressgateway.type\", \"NodePort\" },\n { \"global.monitoring.type\", \"cluster-monitoring\" },\n { \"global.rancher.clusterId\", foo_customClusterSync.ClusterId },\n { \"istio_cni.enabled\", \"false\" },\n { \"istiocoredns.enabled\", \"false\" },\n { \"kiali.enabled\", \"true\" },\n { \"mixer.enabled\", \"true\" },\n { \"mixer.policy.enabled\", \"true\" },\n { \"mixer.policy.resources.limits.cpu\", \"4800m\" },\n { \"mixer.policy.resources.limits.memory\", \"4096Mi\" },\n { \"mixer.policy.resources.requests.cpu\", \"1000m\" },\n { \"mixer.policy.resources.requests.memory\", \"1024Mi\" },\n { \"mixer.telemetry.resources.limits.cpu\", \"4800m\" },\n { \"mixer.telemetry.resources.limits.memory\", \"4096Mi\" },\n { \"mixer.telemetry.resources.requests.cpu\", \"1000m\" },\n { \"mixer.telemetry.resources.requests.memory\", \"1024Mi\" },\n { \"mtls.enabled\", false },\n { \"nodeagent.enabled\", false },\n { \"pilot.enabled\", true },\n { \"pilot.resources.limits.cpu\", \"1000m\" },\n { \"pilot.resources.limits.memory\", \"4096Mi\" },\n { \"pilot.resources.requests.cpu\", \"500m\" },\n { \"pilot.resources.requests.memory\", \"2048Mi\" },\n { \"pilot.traceSampling\", \"1\" },\n { \"security.enabled\", true },\n { \"sidecarInjectorWebhook.enabled\", true },\n { \"tracing.enabled\", true },\n { \"tracing.jaeger.resources.limits.cpu\", \"500m\" },\n { \"tracing.jaeger.resources.limits.memory\", \"1024Mi\" },\n { \"tracing.jaeger.resources.requests.cpu\", \"100m\" },\n { \"tracing.jaeger.resources.requests.memory\", \"100Mi\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-customCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEnableClusterMonitoring: pulumi.Bool(true),\n\t\t\tClusterMonitoringInput: \u0026rancher2.ClusterClusterMonitoringInputArgs{\n\t\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\t\"exporter-kubelets.https\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.enabled\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.ports.metrics.port\": pulumi.Any(9796),\n\t\t\t\t\t\"exporter-node.resources.limits.cpu\": pulumi.Any(\"200m\"),\n\t\t\t\t\t\"exporter-node.resources.limits.memory\": pulumi.Any(\"200Mi\"),\n\t\t\t\t\t\"grafana.persistence.enabled\": pulumi.Any(false),\n\t\t\t\t\t\"grafana.persistence.size\": pulumi.Any(\"10Gi\"),\n\t\t\t\t\t\"grafana.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"operator.resources.limits.memory\": pulumi.Any(\"500Mi\"),\n\t\t\t\t\t\"prometheus.persistence.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\t\"prometheus.persistence.size\": pulumi.Any(\"50Gi\"),\n\t\t\t\t\t\"prometheus.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"prometheus.persistent.useReleaseName\": pulumi.Any(\"true\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.memory\": pulumi.Any(\"1500Mi\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.cpu\": pulumi.Any(\"750m\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.memory\": pulumi.Any(\"750Mi\"),\n\t\t\t\t\t\"prometheus.retention\": pulumi.Any(\"12h\"),\n\t\t\t\t},\n\t\t\t\tVersion: pulumi.String(\"0.1.0\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewClusterSync(ctx, \"foo-customClusterSync\", \u0026rancher2.ClusterSyncArgs{\n\t\t\tClusterId: foo_customCluster.ID(),\n\t\t\tWaitMonitoring: foo_customCluster.EnableClusterMonitoring,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNamespace(ctx, \"foo-istio\", \u0026rancher2.NamespaceArgs{\n\t\t\tProjectId: foo_customClusterSync.SystemProjectId,\n\t\t\tDescription: pulumi.String(\"istio namespace\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewApp(ctx, \"istio\", \u0026rancher2.AppArgs{\n\t\t\tCatalogName: pulumi.String(\"system-library\"),\n\t\t\tDescription: pulumi.String(\"Terraform app acceptance test\"),\n\t\t\tProjectId: foo_istio.ProjectId,\n\t\t\tTemplateName: pulumi.String(\"rancher-istio\"),\n\t\t\tTemplateVersion: pulumi.String(\"0.1.1\"),\n\t\t\tTargetNamespace: foo_istio.ID(),\n\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\"certmanager.enabled\": pulumi.Any(false),\n\t\t\t\t\"enableCRDs\": pulumi.Any(true),\n\t\t\t\t\"galley.enabled\": pulumi.Any(true),\n\t\t\t\t\"gateways.enabled\": pulumi.Any(false),\n\t\t\t\t\"gateways.istio-ingressgateway.resources.limits.cpu\": pulumi.Any(\"2000m\"),\n\t\t\t\t\"gateways.istio-ingressgateway.resources.limits.memory\": pulumi.Any(\"1024Mi\"),\n\t\t\t\t\"gateways.istio-ingressgateway.resources.requests.cpu\": pulumi.Any(\"100m\"),\n\t\t\t\t\"gateways.istio-ingressgateway.resources.requests.memory\": pulumi.Any(\"128Mi\"),\n\t\t\t\t\"gateways.istio-ingressgateway.type\": pulumi.Any(\"NodePort\"),\n\t\t\t\t\"global.monitoring.type\": pulumi.Any(\"cluster-monitoring\"),\n\t\t\t\t\"global.rancher.clusterId\": foo_customClusterSync.ClusterId,\n\t\t\t\t\"istio_cni.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\"istiocoredns.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\"kiali.enabled\": pulumi.Any(\"true\"),\n\t\t\t\t\"mixer.enabled\": pulumi.Any(\"true\"),\n\t\t\t\t\"mixer.policy.enabled\": pulumi.Any(\"true\"),\n\t\t\t\t\"mixer.policy.resources.limits.cpu\": pulumi.Any(\"4800m\"),\n\t\t\t\t\"mixer.policy.resources.limits.memory\": pulumi.Any(\"4096Mi\"),\n\t\t\t\t\"mixer.policy.resources.requests.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\"mixer.policy.resources.requests.memory\": pulumi.Any(\"1024Mi\"),\n\t\t\t\t\"mixer.telemetry.resources.limits.cpu\": pulumi.Any(\"4800m\"),\n\t\t\t\t\"mixer.telemetry.resources.limits.memory\": pulumi.Any(\"4096Mi\"),\n\t\t\t\t\"mixer.telemetry.resources.requests.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\"mixer.telemetry.resources.requests.memory\": pulumi.Any(\"1024Mi\"),\n\t\t\t\t\"mtls.enabled\": pulumi.Any(false),\n\t\t\t\t\"nodeagent.enabled\": pulumi.Any(false),\n\t\t\t\t\"pilot.enabled\": pulumi.Any(true),\n\t\t\t\t\"pilot.resources.limits.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\"pilot.resources.limits.memory\": pulumi.Any(\"4096Mi\"),\n\t\t\t\t\"pilot.resources.requests.cpu\": pulumi.Any(\"500m\"),\n\t\t\t\t\"pilot.resources.requests.memory\": pulumi.Any(\"2048Mi\"),\n\t\t\t\t\"pilot.traceSampling\": pulumi.Any(\"1\"),\n\t\t\t\t\"security.enabled\": pulumi.Any(true),\n\t\t\t\t\"sidecarInjectorWebhook.enabled\": pulumi.Any(true),\n\t\t\t\t\"tracing.enabled\": pulumi.Any(true),\n\t\t\t\t\"tracing.jaeger.resources.limits.cpu\": pulumi.Any(\"500m\"),\n\t\t\t\t\"tracing.jaeger.resources.limits.memory\": pulumi.Any(\"1024Mi\"),\n\t\t\t\t\"tracing.jaeger.resources.requests.cpu\": pulumi.Any(\"100m\"),\n\t\t\t\t\"tracing.jaeger.resources.requests.memory\": pulumi.Any(\"100Mi\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterClusterMonitoringInputArgs;\nimport com.pulumi.rancher2.ClusterSync;\nimport com.pulumi.rancher2.ClusterSyncArgs;\nimport com.pulumi.rancher2.Namespace;\nimport com.pulumi.rancher2.NamespaceArgs;\nimport com.pulumi.rancher2.App;\nimport com.pulumi.rancher2.AppArgs;\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 foo_customCluster = new Cluster(\"foo-customCluster\", ClusterArgs.builder() \n .description(\"Foo rancher2 custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .enableClusterMonitoring(true)\n .clusterMonitoringInput(ClusterClusterMonitoringInputArgs.builder()\n .answers(Map.ofEntries(\n Map.entry(\"exporter-kubelets.https\", true),\n Map.entry(\"exporter-node.enabled\", true),\n Map.entry(\"exporter-node.ports.metrics.port\", 9796),\n Map.entry(\"exporter-node.resources.limits.cpu\", \"200m\"),\n Map.entry(\"exporter-node.resources.limits.memory\", \"200Mi\"),\n Map.entry(\"grafana.persistence.enabled\", false),\n Map.entry(\"grafana.persistence.size\", \"10Gi\"),\n Map.entry(\"grafana.persistence.storageClass\", \"default\"),\n Map.entry(\"operator.resources.limits.memory\", \"500Mi\"),\n Map.entry(\"prometheus.persistence.enabled\", \"false\"),\n Map.entry(\"prometheus.persistence.size\", \"50Gi\"),\n Map.entry(\"prometheus.persistence.storageClass\", \"default\"),\n Map.entry(\"prometheus.persistent.useReleaseName\", \"true\"),\n Map.entry(\"prometheus.resources.core.limits.cpu\", \"1000m\"),\n Map.entry(\"prometheus.resources.core.limits.memory\", \"1500Mi\"),\n Map.entry(\"prometheus.resources.core.requests.cpu\", \"750m\"),\n Map.entry(\"prometheus.resources.core.requests.memory\", \"750Mi\"),\n Map.entry(\"prometheus.retention\", \"12h\")\n ))\n .version(\"0.1.0\")\n .build())\n .build());\n\n var foo_customClusterSync = new ClusterSync(\"foo-customClusterSync\", ClusterSyncArgs.builder() \n .clusterId(foo_customCluster.id())\n .waitMonitoring(foo_customCluster.enableClusterMonitoring())\n .build());\n\n var foo_istio = new Namespace(\"foo-istio\", NamespaceArgs.builder() \n .projectId(foo_customClusterSync.systemProjectId())\n .description(\"istio namespace\")\n .build());\n\n var istio = new App(\"istio\", AppArgs.builder() \n .catalogName(\"system-library\")\n .description(\"Terraform app acceptance test\")\n .projectId(foo_istio.projectId())\n .templateName(\"rancher-istio\")\n .templateVersion(\"0.1.1\")\n .targetNamespace(foo_istio.id())\n .answers(Map.ofEntries(\n Map.entry(\"certmanager.enabled\", false),\n Map.entry(\"enableCRDs\", true),\n Map.entry(\"galley.enabled\", true),\n Map.entry(\"gateways.enabled\", false),\n Map.entry(\"gateways.istio-ingressgateway.resources.limits.cpu\", \"2000m\"),\n Map.entry(\"gateways.istio-ingressgateway.resources.limits.memory\", \"1024Mi\"),\n Map.entry(\"gateways.istio-ingressgateway.resources.requests.cpu\", \"100m\"),\n Map.entry(\"gateways.istio-ingressgateway.resources.requests.memory\", \"128Mi\"),\n Map.entry(\"gateways.istio-ingressgateway.type\", \"NodePort\"),\n Map.entry(\"global.monitoring.type\", \"cluster-monitoring\"),\n Map.entry(\"global.rancher.clusterId\", foo_customClusterSync.clusterId()),\n Map.entry(\"istio_cni.enabled\", \"false\"),\n Map.entry(\"istiocoredns.enabled\", \"false\"),\n Map.entry(\"kiali.enabled\", \"true\"),\n Map.entry(\"mixer.enabled\", \"true\"),\n Map.entry(\"mixer.policy.enabled\", \"true\"),\n Map.entry(\"mixer.policy.resources.limits.cpu\", \"4800m\"),\n Map.entry(\"mixer.policy.resources.limits.memory\", \"4096Mi\"),\n Map.entry(\"mixer.policy.resources.requests.cpu\", \"1000m\"),\n Map.entry(\"mixer.policy.resources.requests.memory\", \"1024Mi\"),\n Map.entry(\"mixer.telemetry.resources.limits.cpu\", \"4800m\"),\n Map.entry(\"mixer.telemetry.resources.limits.memory\", \"4096Mi\"),\n Map.entry(\"mixer.telemetry.resources.requests.cpu\", \"1000m\"),\n Map.entry(\"mixer.telemetry.resources.requests.memory\", \"1024Mi\"),\n Map.entry(\"mtls.enabled\", false),\n Map.entry(\"nodeagent.enabled\", false),\n Map.entry(\"pilot.enabled\", true),\n Map.entry(\"pilot.resources.limits.cpu\", \"1000m\"),\n Map.entry(\"pilot.resources.limits.memory\", \"4096Mi\"),\n Map.entry(\"pilot.resources.requests.cpu\", \"500m\"),\n Map.entry(\"pilot.resources.requests.memory\", \"2048Mi\"),\n Map.entry(\"pilot.traceSampling\", \"1\"),\n Map.entry(\"security.enabled\", true),\n Map.entry(\"sidecarInjectorWebhook.enabled\", true),\n Map.entry(\"tracing.enabled\", true),\n Map.entry(\"tracing.jaeger.resources.limits.cpu\", \"500m\"),\n Map.entry(\"tracing.jaeger.resources.limits.memory\", \"1024Mi\"),\n Map.entry(\"tracing.jaeger.resources.requests.cpu\", \"100m\"),\n Map.entry(\"tracing.jaeger.resources.requests.memory\", \"100Mi\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 RKE Cluster\n foo-customCluster:\n type: rancher2:Cluster\n properties:\n description: Foo rancher2 custom cluster\n rkeConfig:\n network:\n plugin: canal\n enableClusterMonitoring: true\n clusterMonitoringInput:\n answers:\n exporter-kubelets.https: true\n exporter-node.enabled: true\n exporter-node.ports.metrics.port: 9796\n exporter-node.resources.limits.cpu: 200m\n exporter-node.resources.limits.memory: 200Mi\n grafana.persistence.enabled: false\n grafana.persistence.size: 10Gi\n grafana.persistence.storageClass: default\n operator.resources.limits.memory: 500Mi\n prometheus.persistence.enabled: 'false'\n prometheus.persistence.size: 50Gi\n prometheus.persistence.storageClass: default\n prometheus.persistent.useReleaseName: 'true'\n prometheus.resources.core.limits.cpu: 1000m\n prometheus.resources.core.limits.memory: 1500Mi\n prometheus.resources.core.requests.cpu: 750m\n prometheus.resources.core.requests.memory: 750Mi\n prometheus.retention: 12h\n version: 0.1.0\n # Create a new rancher2 Cluster Sync for foo-custom cluster\n foo-customClusterSync:\n type: rancher2:ClusterSync\n properties:\n clusterId: ${[\"foo-customCluster\"].id}\n waitMonitoring: ${[\"foo-customCluster\"].enableClusterMonitoring}\n # Create a new rancher2 Namespace\n foo-istio:\n type: rancher2:Namespace\n properties:\n projectId: ${[\"foo-customClusterSync\"].systemProjectId}\n description: istio namespace\n # Create a new rancher2 App deploying istio (should wait until monitoring is up and running)\n istio:\n type: rancher2:App\n properties:\n catalogName: system-library\n description: Terraform app acceptance test\n projectId: ${[\"foo-istio\"].projectId}\n templateName: rancher-istio\n templateVersion: 0.1.1\n targetNamespace: ${[\"foo-istio\"].id}\n answers:\n certmanager.enabled: false\n enableCRDs: true\n galley.enabled: true\n gateways.enabled: false\n gateways.istio-ingressgateway.resources.limits.cpu: 2000m\n gateways.istio-ingressgateway.resources.limits.memory: 1024Mi\n gateways.istio-ingressgateway.resources.requests.cpu: 100m\n gateways.istio-ingressgateway.resources.requests.memory: 128Mi\n gateways.istio-ingressgateway.type: NodePort\n global.monitoring.type: cluster-monitoring\n global.rancher.clusterId: ${[\"foo-customClusterSync\"].clusterId}\n istio_cni.enabled: 'false'\n istiocoredns.enabled: 'false'\n kiali.enabled: 'true'\n mixer.enabled: 'true'\n mixer.policy.enabled: 'true'\n mixer.policy.resources.limits.cpu: 4800m\n mixer.policy.resources.limits.memory: 4096Mi\n mixer.policy.resources.requests.cpu: 1000m\n mixer.policy.resources.requests.memory: 1024Mi\n mixer.telemetry.resources.limits.cpu: 4800m\n mixer.telemetry.resources.limits.memory: 4096Mi\n mixer.telemetry.resources.requests.cpu: 1000m\n mixer.telemetry.resources.requests.memory: 1024Mi\n mtls.enabled: false\n nodeagent.enabled: false\n pilot.enabled: true\n pilot.resources.limits.cpu: 1000m\n pilot.resources.limits.memory: 4096Mi\n pilot.resources.requests.cpu: 500m\n pilot.resources.requests.memory: 2048Mi\n pilot.traceSampling: '1'\n security.enabled: true\n sidecarInjectorWebhook.enabled: true\n tracing.enabled: true\n tracing.jaeger.resources.limits.cpu: 500m\n tracing.jaeger.resources.limits.memory: 1024Mi\n tracing.jaeger.resources.requests.cpu: 100m\n tracing.jaeger.resources.requests.memory: 100Mi\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster assigning a node pool (overlapped planes)\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 RKE Cluster\nconst foo_custom = new rancher2.Cluster(\"foo-custom\", {\n description: \"Foo rancher2 custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n// Create a new rancher2 Node Template\nconst fooNodeTemplate = new rancher2.NodeTemplate(\"fooNodeTemplate\", {\n description: \"foo test\",\n amazonec2Config: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n// Create a new rancher2 Node Pool\nconst fooNodePool = new rancher2.NodePool(\"fooNodePool\", {\n clusterId: foo_custom.id,\n hostnamePrefix: \"foo-cluster-0\",\n nodeTemplateId: fooNodeTemplate.id,\n quantity: 3,\n controlPlane: true,\n etcd: true,\n worker: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 RKE Cluster\nfoo_custom = rancher2.Cluster(\"foo-custom\",\n description=\"Foo rancher2 custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n# Create a new rancher2 Node Template\nfoo_node_template = rancher2.NodeTemplate(\"fooNodeTemplate\",\n description=\"foo test\",\n amazonec2_config=rancher2.NodeTemplateAmazonec2ConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ami=\"\u003cAMI_ID\u003e\",\n region=\"\u003cREGION\u003e\",\n security_groups=[\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnet_id=\"\u003cSUBNET_ID\u003e\",\n vpc_id=\"\u003cVPC_ID\u003e\",\n zone=\"\u003cZONE\u003e\",\n ))\n# Create a new rancher2 Node Pool\nfoo_node_pool = rancher2.NodePool(\"fooNodePool\",\n cluster_id=foo_custom.id,\n hostname_prefix=\"foo-cluster-0\",\n node_template_id=foo_node_template.id,\n quantity=3,\n control_plane=True,\n etcd=True,\n worker=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 RKE Cluster\n var foo_custom = new Rancher2.Cluster(\"foo-custom\", new()\n {\n Description = \"Foo rancher2 custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n // Create a new rancher2 Node Template\n var fooNodeTemplate = new Rancher2.NodeTemplate(\"fooNodeTemplate\", new()\n {\n Description = \"foo test\",\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n // Create a new rancher2 Node Pool\n var fooNodePool = new Rancher2.NodePool(\"fooNodePool\", new()\n {\n ClusterId = foo_custom.Id,\n HostnamePrefix = \"foo-cluster-0\",\n NodeTemplateId = fooNodeTemplate.Id,\n Quantity = 3,\n ControlPlane = true,\n Etcd = true,\n Worker = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-custom\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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\tfooNodeTemplate, err := rancher2.NewNodeTemplate(ctx, \"fooNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodePool(ctx, \"fooNodePool\", \u0026rancher2.NodePoolArgs{\n\t\t\tClusterId: foo_custom.ID(),\n\t\t\tHostnamePrefix: pulumi.String(\"foo-cluster-0\"),\n\t\t\tNodeTemplateId: fooNodeTemplate.ID(),\n\t\t\tQuantity: pulumi.Int(3),\n\t\t\tControlPlane: pulumi.Bool(true),\n\t\t\tEtcd: pulumi.Bool(true),\n\t\t\tWorker: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\nimport com.pulumi.rancher2.NodePool;\nimport com.pulumi.rancher2.NodePoolArgs;\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 foo_custom = new Cluster(\"foo-custom\", ClusterArgs.builder() \n .description(\"Foo rancher2 custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n var fooNodeTemplate = new NodeTemplate(\"fooNodeTemplate\", NodeTemplateArgs.builder() \n .description(\"foo test\")\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n var fooNodePool = new NodePool(\"fooNodePool\", NodePoolArgs.builder() \n .clusterId(foo_custom.id())\n .hostnamePrefix(\"foo-cluster-0\")\n .nodeTemplateId(fooNodeTemplate.id())\n .quantity(3)\n .controlPlane(true)\n .etcd(true)\n .worker(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 RKE Cluster\n foo-custom:\n type: rancher2:Cluster\n properties:\n description: Foo rancher2 custom cluster\n rkeConfig:\n network:\n plugin: canal\n # Create a new rancher2 Node Template\n fooNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n description: foo test\n amazonec2Config:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n # Create a new rancher2 Node Pool\n fooNodePool:\n type: rancher2:NodePool\n properties:\n clusterId: ${[\"foo-custom\"].id}\n hostnamePrefix: foo-cluster-0\n nodeTemplateId: ${fooNodeTemplate.id}\n quantity: 3\n controlPlane: true\n etcd: true\n worker: true\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster from template. For Rancher v2.3.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 cluster template\nconst fooClusterTemplate = new rancher2.ClusterTemplate(\"fooClusterTemplate\", {\n members: [{\n accessType: \"owner\",\n userPrincipalId: \"local://user-XXXXX\",\n }],\n templateRevisions: [{\n name: \"V1\",\n clusterConfig: {\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n services: {\n etcd: {\n creation: \"6h\",\n retention: \"24h\",\n },\n },\n },\n },\n \"default\": true,\n }],\n description: \"Test cluster template v2\",\n});\n// Create a new rancher2 RKE Cluster from template\nconst fooCluster = new rancher2.Cluster(\"fooCluster\", {\n clusterTemplateId: fooClusterTemplate.id,\n clusterTemplateRevisionId: fooClusterTemplate.templateRevisions.apply(templateRevisions =\u003e templateRevisions[0].id),\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 cluster template\nfoo_cluster_template = rancher2.ClusterTemplate(\"fooClusterTemplate\",\n members=[rancher2.ClusterTemplateMemberArgs(\n access_type=\"owner\",\n user_principal_id=\"local://user-XXXXX\",\n )],\n template_revisions=[rancher2.ClusterTemplateTemplateRevisionArgs(\n name=\"V1\",\n cluster_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs(\n rke_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs(\n network=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n services=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs(\n etcd=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs(\n creation=\"6h\",\n retention=\"24h\",\n ),\n ),\n ),\n ),\n default=True,\n )],\n description=\"Test cluster template v2\")\n# Create a new rancher2 RKE Cluster from template\nfoo_cluster = rancher2.Cluster(\"fooCluster\",\n cluster_template_id=foo_cluster_template.id,\n cluster_template_revision_id=foo_cluster_template.template_revisions[0].id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 cluster template\n var fooClusterTemplate = new Rancher2.ClusterTemplate(\"fooClusterTemplate\", new()\n {\n Members = new[]\n {\n new Rancher2.Inputs.ClusterTemplateMemberArgs\n {\n AccessType = \"owner\",\n UserPrincipalId = \"local://user-XXXXX\",\n },\n },\n TemplateRevisions = new[]\n {\n new Rancher2.Inputs.ClusterTemplateTemplateRevisionArgs\n {\n Name = \"V1\",\n ClusterConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigArgs\n {\n RkeConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n Services = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs\n {\n Etcd = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs\n {\n Creation = \"6h\",\n Retention = \"24h\",\n },\n },\n },\n },\n Default = true,\n },\n },\n Description = \"Test cluster template v2\",\n });\n\n // Create a new rancher2 RKE Cluster from template\n var fooCluster = new Rancher2.Cluster(\"fooCluster\", new()\n {\n ClusterTemplateId = fooClusterTemplate.Id,\n ClusterTemplateRevisionId = fooClusterTemplate.TemplateRevisions.Apply(templateRevisions =\u003e templateRevisions[0].Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooClusterTemplate, err := rancher2.NewClusterTemplate(ctx, \"fooClusterTemplate\", \u0026rancher2.ClusterTemplateArgs{\n\t\t\tMembers: rancher2.ClusterTemplateMemberArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateMemberArgs{\n\t\t\t\t\tAccessType: pulumi.String(\"owner\"),\n\t\t\t\t\tUserPrincipalId: pulumi.String(\"local://user-XXXXX\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateRevisions: rancher2.ClusterTemplateTemplateRevisionArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateTemplateRevisionArgs{\n\t\t\t\t\tName: pulumi.String(\"V1\"),\n\t\t\t\t\tClusterConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs{\n\t\t\t\t\t\tRkeConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs{\n\t\t\t\t\t\t\tNetwork: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{\n\t\t\t\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tServices: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{\n\t\t\t\t\t\t\t\tEtcd: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{\n\t\t\t\t\t\t\t\t\tCreation: pulumi.String(\"6h\"),\n\t\t\t\t\t\t\t\t\tRetention: pulumi.String(\"24h\"),\n\t\t\t\t\t\t\t\t},\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\tDefault: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"Test cluster template v2\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"fooCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tClusterTemplateId: fooClusterTemplate.ID(),\n\t\t\tClusterTemplateRevisionId: fooClusterTemplate.TemplateRevisions.ApplyT(func(templateRevisions []rancher2.ClusterTemplateTemplateRevision) (*string, error) {\n\t\t\t\treturn \u0026templateRevisions[0].Id, nil\n\t\t\t}).(pulumi.StringPtrOutput),\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.rancher2.ClusterTemplate;\nimport com.pulumi.rancher2.ClusterTemplateArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateMemberArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\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 fooClusterTemplate = new ClusterTemplate(\"fooClusterTemplate\", ClusterTemplateArgs.builder() \n .members(ClusterTemplateMemberArgs.builder()\n .accessType(\"owner\")\n .userPrincipalId(\"local://user-XXXXX\")\n .build())\n .templateRevisions(ClusterTemplateTemplateRevisionArgs.builder()\n .name(\"V1\")\n .clusterConfig(ClusterTemplateTemplateRevisionClusterConfigArgs.builder()\n .rkeConfig(ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs.builder()\n .network(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .services(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs.builder()\n .etcd(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs.builder()\n .creation(\"6h\")\n .retention(\"24h\")\n .build())\n .build())\n .build())\n .build())\n .default_(true)\n .build())\n .description(\"Test cluster template v2\")\n .build());\n\n var fooCluster = new Cluster(\"fooCluster\", ClusterArgs.builder() \n .clusterTemplateId(fooClusterTemplate.id())\n .clusterTemplateRevisionId(fooClusterTemplate.templateRevisions().applyValue(templateRevisions -\u003e templateRevisions[0].id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 cluster template\n fooClusterTemplate:\n type: rancher2:ClusterTemplate\n properties:\n members:\n - accessType: owner\n userPrincipalId: local://user-XXXXX\n templateRevisions:\n - name: V1\n clusterConfig:\n rkeConfig:\n network:\n plugin: canal\n services:\n etcd:\n creation: 6h\n retention: 24h\n default: true\n description: Test cluster template v2\n # Create a new rancher2 RKE Cluster from template\n fooCluster:\n type: rancher2:Cluster\n properties:\n clusterTemplateId: ${fooClusterTemplate.id}\n clusterTemplateRevisionId: ${fooClusterTemplate.templateRevisions[0].id}\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster with upgrade strategy. For Rancher v2.4.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = new rancher2.Cluster(\"foo\", {\n description: \"Terraform custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n services: {\n etcd: {\n creation: \"6h\",\n retention: \"24h\",\n },\n kubeApi: {\n auditLog: {\n configuration: {\n format: \"json\",\n maxAge: 5,\n maxBackup: 5,\n maxSize: 100,\n path: \"-\",\n policy: `apiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n`,\n },\n enabled: true,\n },\n },\n },\n upgradeStrategy: {\n drain: true,\n maxUnavailableWorker: \"20%\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.Cluster(\"foo\",\n description=\"Terraform custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n services=rancher2.ClusterRkeConfigServicesArgs(\n etcd=rancher2.ClusterRkeConfigServicesEtcdArgs(\n creation=\"6h\",\n retention=\"24h\",\n ),\n kube_api=rancher2.ClusterRkeConfigServicesKubeApiArgs(\n audit_log=rancher2.ClusterRkeConfigServicesKubeApiAuditLogArgs(\n configuration=rancher2.ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs(\n format=\"json\",\n max_age=5,\n max_backup=5,\n max_size=100,\n path=\"-\",\n policy=\"\"\"apiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n\"\"\",\n ),\n enabled=True,\n ),\n ),\n ),\n upgrade_strategy=rancher2.ClusterRkeConfigUpgradeStrategyArgs(\n drain=True,\n max_unavailable_worker=\"20%\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = new Rancher2.Cluster(\"foo\", new()\n {\n Description = \"Terraform custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n Services = new Rancher2.Inputs.ClusterRkeConfigServicesArgs\n {\n Etcd = new Rancher2.Inputs.ClusterRkeConfigServicesEtcdArgs\n {\n Creation = \"6h\",\n Retention = \"24h\",\n },\n KubeApi = new Rancher2.Inputs.ClusterRkeConfigServicesKubeApiArgs\n {\n AuditLog = new Rancher2.Inputs.ClusterRkeConfigServicesKubeApiAuditLogArgs\n {\n Configuration = new Rancher2.Inputs.ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs\n {\n Format = \"json\",\n MaxAge = 5,\n MaxBackup = 5,\n MaxSize = 100,\n Path = \"-\",\n Policy = @\"apiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n\",\n },\n Enabled = true,\n },\n },\n },\n UpgradeStrategy = new Rancher2.Inputs.ClusterRkeConfigUpgradeStrategyArgs\n {\n Drain = true,\n MaxUnavailableWorker = \"20%\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t},\n\t\t\t\tServices: \u0026rancher2.ClusterRkeConfigServicesArgs{\n\t\t\t\t\tEtcd: \u0026rancher2.ClusterRkeConfigServicesEtcdArgs{\n\t\t\t\t\t\tCreation: pulumi.String(\"6h\"),\n\t\t\t\t\t\tRetention: pulumi.String(\"24h\"),\n\t\t\t\t\t},\n\t\t\t\t\tKubeApi: \u0026rancher2.ClusterRkeConfigServicesKubeApiArgs{\n\t\t\t\t\t\tAuditLog: \u0026rancher2.ClusterRkeConfigServicesKubeApiAuditLogArgs{\n\t\t\t\t\t\t\tConfiguration: \u0026rancher2.ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs{\n\t\t\t\t\t\t\t\tFormat: pulumi.String(\"json\"),\n\t\t\t\t\t\t\t\tMaxAge: pulumi.Int(5),\n\t\t\t\t\t\t\t\tMaxBackup: pulumi.Int(5),\n\t\t\t\t\t\t\t\tMaxSize: pulumi.Int(100),\n\t\t\t\t\t\t\t\tPath: pulumi.String(\"-\"),\n\t\t\t\t\t\t\t\tPolicy: pulumi.String(`apiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n`),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tUpgradeStrategy: \u0026rancher2.ClusterRkeConfigUpgradeStrategyArgs{\n\t\t\t\t\tDrain: pulumi.Bool(true),\n\t\t\t\t\tMaxUnavailableWorker: pulumi.String(\"20%\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesEtcdArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesKubeApiArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesKubeApiAuditLogArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigUpgradeStrategyArgs;\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 foo = new Cluster(\"foo\", ClusterArgs.builder() \n .description(\"Terraform custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .services(ClusterRkeConfigServicesArgs.builder()\n .etcd(ClusterRkeConfigServicesEtcdArgs.builder()\n .creation(\"6h\")\n .retention(\"24h\")\n .build())\n .kubeApi(ClusterRkeConfigServicesKubeApiArgs.builder()\n .auditLog(ClusterRkeConfigServicesKubeApiAuditLogArgs.builder()\n .configuration(ClusterRkeConfigServicesKubeApiAuditLogConfigurationArgs.builder()\n .format(\"json\")\n .maxAge(5)\n .maxBackup(5)\n .maxSize(100)\n .path(\"-\")\n .policy(\"\"\"\napiVersion: audit.k8s.io/v1\nkind: Policy\nmetadata:\n creationTimestamp: null\nomitStages:\n- RequestReceived\nrules:\n- level: RequestResponse\n resources:\n - resources:\n - pods\n\n \"\"\")\n .build())\n .enabled(true)\n .build())\n .build())\n .build())\n .upgradeStrategy(ClusterRkeConfigUpgradeStrategyArgs.builder()\n .drain(true)\n .maxUnavailableWorker(\"20%\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: rancher2:Cluster\n properties:\n description: Terraform custom cluster\n rkeConfig:\n network:\n plugin: canal\n services:\n etcd:\n creation: 6h\n retention: 24h\n kubeApi:\n auditLog:\n configuration:\n format: json\n maxAge: 5\n maxBackup: 5\n maxSize: 100\n path: '-'\n policy: |+\n apiVersion: audit.k8s.io/v1\n kind: Policy\n metadata:\n creationTimestamp: null\n omitStages:\n - RequestReceived\n rules:\n - level: RequestResponse\n resources:\n - resources:\n - pods\n\n enabled: true\n upgradeStrategy:\n drain: true\n maxUnavailableWorker: 20%\n```\n{{% /example %}}\n{{% example %}}\n### Creating Rancher v2 RKE cluster with cluster agent customization. For Rancher v2.7.5 and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = new rancher2.Cluster(\"foo\", {\n clusterAgentDeploymentCustomizations: [{\n appendTolerations: [{\n effect: \"NoSchedule\",\n key: \"tolerate/control-plane\",\n value: \"true\",\n }],\n overrideAffinity: `{\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n}\n\n`,\n overrideResourceRequirements: [{\n cpuLimit: \"800\",\n cpuRequest: \"500\",\n memoryLimit: \"800\",\n memoryRequest: \"500\",\n }],\n }],\n description: \"Terraform cluster with agent customization\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.Cluster(\"foo\",\n cluster_agent_deployment_customizations=[rancher2.ClusterClusterAgentDeploymentCustomizationArgs(\n append_tolerations=[rancher2.ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs(\n effect=\"NoSchedule\",\n key=\"tolerate/control-plane\",\n value=\"true\",\n )],\n override_affinity=\"\"\"{\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n}\n\n\"\"\",\n override_resource_requirements=[rancher2.ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs(\n cpu_limit=\"800\",\n cpu_request=\"500\",\n memory_limit=\"800\",\n memory_request=\"500\",\n )],\n )],\n description=\"Terraform cluster with agent customization\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = new Rancher2.Cluster(\"foo\", new()\n {\n ClusterAgentDeploymentCustomizations = new[]\n {\n new Rancher2.Inputs.ClusterClusterAgentDeploymentCustomizationArgs\n {\n AppendTolerations = new[]\n {\n new Rancher2.Inputs.ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs\n {\n Effect = \"NoSchedule\",\n Key = \"tolerate/control-plane\",\n Value = \"true\",\n },\n },\n OverrideAffinity = @\"{\n \"\"nodeAffinity\"\": {\n \"\"requiredDuringSchedulingIgnoredDuringExecution\"\": {\n \"\"nodeSelectorTerms\"\": [{\n \"\"matchExpressions\"\": [{\n \"\"key\"\": \"\"not.this/nodepool\"\",\n \"\"operator\"\": \"\"In\"\",\n \"\"values\"\": [\n \"\"true\"\"\n ]\n }]\n }]\n }\n }\n}\n\n\",\n OverrideResourceRequirements = new[]\n {\n new Rancher2.Inputs.ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs\n {\n CpuLimit = \"800\",\n CpuRequest = \"500\",\n MemoryLimit = \"800\",\n MemoryRequest = \"500\",\n },\n },\n },\n },\n Description = \"Terraform cluster with agent customization\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo\", \u0026rancher2.ClusterArgs{\n\t\t\tClusterAgentDeploymentCustomizations: rancher2.ClusterClusterAgentDeploymentCustomizationArray{\n\t\t\t\t\u0026rancher2.ClusterClusterAgentDeploymentCustomizationArgs{\n\t\t\t\t\tAppendTolerations: rancher2.ClusterClusterAgentDeploymentCustomizationAppendTolerationArray{\n\t\t\t\t\t\t\u0026rancher2.ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs{\n\t\t\t\t\t\t\tEffect: pulumi.String(\"NoSchedule\"),\n\t\t\t\t\t\t\tKey: pulumi.String(\"tolerate/control-plane\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"true\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tOverrideAffinity: pulumi.String(`{\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n}\n\n`),\n\t\t\t\t\tOverrideResourceRequirements: rancher2.ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray{\n\t\t\t\t\t\t\u0026rancher2.ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{\n\t\t\t\t\t\t\tCpuLimit: pulumi.String(\"800\"),\n\t\t\t\t\t\t\tCpuRequest: pulumi.String(\"500\"),\n\t\t\t\t\t\t\tMemoryLimit: pulumi.String(\"800\"),\n\t\t\t\t\t\t\tMemoryRequest: pulumi.String(\"500\"),\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\tDescription: pulumi.String(\"Terraform cluster with agent customization\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterClusterAgentDeploymentCustomizationArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\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 foo = new Cluster(\"foo\", ClusterArgs.builder() \n .clusterAgentDeploymentCustomizations(ClusterClusterAgentDeploymentCustomizationArgs.builder()\n .appendTolerations(ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs.builder()\n .effect(\"NoSchedule\")\n .key(\"tolerate/control-plane\")\n .value(\"true\")\n .build())\n .overrideAffinity(\"\"\"\n{\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n}\n\n \"\"\")\n .overrideResourceRequirements(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs.builder()\n .cpuLimit(\"800\")\n .cpuRequest(\"500\")\n .memoryLimit(\"800\")\n .memoryRequest(\"500\")\n .build())\n .build())\n .description(\"Terraform cluster with agent customization\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo:\n type: rancher2:Cluster\n properties:\n clusterAgentDeploymentCustomizations:\n - appendTolerations:\n - effect: NoSchedule\n key: tolerate/control-plane\n value: 'true'\n overrideAffinity: |+\n {\n \"nodeAffinity\": {\n \"requiredDuringSchedulingIgnoredDuringExecution\": {\n \"nodeSelectorTerms\": [{\n \"matchExpressions\": [{\n \"key\": \"not.this/nodepool\",\n \"operator\": \"In\",\n \"values\": [\n \"true\"\n ]\n }]\n }]\n }\n }\n }\n\n overrideResourceRequirements:\n - cpuLimit: '800'\n cpuRequest: '500'\n memoryLimit: '800'\n memoryRequest: '500'\n description: Terraform cluster with agent customization\n rkeConfig:\n network:\n plugin: canal\n```\n{{% /example %}}\n{{% example %}}\n### Importing EKS cluster to Rancher v2, using `eks_config_v2`. For Rancher v2.5.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst fooCloudCredential = new rancher2.CloudCredential(\"fooCloudCredential\", {\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooCluster = new rancher2.Cluster(\"fooCluster\", {\n description: \"Terraform EKS cluster\",\n eksConfigV2: {\n cloudCredentialId: fooCloudCredential.id,\n name: \"\u003cCLUSTER_NAME\u003e\",\n region: \"\u003cEKS_REGION\u003e\",\n imported: true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_cloud_credential = rancher2.CloudCredential(\"fooCloudCredential\",\n description=\"foo test\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ))\nfoo_cluster = rancher2.Cluster(\"fooCluster\",\n description=\"Terraform EKS cluster\",\n eks_config_v2=rancher2.ClusterEksConfigV2Args(\n cloud_credential_id=foo_cloud_credential.id,\n name=\"\u003cCLUSTER_NAME\u003e\",\n region=\"\u003cEKS_REGION\u003e\",\n imported=True,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooCloudCredential = new Rancher2.CloudCredential(\"fooCloudCredential\", new()\n {\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooCluster = new Rancher2.Cluster(\"fooCluster\", new()\n {\n Description = \"Terraform EKS cluster\",\n EksConfigV2 = new Rancher2.Inputs.ClusterEksConfigV2Args\n {\n CloudCredentialId = fooCloudCredential.Id,\n Name = \"\u003cCLUSTER_NAME\u003e\",\n Region = \"\u003cEKS_REGION\u003e\",\n Imported = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooCloudCredential, err := rancher2.NewCloudCredential(ctx, \"fooCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"fooCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform EKS cluster\"),\n\t\t\tEksConfigV2: \u0026rancher2.ClusterEksConfigV2Args{\n\t\t\t\tCloudCredentialId: fooCloudCredential.ID(),\n\t\t\t\tName: pulumi.String(\"\u003cCLUSTER_NAME\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cEKS_REGION\u003e\"),\n\t\t\t\tImported: pulumi.Bool(true),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterEksConfigV2Args;\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 fooCloudCredential = new CloudCredential(\"fooCloudCredential\", CloudCredentialArgs.builder() \n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooCluster = new Cluster(\"fooCluster\", ClusterArgs.builder() \n .description(\"Terraform EKS cluster\")\n .eksConfigV2(ClusterEksConfigV2Args.builder()\n .cloudCredentialId(fooCloudCredential.id())\n .name(\"\u003cCLUSTER_NAME\u003e\")\n .region(\"\u003cEKS_REGION\u003e\")\n .imported(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooCloudCredential:\n type: rancher2:CloudCredential\n properties:\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooCluster:\n type: rancher2:Cluster\n properties:\n description: Terraform EKS cluster\n eksConfigV2:\n cloudCredentialId: ${fooCloudCredential.id}\n name: \u003cCLUSTER_NAME\u003e\n region: \u003cEKS_REGION\u003e\n imported: true\n```\n{{% /example %}}\n{{% example %}}\n### Creating EKS cluster from Rancher v2, using `eks_config_v2`. For Rancher v2.5.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst fooCloudCredential = new rancher2.CloudCredential(\"fooCloudCredential\", {\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooCluster = new rancher2.Cluster(\"fooCluster\", {\n description: \"Terraform EKS cluster\",\n eksConfigV2: {\n cloudCredentialId: fooCloudCredential.id,\n region: \"\u003cEKS_REGION\u003e\",\n kubernetesVersion: \"1.24\",\n loggingTypes: [\n \"audit\",\n \"api\",\n ],\n nodeGroups: [\n {\n name: \"node_group1\",\n instanceType: \"t3.medium\",\n desiredSize: 3,\n maxSize: 5,\n },\n {\n name: \"node_group2\",\n instanceType: \"m5.xlarge\",\n desiredSize: 2,\n maxSize: 3,\n nodeRole: \"arn:aws:iam::role/test-NodeInstanceRole\",\n },\n ],\n privateAccess: true,\n publicAccess: false,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_cloud_credential = rancher2.CloudCredential(\"fooCloudCredential\",\n description=\"foo test\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ))\nfoo_cluster = rancher2.Cluster(\"fooCluster\",\n description=\"Terraform EKS cluster\",\n eks_config_v2=rancher2.ClusterEksConfigV2Args(\n cloud_credential_id=foo_cloud_credential.id,\n region=\"\u003cEKS_REGION\u003e\",\n kubernetes_version=\"1.24\",\n logging_types=[\n \"audit\",\n \"api\",\n ],\n node_groups=[\n rancher2.ClusterEksConfigV2NodeGroupArgs(\n name=\"node_group1\",\n instance_type=\"t3.medium\",\n desired_size=3,\n max_size=5,\n ),\n rancher2.ClusterEksConfigV2NodeGroupArgs(\n name=\"node_group2\",\n instance_type=\"m5.xlarge\",\n desired_size=2,\n max_size=3,\n node_role=\"arn:aws:iam::role/test-NodeInstanceRole\",\n ),\n ],\n private_access=True,\n public_access=False,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooCloudCredential = new Rancher2.CloudCredential(\"fooCloudCredential\", new()\n {\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooCluster = new Rancher2.Cluster(\"fooCluster\", new()\n {\n Description = \"Terraform EKS cluster\",\n EksConfigV2 = new Rancher2.Inputs.ClusterEksConfigV2Args\n {\n CloudCredentialId = fooCloudCredential.Id,\n Region = \"\u003cEKS_REGION\u003e\",\n KubernetesVersion = \"1.24\",\n LoggingTypes = new[]\n {\n \"audit\",\n \"api\",\n },\n NodeGroups = new[]\n {\n new Rancher2.Inputs.ClusterEksConfigV2NodeGroupArgs\n {\n Name = \"node_group1\",\n InstanceType = \"t3.medium\",\n DesiredSize = 3,\n MaxSize = 5,\n },\n new Rancher2.Inputs.ClusterEksConfigV2NodeGroupArgs\n {\n Name = \"node_group2\",\n InstanceType = \"m5.xlarge\",\n DesiredSize = 2,\n MaxSize = 3,\n NodeRole = \"arn:aws:iam::role/test-NodeInstanceRole\",\n },\n },\n PrivateAccess = true,\n PublicAccess = false,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooCloudCredential, err := rancher2.NewCloudCredential(ctx, \"fooCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"fooCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform EKS cluster\"),\n\t\t\tEksConfigV2: \u0026rancher2.ClusterEksConfigV2Args{\n\t\t\t\tCloudCredentialId: fooCloudCredential.ID(),\n\t\t\t\tRegion: pulumi.String(\"\u003cEKS_REGION\u003e\"),\n\t\t\t\tKubernetesVersion: pulumi.String(\"1.24\"),\n\t\t\t\tLoggingTypes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"audit\"),\n\t\t\t\t\tpulumi.String(\"api\"),\n\t\t\t\t},\n\t\t\t\tNodeGroups: rancher2.ClusterEksConfigV2NodeGroupArray{\n\t\t\t\t\t\u0026rancher2.ClusterEksConfigV2NodeGroupArgs{\n\t\t\t\t\t\tName: pulumi.String(\"node_group1\"),\n\t\t\t\t\t\tInstanceType: pulumi.String(\"t3.medium\"),\n\t\t\t\t\t\tDesiredSize: pulumi.Int(3),\n\t\t\t\t\t\tMaxSize: pulumi.Int(5),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.ClusterEksConfigV2NodeGroupArgs{\n\t\t\t\t\t\tName: pulumi.String(\"node_group2\"),\n\t\t\t\t\t\tInstanceType: pulumi.String(\"m5.xlarge\"),\n\t\t\t\t\t\tDesiredSize: pulumi.Int(2),\n\t\t\t\t\t\tMaxSize: pulumi.Int(3),\n\t\t\t\t\t\tNodeRole: pulumi.String(\"arn:aws:iam::role/test-NodeInstanceRole\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tPrivateAccess: pulumi.Bool(true),\n\t\t\t\tPublicAccess: pulumi.Bool(false),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterEksConfigV2Args;\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 fooCloudCredential = new CloudCredential(\"fooCloudCredential\", CloudCredentialArgs.builder() \n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooCluster = new Cluster(\"fooCluster\", ClusterArgs.builder() \n .description(\"Terraform EKS cluster\")\n .eksConfigV2(ClusterEksConfigV2Args.builder()\n .cloudCredentialId(fooCloudCredential.id())\n .region(\"\u003cEKS_REGION\u003e\")\n .kubernetesVersion(\"1.24\")\n .loggingTypes( \n \"audit\",\n \"api\")\n .nodeGroups( \n ClusterEksConfigV2NodeGroupArgs.builder()\n .name(\"node_group1\")\n .instanceType(\"t3.medium\")\n .desiredSize(3)\n .maxSize(5)\n .build(),\n ClusterEksConfigV2NodeGroupArgs.builder()\n .name(\"node_group2\")\n .instanceType(\"m5.xlarge\")\n .desiredSize(2)\n .maxSize(3)\n .nodeRole(\"arn:aws:iam::role/test-NodeInstanceRole\")\n .build())\n .privateAccess(true)\n .publicAccess(false)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooCloudCredential:\n type: rancher2:CloudCredential\n properties:\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooCluster:\n type: rancher2:Cluster\n properties:\n description: Terraform EKS cluster\n eksConfigV2:\n cloudCredentialId: ${fooCloudCredential.id}\n region: \u003cEKS_REGION\u003e\n kubernetesVersion: '1.24'\n loggingTypes:\n - audit\n - api\n nodeGroups:\n - name: node_group1\n instanceType: t3.medium\n desiredSize: 3\n maxSize: 5\n - name: node_group2\n instanceType: m5.xlarge\n desiredSize: 2\n maxSize: 3\n nodeRole: arn:aws:iam::role/test-NodeInstanceRole\n privateAccess: true\n publicAccess: false\n```\n{{% /example %}}\n{{% example %}}\n### Creating EKS cluster from Rancher v2, using `eks_config_v2` and launch template. For Rancher v2.5.6 and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst fooCloudCredential = new rancher2.CloudCredential(\"fooCloudCredential\", {\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooCluster = new rancher2.Cluster(\"fooCluster\", {\n description: \"Terraform EKS cluster\",\n eksConfigV2: {\n cloudCredentialId: fooCloudCredential.id,\n region: \"\u003cEKS_REGION\u003e\",\n kubernetesVersion: \"1.24\",\n loggingTypes: [\n \"audit\",\n \"api\",\n ],\n nodeGroups: [{\n desiredSize: 3,\n maxSize: 5,\n name: \"node_group1\",\n launchTemplates: [{\n id: \"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\",\n version: 1,\n }],\n }],\n privateAccess: true,\n publicAccess: true,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_cloud_credential = rancher2.CloudCredential(\"fooCloudCredential\",\n description=\"foo test\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ))\nfoo_cluster = rancher2.Cluster(\"fooCluster\",\n description=\"Terraform EKS cluster\",\n eks_config_v2=rancher2.ClusterEksConfigV2Args(\n cloud_credential_id=foo_cloud_credential.id,\n region=\"\u003cEKS_REGION\u003e\",\n kubernetes_version=\"1.24\",\n logging_types=[\n \"audit\",\n \"api\",\n ],\n node_groups=[rancher2.ClusterEksConfigV2NodeGroupArgs(\n desired_size=3,\n max_size=5,\n name=\"node_group1\",\n launch_templates=[rancher2.ClusterEksConfigV2NodeGroupLaunchTemplateArgs(\n id=\"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\",\n version=1,\n )],\n )],\n private_access=True,\n public_access=True,\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var fooCloudCredential = new Rancher2.CloudCredential(\"fooCloudCredential\", new()\n {\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooCluster = new Rancher2.Cluster(\"fooCluster\", new()\n {\n Description = \"Terraform EKS cluster\",\n EksConfigV2 = new Rancher2.Inputs.ClusterEksConfigV2Args\n {\n CloudCredentialId = fooCloudCredential.Id,\n Region = \"\u003cEKS_REGION\u003e\",\n KubernetesVersion = \"1.24\",\n LoggingTypes = new[]\n {\n \"audit\",\n \"api\",\n },\n NodeGroups = new[]\n {\n new Rancher2.Inputs.ClusterEksConfigV2NodeGroupArgs\n {\n DesiredSize = 3,\n MaxSize = 5,\n Name = \"node_group1\",\n LaunchTemplates = new[]\n {\n new Rancher2.Inputs.ClusterEksConfigV2NodeGroupLaunchTemplateArgs\n {\n Id = \"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\",\n Version = 1,\n },\n },\n },\n },\n PrivateAccess = true,\n PublicAccess = true,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooCloudCredential, err := rancher2.NewCloudCredential(ctx, \"fooCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"fooCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform EKS cluster\"),\n\t\t\tEksConfigV2: \u0026rancher2.ClusterEksConfigV2Args{\n\t\t\t\tCloudCredentialId: fooCloudCredential.ID(),\n\t\t\t\tRegion: pulumi.String(\"\u003cEKS_REGION\u003e\"),\n\t\t\t\tKubernetesVersion: pulumi.String(\"1.24\"),\n\t\t\t\tLoggingTypes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"audit\"),\n\t\t\t\t\tpulumi.String(\"api\"),\n\t\t\t\t},\n\t\t\t\tNodeGroups: rancher2.ClusterEksConfigV2NodeGroupArray{\n\t\t\t\t\t\u0026rancher2.ClusterEksConfigV2NodeGroupArgs{\n\t\t\t\t\t\tDesiredSize: pulumi.Int(3),\n\t\t\t\t\t\tMaxSize: pulumi.Int(5),\n\t\t\t\t\t\tName: pulumi.String(\"node_group1\"),\n\t\t\t\t\t\tLaunchTemplates: rancher2.ClusterEksConfigV2NodeGroupLaunchTemplateArray{\n\t\t\t\t\t\t\t\u0026rancher2.ClusterEksConfigV2NodeGroupLaunchTemplateArgs{\n\t\t\t\t\t\t\t\tId: pulumi.String(\"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\"),\n\t\t\t\t\t\t\t\tVersion: pulumi.Int(1),\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\tPrivateAccess: pulumi.Bool(true),\n\t\t\t\tPublicAccess: pulumi.Bool(true),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterEksConfigV2Args;\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 fooCloudCredential = new CloudCredential(\"fooCloudCredential\", CloudCredentialArgs.builder() \n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooCluster = new Cluster(\"fooCluster\", ClusterArgs.builder() \n .description(\"Terraform EKS cluster\")\n .eksConfigV2(ClusterEksConfigV2Args.builder()\n .cloudCredentialId(fooCloudCredential.id())\n .region(\"\u003cEKS_REGION\u003e\")\n .kubernetesVersion(\"1.24\")\n .loggingTypes( \n \"audit\",\n \"api\")\n .nodeGroups(ClusterEksConfigV2NodeGroupArgs.builder()\n .desiredSize(3)\n .maxSize(5)\n .name(\"node_group1\")\n .launchTemplates(ClusterEksConfigV2NodeGroupLaunchTemplateArgs.builder()\n .id(\"\u003cEC2_LAUNCH_TEMPLATE_ID\u003e\")\n .version(1)\n .build())\n .build())\n .privateAccess(true)\n .publicAccess(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n fooCloudCredential:\n type: rancher2:CloudCredential\n properties:\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooCluster:\n type: rancher2:Cluster\n properties:\n description: Terraform EKS cluster\n eksConfigV2:\n cloudCredentialId: ${fooCloudCredential.id}\n region: \u003cEKS_REGION\u003e\n kubernetesVersion: '1.24'\n loggingTypes:\n - audit\n - api\n nodeGroups:\n - desiredSize: 3\n maxSize: 5\n name: node_group1\n launchTemplates:\n - id: \u003cEC2_LAUNCH_TEMPLATE_ID\u003e\n version: 1\n privateAccess: true\n publicAccess: true\n```\n{{% /example %}}\n{{% example %}}\n### Creating AKS cluster from Rancher v2, using `aks_config_v2`. For Rancher v2.6.0 and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo_aks = new rancher2.CloudCredential(\"foo-aks\", {azureCredentialConfig: {\n clientId: \"\u003cCLIENT_ID\u003e\",\n clientSecret: \"\u003cCLIENT_SECRET\u003e\",\n subscriptionId: \"\u003cSUBSCRIPTION_ID\u003e\",\n}});\nconst foo = new rancher2.Cluster(\"foo\", {\n description: \"Terraform AKS cluster\",\n aksConfigV2: {\n cloudCredentialId: foo_aks.id,\n resourceGroup: \"\u003cRESOURCE_GROUP\u003e\",\n resourceLocation: \"\u003cRESOURCE_LOCATION\u003e\",\n dnsPrefix: \"\u003cDNS_PREFIX\u003e\",\n kubernetesVersion: \"1.24.6\",\n networkPlugin: \"\u003cNETWORK_PLUGIN\u003e\",\n nodePools: [\n {\n availabilityZones: [\n \"1\",\n \"2\",\n \"3\",\n ],\n name: \"\u003cNODEPOOL_NAME_1\u003e\",\n mode: \"System\",\n count: 1,\n orchestratorVersion: \"1.21.2\",\n osDiskSizeGb: 128,\n vmSize: \"Standard_DS2_v2\",\n },\n {\n availabilityZones: [\n \"1\",\n \"2\",\n \"3\",\n ],\n name: \"\u003cNODEPOOL_NAME_2\u003e\",\n count: 1,\n mode: \"User\",\n orchestratorVersion: \"1.21.2\",\n osDiskSizeGb: 128,\n vmSize: \"Standard_DS2_v2\",\n maxSurge: \"25%\",\n labels: {\n test1: \"data1\",\n test2: \"data2\",\n },\n taints: [\"none:PreferNoSchedule\"],\n },\n ],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_aks = rancher2.CloudCredential(\"foo-aks\", azure_credential_config=rancher2.CloudCredentialAzureCredentialConfigArgs(\n client_id=\"\u003cCLIENT_ID\u003e\",\n client_secret=\"\u003cCLIENT_SECRET\u003e\",\n subscription_id=\"\u003cSUBSCRIPTION_ID\u003e\",\n))\nfoo = rancher2.Cluster(\"foo\",\n description=\"Terraform AKS cluster\",\n aks_config_v2=rancher2.ClusterAksConfigV2Args(\n cloud_credential_id=foo_aks.id,\n resource_group=\"\u003cRESOURCE_GROUP\u003e\",\n resource_location=\"\u003cRESOURCE_LOCATION\u003e\",\n dns_prefix=\"\u003cDNS_PREFIX\u003e\",\n kubernetes_version=\"1.24.6\",\n network_plugin=\"\u003cNETWORK_PLUGIN\u003e\",\n node_pools=[\n rancher2.ClusterAksConfigV2NodePoolArgs(\n availability_zones=[\n \"1\",\n \"2\",\n \"3\",\n ],\n name=\"\u003cNODEPOOL_NAME_1\u003e\",\n mode=\"System\",\n count=1,\n orchestrator_version=\"1.21.2\",\n os_disk_size_gb=128,\n vm_size=\"Standard_DS2_v2\",\n ),\n rancher2.ClusterAksConfigV2NodePoolArgs(\n availability_zones=[\n \"1\",\n \"2\",\n \"3\",\n ],\n name=\"\u003cNODEPOOL_NAME_2\u003e\",\n count=1,\n mode=\"User\",\n orchestrator_version=\"1.21.2\",\n os_disk_size_gb=128,\n vm_size=\"Standard_DS2_v2\",\n max_surge=\"25%\",\n labels={\n \"test1\": \"data1\",\n \"test2\": \"data2\",\n },\n taints=[\"none:PreferNoSchedule\"],\n ),\n ],\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_aks = new Rancher2.CloudCredential(\"foo-aks\", new()\n {\n AzureCredentialConfig = new Rancher2.Inputs.CloudCredentialAzureCredentialConfigArgs\n {\n ClientId = \"\u003cCLIENT_ID\u003e\",\n ClientSecret = \"\u003cCLIENT_SECRET\u003e\",\n SubscriptionId = \"\u003cSUBSCRIPTION_ID\u003e\",\n },\n });\n\n var foo = new Rancher2.Cluster(\"foo\", new()\n {\n Description = \"Terraform AKS cluster\",\n AksConfigV2 = new Rancher2.Inputs.ClusterAksConfigV2Args\n {\n CloudCredentialId = foo_aks.Id,\n ResourceGroup = \"\u003cRESOURCE_GROUP\u003e\",\n ResourceLocation = \"\u003cRESOURCE_LOCATION\u003e\",\n DnsPrefix = \"\u003cDNS_PREFIX\u003e\",\n KubernetesVersion = \"1.24.6\",\n NetworkPlugin = \"\u003cNETWORK_PLUGIN\u003e\",\n NodePools = new[]\n {\n new Rancher2.Inputs.ClusterAksConfigV2NodePoolArgs\n {\n AvailabilityZones = new[]\n {\n \"1\",\n \"2\",\n \"3\",\n },\n Name = \"\u003cNODEPOOL_NAME_1\u003e\",\n Mode = \"System\",\n Count = 1,\n OrchestratorVersion = \"1.21.2\",\n OsDiskSizeGb = 128,\n VmSize = \"Standard_DS2_v2\",\n },\n new Rancher2.Inputs.ClusterAksConfigV2NodePoolArgs\n {\n AvailabilityZones = new[]\n {\n \"1\",\n \"2\",\n \"3\",\n },\n Name = \"\u003cNODEPOOL_NAME_2\u003e\",\n Count = 1,\n Mode = \"User\",\n OrchestratorVersion = \"1.21.2\",\n OsDiskSizeGb = 128,\n VmSize = \"Standard_DS2_v2\",\n MaxSurge = \"25%\",\n Labels = \n {\n { \"test1\", \"data1\" },\n { \"test2\", \"data2\" },\n },\n Taints = new[]\n {\n \"none:PreferNoSchedule\",\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCloudCredential(ctx, \"foo-aks\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tAzureCredentialConfig: \u0026rancher2.CloudCredentialAzureCredentialConfigArgs{\n\t\t\t\tClientId: pulumi.String(\"\u003cCLIENT_ID\u003e\"),\n\t\t\t\tClientSecret: pulumi.String(\"\u003cCLIENT_SECRET\u003e\"),\n\t\t\t\tSubscriptionId: pulumi.String(\"\u003cSUBSCRIPTION_ID\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCluster(ctx, \"foo\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Terraform AKS cluster\"),\n\t\t\tAksConfigV2: \u0026rancher2.ClusterAksConfigV2Args{\n\t\t\t\tCloudCredentialId: foo_aks.ID(),\n\t\t\t\tResourceGroup: pulumi.String(\"\u003cRESOURCE_GROUP\u003e\"),\n\t\t\t\tResourceLocation: pulumi.String(\"\u003cRESOURCE_LOCATION\u003e\"),\n\t\t\t\tDnsPrefix: pulumi.String(\"\u003cDNS_PREFIX\u003e\"),\n\t\t\t\tKubernetesVersion: pulumi.String(\"1.24.6\"),\n\t\t\t\tNetworkPlugin: pulumi.String(\"\u003cNETWORK_PLUGIN\u003e\"),\n\t\t\t\tNodePools: rancher2.ClusterAksConfigV2NodePoolArray{\n\t\t\t\t\t\u0026rancher2.ClusterAksConfigV2NodePoolArgs{\n\t\t\t\t\t\tAvailabilityZones: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"1\"),\n\t\t\t\t\t\t\tpulumi.String(\"2\"),\n\t\t\t\t\t\t\tpulumi.String(\"3\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"\u003cNODEPOOL_NAME_1\u003e\"),\n\t\t\t\t\t\tMode: pulumi.String(\"System\"),\n\t\t\t\t\t\tCount: pulumi.Int(1),\n\t\t\t\t\t\tOrchestratorVersion: pulumi.String(\"1.21.2\"),\n\t\t\t\t\t\tOsDiskSizeGb: pulumi.Int(128),\n\t\t\t\t\t\tVmSize: pulumi.String(\"Standard_DS2_v2\"),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.ClusterAksConfigV2NodePoolArgs{\n\t\t\t\t\t\tAvailabilityZones: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"1\"),\n\t\t\t\t\t\t\tpulumi.String(\"2\"),\n\t\t\t\t\t\t\tpulumi.String(\"3\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"\u003cNODEPOOL_NAME_2\u003e\"),\n\t\t\t\t\t\tCount: pulumi.Int(1),\n\t\t\t\t\t\tMode: pulumi.String(\"User\"),\n\t\t\t\t\t\tOrchestratorVersion: pulumi.String(\"1.21.2\"),\n\t\t\t\t\t\tOsDiskSizeGb: pulumi.Int(128),\n\t\t\t\t\t\tVmSize: pulumi.String(\"Standard_DS2_v2\"),\n\t\t\t\t\t\tMaxSurge: pulumi.String(\"25%\"),\n\t\t\t\t\t\tLabels: pulumi.Map{\n\t\t\t\t\t\t\t\"test1\": pulumi.Any(\"data1\"),\n\t\t\t\t\t\t\t\"test2\": pulumi.Any(\"data2\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tTaints: pulumi.StringArray{\n\t\t\t\t\t\t\tpulumi.String(\"none:PreferNoSchedule\"),\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})\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAzureCredentialConfigArgs;\nimport com.pulumi.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterAksConfigV2Args;\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 foo_aks = new CloudCredential(\"foo-aks\", CloudCredentialArgs.builder() \n .azureCredentialConfig(CloudCredentialAzureCredentialConfigArgs.builder()\n .clientId(\"\u003cCLIENT_ID\u003e\")\n .clientSecret(\"\u003cCLIENT_SECRET\u003e\")\n .subscriptionId(\"\u003cSUBSCRIPTION_ID\u003e\")\n .build())\n .build());\n\n var foo = new Cluster(\"foo\", ClusterArgs.builder() \n .description(\"Terraform AKS cluster\")\n .aksConfigV2(ClusterAksConfigV2Args.builder()\n .cloudCredentialId(foo_aks.id())\n .resourceGroup(\"\u003cRESOURCE_GROUP\u003e\")\n .resourceLocation(\"\u003cRESOURCE_LOCATION\u003e\")\n .dnsPrefix(\"\u003cDNS_PREFIX\u003e\")\n .kubernetesVersion(\"1.24.6\")\n .networkPlugin(\"\u003cNETWORK_PLUGIN\u003e\")\n .nodePools( \n ClusterAksConfigV2NodePoolArgs.builder()\n .availabilityZones( \n \"1\",\n \"2\",\n \"3\")\n .name(\"\u003cNODEPOOL_NAME_1\u003e\")\n .mode(\"System\")\n .count(1)\n .orchestratorVersion(\"1.21.2\")\n .osDiskSizeGb(128)\n .vmSize(\"Standard_DS2_v2\")\n .build(),\n ClusterAksConfigV2NodePoolArgs.builder()\n .availabilityZones( \n \"1\",\n \"2\",\n \"3\")\n .name(\"\u003cNODEPOOL_NAME_2\u003e\")\n .count(1)\n .mode(\"User\")\n .orchestratorVersion(\"1.21.2\")\n .osDiskSizeGb(128)\n .vmSize(\"Standard_DS2_v2\")\n .maxSurge(\"25%\")\n .labels(Map.ofEntries(\n Map.entry(\"test1\", \"data1\"),\n Map.entry(\"test2\", \"data2\")\n ))\n .taints(\"none:PreferNoSchedule\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foo-aks:\n type: rancher2:CloudCredential\n properties:\n azureCredentialConfig:\n clientId: \u003cCLIENT_ID\u003e\n clientSecret: \u003cCLIENT_SECRET\u003e\n subscriptionId: \u003cSUBSCRIPTION_ID\u003e\n foo:\n type: rancher2:Cluster\n properties:\n description: Terraform AKS cluster\n aksConfigV2:\n cloudCredentialId: ${[\"foo-aks\"].id}\n resourceGroup: \u003cRESOURCE_GROUP\u003e\n resourceLocation: \u003cRESOURCE_LOCATION\u003e\n dnsPrefix: \u003cDNS_PREFIX\u003e\n kubernetesVersion: 1.24.6\n networkPlugin: \u003cNETWORK_PLUGIN\u003e\n nodePools:\n - availabilityZones:\n - '1'\n - '2'\n - '3'\n name: \u003cNODEPOOL_NAME_1\u003e\n mode: System\n count: 1\n orchestratorVersion: 1.21.2\n osDiskSizeGb: 128\n vmSize: Standard_DS2_v2\n - availabilityZones:\n - '1'\n - '2'\n - '3'\n name: \u003cNODEPOOL_NAME_2\u003e\n count: 1\n mode: User\n orchestratorVersion: 1.21.2\n osDiskSizeGb: 128\n vmSize: Standard_DS2_v2\n maxSurge: 25%\n labels:\n test1: data1\n test2: data2\n taints:\n - none:PreferNoSchedule\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nClusters can be imported using the Rancher Cluster ID\n\n```sh\n $ pulumi import rancher2:index/cluster:Cluster foo \u0026lt;CLUSTER_ID\u0026gt;\n```\n ", "properties": { "agentEnvVars": { "type": "array", @@ -26502,7 +26198,7 @@ } }, "rancher2:index/clusterAlertGroup:ClusterAlertGroup": { - "description": "Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Cluster Alert Group\nconst foo = new rancher2.ClusterAlertGroup(\"foo\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform cluster alert group\",\n groupIntervalSeconds: 300,\n repeatIntervalSeconds: 3600,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Cluster Alert Group\nfoo = rancher2.ClusterAlertGroup(\"foo\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform cluster alert group\",\n group_interval_seconds=300,\n repeat_interval_seconds=3600)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Cluster Alert Group\n var foo = new Rancher2.ClusterAlertGroup(\"foo\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform cluster alert group\",\n GroupIntervalSeconds = 300,\n RepeatIntervalSeconds = 3600,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewClusterAlertGroup(ctx, \"foo\", \u0026rancher2.ClusterAlertGroupArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform cluster alert group\"),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\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.rancher2.ClusterAlertGroup;\nimport com.pulumi.rancher2.ClusterAlertGroupArgs;\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 foo = new ClusterAlertGroup(\"foo\", ClusterAlertGroupArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform cluster alert group\")\n .groupIntervalSeconds(300)\n .repeatIntervalSeconds(3600)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Alert Group\n foo:\n type: rancher2:ClusterAlertGroup\n properties:\n clusterId: \u003ccluster_id\u003e\n description: Terraform cluster alert group\n groupIntervalSeconds: 300\n repeatIntervalSeconds: 3600\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Alert Group can be imported using the Rancher cluster alert group ID\n\n```sh\n $ pulumi import rancher2:index/clusterAlertGroup:ClusterAlertGroup foo \u0026lt;CLUSTER_ALERT_GROUP_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Cluster Alert Group\nconst foo = new rancher2.ClusterAlertGroup(\"foo\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform cluster alert group\",\n groupIntervalSeconds: 300,\n repeatIntervalSeconds: 3600,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Cluster Alert Group\nfoo = rancher2.ClusterAlertGroup(\"foo\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform cluster alert group\",\n group_interval_seconds=300,\n repeat_interval_seconds=3600)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Cluster Alert Group\n var foo = new Rancher2.ClusterAlertGroup(\"foo\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform cluster alert group\",\n GroupIntervalSeconds = 300,\n RepeatIntervalSeconds = 3600,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewClusterAlertGroup(ctx, \"foo\", \u0026rancher2.ClusterAlertGroupArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform cluster alert group\"),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\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.rancher2.ClusterAlertGroup;\nimport com.pulumi.rancher2.ClusterAlertGroupArgs;\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 foo = new ClusterAlertGroup(\"foo\", ClusterAlertGroupArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform cluster alert group\")\n .groupIntervalSeconds(300)\n .repeatIntervalSeconds(3600)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Alert Group\n foo:\n type: rancher2:ClusterAlertGroup\n properties:\n clusterId: \u003ccluster_id\u003e\n description: Terraform cluster alert group\n groupIntervalSeconds: 300\n repeatIntervalSeconds: 3600\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Alert Group can be imported using the Rancher cluster alert group ID\n\n```sh\n $ pulumi import rancher2:index/clusterAlertGroup:ClusterAlertGroup foo \u0026lt;CLUSTER_ALERT_GROUP_ID\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -26656,15 +26352,10 @@ } }, "type": "object" - }, - "aliases": [ - { - "type": "rancher2:index/clusterAlterGroup:ClusterAlterGroup" - } - ] + } }, "rancher2:index/clusterAlertRule:ClusterAlertRule": { - "description": "Provides a Rancher v2 Cluster Alert Rule resource. This can be used to create Cluster Alert Rule for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Cluster Alert Group\nconst fooClusterAlertGroup = new rancher2.ClusterAlertGroup(\"fooClusterAlertGroup\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform cluster alert group\",\n groupIntervalSeconds: 300,\n repeatIntervalSeconds: 3600,\n});\n// Create a new Rancher2 Cluster Alert Rule\nconst fooClusterAlertRule = new rancher2.ClusterAlertRule(\"fooClusterAlertRule\", {\n clusterId: fooClusterAlertGroup.clusterId,\n groupId: fooClusterAlertGroup.id,\n groupIntervalSeconds: 600,\n repeatIntervalSeconds: 6000,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Cluster Alert Group\nfoo_cluster_alert_group = rancher2.ClusterAlertGroup(\"fooClusterAlertGroup\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform cluster alert group\",\n group_interval_seconds=300,\n repeat_interval_seconds=3600)\n# Create a new Rancher2 Cluster Alert Rule\nfoo_cluster_alert_rule = rancher2.ClusterAlertRule(\"fooClusterAlertRule\",\n cluster_id=foo_cluster_alert_group.cluster_id,\n group_id=foo_cluster_alert_group.id,\n group_interval_seconds=600,\n repeat_interval_seconds=6000)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Cluster Alert Group\n var fooClusterAlertGroup = new Rancher2.ClusterAlertGroup(\"fooClusterAlertGroup\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform cluster alert group\",\n GroupIntervalSeconds = 300,\n RepeatIntervalSeconds = 3600,\n });\n\n // Create a new Rancher2 Cluster Alert Rule\n var fooClusterAlertRule = new Rancher2.ClusterAlertRule(\"fooClusterAlertRule\", new()\n {\n ClusterId = fooClusterAlertGroup.ClusterId,\n GroupId = fooClusterAlertGroup.Id,\n GroupIntervalSeconds = 600,\n RepeatIntervalSeconds = 6000,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooClusterAlertGroup, err := rancher2.NewClusterAlertGroup(ctx, \"fooClusterAlertGroup\", \u0026rancher2.ClusterAlertGroupArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform cluster alert group\"),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewClusterAlertRule(ctx, \"fooClusterAlertRule\", \u0026rancher2.ClusterAlertRuleArgs{\n\t\t\tClusterId: fooClusterAlertGroup.ClusterId,\n\t\t\tGroupId: fooClusterAlertGroup.ID(),\n\t\t\tGroupIntervalSeconds: pulumi.Int(600),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(6000),\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.rancher2.ClusterAlertGroup;\nimport com.pulumi.rancher2.ClusterAlertGroupArgs;\nimport com.pulumi.rancher2.ClusterAlertRule;\nimport com.pulumi.rancher2.ClusterAlertRuleArgs;\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 fooClusterAlertGroup = new ClusterAlertGroup(\"fooClusterAlertGroup\", ClusterAlertGroupArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform cluster alert group\")\n .groupIntervalSeconds(300)\n .repeatIntervalSeconds(3600)\n .build());\n\n var fooClusterAlertRule = new ClusterAlertRule(\"fooClusterAlertRule\", ClusterAlertRuleArgs.builder() \n .clusterId(fooClusterAlertGroup.clusterId())\n .groupId(fooClusterAlertGroup.id())\n .groupIntervalSeconds(600)\n .repeatIntervalSeconds(6000)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Alert Group\n fooClusterAlertGroup:\n type: rancher2:ClusterAlertGroup\n properties:\n clusterId: \u003ccluster_id\u003e\n description: Terraform cluster alert group\n groupIntervalSeconds: 300\n repeatIntervalSeconds: 3600\n # Create a new Rancher2 Cluster Alert Rule\n fooClusterAlertRule:\n type: rancher2:ClusterAlertRule\n properties:\n clusterId: ${fooClusterAlertGroup.clusterId}\n groupId: ${fooClusterAlertGroup.id}\n groupIntervalSeconds: 600\n repeatIntervalSeconds: 6000\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Alert Rule can be imported using the Rancher cluster alert rule ID\n\n```sh\n $ pulumi import rancher2:index/clusterAlertRule:ClusterAlertRule foo \u0026lt;CLUSTER_ALERT_RULE_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Cluster Alert Rule resource. This can be used to create Cluster Alert Rule for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Cluster Alert Group\nconst fooClusterAlertGroup = new rancher2.ClusterAlertGroup(\"fooClusterAlertGroup\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform cluster alert group\",\n groupIntervalSeconds: 300,\n repeatIntervalSeconds: 3600,\n});\n// Create a new Rancher2 Cluster Alert Rule\nconst fooClusterAlertRule = new rancher2.ClusterAlertRule(\"fooClusterAlertRule\", {\n clusterId: fooClusterAlertGroup.clusterId,\n groupId: fooClusterAlertGroup.id,\n groupIntervalSeconds: 600,\n repeatIntervalSeconds: 6000,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Cluster Alert Group\nfoo_cluster_alert_group = rancher2.ClusterAlertGroup(\"fooClusterAlertGroup\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform cluster alert group\",\n group_interval_seconds=300,\n repeat_interval_seconds=3600)\n# Create a new Rancher2 Cluster Alert Rule\nfoo_cluster_alert_rule = rancher2.ClusterAlertRule(\"fooClusterAlertRule\",\n cluster_id=foo_cluster_alert_group.cluster_id,\n group_id=foo_cluster_alert_group.id,\n group_interval_seconds=600,\n repeat_interval_seconds=6000)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Cluster Alert Group\n var fooClusterAlertGroup = new Rancher2.ClusterAlertGroup(\"fooClusterAlertGroup\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform cluster alert group\",\n GroupIntervalSeconds = 300,\n RepeatIntervalSeconds = 3600,\n });\n\n // Create a new Rancher2 Cluster Alert Rule\n var fooClusterAlertRule = new Rancher2.ClusterAlertRule(\"fooClusterAlertRule\", new()\n {\n ClusterId = fooClusterAlertGroup.ClusterId,\n GroupId = fooClusterAlertGroup.Id,\n GroupIntervalSeconds = 600,\n RepeatIntervalSeconds = 6000,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooClusterAlertGroup, err := rancher2.NewClusterAlertGroup(ctx, \"fooClusterAlertGroup\", \u0026rancher2.ClusterAlertGroupArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform cluster alert group\"),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewClusterAlertRule(ctx, \"fooClusterAlertRule\", \u0026rancher2.ClusterAlertRuleArgs{\n\t\t\tClusterId: fooClusterAlertGroup.ClusterId,\n\t\t\tGroupId: fooClusterAlertGroup.ID(),\n\t\t\tGroupIntervalSeconds: pulumi.Int(600),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(6000),\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.rancher2.ClusterAlertGroup;\nimport com.pulumi.rancher2.ClusterAlertGroupArgs;\nimport com.pulumi.rancher2.ClusterAlertRule;\nimport com.pulumi.rancher2.ClusterAlertRuleArgs;\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 fooClusterAlertGroup = new ClusterAlertGroup(\"fooClusterAlertGroup\", ClusterAlertGroupArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform cluster alert group\")\n .groupIntervalSeconds(300)\n .repeatIntervalSeconds(3600)\n .build());\n\n var fooClusterAlertRule = new ClusterAlertRule(\"fooClusterAlertRule\", ClusterAlertRuleArgs.builder() \n .clusterId(fooClusterAlertGroup.clusterId())\n .groupId(fooClusterAlertGroup.id())\n .groupIntervalSeconds(600)\n .repeatIntervalSeconds(6000)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Alert Group\n fooClusterAlertGroup:\n type: rancher2:ClusterAlertGroup\n properties:\n clusterId: \u003ccluster_id\u003e\n description: Terraform cluster alert group\n groupIntervalSeconds: 300\n repeatIntervalSeconds: 3600\n # Create a new Rancher2 Cluster Alert Rule\n fooClusterAlertRule:\n type: rancher2:ClusterAlertRule\n properties:\n clusterId: ${fooClusterAlertGroup.clusterId}\n groupId: ${fooClusterAlertGroup.id}\n groupIntervalSeconds: 600\n repeatIntervalSeconds: 6000\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Alert Rule can be imported using the Rancher cluster alert rule ID\n\n```sh\n $ pulumi import rancher2:index/clusterAlertRule:ClusterAlertRule foo \u0026lt;CLUSTER_ALERT_RULE_ID\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -26871,381 +26562,7 @@ } }, "type": "object" - }, - "aliases": [ - { - "type": "rancher2:index/clusterAlterRule:ClusterAlterRule" - } - ] - }, - "rancher2:index/clusterAlterGroup:ClusterAlterGroup": { - "description": "Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Cluster Alert Group\nconst foo = new rancher2.ClusterAlertGroup(\"foo\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform cluster alert group\",\n groupIntervalSeconds: 300,\n repeatIntervalSeconds: 3600,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Cluster Alert Group\nfoo = rancher2.ClusterAlertGroup(\"foo\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform cluster alert group\",\n group_interval_seconds=300,\n repeat_interval_seconds=3600)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Cluster Alert Group\n var foo = new Rancher2.ClusterAlertGroup(\"foo\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform cluster alert group\",\n GroupIntervalSeconds = 300,\n RepeatIntervalSeconds = 3600,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewClusterAlertGroup(ctx, \"foo\", \u0026rancher2.ClusterAlertGroupArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform cluster alert group\"),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\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.rancher2.ClusterAlertGroup;\nimport com.pulumi.rancher2.ClusterAlertGroupArgs;\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 foo = new ClusterAlertGroup(\"foo\", ClusterAlertGroupArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform cluster alert group\")\n .groupIntervalSeconds(300)\n .repeatIntervalSeconds(3600)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Alert Group\n foo:\n type: rancher2:ClusterAlertGroup\n properties:\n clusterId: \u003ccluster_id\u003e\n description: Terraform cluster alert group\n groupIntervalSeconds: 300\n repeatIntervalSeconds: 3600\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Alert Group can be imported using the Rancher cluster alert group ID\n\n```sh\n $ pulumi import rancher2:index/clusterAlterGroup:ClusterAlterGroup foo \u0026lt;CLUSTER_ALERT_GROUP_ID\u0026gt;\n```\n ", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group annotations (map)\n" - }, - "clusterId": { - "type": "string", - "description": "The cluster id where create cluster alert group (string)\n" - }, - "description": { - "type": "string", - "description": "The cluster alert group description (string)\n" - }, - "groupIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group interval seconds. Default: `180` (int)\n" - }, - "groupWaitSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `180` (int)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group labels (map)\n" - }, - "name": { - "type": "string", - "description": "The cluster alert group name (string)\n" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/types/rancher2:index/ClusterAlterGroupRecipient:ClusterAlterGroupRecipient" - }, - "description": "The cluster alert group recipients (list)\n" - }, - "repeatIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `3600` (int)\n" - } - }, - "required": [ - "annotations", - "clusterId", - "labels", - "name" - ], - "inputProperties": { - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group annotations (map)\n" - }, - "clusterId": { - "type": "string", - "description": "The cluster id where create cluster alert group (string)\n" - }, - "description": { - "type": "string", - "description": "The cluster alert group description (string)\n" - }, - "groupIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group interval seconds. Default: `180` (int)\n" - }, - "groupWaitSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `180` (int)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group labels (map)\n" - }, - "name": { - "type": "string", - "description": "The cluster alert group name (string)\n" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/types/rancher2:index/ClusterAlterGroupRecipient:ClusterAlterGroupRecipient" - }, - "description": "The cluster alert group recipients (list)\n" - }, - "repeatIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `3600` (int)\n" - } - }, - "requiredInputs": [ - "clusterId" - ], - "stateInputs": { - "description": "Input properties used for looking up and filtering ClusterAlterGroup resources.\n", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group annotations (map)\n" - }, - "clusterId": { - "type": "string", - "description": "The cluster id where create cluster alert group (string)\n" - }, - "description": { - "type": "string", - "description": "The cluster alert group description (string)\n" - }, - "groupIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group interval seconds. Default: `180` (int)\n" - }, - "groupWaitSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `180` (int)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group labels (map)\n" - }, - "name": { - "type": "string", - "description": "The cluster alert group name (string)\n" - }, - "recipients": { - "type": "array", - "items": { - "$ref": "#/types/rancher2:index/ClusterAlterGroupRecipient:ClusterAlterGroupRecipient" - }, - "description": "The cluster alert group recipients (list)\n" - }, - "repeatIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `3600` (int)\n" - } - }, - "type": "object" - }, - "deprecationMessage": "rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup" - }, - "rancher2:index/clusterAlterRule:ClusterAlterRule": { - "description": "Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Cluster Alert Group\nconst foo = new rancher2.ClusterAlertGroup(\"foo\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform cluster alert group\",\n groupIntervalSeconds: 300,\n repeatIntervalSeconds: 3600,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Cluster Alert Group\nfoo = rancher2.ClusterAlertGroup(\"foo\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform cluster alert group\",\n group_interval_seconds=300,\n repeat_interval_seconds=3600)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Cluster Alert Group\n var foo = new Rancher2.ClusterAlertGroup(\"foo\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform cluster alert group\",\n GroupIntervalSeconds = 300,\n RepeatIntervalSeconds = 3600,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewClusterAlertGroup(ctx, \"foo\", \u0026rancher2.ClusterAlertGroupArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform cluster alert group\"),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\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.rancher2.ClusterAlertGroup;\nimport com.pulumi.rancher2.ClusterAlertGroupArgs;\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 foo = new ClusterAlertGroup(\"foo\", ClusterAlertGroupArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform cluster alert group\")\n .groupIntervalSeconds(300)\n .repeatIntervalSeconds(3600)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Alert Group\n foo:\n type: rancher2:ClusterAlertGroup\n properties:\n clusterId: \u003ccluster_id\u003e\n description: Terraform cluster alert group\n groupIntervalSeconds: 300\n repeatIntervalSeconds: 3600\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Alert Group can be imported using the Rancher cluster alert group ID\n\n```sh\n $ pulumi import rancher2:index/clusterAlterRule:ClusterAlterRule foo \u0026lt;CLUSTER_ALERT_GROUP_ID\u0026gt;\n```\n ", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group annotations (map)\n" - }, - "clusterId": { - "type": "string", - "description": "The cluster id where create cluster alert group (string)\n" - }, - "eventRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleEventRule:ClusterAlterRuleEventRule", - "description": "Alert event rule\n" - }, - "groupId": { - "type": "string", - "description": "Alert rule group ID\n" - }, - "groupIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group interval seconds. Default: `180` (int)\n" - }, - "groupWaitSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `180` (int)\n" - }, - "inherited": { - "type": "boolean", - "description": "Alert rule inherited\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group labels (map)\n" - }, - "metricRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleMetricRule:ClusterAlterRuleMetricRule", - "description": "Alert metric rule\n" - }, - "name": { - "type": "string", - "description": "The cluster alert group name (string)\n" - }, - "nodeRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleNodeRule:ClusterAlterRuleNodeRule", - "description": "Alert node rule\n" - }, - "repeatIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `3600` (int)\n" - }, - "severity": { - "type": "string", - "description": "Alert rule severity\n" - }, - "systemServiceRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleSystemServiceRule:ClusterAlterRuleSystemServiceRule", - "description": "Alert system service rule\n" - } - }, - "required": [ - "annotations", - "clusterId", - "groupId", - "labels", - "name" - ], - "inputProperties": { - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group annotations (map)\n" - }, - "clusterId": { - "type": "string", - "description": "The cluster id where create cluster alert group (string)\n" - }, - "eventRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleEventRule:ClusterAlterRuleEventRule", - "description": "Alert event rule\n" - }, - "groupId": { - "type": "string", - "description": "Alert rule group ID\n" - }, - "groupIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group interval seconds. Default: `180` (int)\n" - }, - "groupWaitSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `180` (int)\n" - }, - "inherited": { - "type": "boolean", - "description": "Alert rule inherited\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group labels (map)\n" - }, - "metricRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleMetricRule:ClusterAlterRuleMetricRule", - "description": "Alert metric rule\n" - }, - "name": { - "type": "string", - "description": "The cluster alert group name (string)\n" - }, - "nodeRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleNodeRule:ClusterAlterRuleNodeRule", - "description": "Alert node rule\n" - }, - "repeatIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `3600` (int)\n" - }, - "severity": { - "type": "string", - "description": "Alert rule severity\n" - }, - "systemServiceRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleSystemServiceRule:ClusterAlterRuleSystemServiceRule", - "description": "Alert system service rule\n" - } - }, - "requiredInputs": [ - "clusterId", - "groupId" - ], - "stateInputs": { - "description": "Input properties used for looking up and filtering ClusterAlterRule resources.\n", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group annotations (map)\n" - }, - "clusterId": { - "type": "string", - "description": "The cluster id where create cluster alert group (string)\n" - }, - "eventRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleEventRule:ClusterAlterRuleEventRule", - "description": "Alert event rule\n" - }, - "groupId": { - "type": "string", - "description": "Alert rule group ID\n" - }, - "groupIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group interval seconds. Default: `180` (int)\n" - }, - "groupWaitSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `180` (int)\n" - }, - "inherited": { - "type": "boolean", - "description": "Alert rule inherited\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "The cluster alert group labels (map)\n" - }, - "metricRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleMetricRule:ClusterAlterRuleMetricRule", - "description": "Alert metric rule\n" - }, - "name": { - "type": "string", - "description": "The cluster alert group name (string)\n" - }, - "nodeRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleNodeRule:ClusterAlterRuleNodeRule", - "description": "Alert node rule\n" - }, - "repeatIntervalSeconds": { - "type": "integer", - "description": "The cluster alert group wait seconds. Default: `3600` (int)\n" - }, - "severity": { - "type": "string", - "description": "Alert rule severity\n" - }, - "systemServiceRule": { - "$ref": "#/types/rancher2:index/ClusterAlterRuleSystemServiceRule:ClusterAlterRuleSystemServiceRule", - "description": "Alert system service rule\n" - } - }, - "type": "object" - }, - "deprecationMessage": "rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule" + } }, "rancher2:index/clusterDriver:ClusterDriver": { "description": "Provides a Rancher v2 Cluster Driver resource. This can be used to create Cluster Driver for Rancher v2.2.x Kontainer Engine clusters and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.ClusterDriver;\nimport com.pulumi.rancher2.ClusterDriverArgs;\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 foo = new ClusterDriver(\"foo\", ClusterDriverArgs.builder() \n .active(true)\n .builtin(false)\n .checksum(\"0x0\")\n .description(\"Foo description\")\n .externalId(\"foo_external\")\n .uiUrl(\"local://ui\")\n .url(\"local://\")\n .whitelistDomains(\"*.foo.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Driver\n foo:\n type: rancher2:ClusterDriver\n properties:\n active: true\n builtin: false\n checksum: 0x0\n description: Foo description\n externalId: foo_external\n uiUrl: local://ui\n url: local://\n whitelistDomains:\n - '*.foo.com'\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Driver can be imported using the Rancher Cluster Driver ID\n\n```sh\n $ pulumi import rancher2:index/clusterDriver:ClusterDriver foo \u0026lt;CLUSTER_DRIVER_ID\u0026gt;\n```\n ", @@ -27421,7 +26738,7 @@ } }, "rancher2:index/clusterRoleTemplateBinding:ClusterRoleTemplateBinding": { - "description": "Provides a Rancher v2 Cluster Role Template Binding resource. This can be used to create Cluster Role Template Bindings for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Cluster Role Template Binding\nconst foo = new rancher2.ClusterRoleTemplateBinding(\"foo\", {\n clusterId: \"\u003ccluster_id\u003e\",\n roleTemplateId: \"\u003crole_template_id\u003e\",\n userId: \"\u003cuser_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Cluster Role Template Binding\nfoo = rancher2.ClusterRoleTemplateBinding(\"foo\",\n cluster_id=\"\u003ccluster_id\u003e\",\n role_template_id=\"\u003crole_template_id\u003e\",\n user_id=\"\u003cuser_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Cluster Role Template Binding\n var foo = new Rancher2.ClusterRoleTemplateBinding(\"foo\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n RoleTemplateId = \"\u003crole_template_id\u003e\",\n UserId = \"\u003cuser_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewClusterRoleTemplateBinding(ctx, \"foo\", \u0026rancher2.ClusterRoleTemplateBindingArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tRoleTemplateId: pulumi.String(\"\u003crole_template_id\u003e\"),\n\t\t\tUserId: pulumi.String(\"\u003cuser_id\u003e\"),\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.rancher2.ClusterRoleTemplateBinding;\nimport com.pulumi.rancher2.ClusterRoleTemplateBindingArgs;\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 foo = new ClusterRoleTemplateBinding(\"foo\", ClusterRoleTemplateBindingArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .roleTemplateId(\"\u003crole_template_id\u003e\")\n .userId(\"\u003cuser_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Role Template Binding\n foo:\n type: rancher2:ClusterRoleTemplateBinding\n properties:\n clusterId: \u003ccluster_id\u003e\n roleTemplateId: \u003crole_template_id\u003e\n userId: \u003cuser_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Role Template Bindings can be imported using the Rancher cluster Role Template Binding ID\n\n```sh\n $ pulumi import rancher2:index/clusterRoleTemplateBinding:ClusterRoleTemplateBinding foo \u0026lt;CLUSTER_ROLE_TEMPLATE_BINDING_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Cluster Role Template Binding resource. This can be used to create Cluster Role Template Bindings for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Cluster Role Template Binding\nconst foo = new rancher2.ClusterRoleTemplateBinding(\"foo\", {\n clusterId: \"\u003ccluster_id\u003e\",\n roleTemplateId: \"\u003crole_template_id\u003e\",\n userId: \"\u003cuser_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Cluster Role Template Binding\nfoo = rancher2.ClusterRoleTemplateBinding(\"foo\",\n cluster_id=\"\u003ccluster_id\u003e\",\n role_template_id=\"\u003crole_template_id\u003e\",\n user_id=\"\u003cuser_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Cluster Role Template Binding\n var foo = new Rancher2.ClusterRoleTemplateBinding(\"foo\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n RoleTemplateId = \"\u003crole_template_id\u003e\",\n UserId = \"\u003cuser_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewClusterRoleTemplateBinding(ctx, \"foo\", \u0026rancher2.ClusterRoleTemplateBindingArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tRoleTemplateId: pulumi.String(\"\u003crole_template_id\u003e\"),\n\t\t\tUserId: pulumi.String(\"\u003cuser_id\u003e\"),\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.rancher2.ClusterRoleTemplateBinding;\nimport com.pulumi.rancher2.ClusterRoleTemplateBindingArgs;\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 foo = new ClusterRoleTemplateBinding(\"foo\", ClusterRoleTemplateBindingArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .roleTemplateId(\"\u003crole_template_id\u003e\")\n .userId(\"\u003cuser_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Cluster Role Template Binding\n foo:\n type: rancher2:ClusterRoleTemplateBinding\n properties:\n clusterId: \u003ccluster_id\u003e\n roleTemplateId: \u003crole_template_id\u003e\n userId: \u003cuser_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Role Template Bindings can be imported using the Rancher cluster Role Template Binding ID\n\n```sh\n $ pulumi import rancher2:index/clusterRoleTemplateBinding:ClusterRoleTemplateBinding foo \u0026lt;CLUSTER_ROLE_TEMPLATE_BINDING_ID\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -27589,7 +26906,7 @@ } }, "rancher2:index/clusterSync:ClusterSync": { - "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 rke Cluster \nconst foo_customCluster = new rancher2.Cluster(\"foo-customCluster\", {\n description: \"Foo rancher2 custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n// Create a new rancher2 Node Template\nconst fooNodeTemplate = new rancher2.NodeTemplate(\"fooNodeTemplate\", {\n description: \"foo test\",\n amazonec2Config: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n// Create a new rancher2 Node Pool\nconst fooNodePool = new rancher2.NodePool(\"fooNodePool\", {\n clusterId: foo_customCluster.id,\n hostnamePrefix: \"foo-cluster-0\",\n nodeTemplateId: fooNodeTemplate.id,\n quantity: 3,\n controlPlane: true,\n etcd: true,\n worker: true,\n});\n// Create a new rancher2 Cluster Sync\nconst foo_customClusterSync = new rancher2.ClusterSync(\"foo-customClusterSync\", {\n clusterId: foo_customCluster.id,\n nodePoolIds: [fooNodePool.id],\n});\n// Create a new rancher2 Project\nconst fooProject = new rancher2.Project(\"fooProject\", {\n clusterId: foo_customClusterSync.id,\n description: \"Terraform namespace acceptance test\",\n resourceQuota: {\n projectLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"2000Mi\",\n requestsStorage: \"2Gi\",\n },\n namespaceDefaultLimit: {\n limitsCpu: \"500m\",\n limitsMemory: \"500Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 rke Cluster \nfoo_custom_cluster = rancher2.Cluster(\"foo-customCluster\",\n description=\"Foo rancher2 custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n# Create a new rancher2 Node Template\nfoo_node_template = rancher2.NodeTemplate(\"fooNodeTemplate\",\n description=\"foo test\",\n amazonec2_config=rancher2.NodeTemplateAmazonec2ConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ami=\"\u003cAMI_ID\u003e\",\n region=\"\u003cREGION\u003e\",\n security_groups=[\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnet_id=\"\u003cSUBNET_ID\u003e\",\n vpc_id=\"\u003cVPC_ID\u003e\",\n zone=\"\u003cZONE\u003e\",\n ))\n# Create a new rancher2 Node Pool\nfoo_node_pool = rancher2.NodePool(\"fooNodePool\",\n cluster_id=foo_custom_cluster.id,\n hostname_prefix=\"foo-cluster-0\",\n node_template_id=foo_node_template.id,\n quantity=3,\n control_plane=True,\n etcd=True,\n worker=True)\n# Create a new rancher2 Cluster Sync\nfoo_custom_cluster_sync = rancher2.ClusterSync(\"foo-customClusterSync\",\n cluster_id=foo_custom_cluster.id,\n node_pool_ids=[foo_node_pool.id])\n# Create a new rancher2 Project\nfoo_project = rancher2.Project(\"fooProject\",\n cluster_id=foo_custom_cluster_sync.id,\n description=\"Terraform namespace acceptance test\",\n resource_quota=rancher2.ProjectResourceQuotaArgs(\n project_limit=rancher2.ProjectResourceQuotaProjectLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"2000Mi\",\n requests_storage=\"2Gi\",\n ),\n namespace_default_limit=rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs(\n limits_cpu=\"500m\",\n limits_memory=\"500Mi\",\n requests_storage=\"1Gi\",\n ),\n ),\n container_resource_limit=rancher2.ProjectContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 rke Cluster \n var foo_customCluster = new Rancher2.Cluster(\"foo-customCluster\", new()\n {\n Description = \"Foo rancher2 custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n // Create a new rancher2 Node Template\n var fooNodeTemplate = new Rancher2.NodeTemplate(\"fooNodeTemplate\", new()\n {\n Description = \"foo test\",\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n // Create a new rancher2 Node Pool\n var fooNodePool = new Rancher2.NodePool(\"fooNodePool\", new()\n {\n ClusterId = foo_customCluster.Id,\n HostnamePrefix = \"foo-cluster-0\",\n NodeTemplateId = fooNodeTemplate.Id,\n Quantity = 3,\n ControlPlane = true,\n Etcd = true,\n Worker = true,\n });\n\n // Create a new rancher2 Cluster Sync\n var foo_customClusterSync = new Rancher2.ClusterSync(\"foo-customClusterSync\", new()\n {\n ClusterId = foo_customCluster.Id,\n NodePoolIds = new[]\n {\n fooNodePool.Id,\n },\n });\n\n // Create a new rancher2 Project\n var fooProject = new Rancher2.Project(\"fooProject\", new()\n {\n ClusterId = foo_customClusterSync.Id,\n Description = \"Terraform namespace acceptance test\",\n ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs\n {\n ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"2000Mi\",\n RequestsStorage = \"2Gi\",\n },\n NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs\n {\n LimitsCpu = \"500m\",\n LimitsMemory = \"500Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-customCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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\tfooNodeTemplate, err := rancher2.NewNodeTemplate(ctx, \"fooNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooNodePool, err := rancher2.NewNodePool(ctx, \"fooNodePool\", \u0026rancher2.NodePoolArgs{\n\t\t\tClusterId: foo_customCluster.ID(),\n\t\t\tHostnamePrefix: pulumi.String(\"foo-cluster-0\"),\n\t\t\tNodeTemplateId: fooNodeTemplate.ID(),\n\t\t\tQuantity: pulumi.Int(3),\n\t\t\tControlPlane: pulumi.Bool(true),\n\t\t\tEtcd: pulumi.Bool(true),\n\t\t\tWorker: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewClusterSync(ctx, \"foo-customClusterSync\", \u0026rancher2.ClusterSyncArgs{\n\t\t\tClusterId: foo_customCluster.ID(),\n\t\t\tNodePoolIds: pulumi.StringArray{\n\t\t\t\tfooNodePool.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewProject(ctx, \"fooProject\", \u0026rancher2.ProjectArgs{\n\t\t\tClusterId: foo_customClusterSync.ID(),\n\t\t\tDescription: pulumi.String(\"Terraform namespace acceptance test\"),\n\t\t\tResourceQuota: \u0026rancher2.ProjectResourceQuotaArgs{\n\t\t\t\tProjectLimit: \u0026rancher2.ProjectResourceQuotaProjectLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"2000Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"2Gi\"),\n\t\t\t\t},\n\t\t\t\tNamespaceDefaultLimit: \u0026rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"500m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"500Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tContainerResourceLimit: \u0026rancher2.ProjectContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\nimport com.pulumi.rancher2.NodePool;\nimport com.pulumi.rancher2.NodePoolArgs;\nimport com.pulumi.rancher2.ClusterSync;\nimport com.pulumi.rancher2.ClusterSyncArgs;\nimport com.pulumi.rancher2.Project;\nimport com.pulumi.rancher2.ProjectArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs;\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 foo_customCluster = new Cluster(\"foo-customCluster\", ClusterArgs.builder() \n .description(\"Foo rancher2 custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n var fooNodeTemplate = new NodeTemplate(\"fooNodeTemplate\", NodeTemplateArgs.builder() \n .description(\"foo test\")\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n var fooNodePool = new NodePool(\"fooNodePool\", NodePoolArgs.builder() \n .clusterId(foo_customCluster.id())\n .hostnamePrefix(\"foo-cluster-0\")\n .nodeTemplateId(fooNodeTemplate.id())\n .quantity(3)\n .controlPlane(true)\n .etcd(true)\n .worker(true)\n .build());\n\n var foo_customClusterSync = new ClusterSync(\"foo-customClusterSync\", ClusterSyncArgs.builder() \n .clusterId(foo_customCluster.id())\n .nodePoolIds(fooNodePool.id())\n .build());\n\n var fooProject = new Project(\"fooProject\", ProjectArgs.builder() \n .clusterId(foo_customClusterSync.id())\n .description(\"Terraform namespace acceptance test\")\n .resourceQuota(ProjectResourceQuotaArgs.builder()\n .projectLimit(ProjectResourceQuotaProjectLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"2000Mi\")\n .requestsStorage(\"2Gi\")\n .build())\n .namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimitArgs.builder()\n .limitsCpu(\"500m\")\n .limitsMemory(\"500Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .containerResourceLimit(ProjectContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 rke Cluster\n foo-customCluster:\n type: rancher2:Cluster\n properties:\n description: Foo rancher2 custom cluster\n rkeConfig:\n network:\n plugin: canal\n # Create a new rancher2 Node Template\n fooNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n description: foo test\n amazonec2Config:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n # Create a new rancher2 Node Pool\n fooNodePool:\n type: rancher2:NodePool\n properties:\n clusterId: ${[\"foo-customCluster\"].id}\n hostnamePrefix: foo-cluster-0\n nodeTemplateId: ${fooNodeTemplate.id}\n quantity: 3\n controlPlane: true\n etcd: true\n worker: true\n # Create a new rancher2 Cluster Sync\n foo-customClusterSync:\n type: rancher2:ClusterSync\n properties:\n clusterId: ${[\"foo-customCluster\"].id}\n nodePoolIds:\n - ${fooNodePool.id}\n # Create a new rancher2 Project\n fooProject:\n type: rancher2:Project\n properties:\n clusterId: ${[\"foo-customClusterSync\"].id}\n description: Terraform namespace acceptance test\n resourceQuota:\n projectLimit:\n limitsCpu: 2000m\n limitsMemory: 2000Mi\n requestsStorage: 2Gi\n namespaceDefaultLimit:\n limitsCpu: 500m\n limitsMemory: 500Mi\n requestsStorage: 1Gi\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 rke Cluster \nconst foo_customCluster = new rancher2.Cluster(\"foo-customCluster\", {\n description: \"Foo rancher2 custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n// Create a new rancher2 Node Template\nconst fooNodeTemplate = new rancher2.NodeTemplate(\"fooNodeTemplate\", {\n description: \"foo test\",\n amazonec2Config: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n// Create a new rancher2 Node Pool\nconst fooNodePool = new rancher2.NodePool(\"fooNodePool\", {\n clusterId: foo_customCluster.id,\n hostnamePrefix: \"foo-cluster-0\",\n nodeTemplateId: fooNodeTemplate.id,\n quantity: 3,\n controlPlane: true,\n etcd: true,\n worker: true,\n});\n// Create a new rancher2 Cluster Sync\nconst foo_customClusterSync = new rancher2.ClusterSync(\"foo-customClusterSync\", {\n clusterId: foo_customCluster.id,\n nodePoolIds: [fooNodePool.id],\n});\n// Create a new rancher2 Project\nconst fooProject = new rancher2.Project(\"fooProject\", {\n clusterId: foo_customClusterSync.id,\n description: \"Terraform namespace acceptance test\",\n resourceQuota: {\n projectLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"2000Mi\",\n requestsStorage: \"2Gi\",\n },\n namespaceDefaultLimit: {\n limitsCpu: \"500m\",\n limitsMemory: \"500Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 rke Cluster \nfoo_custom_cluster = rancher2.Cluster(\"foo-customCluster\",\n description=\"Foo rancher2 custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n# Create a new rancher2 Node Template\nfoo_node_template = rancher2.NodeTemplate(\"fooNodeTemplate\",\n description=\"foo test\",\n amazonec2_config=rancher2.NodeTemplateAmazonec2ConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ami=\"\u003cAMI_ID\u003e\",\n region=\"\u003cREGION\u003e\",\n security_groups=[\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnet_id=\"\u003cSUBNET_ID\u003e\",\n vpc_id=\"\u003cVPC_ID\u003e\",\n zone=\"\u003cZONE\u003e\",\n ))\n# Create a new rancher2 Node Pool\nfoo_node_pool = rancher2.NodePool(\"fooNodePool\",\n cluster_id=foo_custom_cluster.id,\n hostname_prefix=\"foo-cluster-0\",\n node_template_id=foo_node_template.id,\n quantity=3,\n control_plane=True,\n etcd=True,\n worker=True)\n# Create a new rancher2 Cluster Sync\nfoo_custom_cluster_sync = rancher2.ClusterSync(\"foo-customClusterSync\",\n cluster_id=foo_custom_cluster.id,\n node_pool_ids=[foo_node_pool.id])\n# Create a new rancher2 Project\nfoo_project = rancher2.Project(\"fooProject\",\n cluster_id=foo_custom_cluster_sync.id,\n description=\"Terraform namespace acceptance test\",\n resource_quota=rancher2.ProjectResourceQuotaArgs(\n project_limit=rancher2.ProjectResourceQuotaProjectLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"2000Mi\",\n requests_storage=\"2Gi\",\n ),\n namespace_default_limit=rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs(\n limits_cpu=\"500m\",\n limits_memory=\"500Mi\",\n requests_storage=\"1Gi\",\n ),\n ),\n container_resource_limit=rancher2.ProjectContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 rke Cluster \n var foo_customCluster = new Rancher2.Cluster(\"foo-customCluster\", new()\n {\n Description = \"Foo rancher2 custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n // Create a new rancher2 Node Template\n var fooNodeTemplate = new Rancher2.NodeTemplate(\"fooNodeTemplate\", new()\n {\n Description = \"foo test\",\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n // Create a new rancher2 Node Pool\n var fooNodePool = new Rancher2.NodePool(\"fooNodePool\", new()\n {\n ClusterId = foo_customCluster.Id,\n HostnamePrefix = \"foo-cluster-0\",\n NodeTemplateId = fooNodeTemplate.Id,\n Quantity = 3,\n ControlPlane = true,\n Etcd = true,\n Worker = true,\n });\n\n // Create a new rancher2 Cluster Sync\n var foo_customClusterSync = new Rancher2.ClusterSync(\"foo-customClusterSync\", new()\n {\n ClusterId = foo_customCluster.Id,\n NodePoolIds = new[]\n {\n fooNodePool.Id,\n },\n });\n\n // Create a new rancher2 Project\n var fooProject = new Rancher2.Project(\"fooProject\", new()\n {\n ClusterId = foo_customClusterSync.Id,\n Description = \"Terraform namespace acceptance test\",\n ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs\n {\n ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"2000Mi\",\n RequestsStorage = \"2Gi\",\n },\n NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs\n {\n LimitsCpu = \"500m\",\n LimitsMemory = \"500Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-customCluster\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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\tfooNodeTemplate, err := rancher2.NewNodeTemplate(ctx, \"fooNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooNodePool, err := rancher2.NewNodePool(ctx, \"fooNodePool\", \u0026rancher2.NodePoolArgs{\n\t\t\tClusterId: foo_customCluster.ID(),\n\t\t\tHostnamePrefix: pulumi.String(\"foo-cluster-0\"),\n\t\t\tNodeTemplateId: fooNodeTemplate.ID(),\n\t\t\tQuantity: pulumi.Int(3),\n\t\t\tControlPlane: pulumi.Bool(true),\n\t\t\tEtcd: pulumi.Bool(true),\n\t\t\tWorker: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewClusterSync(ctx, \"foo-customClusterSync\", \u0026rancher2.ClusterSyncArgs{\n\t\t\tClusterId: foo_customCluster.ID(),\n\t\t\tNodePoolIds: pulumi.StringArray{\n\t\t\t\tfooNodePool.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewProject(ctx, \"fooProject\", \u0026rancher2.ProjectArgs{\n\t\t\tClusterId: foo_customClusterSync.ID(),\n\t\t\tDescription: pulumi.String(\"Terraform namespace acceptance test\"),\n\t\t\tResourceQuota: \u0026rancher2.ProjectResourceQuotaArgs{\n\t\t\t\tProjectLimit: \u0026rancher2.ProjectResourceQuotaProjectLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"2000Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"2Gi\"),\n\t\t\t\t},\n\t\t\t\tNamespaceDefaultLimit: \u0026rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"500m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"500Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tContainerResourceLimit: \u0026rancher2.ProjectContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\nimport com.pulumi.rancher2.NodePool;\nimport com.pulumi.rancher2.NodePoolArgs;\nimport com.pulumi.rancher2.ClusterSync;\nimport com.pulumi.rancher2.ClusterSyncArgs;\nimport com.pulumi.rancher2.Project;\nimport com.pulumi.rancher2.ProjectArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs;\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 foo_customCluster = new Cluster(\"foo-customCluster\", ClusterArgs.builder() \n .description(\"Foo rancher2 custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n var fooNodeTemplate = new NodeTemplate(\"fooNodeTemplate\", NodeTemplateArgs.builder() \n .description(\"foo test\")\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n var fooNodePool = new NodePool(\"fooNodePool\", NodePoolArgs.builder() \n .clusterId(foo_customCluster.id())\n .hostnamePrefix(\"foo-cluster-0\")\n .nodeTemplateId(fooNodeTemplate.id())\n .quantity(3)\n .controlPlane(true)\n .etcd(true)\n .worker(true)\n .build());\n\n var foo_customClusterSync = new ClusterSync(\"foo-customClusterSync\", ClusterSyncArgs.builder() \n .clusterId(foo_customCluster.id())\n .nodePoolIds(fooNodePool.id())\n .build());\n\n var fooProject = new Project(\"fooProject\", ProjectArgs.builder() \n .clusterId(foo_customClusterSync.id())\n .description(\"Terraform namespace acceptance test\")\n .resourceQuota(ProjectResourceQuotaArgs.builder()\n .projectLimit(ProjectResourceQuotaProjectLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"2000Mi\")\n .requestsStorage(\"2Gi\")\n .build())\n .namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimitArgs.builder()\n .limitsCpu(\"500m\")\n .limitsMemory(\"500Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .containerResourceLimit(ProjectContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 rke Cluster\n foo-customCluster:\n type: rancher2:Cluster\n properties:\n description: Foo rancher2 custom cluster\n rkeConfig:\n network:\n plugin: canal\n # Create a new rancher2 Node Template\n fooNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n description: foo test\n amazonec2Config:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n # Create a new rancher2 Node Pool\n fooNodePool:\n type: rancher2:NodePool\n properties:\n clusterId: ${[\"foo-customCluster\"].id}\n hostnamePrefix: foo-cluster-0\n nodeTemplateId: ${fooNodeTemplate.id}\n quantity: 3\n controlPlane: true\n etcd: true\n worker: true\n # Create a new rancher2 Cluster Sync\n foo-customClusterSync:\n type: rancher2:ClusterSync\n properties:\n clusterId: ${[\"foo-customCluster\"].id}\n nodePoolIds:\n - ${fooNodePool.id}\n # Create a new rancher2 Project\n fooProject:\n type: rancher2:Project\n properties:\n clusterId: ${[\"foo-customClusterSync\"].id}\n description: Terraform namespace acceptance test\n resourceQuota:\n projectLimit:\n limitsCpu: 2000m\n limitsMemory: 2000Mi\n requestsStorage: 2Gi\n namespaceDefaultLimit:\n limitsCpu: 500m\n limitsMemory: 500Mi\n requestsStorage: 1Gi\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "clusterId": { "type": "string", @@ -27744,7 +27061,7 @@ } }, "rancher2:index/clusterTemplate:ClusterTemplate": { - "description": "Provides a Rancher v2 Cluster Template resource. This can be used to create Cluster Templates for Rancher v2 RKE clusters and retrieve their information. \n\nCluster Templates are available from Rancher v2.3.x and above.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cluster Template\nconst foo = new rancher2.ClusterTemplate(\"foo\", {\n description: \"Terraform cluster template foo\",\n members: [{\n accessType: \"owner\",\n userPrincipalId: \"local://user-XXXXX\",\n }],\n templateRevisions: [{\n clusterConfig: {\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n services: {\n etcd: {\n creation: \"6h\",\n retention: \"24h\",\n },\n },\n },\n },\n \"default\": true,\n name: \"V1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cluster Template\nfoo = rancher2.ClusterTemplate(\"foo\",\n description=\"Terraform cluster template foo\",\n members=[rancher2.ClusterTemplateMemberArgs(\n access_type=\"owner\",\n user_principal_id=\"local://user-XXXXX\",\n )],\n template_revisions=[rancher2.ClusterTemplateTemplateRevisionArgs(\n cluster_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs(\n rke_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs(\n network=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n services=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs(\n etcd=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs(\n creation=\"6h\",\n retention=\"24h\",\n ),\n ),\n ),\n ),\n default=True,\n name=\"V1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cluster Template\n var foo = new Rancher2.ClusterTemplate(\"foo\", new()\n {\n Description = \"Terraform cluster template foo\",\n Members = new[]\n {\n new Rancher2.Inputs.ClusterTemplateMemberArgs\n {\n AccessType = \"owner\",\n UserPrincipalId = \"local://user-XXXXX\",\n },\n },\n TemplateRevisions = new[]\n {\n new Rancher2.Inputs.ClusterTemplateTemplateRevisionArgs\n {\n ClusterConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigArgs\n {\n RkeConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n Services = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs\n {\n Etcd = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs\n {\n Creation = \"6h\",\n Retention = \"24h\",\n },\n },\n },\n },\n Default = true,\n Name = \"V1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewClusterTemplate(ctx, \"foo\", \u0026rancher2.ClusterTemplateArgs{\n\t\t\tDescription: pulumi.String(\"Terraform cluster template foo\"),\n\t\t\tMembers: rancher2.ClusterTemplateMemberArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateMemberArgs{\n\t\t\t\t\tAccessType: pulumi.String(\"owner\"),\n\t\t\t\t\tUserPrincipalId: pulumi.String(\"local://user-XXXXX\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateRevisions: rancher2.ClusterTemplateTemplateRevisionArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateTemplateRevisionArgs{\n\t\t\t\t\tClusterConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs{\n\t\t\t\t\t\tRkeConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs{\n\t\t\t\t\t\t\tNetwork: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{\n\t\t\t\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tServices: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{\n\t\t\t\t\t\t\t\tEtcd: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{\n\t\t\t\t\t\t\t\t\tCreation: pulumi.String(\"6h\"),\n\t\t\t\t\t\t\t\t\tRetention: pulumi.String(\"24h\"),\n\t\t\t\t\t\t\t\t},\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\tDefault: pulumi.Bool(true),\n\t\t\t\t\tName: pulumi.String(\"V1\"),\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.rancher2.ClusterTemplate;\nimport com.pulumi.rancher2.ClusterTemplateArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateMemberArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs;\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 foo = new ClusterTemplate(\"foo\", ClusterTemplateArgs.builder() \n .description(\"Terraform cluster template foo\")\n .members(ClusterTemplateMemberArgs.builder()\n .accessType(\"owner\")\n .userPrincipalId(\"local://user-XXXXX\")\n .build())\n .templateRevisions(ClusterTemplateTemplateRevisionArgs.builder()\n .clusterConfig(ClusterTemplateTemplateRevisionClusterConfigArgs.builder()\n .rkeConfig(ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs.builder()\n .network(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .services(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs.builder()\n .etcd(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs.builder()\n .creation(\"6h\")\n .retention(\"24h\")\n .build())\n .build())\n .build())\n .build())\n .default_(true)\n .name(\"V1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cluster Template\n foo:\n type: rancher2:ClusterTemplate\n properties:\n description: Terraform cluster template foo\n members:\n - accessType: owner\n userPrincipalId: local://user-XXXXX\n templateRevisions:\n - clusterConfig:\n rkeConfig:\n network:\n plugin: canal\n services:\n etcd:\n creation: 6h\n retention: 24h\n default: true\n name: V1\n```\n\nCreating Rancher v2 RKE cluster template with upgrade strategy. For Rancher v2.4.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cluster Template\nconst foo = new rancher2.ClusterTemplate(\"foo\", {\n description: \"Terraform cluster template foo\",\n members: [{\n accessType: \"owner\",\n userPrincipalId: \"local://user-XXXXX\",\n }],\n templateRevisions: [{\n clusterConfig: {\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n services: {\n etcd: {\n creation: \"6h\",\n retention: \"24h\",\n },\n },\n upgradeStrategy: {\n drain: true,\n maxUnavailableWorker: \"20%\",\n },\n },\n },\n \"default\": true,\n name: \"V1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cluster Template\nfoo = rancher2.ClusterTemplate(\"foo\",\n description=\"Terraform cluster template foo\",\n members=[rancher2.ClusterTemplateMemberArgs(\n access_type=\"owner\",\n user_principal_id=\"local://user-XXXXX\",\n )],\n template_revisions=[rancher2.ClusterTemplateTemplateRevisionArgs(\n cluster_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs(\n rke_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs(\n network=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n services=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs(\n etcd=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs(\n creation=\"6h\",\n retention=\"24h\",\n ),\n ),\n upgrade_strategy=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs(\n drain=True,\n max_unavailable_worker=\"20%\",\n ),\n ),\n ),\n default=True,\n name=\"V1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cluster Template\n var foo = new Rancher2.ClusterTemplate(\"foo\", new()\n {\n Description = \"Terraform cluster template foo\",\n Members = new[]\n {\n new Rancher2.Inputs.ClusterTemplateMemberArgs\n {\n AccessType = \"owner\",\n UserPrincipalId = \"local://user-XXXXX\",\n },\n },\n TemplateRevisions = new[]\n {\n new Rancher2.Inputs.ClusterTemplateTemplateRevisionArgs\n {\n ClusterConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigArgs\n {\n RkeConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n Services = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs\n {\n Etcd = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs\n {\n Creation = \"6h\",\n Retention = \"24h\",\n },\n },\n UpgradeStrategy = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs\n {\n Drain = true,\n MaxUnavailableWorker = \"20%\",\n },\n },\n },\n Default = true,\n Name = \"V1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewClusterTemplate(ctx, \"foo\", \u0026rancher2.ClusterTemplateArgs{\n\t\t\tDescription: pulumi.String(\"Terraform cluster template foo\"),\n\t\t\tMembers: rancher2.ClusterTemplateMemberArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateMemberArgs{\n\t\t\t\t\tAccessType: pulumi.String(\"owner\"),\n\t\t\t\t\tUserPrincipalId: pulumi.String(\"local://user-XXXXX\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateRevisions: rancher2.ClusterTemplateTemplateRevisionArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateTemplateRevisionArgs{\n\t\t\t\t\tClusterConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs{\n\t\t\t\t\t\tRkeConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs{\n\t\t\t\t\t\t\tNetwork: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{\n\t\t\t\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tServices: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{\n\t\t\t\t\t\t\t\tEtcd: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{\n\t\t\t\t\t\t\t\t\tCreation: pulumi.String(\"6h\"),\n\t\t\t\t\t\t\t\t\tRetention: pulumi.String(\"24h\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tUpgradeStrategy: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs{\n\t\t\t\t\t\t\t\tDrain: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tMaxUnavailableWorker: pulumi.String(\"20%\"),\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\tDefault: pulumi.Bool(true),\n\t\t\t\t\tName: pulumi.String(\"V1\"),\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.rancher2.ClusterTemplate;\nimport com.pulumi.rancher2.ClusterTemplateArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateMemberArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs;\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 foo = new ClusterTemplate(\"foo\", ClusterTemplateArgs.builder() \n .description(\"Terraform cluster template foo\")\n .members(ClusterTemplateMemberArgs.builder()\n .accessType(\"owner\")\n .userPrincipalId(\"local://user-XXXXX\")\n .build())\n .templateRevisions(ClusterTemplateTemplateRevisionArgs.builder()\n .clusterConfig(ClusterTemplateTemplateRevisionClusterConfigArgs.builder()\n .rkeConfig(ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs.builder()\n .network(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .services(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs.builder()\n .etcd(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs.builder()\n .creation(\"6h\")\n .retention(\"24h\")\n .build())\n .build())\n .upgradeStrategy(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs.builder()\n .drain(true)\n .maxUnavailableWorker(\"20%\")\n .build())\n .build())\n .build())\n .default_(true)\n .name(\"V1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cluster Template\n foo:\n type: rancher2:ClusterTemplate\n properties:\n description: Terraform cluster template foo\n members:\n - accessType: owner\n userPrincipalId: local://user-XXXXX\n templateRevisions:\n - clusterConfig:\n rkeConfig:\n network:\n plugin: canal\n services:\n etcd:\n creation: 6h\n retention: 24h\n upgradeStrategy:\n drain: true\n maxUnavailableWorker: 20%\n default: true\n name: V1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Template can be imported using the rancher Cluster Template ID\n\n```sh\n $ pulumi import rancher2:index/clusterTemplate:ClusterTemplate foo \u0026lt;CLUSTER_TEMPLATE_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Cluster Template resource. This can be used to create Cluster Templates for Rancher v2 RKE clusters and retrieve their information. \n\nCluster Templates are available from Rancher v2.3.x and above.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cluster Template\nconst foo = new rancher2.ClusterTemplate(\"foo\", {\n description: \"Terraform cluster template foo\",\n members: [{\n accessType: \"owner\",\n userPrincipalId: \"local://user-XXXXX\",\n }],\n templateRevisions: [{\n clusterConfig: {\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n services: {\n etcd: {\n creation: \"6h\",\n retention: \"24h\",\n },\n },\n },\n },\n \"default\": true,\n name: \"V1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cluster Template\nfoo = rancher2.ClusterTemplate(\"foo\",\n description=\"Terraform cluster template foo\",\n members=[rancher2.ClusterTemplateMemberArgs(\n access_type=\"owner\",\n user_principal_id=\"local://user-XXXXX\",\n )],\n template_revisions=[rancher2.ClusterTemplateTemplateRevisionArgs(\n cluster_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs(\n rke_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs(\n network=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n services=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs(\n etcd=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs(\n creation=\"6h\",\n retention=\"24h\",\n ),\n ),\n ),\n ),\n default=True,\n name=\"V1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cluster Template\n var foo = new Rancher2.ClusterTemplate(\"foo\", new()\n {\n Description = \"Terraform cluster template foo\",\n Members = new[]\n {\n new Rancher2.Inputs.ClusterTemplateMemberArgs\n {\n AccessType = \"owner\",\n UserPrincipalId = \"local://user-XXXXX\",\n },\n },\n TemplateRevisions = new[]\n {\n new Rancher2.Inputs.ClusterTemplateTemplateRevisionArgs\n {\n ClusterConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigArgs\n {\n RkeConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n Services = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs\n {\n Etcd = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs\n {\n Creation = \"6h\",\n Retention = \"24h\",\n },\n },\n },\n },\n Default = true,\n Name = \"V1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewClusterTemplate(ctx, \"foo\", \u0026rancher2.ClusterTemplateArgs{\n\t\t\tDescription: pulumi.String(\"Terraform cluster template foo\"),\n\t\t\tMembers: rancher2.ClusterTemplateMemberArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateMemberArgs{\n\t\t\t\t\tAccessType: pulumi.String(\"owner\"),\n\t\t\t\t\tUserPrincipalId: pulumi.String(\"local://user-XXXXX\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateRevisions: rancher2.ClusterTemplateTemplateRevisionArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateTemplateRevisionArgs{\n\t\t\t\t\tClusterConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs{\n\t\t\t\t\t\tRkeConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs{\n\t\t\t\t\t\t\tNetwork: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{\n\t\t\t\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tServices: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{\n\t\t\t\t\t\t\t\tEtcd: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{\n\t\t\t\t\t\t\t\t\tCreation: pulumi.String(\"6h\"),\n\t\t\t\t\t\t\t\t\tRetention: pulumi.String(\"24h\"),\n\t\t\t\t\t\t\t\t},\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\tDefault: pulumi.Bool(true),\n\t\t\t\t\tName: pulumi.String(\"V1\"),\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.rancher2.ClusterTemplate;\nimport com.pulumi.rancher2.ClusterTemplateArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateMemberArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs;\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 foo = new ClusterTemplate(\"foo\", ClusterTemplateArgs.builder() \n .description(\"Terraform cluster template foo\")\n .members(ClusterTemplateMemberArgs.builder()\n .accessType(\"owner\")\n .userPrincipalId(\"local://user-XXXXX\")\n .build())\n .templateRevisions(ClusterTemplateTemplateRevisionArgs.builder()\n .clusterConfig(ClusterTemplateTemplateRevisionClusterConfigArgs.builder()\n .rkeConfig(ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs.builder()\n .network(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .services(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs.builder()\n .etcd(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs.builder()\n .creation(\"6h\")\n .retention(\"24h\")\n .build())\n .build())\n .build())\n .build())\n .default_(true)\n .name(\"V1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cluster Template\n foo:\n type: rancher2:ClusterTemplate\n properties:\n description: Terraform cluster template foo\n members:\n - accessType: owner\n userPrincipalId: local://user-XXXXX\n templateRevisions:\n - clusterConfig:\n rkeConfig:\n network:\n plugin: canal\n services:\n etcd:\n creation: 6h\n retention: 24h\n default: true\n name: V1\n```\n\nCreating Rancher v2 RKE cluster template with upgrade strategy. For Rancher v2.4.x and above.\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cluster Template\nconst foo = new rancher2.ClusterTemplate(\"foo\", {\n description: \"Terraform cluster template foo\",\n members: [{\n accessType: \"owner\",\n userPrincipalId: \"local://user-XXXXX\",\n }],\n templateRevisions: [{\n clusterConfig: {\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n services: {\n etcd: {\n creation: \"6h\",\n retention: \"24h\",\n },\n },\n upgradeStrategy: {\n drain: true,\n maxUnavailableWorker: \"20%\",\n },\n },\n },\n \"default\": true,\n name: \"V1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cluster Template\nfoo = rancher2.ClusterTemplate(\"foo\",\n description=\"Terraform cluster template foo\",\n members=[rancher2.ClusterTemplateMemberArgs(\n access_type=\"owner\",\n user_principal_id=\"local://user-XXXXX\",\n )],\n template_revisions=[rancher2.ClusterTemplateTemplateRevisionArgs(\n cluster_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs(\n rke_config=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs(\n network=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n services=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs(\n etcd=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs(\n creation=\"6h\",\n retention=\"24h\",\n ),\n ),\n upgrade_strategy=rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs(\n drain=True,\n max_unavailable_worker=\"20%\",\n ),\n ),\n ),\n default=True,\n name=\"V1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cluster Template\n var foo = new Rancher2.ClusterTemplate(\"foo\", new()\n {\n Description = \"Terraform cluster template foo\",\n Members = new[]\n {\n new Rancher2.Inputs.ClusterTemplateMemberArgs\n {\n AccessType = \"owner\",\n UserPrincipalId = \"local://user-XXXXX\",\n },\n },\n TemplateRevisions = new[]\n {\n new Rancher2.Inputs.ClusterTemplateTemplateRevisionArgs\n {\n ClusterConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigArgs\n {\n RkeConfig = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n Services = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs\n {\n Etcd = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs\n {\n Creation = \"6h\",\n Retention = \"24h\",\n },\n },\n UpgradeStrategy = new Rancher2.Inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs\n {\n Drain = true,\n MaxUnavailableWorker = \"20%\",\n },\n },\n },\n Default = true,\n Name = \"V1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewClusterTemplate(ctx, \"foo\", \u0026rancher2.ClusterTemplateArgs{\n\t\t\tDescription: pulumi.String(\"Terraform cluster template foo\"),\n\t\t\tMembers: rancher2.ClusterTemplateMemberArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateMemberArgs{\n\t\t\t\t\tAccessType: pulumi.String(\"owner\"),\n\t\t\t\t\tUserPrincipalId: pulumi.String(\"local://user-XXXXX\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateRevisions: rancher2.ClusterTemplateTemplateRevisionArray{\n\t\t\t\t\u0026rancher2.ClusterTemplateTemplateRevisionArgs{\n\t\t\t\t\tClusterConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigArgs{\n\t\t\t\t\t\tRkeConfig: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs{\n\t\t\t\t\t\t\tNetwork: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{\n\t\t\t\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tServices: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{\n\t\t\t\t\t\t\t\tEtcd: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{\n\t\t\t\t\t\t\t\t\tCreation: pulumi.String(\"6h\"),\n\t\t\t\t\t\t\t\t\tRetention: pulumi.String(\"24h\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tUpgradeStrategy: \u0026rancher2.ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs{\n\t\t\t\t\t\t\t\tDrain: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tMaxUnavailableWorker: pulumi.String(\"20%\"),\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\tDefault: pulumi.Bool(true),\n\t\t\t\t\tName: pulumi.String(\"V1\"),\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.rancher2.ClusterTemplate;\nimport com.pulumi.rancher2.ClusterTemplateArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateMemberArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs;\nimport com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs;\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 foo = new ClusterTemplate(\"foo\", ClusterTemplateArgs.builder() \n .description(\"Terraform cluster template foo\")\n .members(ClusterTemplateMemberArgs.builder()\n .accessType(\"owner\")\n .userPrincipalId(\"local://user-XXXXX\")\n .build())\n .templateRevisions(ClusterTemplateTemplateRevisionArgs.builder()\n .clusterConfig(ClusterTemplateTemplateRevisionClusterConfigArgs.builder()\n .rkeConfig(ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs.builder()\n .network(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .services(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs.builder()\n .etcd(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs.builder()\n .creation(\"6h\")\n .retention(\"24h\")\n .build())\n .build())\n .upgradeStrategy(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs.builder()\n .drain(true)\n .maxUnavailableWorker(\"20%\")\n .build())\n .build())\n .build())\n .default_(true)\n .name(\"V1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cluster Template\n foo:\n type: rancher2:ClusterTemplate\n properties:\n description: Terraform cluster template foo\n members:\n - accessType: owner\n userPrincipalId: local://user-XXXXX\n templateRevisions:\n - clusterConfig:\n rkeConfig:\n network:\n plugin: canal\n services:\n etcd:\n creation: 6h\n retention: 24h\n upgradeStrategy:\n drain: true\n maxUnavailableWorker: 20%\n default: true\n name: V1\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCluster Template can be imported using the rancher Cluster Template ID\n\n```sh\n $ pulumi import rancher2:index/clusterTemplate:ClusterTemplate foo \u0026lt;CLUSTER_TEMPLATE_ID\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -27880,100 +27197,100 @@ } }, "rancher2:index/clusterV2:ClusterV2": { - "description": "\n\n\n## Import\n\nClusters v2 can be imported using the Rancher Cluster v2 ID, that is in the form \u0026lt;FLEET_NAMESPACE\u0026gt;/\u0026lt;CLUSTER_NAME\u0026gt;\n\n```sh\n $ pulumi import rancher2:index/clusterV2:ClusterV2 foo \u0026lt;FLEET_NAMESPACE\u0026gt;/\u0026lt;CLUSTER_NAME\u0026gt;\n```\n ", + "description": "\n\n\n## Import\n\nClusters v2 can be imported using the Rancher Cluster v2 ID, that is in the form \u0026lt;FLEET_NAMESPACE\u0026gt;/\u0026lt;CLUSTER_NAME\u0026gt;\n\n```sh\n $ pulumi import rancher2:index/clusterV2:ClusterV2 foo \u003cFLEET_NAMESPACE\u003e/\u003cCLUSTER_NAME\u003e\n```\n ", "properties": { "agentEnvVars": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2AgentEnvVar:ClusterV2AgentEnvVar" }, - "description": "Optional Agent Env Vars for Rancher agent (list)\n" + "description": "Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes.\n" }, "annotations": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Annotations for the Cluster V2 (map)\n" + "description": "Annotations for the Cluster.\n" }, "cloudCredentialSecretName": { "type": "string", - "description": "Cluster V2 cloud credential secret name (string)\n" + "description": "Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level.\n" }, "clusterAgentDeploymentCustomizations": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2ClusterAgentDeploymentCustomization:ClusterV2ClusterAgentDeploymentCustomization" }, - "description": "Optional customization for cluster agent (list)\n" + "description": "Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above.\n" }, "clusterRegistrationToken": { "$ref": "#/types/rancher2:index/ClusterV2ClusterRegistrationToken:ClusterV2ClusterRegistrationToken", - "description": "(Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1)\n", + "description": "(Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster.\n", "secret": true }, "clusterV1Id": { "type": "string", - "description": "(Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string)\n" + "description": "(Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`).\n" }, "defaultClusterRoleForProjectMembers": { "type": "string", - "description": "Cluster V2 default cluster role for project members (string)\n" + "description": "Default cluster role for project members.\n" }, "defaultPodSecurityAdmissionConfigurationTemplateName": { "type": "string", - "description": "Cluster V2 default pod security admission configuration template name (string)\n" + "description": "The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above.\n" }, "defaultPodSecurityPolicyTemplateName": { "type": "string", - "description": "Cluster V2 default pod security policy template name (string)\n" + "description": "Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies).\n" }, "enableNetworkPolicy": { "type": "boolean", - "description": "Enable k8s network policy at Cluster V2 (bool)\n" + "description": "Enable k8s network policy on the cluster.\n" }, "fleetAgentDeploymentCustomizations": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2FleetAgentDeploymentCustomization:ClusterV2FleetAgentDeploymentCustomization" }, - "description": "Optional customization for fleet agent (list)\n" + "description": "Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above.\n" }, "fleetNamespace": { "type": "string", - "description": "The fleet namespace of the Cluster v2. Default: `\\\"fleet-default\\\"` (string)\n" + "description": "Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value.\n" }, "kubeConfig": { "type": "string", - "description": "(Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string)\n", + "description": "(Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`.\n", "secret": true }, "kubernetesVersion": { "type": "string", - "description": "The kubernetes version of the Cluster v2 (list maxitems:1)\n" + "description": "The RKE2 or K3s version for the cluster.\n" }, "labels": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Labels for the Cluster V2 (map)\n" + "description": "Labels for the Cluster.\n" }, "localAuthEndpoint": { "$ref": "#/types/rancher2:index/ClusterV2LocalAuthEndpoint:ClusterV2LocalAuthEndpoint", - "description": "Cluster V2 local auth endpoint (list maxitems:1)\n" + "description": "Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters).\n" }, "name": { "type": "string", - "description": "The name of the Cluster v2 (string)\n" + "description": "The name of the cluster.\n" }, "resourceVersion": { "type": "string", - "description": "(Computed) Cluster v2 k8s resource version (string)\n" + "description": "(Computed, string) Cluster's k8s resource version.\n" }, "rkeConfig": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfig:ClusterV2RkeConfig", - "description": "The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1)\n" + "description": "The RKE configuration for the cluster.\n" } }, "required": [ @@ -27994,77 +27311,77 @@ "items": { "$ref": "#/types/rancher2:index/ClusterV2AgentEnvVar:ClusterV2AgentEnvVar" }, - "description": "Optional Agent Env Vars for Rancher agent (list)\n" + "description": "Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes.\n" }, "annotations": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Annotations for the Cluster V2 (map)\n" + "description": "Annotations for the Cluster.\n" }, "cloudCredentialSecretName": { "type": "string", - "description": "Cluster V2 cloud credential secret name (string)\n" + "description": "Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level.\n" }, "clusterAgentDeploymentCustomizations": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2ClusterAgentDeploymentCustomization:ClusterV2ClusterAgentDeploymentCustomization" }, - "description": "Optional customization for cluster agent (list)\n" + "description": "Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above.\n" }, "defaultClusterRoleForProjectMembers": { "type": "string", - "description": "Cluster V2 default cluster role for project members (string)\n" + "description": "Default cluster role for project members.\n" }, "defaultPodSecurityAdmissionConfigurationTemplateName": { "type": "string", - "description": "Cluster V2 default pod security admission configuration template name (string)\n" + "description": "The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above.\n" }, "defaultPodSecurityPolicyTemplateName": { "type": "string", - "description": "Cluster V2 default pod security policy template name (string)\n" + "description": "Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies).\n" }, "enableNetworkPolicy": { "type": "boolean", - "description": "Enable k8s network policy at Cluster V2 (bool)\n" + "description": "Enable k8s network policy on the cluster.\n" }, "fleetAgentDeploymentCustomizations": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2FleetAgentDeploymentCustomization:ClusterV2FleetAgentDeploymentCustomization" }, - "description": "Optional customization for fleet agent (list)\n" + "description": "Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above.\n" }, "fleetNamespace": { "type": "string", - "description": "The fleet namespace of the Cluster v2. Default: `\\\"fleet-default\\\"` (string)\n", + "description": "Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value.\n", "willReplaceOnChanges": true }, "kubernetesVersion": { "type": "string", - "description": "The kubernetes version of the Cluster v2 (list maxitems:1)\n" + "description": "The RKE2 or K3s version for the cluster.\n" }, "labels": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Labels for the Cluster V2 (map)\n" + "description": "Labels for the Cluster.\n" }, "localAuthEndpoint": { "$ref": "#/types/rancher2:index/ClusterV2LocalAuthEndpoint:ClusterV2LocalAuthEndpoint", - "description": "Cluster V2 local auth endpoint (list maxitems:1)\n" + "description": "Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters).\n" }, "name": { "type": "string", - "description": "The name of the Cluster v2 (string)\n", + "description": "The name of the cluster.\n", "willReplaceOnChanges": true }, "rkeConfig": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfig:ClusterV2RkeConfig", - "description": "The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1)\n" + "description": "The RKE configuration for the cluster.\n" } }, "requiredInputs": [ @@ -28078,95 +27395,95 @@ "items": { "$ref": "#/types/rancher2:index/ClusterV2AgentEnvVar:ClusterV2AgentEnvVar" }, - "description": "Optional Agent Env Vars for Rancher agent (list)\n" + "description": "Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes.\n" }, "annotations": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Annotations for the Cluster V2 (map)\n" + "description": "Annotations for the Cluster.\n" }, "cloudCredentialSecretName": { "type": "string", - "description": "Cluster V2 cloud credential secret name (string)\n" + "description": "Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level.\n" }, "clusterAgentDeploymentCustomizations": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2ClusterAgentDeploymentCustomization:ClusterV2ClusterAgentDeploymentCustomization" }, - "description": "Optional customization for cluster agent (list)\n" + "description": "Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above.\n" }, "clusterRegistrationToken": { "$ref": "#/types/rancher2:index/ClusterV2ClusterRegistrationToken:ClusterV2ClusterRegistrationToken", - "description": "(Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1)\n", + "description": "(Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster.\n", "secret": true }, "clusterV1Id": { "type": "string", - "description": "(Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string)\n" + "description": "(Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`).\n" }, "defaultClusterRoleForProjectMembers": { "type": "string", - "description": "Cluster V2 default cluster role for project members (string)\n" + "description": "Default cluster role for project members.\n" }, "defaultPodSecurityAdmissionConfigurationTemplateName": { "type": "string", - "description": "Cluster V2 default pod security admission configuration template name (string)\n" + "description": "The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above.\n" }, "defaultPodSecurityPolicyTemplateName": { "type": "string", - "description": "Cluster V2 default pod security policy template name (string)\n" + "description": "Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies).\n" }, "enableNetworkPolicy": { "type": "boolean", - "description": "Enable k8s network policy at Cluster V2 (bool)\n" + "description": "Enable k8s network policy on the cluster.\n" }, "fleetAgentDeploymentCustomizations": { "type": "array", "items": { "$ref": "#/types/rancher2:index/ClusterV2FleetAgentDeploymentCustomization:ClusterV2FleetAgentDeploymentCustomization" }, - "description": "Optional customization for fleet agent (list)\n" + "description": "Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above.\n" }, "fleetNamespace": { "type": "string", - "description": "The fleet namespace of the Cluster v2. Default: `\\\"fleet-default\\\"` (string)\n", + "description": "Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value.\n", "willReplaceOnChanges": true }, "kubeConfig": { "type": "string", - "description": "(Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string)\n", + "description": "(Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`.\n", "secret": true }, "kubernetesVersion": { "type": "string", - "description": "The kubernetes version of the Cluster v2 (list maxitems:1)\n" + "description": "The RKE2 or K3s version for the cluster.\n" }, "labels": { "type": "object", "additionalProperties": { "$ref": "pulumi.json#/Any" }, - "description": "Labels for the Cluster V2 (map)\n" + "description": "Labels for the Cluster.\n" }, "localAuthEndpoint": { "$ref": "#/types/rancher2:index/ClusterV2LocalAuthEndpoint:ClusterV2LocalAuthEndpoint", - "description": "Cluster V2 local auth endpoint (list maxitems:1)\n" + "description": "Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters).\n" }, "name": { "type": "string", - "description": "The name of the Cluster v2 (string)\n", + "description": "The name of the cluster.\n", "willReplaceOnChanges": true }, "resourceVersion": { "type": "string", - "description": "(Computed) Cluster v2 k8s resource version (string)\n" + "description": "(Computed, string) Cluster's k8s resource version.\n" }, "rkeConfig": { "$ref": "#/types/rancher2:index/ClusterV2RkeConfig:ClusterV2RkeConfig", - "description": "The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1)\n" + "description": "The RKE configuration for the cluster.\n" } }, "type": "object" @@ -28323,7 +27640,7 @@ } }, "rancher2:index/customUserToken:CustomUserToken": { - "description": "Provides a Rancher v2 Token resource, specifically to create tokens for custom users (i.e. not the 'admin' user configured with the provider config). Custom user tokens can f.e. be used as service account tokens with the Rancher v2 API having limited permissions. To create a custom user token the username/password for the Rancher User must be known.\n\nThere are 2 kind of tokens:\n- not scoped: valid for global system.\n- scoped: valid for just a specific cluster (`cluster_id` should be provided).\n\nTokens can only be created for a Rancher User with at least the `user-base` global role binding in order to enable user login.\n\nTokens can't be updated once created. Any diff in token data will recreate the token. If any token expire, Rancher2 provider will generate a diff to regenerate it.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a rancher2 Token\nconst fooUser = new rancher2.User(\"fooUser\", {\n username: \"foo\",\n password: \"changeme\",\n enabled: true,\n});\nconst foo_login = new rancher2.GlobalRoleBinding(\"foo-login\", {\n globalRoleId: \"user-base\",\n userId: fooUser.id,\n});\nconst fooCustomUserToken = new rancher2.CustomUserToken(\"fooCustomUserToken\", {\n username: fooUser.username,\n password: fooUser.password,\n description: \"foo token\",\n ttl: 0,\n}, {\n dependsOn: [foo_login],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a rancher2 Token\nfoo_user = rancher2.User(\"fooUser\",\n username=\"foo\",\n password=\"changeme\",\n enabled=True)\nfoo_login = rancher2.GlobalRoleBinding(\"foo-login\",\n global_role_id=\"user-base\",\n user_id=foo_user.id)\nfoo_custom_user_token = rancher2.CustomUserToken(\"fooCustomUserToken\",\n username=foo_user.username,\n password=foo_user.password,\n description=\"foo token\",\n ttl=0,\n opts=pulumi.ResourceOptions(depends_on=[foo_login]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a rancher2 Token\n var fooUser = new Rancher2.User(\"fooUser\", new()\n {\n Username = \"foo\",\n Password = \"changeme\",\n Enabled = true,\n });\n\n var foo_login = new Rancher2.GlobalRoleBinding(\"foo-login\", new()\n {\n GlobalRoleId = \"user-base\",\n UserId = fooUser.Id,\n });\n\n var fooCustomUserToken = new Rancher2.CustomUserToken(\"fooCustomUserToken\", new()\n {\n Username = fooUser.Username,\n Password = fooUser.Password,\n Description = \"foo token\",\n Ttl = 0,\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n foo_login,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooUser, err := rancher2.NewUser(ctx, \"fooUser\", \u0026rancher2.UserArgs{\n\t\t\tUsername: pulumi.String(\"foo\"),\n\t\t\tPassword: pulumi.String(\"changeme\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalRoleBinding(ctx, \"foo-login\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.String(\"user-base\"),\n\t\t\tUserId: fooUser.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCustomUserToken(ctx, \"fooCustomUserToken\", \u0026rancher2.CustomUserTokenArgs{\n\t\t\tUsername: fooUser.Username,\n\t\t\tPassword: fooUser.Password,\n\t\t\tDescription: pulumi.String(\"foo token\"),\n\t\t\tTtl: pulumi.Int(0),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tfoo_login,\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.rancher2.User;\nimport com.pulumi.rancher2.UserArgs;\nimport com.pulumi.rancher2.GlobalRoleBinding;\nimport com.pulumi.rancher2.GlobalRoleBindingArgs;\nimport com.pulumi.rancher2.CustomUserToken;\nimport com.pulumi.rancher2.CustomUserTokenArgs;\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 var fooUser = new User(\"fooUser\", UserArgs.builder() \n .username(\"foo\")\n .password(\"changeme\")\n .enabled(true)\n .build());\n\n var foo_login = new GlobalRoleBinding(\"foo-login\", GlobalRoleBindingArgs.builder() \n .globalRoleId(\"user-base\")\n .userId(fooUser.id())\n .build());\n\n var fooCustomUserToken = new CustomUserToken(\"fooCustomUserToken\", CustomUserTokenArgs.builder() \n .username(fooUser.username())\n .password(fooUser.password())\n .description(\"foo token\")\n .ttl(0)\n .build(), CustomResourceOptions.builder()\n .dependsOn(foo_login)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a rancher2 Token\n fooUser:\n type: rancher2:User\n properties:\n username: foo\n password: changeme\n enabled: true\n foo-login:\n type: rancher2:GlobalRoleBinding\n properties:\n globalRoleId: user-base\n userId: ${fooUser.id}\n fooCustomUserToken:\n type: rancher2:CustomUserToken\n properties:\n username: ${fooUser.username}\n password: ${fooUser.password}\n description: foo token\n ttl: 0\n options:\n dependson:\n - ${[\"foo-login\"]}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Token resource, specifically to create tokens for custom users (i.e. not the 'admin' user configured with the provider config). Custom user tokens can f.e. be used as service account tokens with the Rancher v2 API having limited permissions. To create a custom user token the username/password for the Rancher User must be known.\n\nThere are 2 kind of tokens:\n- not scoped: valid for global system.\n- scoped: valid for just a specific cluster (`cluster_id` should be provided).\n\nTokens can only be created for a Rancher User with at least the `user-base` global role binding in order to enable user login.\n\nTokens can't be updated once created. Any diff in token data will recreate the token. If any token expire, Rancher2 provider will generate a diff to regenerate it.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a rancher2 Token\nconst fooUser = new rancher2.User(\"fooUser\", {\n username: \"foo\",\n password: \"changeme\",\n enabled: true,\n});\nconst foo_login = new rancher2.GlobalRoleBinding(\"foo-login\", {\n globalRoleId: \"user-base\",\n userId: fooUser.id,\n});\nconst fooCustomUserToken = new rancher2.CustomUserToken(\"fooCustomUserToken\", {\n username: fooUser.username,\n password: fooUser.password,\n description: \"foo token\",\n ttl: 0,\n}, {\n dependsOn: [foo_login],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a rancher2 Token\nfoo_user = rancher2.User(\"fooUser\",\n username=\"foo\",\n password=\"changeme\",\n enabled=True)\nfoo_login = rancher2.GlobalRoleBinding(\"foo-login\",\n global_role_id=\"user-base\",\n user_id=foo_user.id)\nfoo_custom_user_token = rancher2.CustomUserToken(\"fooCustomUserToken\",\n username=foo_user.username,\n password=foo_user.password,\n description=\"foo token\",\n ttl=0,\n opts=pulumi.ResourceOptions(depends_on=[foo_login]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a rancher2 Token\n var fooUser = new Rancher2.User(\"fooUser\", new()\n {\n Username = \"foo\",\n Password = \"changeme\",\n Enabled = true,\n });\n\n var foo_login = new Rancher2.GlobalRoleBinding(\"foo-login\", new()\n {\n GlobalRoleId = \"user-base\",\n UserId = fooUser.Id,\n });\n\n var fooCustomUserToken = new Rancher2.CustomUserToken(\"fooCustomUserToken\", new()\n {\n Username = fooUser.Username,\n Password = fooUser.Password,\n Description = \"foo token\",\n Ttl = 0,\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n foo_login,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooUser, err := rancher2.NewUser(ctx, \"fooUser\", \u0026rancher2.UserArgs{\n\t\t\tUsername: pulumi.String(\"foo\"),\n\t\t\tPassword: pulumi.String(\"changeme\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalRoleBinding(ctx, \"foo-login\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.String(\"user-base\"),\n\t\t\tUserId: fooUser.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCustomUserToken(ctx, \"fooCustomUserToken\", \u0026rancher2.CustomUserTokenArgs{\n\t\t\tUsername: fooUser.Username,\n\t\t\tPassword: fooUser.Password,\n\t\t\tDescription: pulumi.String(\"foo token\"),\n\t\t\tTtl: pulumi.Int(0),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tfoo_login,\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.rancher2.User;\nimport com.pulumi.rancher2.UserArgs;\nimport com.pulumi.rancher2.GlobalRoleBinding;\nimport com.pulumi.rancher2.GlobalRoleBindingArgs;\nimport com.pulumi.rancher2.CustomUserToken;\nimport com.pulumi.rancher2.CustomUserTokenArgs;\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 var fooUser = new User(\"fooUser\", UserArgs.builder() \n .username(\"foo\")\n .password(\"changeme\")\n .enabled(true)\n .build());\n\n var foo_login = new GlobalRoleBinding(\"foo-login\", GlobalRoleBindingArgs.builder() \n .globalRoleId(\"user-base\")\n .userId(fooUser.id())\n .build());\n\n var fooCustomUserToken = new CustomUserToken(\"fooCustomUserToken\", CustomUserTokenArgs.builder() \n .username(fooUser.username())\n .password(fooUser.password())\n .description(\"foo token\")\n .ttl(0)\n .build(), CustomResourceOptions.builder()\n .dependsOn(foo_login)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a rancher2 Token\n fooUser:\n type: rancher2:User\n properties:\n username: foo\n password: changeme\n enabled: true\n foo-login:\n type: rancher2:GlobalRoleBinding\n properties:\n globalRoleId: user-base\n userId: ${fooUser.id}\n fooCustomUserToken:\n type: rancher2:CustomUserToken\n properties:\n username: ${fooUser.username}\n password: ${fooUser.password}\n description: foo token\n ttl: 0\n options:\n dependson:\n - ${[\"foo-login\"]}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "accessKey": { "type": "string", @@ -28560,7 +27877,7 @@ } }, "rancher2:index/etcdBackup:EtcdBackup": { - "description": "Provides a Rancher v2 Etcd Backup resource. This can be used to create an Etcd Backup for Rancher v2.2.x and above, and to retrieve their information. \n\nThe `rancher2.EtcdBackup` resource is used to define extra etcd backups for a `rancher2.Cluster`, which will be created as a local or S3 backup in accordance with the etcd backup config for the cluster. The main etcd backup config for the cluster should be set on the cluster config\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Etcd Backup\nconst foo = new rancher2.EtcdBackup(\"foo\", {\n backupConfig: {\n enabled: true,\n intervalHours: 20,\n retention: 10,\n s3BackupConfig: {\n accessKey: \"access_key\",\n bucketName: \"bucket_name\",\n endpoint: \"endpoint\",\n folder: \"/folder\",\n region: \"region\",\n secretKey: \"secret_key\",\n },\n },\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n filename: \"\u003cFILENAME\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Etcd Backup\nfoo = rancher2.EtcdBackup(\"foo\",\n backup_config=rancher2.EtcdBackupBackupConfigArgs(\n enabled=True,\n interval_hours=20,\n retention=10,\n s3_backup_config=rancher2.EtcdBackupBackupConfigS3BackupConfigArgs(\n access_key=\"access_key\",\n bucket_name=\"bucket_name\",\n endpoint=\"endpoint\",\n folder=\"/folder\",\n region=\"region\",\n secret_key=\"secret_key\",\n ),\n ),\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n filename=\"\u003cFILENAME\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Etcd Backup\n var foo = new Rancher2.EtcdBackup(\"foo\", new()\n {\n BackupConfig = new Rancher2.Inputs.EtcdBackupBackupConfigArgs\n {\n Enabled = true,\n IntervalHours = 20,\n Retention = 10,\n S3BackupConfig = new Rancher2.Inputs.EtcdBackupBackupConfigS3BackupConfigArgs\n {\n AccessKey = \"access_key\",\n BucketName = \"bucket_name\",\n Endpoint = \"endpoint\",\n Folder = \"/folder\",\n Region = \"region\",\n SecretKey = \"secret_key\",\n },\n },\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Filename = \"\u003cFILENAME\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewEtcdBackup(ctx, \"foo\", \u0026rancher2.EtcdBackupArgs{\n\t\t\tBackupConfig: \u0026rancher2.EtcdBackupBackupConfigArgs{\n\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\tIntervalHours: pulumi.Int(20),\n\t\t\t\tRetention: pulumi.Int(10),\n\t\t\t\tS3BackupConfig: \u0026rancher2.EtcdBackupBackupConfigS3BackupConfigArgs{\n\t\t\t\t\tAccessKey: pulumi.String(\"access_key\"),\n\t\t\t\t\tBucketName: pulumi.String(\"bucket_name\"),\n\t\t\t\t\tEndpoint: pulumi.String(\"endpoint\"),\n\t\t\t\t\tFolder: pulumi.String(\"/folder\"),\n\t\t\t\t\tRegion: pulumi.String(\"region\"),\n\t\t\t\t\tSecretKey: pulumi.String(\"secret_key\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tFilename: pulumi.String(\"\u003cFILENAME\u003e\"),\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.rancher2.EtcdBackup;\nimport com.pulumi.rancher2.EtcdBackupArgs;\nimport com.pulumi.rancher2.inputs.EtcdBackupBackupConfigArgs;\nimport com.pulumi.rancher2.inputs.EtcdBackupBackupConfigS3BackupConfigArgs;\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 foo = new EtcdBackup(\"foo\", EtcdBackupArgs.builder() \n .backupConfig(EtcdBackupBackupConfigArgs.builder()\n .enabled(true)\n .intervalHours(20)\n .retention(10)\n .s3BackupConfig(EtcdBackupBackupConfigS3BackupConfigArgs.builder()\n .accessKey(\"access_key\")\n .bucketName(\"bucket_name\")\n .endpoint(\"endpoint\")\n .folder(\"/folder\")\n .region(\"region\")\n .secretKey(\"secret_key\")\n .build())\n .build())\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .filename(\"\u003cFILENAME\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Etcd Backup\n foo:\n type: rancher2:EtcdBackup\n properties:\n backupConfig:\n enabled: true\n intervalHours: 20\n retention: 10\n s3BackupConfig:\n accessKey: access_key\n bucketName: bucket_name\n endpoint: endpoint\n folder: /folder\n region: region\n secretKey: secret_key\n clusterId: \u003cCLUSTER_ID\u003e\n filename: \u003cFILENAME\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nEtcd Backup can be imported using the Rancher etcd backup ID\n\n```sh\n $ pulumi import rancher2:index/etcdBackup:EtcdBackup foo \u0026lt;ETCD_BACKUP_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Etcd Backup resource. This can be used to create an Etcd Backup for Rancher v2.2.x and above, and to retrieve their information. \n\nThe `rancher2.EtcdBackup` resource is used to define extra etcd backups for a `rancher2.Cluster`, which will be created as a local or S3 backup in accordance with the etcd backup config for the cluster. The main etcd backup config for the cluster should be set on the cluster config\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Etcd Backup\nconst foo = new rancher2.EtcdBackup(\"foo\", {\n backupConfig: {\n enabled: true,\n intervalHours: 20,\n retention: 10,\n s3BackupConfig: {\n accessKey: \"access_key\",\n bucketName: \"bucket_name\",\n endpoint: \"endpoint\",\n folder: \"/folder\",\n region: \"region\",\n secretKey: \"secret_key\",\n },\n },\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n filename: \"\u003cFILENAME\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Etcd Backup\nfoo = rancher2.EtcdBackup(\"foo\",\n backup_config=rancher2.EtcdBackupBackupConfigArgs(\n enabled=True,\n interval_hours=20,\n retention=10,\n s3_backup_config=rancher2.EtcdBackupBackupConfigS3BackupConfigArgs(\n access_key=\"access_key\",\n bucket_name=\"bucket_name\",\n endpoint=\"endpoint\",\n folder=\"/folder\",\n region=\"region\",\n secret_key=\"secret_key\",\n ),\n ),\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n filename=\"\u003cFILENAME\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Etcd Backup\n var foo = new Rancher2.EtcdBackup(\"foo\", new()\n {\n BackupConfig = new Rancher2.Inputs.EtcdBackupBackupConfigArgs\n {\n Enabled = true,\n IntervalHours = 20,\n Retention = 10,\n S3BackupConfig = new Rancher2.Inputs.EtcdBackupBackupConfigS3BackupConfigArgs\n {\n AccessKey = \"access_key\",\n BucketName = \"bucket_name\",\n Endpoint = \"endpoint\",\n Folder = \"/folder\",\n Region = \"region\",\n SecretKey = \"secret_key\",\n },\n },\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Filename = \"\u003cFILENAME\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewEtcdBackup(ctx, \"foo\", \u0026rancher2.EtcdBackupArgs{\n\t\t\tBackupConfig: \u0026rancher2.EtcdBackupBackupConfigArgs{\n\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\tIntervalHours: pulumi.Int(20),\n\t\t\t\tRetention: pulumi.Int(10),\n\t\t\t\tS3BackupConfig: \u0026rancher2.EtcdBackupBackupConfigS3BackupConfigArgs{\n\t\t\t\t\tAccessKey: pulumi.String(\"access_key\"),\n\t\t\t\t\tBucketName: pulumi.String(\"bucket_name\"),\n\t\t\t\t\tEndpoint: pulumi.String(\"endpoint\"),\n\t\t\t\t\tFolder: pulumi.String(\"/folder\"),\n\t\t\t\t\tRegion: pulumi.String(\"region\"),\n\t\t\t\t\tSecretKey: pulumi.String(\"secret_key\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tFilename: pulumi.String(\"\u003cFILENAME\u003e\"),\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.rancher2.EtcdBackup;\nimport com.pulumi.rancher2.EtcdBackupArgs;\nimport com.pulumi.rancher2.inputs.EtcdBackupBackupConfigArgs;\nimport com.pulumi.rancher2.inputs.EtcdBackupBackupConfigS3BackupConfigArgs;\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 foo = new EtcdBackup(\"foo\", EtcdBackupArgs.builder() \n .backupConfig(EtcdBackupBackupConfigArgs.builder()\n .enabled(true)\n .intervalHours(20)\n .retention(10)\n .s3BackupConfig(EtcdBackupBackupConfigS3BackupConfigArgs.builder()\n .accessKey(\"access_key\")\n .bucketName(\"bucket_name\")\n .endpoint(\"endpoint\")\n .folder(\"/folder\")\n .region(\"region\")\n .secretKey(\"secret_key\")\n .build())\n .build())\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .filename(\"\u003cFILENAME\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Etcd Backup\n foo:\n type: rancher2:EtcdBackup\n properties:\n backupConfig:\n enabled: true\n intervalHours: 20\n retention: 10\n s3BackupConfig:\n accessKey: access_key\n bucketName: bucket_name\n endpoint: endpoint\n folder: /folder\n region: region\n secretKey: secret_key\n clusterId: \u003cCLUSTER_ID\u003e\n filename: \u003cFILENAME\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nEtcd Backup can be imported using the Rancher etcd backup ID\n\n```sh\n $ pulumi import rancher2:index/etcdBackup:EtcdBackup foo \u0026lt;ETCD_BACKUP_ID\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -28705,7 +28022,7 @@ } }, "rancher2:index/feature:Feature": { - "description": "Provides a Rancher v2 Feature resource. This can be used to enable/disable [experimental features](https://rancher.com/docs/rancher/v2.x/en/installation/resources/feature-flags/) for Rancher v2 environments.\n\nExperimental features already exist at Rancher v2.5.x systems, so they can just be updated: \n* On create, provider will read Feature from Rancher and update its value. It will return an error if feature doesn't exist\n* On destroy, provider will not delete feature from Rancher, just from tfstate\n\n**Note:** Some Rancher features as `fleet`, may force a Rancher reboot once updated. The provider will wait until Rancher is rebooted. If you are modifying more than one feature in a row, and any of them requires a Rancher reboot, `pulumi up` may fail on first run. Run `pulumi up` again should work fine. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Feature\nconst fleet = new rancher2.Feature(\"fleet\", {value: \"\u003cVALUE\u003e\"});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Feature\nfleet = rancher2.Feature(\"fleet\", value=\"\u003cVALUE\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Feature\n var fleet = new Rancher2.Feature(\"fleet\", new()\n {\n Value = \"\u003cVALUE\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewFeature(ctx, \"fleet\", \u0026rancher2.FeatureArgs{\n\t\t\tValue: pulumi.Bool(\"\u003cVALUE\u003e\"),\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.rancher2.Feature;\nimport com.pulumi.rancher2.FeatureArgs;\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 fleet = new Feature(\"fleet\", FeatureArgs.builder() \n .value(\"\u003cVALUE\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Feature\n fleet:\n type: rancher2:Feature\n properties:\n value: \u003cVALUE\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Feature resource. This can be used to enable/disable [experimental features](https://rancher.com/docs/rancher/v2.x/en/installation/resources/feature-flags/) for Rancher v2 environments.\n\nExperimental features already exist at Rancher v2.5.x systems, so they can just be updated: \n* On create, provider will read Feature from Rancher and update its value. It will return an error if feature doesn't exist\n* On destroy, provider will not delete feature from Rancher, just from tfstate\n\n**Note:** Some Rancher features as `fleet`, may force a Rancher reboot once updated. The provider will wait until Rancher is rebooted. If you are modifying more than one feature in a row, and any of them requires a Rancher reboot, `pulumi up` may fail on first run. Run `pulumi up` again should work fine. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Feature\nconst fleet = new rancher2.Feature(\"fleet\", {value: \"\u003cVALUE\u003e\"});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Feature\nfleet = rancher2.Feature(\"fleet\", value=\"\u003cVALUE\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Feature\n var fleet = new Rancher2.Feature(\"fleet\", new()\n {\n Value = \"\u003cVALUE\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewFeature(ctx, \"fleet\", \u0026rancher2.FeatureArgs{\n\t\t\tValue: pulumi.Bool(\"\u003cVALUE\u003e\"),\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.rancher2.Feature;\nimport com.pulumi.rancher2.FeatureArgs;\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 fleet = new Feature(\"fleet\", FeatureArgs.builder() \n .value(\"\u003cVALUE\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Feature\n fleet:\n type: rancher2:Feature\n properties:\n value: \u003cVALUE\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "annotations": { "type": "object", @@ -28791,7 +28108,7 @@ } }, "rancher2:index/globalDns:GlobalDns": { - "description": "Provides a Rancher V2 Global DNS resource. This can be used to create Global DNS records for Rancher V2.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider\nconst fooGlobalDnsProvider = new rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\", {\n rootDomain: \"example.com\",\n route53Config: {\n accessKey: \"YYYYYYYYYYYYYYYYYYYY\",\n secretKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zoneType: \"private\",\n region: \"us-east-1\",\n },\n});\n// Create a new rancher2 Global DNS using project IDs\nconst fooGlobalDns = new rancher2.GlobalDns(\"fooGlobalDns\", {\n fqdn: \"foo.example.com\",\n providerId: fooGlobalDnsProvider.id,\n projectIds: [\n \"project1\",\n \"project2\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider\nfoo_global_dns_provider = rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\",\n root_domain=\"example.com\",\n route53_config=rancher2.GlobalDnsProviderRoute53ConfigArgs(\n access_key=\"YYYYYYYYYYYYYYYYYYYY\",\n secret_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zone_type=\"private\",\n region=\"us-east-1\",\n ))\n# Create a new rancher2 Global DNS using project IDs\nfoo_global_dns = rancher2.GlobalDns(\"fooGlobalDns\",\n fqdn=\"foo.example.com\",\n provider_id=foo_global_dns_provider.id,\n project_ids=[\n \"project1\",\n \"project2\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider\n var fooGlobalDnsProvider = new Rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\", new()\n {\n RootDomain = \"example.com\",\n Route53Config = new Rancher2.Inputs.GlobalDnsProviderRoute53ConfigArgs\n {\n AccessKey = \"YYYYYYYYYYYYYYYYYYYY\",\n SecretKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ZoneType = \"private\",\n Region = \"us-east-1\",\n },\n });\n\n // Create a new rancher2 Global DNS using project IDs\n var fooGlobalDns = new Rancher2.GlobalDns(\"fooGlobalDns\", new()\n {\n Fqdn = \"foo.example.com\",\n ProviderId = fooGlobalDnsProvider.Id,\n ProjectIds = new[]\n {\n \"project1\",\n \"project2\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooGlobalDnsProvider, err := rancher2.NewGlobalDnsProvider(ctx, \"fooGlobalDnsProvider\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t\tRoute53Config: \u0026rancher2.GlobalDnsProviderRoute53ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"YYYYYYYYYYYYYYYYYYYY\"),\n\t\t\t\tSecretKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\tZoneType: pulumi.String(\"private\"),\n\t\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalDns(ctx, \"fooGlobalDns\", \u0026rancher2.GlobalDnsArgs{\n\t\t\tFqdn: pulumi.String(\"foo.example.com\"),\n\t\t\tProviderId: fooGlobalDnsProvider.ID(),\n\t\t\tProjectIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"project1\"),\n\t\t\t\tpulumi.String(\"project2\"),\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.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs;\nimport com.pulumi.rancher2.GlobalDns;\nimport com.pulumi.rancher2.GlobalDnsArgs;\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 fooGlobalDnsProvider = new GlobalDnsProvider(\"fooGlobalDnsProvider\", GlobalDnsProviderArgs.builder() \n .rootDomain(\"example.com\")\n .route53Config(GlobalDnsProviderRoute53ConfigArgs.builder()\n .accessKey(\"YYYYYYYYYYYYYYYYYYYY\")\n .secretKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .zoneType(\"private\")\n .region(\"us-east-1\")\n .build())\n .build());\n\n var fooGlobalDns = new GlobalDns(\"fooGlobalDns\", GlobalDnsArgs.builder() \n .fqdn(\"foo.example.com\")\n .providerId(fooGlobalDnsProvider.id())\n .projectIds( \n \"project1\",\n \"project2\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider\n fooGlobalDnsProvider:\n type: rancher2:GlobalDnsProvider\n properties:\n rootDomain: example.com\n route53Config:\n accessKey: YYYYYYYYYYYYYYYYYYYY\n secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n zoneType: private\n region: us-east-1\n # Create a new rancher2 Global DNS using project IDs\n fooGlobalDns:\n type: rancher2:GlobalDns\n properties:\n fqdn: foo.example.com\n providerId: ${fooGlobalDnsProvider.id}\n projectIds:\n - project1\n - project2\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider\nconst fooGlobalDnsProvider = new rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\", {\n rootDomain: \"example.com\",\n route53Config: {\n accessKey: \"YYYYYYYYYYYYYYYYYYYY\",\n secretKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zoneType: \"private\",\n region: \"us-east-1\",\n },\n});\n// Create a new rancher2 Global DNS using MultiClusterApp ID\nconst fooGlobalDns = new rancher2.GlobalDns(\"fooGlobalDns\", {\n fqdn: \"foo.example.com\",\n providerId: fooGlobalDnsProvider.id,\n multiClusterAppId: \"\u003cMCA_ID\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider\nfoo_global_dns_provider = rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\",\n root_domain=\"example.com\",\n route53_config=rancher2.GlobalDnsProviderRoute53ConfigArgs(\n access_key=\"YYYYYYYYYYYYYYYYYYYY\",\n secret_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zone_type=\"private\",\n region=\"us-east-1\",\n ))\n# Create a new rancher2 Global DNS using MultiClusterApp ID\nfoo_global_dns = rancher2.GlobalDns(\"fooGlobalDns\",\n fqdn=\"foo.example.com\",\n provider_id=foo_global_dns_provider.id,\n multi_cluster_app_id=\"\u003cMCA_ID\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider\n var fooGlobalDnsProvider = new Rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\", new()\n {\n RootDomain = \"example.com\",\n Route53Config = new Rancher2.Inputs.GlobalDnsProviderRoute53ConfigArgs\n {\n AccessKey = \"YYYYYYYYYYYYYYYYYYYY\",\n SecretKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ZoneType = \"private\",\n Region = \"us-east-1\",\n },\n });\n\n // Create a new rancher2 Global DNS using MultiClusterApp ID\n var fooGlobalDns = new Rancher2.GlobalDns(\"fooGlobalDns\", new()\n {\n Fqdn = \"foo.example.com\",\n ProviderId = fooGlobalDnsProvider.Id,\n MultiClusterAppId = \"\u003cMCA_ID\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooGlobalDnsProvider, err := rancher2.NewGlobalDnsProvider(ctx, \"fooGlobalDnsProvider\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t\tRoute53Config: \u0026rancher2.GlobalDnsProviderRoute53ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"YYYYYYYYYYYYYYYYYYYY\"),\n\t\t\t\tSecretKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\tZoneType: pulumi.String(\"private\"),\n\t\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalDns(ctx, \"fooGlobalDns\", \u0026rancher2.GlobalDnsArgs{\n\t\t\tFqdn: pulumi.String(\"foo.example.com\"),\n\t\t\tProviderId: fooGlobalDnsProvider.ID(),\n\t\t\tMultiClusterAppId: pulumi.String(\"\u003cMCA_ID\u003e\"),\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.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs;\nimport com.pulumi.rancher2.GlobalDns;\nimport com.pulumi.rancher2.GlobalDnsArgs;\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 fooGlobalDnsProvider = new GlobalDnsProvider(\"fooGlobalDnsProvider\", GlobalDnsProviderArgs.builder() \n .rootDomain(\"example.com\")\n .route53Config(GlobalDnsProviderRoute53ConfigArgs.builder()\n .accessKey(\"YYYYYYYYYYYYYYYYYYYY\")\n .secretKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .zoneType(\"private\")\n .region(\"us-east-1\")\n .build())\n .build());\n\n var fooGlobalDns = new GlobalDns(\"fooGlobalDns\", GlobalDnsArgs.builder() \n .fqdn(\"foo.example.com\")\n .providerId(fooGlobalDnsProvider.id())\n .multiClusterAppId(\"\u003cMCA_ID\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider\n fooGlobalDnsProvider:\n type: rancher2:GlobalDnsProvider\n properties:\n rootDomain: example.com\n route53Config:\n accessKey: YYYYYYYYYYYYYYYYYYYY\n secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n zoneType: private\n region: us-east-1\n # Create a new rancher2 Global DNS using MultiClusterApp ID\n fooGlobalDns:\n type: rancher2:GlobalDns\n properties:\n fqdn: foo.example.com\n providerId: ${fooGlobalDnsProvider.id}\n multiClusterAppId: \u003cMCA_ID\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGlobal DNS Entry can be imported using the Rancher Global DNS ID\n\n```sh\n $ pulumi import rancher2:index/globalDns:GlobalDns foo \u003cglobal_dns_id\u003e\n```\n ", + "description": "Provides a Rancher V2 Global DNS resource. This can be used to create Global DNS records for Rancher V2.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider\nconst fooGlobalDnsProvider = new rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\", {\n rootDomain: \"example.com\",\n route53Config: {\n accessKey: \"YYYYYYYYYYYYYYYYYYYY\",\n secretKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zoneType: \"private\",\n region: \"us-east-1\",\n },\n});\n// Create a new rancher2 Global DNS using project IDs\nconst fooGlobalDns = new rancher2.GlobalDns(\"fooGlobalDns\", {\n fqdn: \"foo.example.com\",\n providerId: fooGlobalDnsProvider.id,\n projectIds: [\n \"project1\",\n \"project2\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider\nfoo_global_dns_provider = rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\",\n root_domain=\"example.com\",\n route53_config=rancher2.GlobalDnsProviderRoute53ConfigArgs(\n access_key=\"YYYYYYYYYYYYYYYYYYYY\",\n secret_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zone_type=\"private\",\n region=\"us-east-1\",\n ))\n# Create a new rancher2 Global DNS using project IDs\nfoo_global_dns = rancher2.GlobalDns(\"fooGlobalDns\",\n fqdn=\"foo.example.com\",\n provider_id=foo_global_dns_provider.id,\n project_ids=[\n \"project1\",\n \"project2\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider\n var fooGlobalDnsProvider = new Rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\", new()\n {\n RootDomain = \"example.com\",\n Route53Config = new Rancher2.Inputs.GlobalDnsProviderRoute53ConfigArgs\n {\n AccessKey = \"YYYYYYYYYYYYYYYYYYYY\",\n SecretKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ZoneType = \"private\",\n Region = \"us-east-1\",\n },\n });\n\n // Create a new rancher2 Global DNS using project IDs\n var fooGlobalDns = new Rancher2.GlobalDns(\"fooGlobalDns\", new()\n {\n Fqdn = \"foo.example.com\",\n ProviderId = fooGlobalDnsProvider.Id,\n ProjectIds = new[]\n {\n \"project1\",\n \"project2\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooGlobalDnsProvider, err := rancher2.NewGlobalDnsProvider(ctx, \"fooGlobalDnsProvider\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t\tRoute53Config: \u0026rancher2.GlobalDnsProviderRoute53ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"YYYYYYYYYYYYYYYYYYYY\"),\n\t\t\t\tSecretKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\tZoneType: pulumi.String(\"private\"),\n\t\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalDns(ctx, \"fooGlobalDns\", \u0026rancher2.GlobalDnsArgs{\n\t\t\tFqdn: pulumi.String(\"foo.example.com\"),\n\t\t\tProviderId: fooGlobalDnsProvider.ID(),\n\t\t\tProjectIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"project1\"),\n\t\t\t\tpulumi.String(\"project2\"),\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.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs;\nimport com.pulumi.rancher2.GlobalDns;\nimport com.pulumi.rancher2.GlobalDnsArgs;\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 fooGlobalDnsProvider = new GlobalDnsProvider(\"fooGlobalDnsProvider\", GlobalDnsProviderArgs.builder() \n .rootDomain(\"example.com\")\n .route53Config(GlobalDnsProviderRoute53ConfigArgs.builder()\n .accessKey(\"YYYYYYYYYYYYYYYYYYYY\")\n .secretKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .zoneType(\"private\")\n .region(\"us-east-1\")\n .build())\n .build());\n\n var fooGlobalDns = new GlobalDns(\"fooGlobalDns\", GlobalDnsArgs.builder() \n .fqdn(\"foo.example.com\")\n .providerId(fooGlobalDnsProvider.id())\n .projectIds( \n \"project1\",\n \"project2\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider\n fooGlobalDnsProvider:\n type: rancher2:GlobalDnsProvider\n properties:\n rootDomain: example.com\n route53Config:\n accessKey: YYYYYYYYYYYYYYYYYYYY\n secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n zoneType: private\n region: us-east-1\n # Create a new rancher2 Global DNS using project IDs\n fooGlobalDns:\n type: rancher2:GlobalDns\n properties:\n fqdn: foo.example.com\n providerId: ${fooGlobalDnsProvider.id}\n projectIds:\n - project1\n - project2\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider\nconst fooGlobalDnsProvider = new rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\", {\n rootDomain: \"example.com\",\n route53Config: {\n accessKey: \"YYYYYYYYYYYYYYYYYYYY\",\n secretKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zoneType: \"private\",\n region: \"us-east-1\",\n },\n});\n// Create a new rancher2 Global DNS using MultiClusterApp ID\nconst fooGlobalDns = new rancher2.GlobalDns(\"fooGlobalDns\", {\n fqdn: \"foo.example.com\",\n providerId: fooGlobalDnsProvider.id,\n multiClusterAppId: \"\u003cMCA_ID\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider\nfoo_global_dns_provider = rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\",\n root_domain=\"example.com\",\n route53_config=rancher2.GlobalDnsProviderRoute53ConfigArgs(\n access_key=\"YYYYYYYYYYYYYYYYYYYY\",\n secret_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zone_type=\"private\",\n region=\"us-east-1\",\n ))\n# Create a new rancher2 Global DNS using MultiClusterApp ID\nfoo_global_dns = rancher2.GlobalDns(\"fooGlobalDns\",\n fqdn=\"foo.example.com\",\n provider_id=foo_global_dns_provider.id,\n multi_cluster_app_id=\"\u003cMCA_ID\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider\n var fooGlobalDnsProvider = new Rancher2.GlobalDnsProvider(\"fooGlobalDnsProvider\", new()\n {\n RootDomain = \"example.com\",\n Route53Config = new Rancher2.Inputs.GlobalDnsProviderRoute53ConfigArgs\n {\n AccessKey = \"YYYYYYYYYYYYYYYYYYYY\",\n SecretKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ZoneType = \"private\",\n Region = \"us-east-1\",\n },\n });\n\n // Create a new rancher2 Global DNS using MultiClusterApp ID\n var fooGlobalDns = new Rancher2.GlobalDns(\"fooGlobalDns\", new()\n {\n Fqdn = \"foo.example.com\",\n ProviderId = fooGlobalDnsProvider.Id,\n MultiClusterAppId = \"\u003cMCA_ID\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooGlobalDnsProvider, err := rancher2.NewGlobalDnsProvider(ctx, \"fooGlobalDnsProvider\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t\tRoute53Config: \u0026rancher2.GlobalDnsProviderRoute53ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"YYYYYYYYYYYYYYYYYYYY\"),\n\t\t\t\tSecretKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\tZoneType: pulumi.String(\"private\"),\n\t\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalDns(ctx, \"fooGlobalDns\", \u0026rancher2.GlobalDnsArgs{\n\t\t\tFqdn: pulumi.String(\"foo.example.com\"),\n\t\t\tProviderId: fooGlobalDnsProvider.ID(),\n\t\t\tMultiClusterAppId: pulumi.String(\"\u003cMCA_ID\u003e\"),\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.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs;\nimport com.pulumi.rancher2.GlobalDns;\nimport com.pulumi.rancher2.GlobalDnsArgs;\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 fooGlobalDnsProvider = new GlobalDnsProvider(\"fooGlobalDnsProvider\", GlobalDnsProviderArgs.builder() \n .rootDomain(\"example.com\")\n .route53Config(GlobalDnsProviderRoute53ConfigArgs.builder()\n .accessKey(\"YYYYYYYYYYYYYYYYYYYY\")\n .secretKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .zoneType(\"private\")\n .region(\"us-east-1\")\n .build())\n .build());\n\n var fooGlobalDns = new GlobalDns(\"fooGlobalDns\", GlobalDnsArgs.builder() \n .fqdn(\"foo.example.com\")\n .providerId(fooGlobalDnsProvider.id())\n .multiClusterAppId(\"\u003cMCA_ID\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider\n fooGlobalDnsProvider:\n type: rancher2:GlobalDnsProvider\n properties:\n rootDomain: example.com\n route53Config:\n accessKey: YYYYYYYYYYYYYYYYYYYY\n secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n zoneType: private\n region: us-east-1\n # Create a new rancher2 Global DNS using MultiClusterApp ID\n fooGlobalDns:\n type: rancher2:GlobalDns\n properties:\n fqdn: foo.example.com\n providerId: ${fooGlobalDnsProvider.id}\n multiClusterAppId: \u003cMCA_ID\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGlobal DNS Entry can be imported using the Rancher Global DNS ID\n\n```sh\n $ pulumi import rancher2:index/globalDns:GlobalDns foo \u003cglobal_dns_id\u003e\n```\n ", "properties": { "annotations": { "type": "object", @@ -28940,7 +28257,7 @@ } }, "rancher2:index/globalDnsProvider:GlobalDnsProvider": { - "description": "Provides a Rancher V2 Global DNS Provider resource. This can be used to create Global DNS Providers for Rancher V2. Supported Global DNS Providers: `alidns, cloudflare, route53`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider - alidns\nconst foo = new rancher2.GlobalDnsProvider(\"foo\", {\n alidnsConfig: {\n accessKey: \"YYYYYYYYYYYYYYYYYYYY\",\n secretKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n },\n rootDomain: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider - alidns\nfoo = rancher2.GlobalDnsProvider(\"foo\",\n alidns_config=rancher2.GlobalDnsProviderAlidnsConfigArgs(\n access_key=\"YYYYYYYYYYYYYYYYYYYY\",\n secret_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ),\n root_domain=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider - alidns\n var foo = new Rancher2.GlobalDnsProvider(\"foo\", new()\n {\n AlidnsConfig = new Rancher2.Inputs.GlobalDnsProviderAlidnsConfigArgs\n {\n AccessKey = \"YYYYYYYYYYYYYYYYYYYY\",\n SecretKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n },\n RootDomain = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewGlobalDnsProvider(ctx, \"foo\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tAlidnsConfig: \u0026rancher2.GlobalDnsProviderAlidnsConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"YYYYYYYYYYYYYYYYYYYY\"),\n\t\t\t\tSecretKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t},\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderAlidnsConfigArgs;\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 foo = new GlobalDnsProvider(\"foo\", GlobalDnsProviderArgs.builder() \n .alidnsConfig(GlobalDnsProviderAlidnsConfigArgs.builder()\n .accessKey(\"YYYYYYYYYYYYYYYYYYYY\")\n .secretKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .build())\n .rootDomain(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider - alidns\n foo:\n type: rancher2:GlobalDnsProvider\n properties:\n alidnsConfig:\n accessKey: YYYYYYYYYYYYYYYYYYYY\n secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n rootDomain: example.com\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider - cloudflare\nconst foo = new rancher2.GlobalDnsProvider(\"foo\", {\n cloudflareConfig: {\n apiEmail: \"test@test.local\",\n apiKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n proxySetting: true,\n },\n rootDomain: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider - cloudflare\nfoo = rancher2.GlobalDnsProvider(\"foo\",\n cloudflare_config=rancher2.GlobalDnsProviderCloudflareConfigArgs(\n api_email=\"test@test.local\",\n api_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n proxy_setting=True,\n ),\n root_domain=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider - cloudflare\n var foo = new Rancher2.GlobalDnsProvider(\"foo\", new()\n {\n CloudflareConfig = new Rancher2.Inputs.GlobalDnsProviderCloudflareConfigArgs\n {\n ApiEmail = \"test@test.local\",\n ApiKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ProxySetting = true,\n },\n RootDomain = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewGlobalDnsProvider(ctx, \"foo\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tCloudflareConfig: \u0026rancher2.GlobalDnsProviderCloudflareConfigArgs{\n\t\t\t\tApiEmail: pulumi.String(\"test@test.local\"),\n\t\t\t\tApiKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\tProxySetting: pulumi.Bool(true),\n\t\t\t},\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderCloudflareConfigArgs;\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 foo = new GlobalDnsProvider(\"foo\", GlobalDnsProviderArgs.builder() \n .cloudflareConfig(GlobalDnsProviderCloudflareConfigArgs.builder()\n .apiEmail(\"test@test.local\")\n .apiKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .proxySetting(true)\n .build())\n .rootDomain(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider - cloudflare\n foo:\n type: rancher2:GlobalDnsProvider\n properties:\n cloudflareConfig:\n apiEmail: test@test.local\n apiKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n proxySetting: true\n rootDomain: example.com\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider - route53\nconst foo = new rancher2.GlobalDnsProvider(\"foo\", {\n rootDomain: \"example.com\",\n route53Config: {\n accessKey: \"YYYYYYYYYYYYYYYYYYYY\",\n region: \"us-east-1\",\n secretKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zoneType: \"private\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider - route53\nfoo = rancher2.GlobalDnsProvider(\"foo\",\n root_domain=\"example.com\",\n route53_config=rancher2.GlobalDnsProviderRoute53ConfigArgs(\n access_key=\"YYYYYYYYYYYYYYYYYYYY\",\n region=\"us-east-1\",\n secret_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zone_type=\"private\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider - route53\n var foo = new Rancher2.GlobalDnsProvider(\"foo\", new()\n {\n RootDomain = \"example.com\",\n Route53Config = new Rancher2.Inputs.GlobalDnsProviderRoute53ConfigArgs\n {\n AccessKey = \"YYYYYYYYYYYYYYYYYYYY\",\n Region = \"us-east-1\",\n SecretKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ZoneType = \"private\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewGlobalDnsProvider(ctx, \"foo\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t\tRoute53Config: \u0026rancher2.GlobalDnsProviderRoute53ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"YYYYYYYYYYYYYYYYYYYY\"),\n\t\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\t\tSecretKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\tZoneType: pulumi.String(\"private\"),\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.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs;\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 foo = new GlobalDnsProvider(\"foo\", GlobalDnsProviderArgs.builder() \n .rootDomain(\"example.com\")\n .route53Config(GlobalDnsProviderRoute53ConfigArgs.builder()\n .accessKey(\"YYYYYYYYYYYYYYYYYYYY\")\n .region(\"us-east-1\")\n .secretKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .zoneType(\"private\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider - route53\n foo:\n type: rancher2:GlobalDnsProvider\n properties:\n rootDomain: example.com\n route53Config:\n accessKey: YYYYYYYYYYYYYYYYYYYY\n region: us-east-1\n secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n zoneType: private\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGlobal DNS Providers can be imported using the Rancher Global DNS Provider ID\n\n```sh\n $ pulumi import rancher2:index/globalDnsProvider:GlobalDnsProvider foo \u003cglobal_dns_provider_id\u003e\n```\n ", + "description": "Provides a Rancher V2 Global DNS Provider resource. This can be used to create Global DNS Providers for Rancher V2. Supported Global DNS Providers: `alidns, cloudflare, route53`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider - alidns\nconst foo = new rancher2.GlobalDnsProvider(\"foo\", {\n alidnsConfig: {\n accessKey: \"YYYYYYYYYYYYYYYYYYYY\",\n secretKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n },\n rootDomain: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider - alidns\nfoo = rancher2.GlobalDnsProvider(\"foo\",\n alidns_config=rancher2.GlobalDnsProviderAlidnsConfigArgs(\n access_key=\"YYYYYYYYYYYYYYYYYYYY\",\n secret_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ),\n root_domain=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider - alidns\n var foo = new Rancher2.GlobalDnsProvider(\"foo\", new()\n {\n AlidnsConfig = new Rancher2.Inputs.GlobalDnsProviderAlidnsConfigArgs\n {\n AccessKey = \"YYYYYYYYYYYYYYYYYYYY\",\n SecretKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n },\n RootDomain = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewGlobalDnsProvider(ctx, \"foo\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tAlidnsConfig: \u0026rancher2.GlobalDnsProviderAlidnsConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"YYYYYYYYYYYYYYYYYYYY\"),\n\t\t\t\tSecretKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t},\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderAlidnsConfigArgs;\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 foo = new GlobalDnsProvider(\"foo\", GlobalDnsProviderArgs.builder() \n .alidnsConfig(GlobalDnsProviderAlidnsConfigArgs.builder()\n .accessKey(\"YYYYYYYYYYYYYYYYYYYY\")\n .secretKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .build())\n .rootDomain(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider - alidns\n foo:\n type: rancher2:GlobalDnsProvider\n properties:\n alidnsConfig:\n accessKey: YYYYYYYYYYYYYYYYYYYY\n secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n rootDomain: example.com\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider - cloudflare\nconst foo = new rancher2.GlobalDnsProvider(\"foo\", {\n cloudflareConfig: {\n apiEmail: \"test@test.local\",\n apiKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n proxySetting: true,\n },\n rootDomain: \"example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider - cloudflare\nfoo = rancher2.GlobalDnsProvider(\"foo\",\n cloudflare_config=rancher2.GlobalDnsProviderCloudflareConfigArgs(\n api_email=\"test@test.local\",\n api_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n proxy_setting=True,\n ),\n root_domain=\"example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider - cloudflare\n var foo = new Rancher2.GlobalDnsProvider(\"foo\", new()\n {\n CloudflareConfig = new Rancher2.Inputs.GlobalDnsProviderCloudflareConfigArgs\n {\n ApiEmail = \"test@test.local\",\n ApiKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ProxySetting = true,\n },\n RootDomain = \"example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewGlobalDnsProvider(ctx, \"foo\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tCloudflareConfig: \u0026rancher2.GlobalDnsProviderCloudflareConfigArgs{\n\t\t\t\tApiEmail: pulumi.String(\"test@test.local\"),\n\t\t\t\tApiKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\tProxySetting: pulumi.Bool(true),\n\t\t\t},\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderCloudflareConfigArgs;\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 foo = new GlobalDnsProvider(\"foo\", GlobalDnsProviderArgs.builder() \n .cloudflareConfig(GlobalDnsProviderCloudflareConfigArgs.builder()\n .apiEmail(\"test@test.local\")\n .apiKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .proxySetting(true)\n .build())\n .rootDomain(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider - cloudflare\n foo:\n type: rancher2:GlobalDnsProvider\n properties:\n cloudflareConfig:\n apiEmail: test@test.local\n apiKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n proxySetting: true\n rootDomain: example.com\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global DNS Provider - route53\nconst foo = new rancher2.GlobalDnsProvider(\"foo\", {\n rootDomain: \"example.com\",\n route53Config: {\n accessKey: \"YYYYYYYYYYYYYYYYYYYY\",\n region: \"us-east-1\",\n secretKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zoneType: \"private\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global DNS Provider - route53\nfoo = rancher2.GlobalDnsProvider(\"foo\",\n root_domain=\"example.com\",\n route53_config=rancher2.GlobalDnsProviderRoute53ConfigArgs(\n access_key=\"YYYYYYYYYYYYYYYYYYYY\",\n region=\"us-east-1\",\n secret_key=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n zone_type=\"private\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global DNS Provider - route53\n var foo = new Rancher2.GlobalDnsProvider(\"foo\", new()\n {\n RootDomain = \"example.com\",\n Route53Config = new Rancher2.Inputs.GlobalDnsProviderRoute53ConfigArgs\n {\n AccessKey = \"YYYYYYYYYYYYYYYYYYYY\",\n Region = \"us-east-1\",\n SecretKey = \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n ZoneType = \"private\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewGlobalDnsProvider(ctx, \"foo\", \u0026rancher2.GlobalDnsProviderArgs{\n\t\t\tRootDomain: pulumi.String(\"example.com\"),\n\t\t\tRoute53Config: \u0026rancher2.GlobalDnsProviderRoute53ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"YYYYYYYYYYYYYYYYYYYY\"),\n\t\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\t\tSecretKey: pulumi.String(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"),\n\t\t\t\tZoneType: pulumi.String(\"private\"),\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.rancher2.GlobalDnsProvider;\nimport com.pulumi.rancher2.GlobalDnsProviderArgs;\nimport com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs;\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 foo = new GlobalDnsProvider(\"foo\", GlobalDnsProviderArgs.builder() \n .rootDomain(\"example.com\")\n .route53Config(GlobalDnsProviderRoute53ConfigArgs.builder()\n .accessKey(\"YYYYYYYYYYYYYYYYYYYY\")\n .region(\"us-east-1\")\n .secretKey(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n .zoneType(\"private\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global DNS Provider - route53\n foo:\n type: rancher2:GlobalDnsProvider\n properties:\n rootDomain: example.com\n route53Config:\n accessKey: YYYYYYYYYYYYYYYYYYYY\n region: us-east-1\n secretKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n zoneType: private\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGlobal DNS Providers can be imported using the Rancher Global DNS Provider ID\n\n```sh\n $ pulumi import rancher2:index/globalDnsProvider:GlobalDnsProvider foo \u003cglobal_dns_provider_id\u003e\n```\n ", "properties": { "alidnsConfig": { "$ref": "#/types/rancher2:index/GlobalDnsProviderAlidnsConfig:GlobalDnsProviderAlidnsConfig" @@ -29066,7 +28383,7 @@ } }, "rancher2:index/globalRole:GlobalRole": { - "description": "Provides a Rancher v2 Global Role resource. This can be used to create Global Role for Rancher v2 and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global Role\nconst foo = new rancher2.GlobalRole(\"foo\", {\n description: \"Terraform global role acceptance test\",\n newUserDefault: true,\n rules: [{\n apiGroups: [\"*\"],\n resources: [\"secrets\"],\n verbs: [\"create\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global Role\nfoo = rancher2.GlobalRole(\"foo\",\n description=\"Terraform global role acceptance test\",\n new_user_default=True,\n rules=[rancher2.GlobalRoleRuleArgs(\n api_groups=[\"*\"],\n resources=[\"secrets\"],\n verbs=[\"create\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global Role\n var foo = new Rancher2.GlobalRole(\"foo\", new()\n {\n Description = \"Terraform global role acceptance test\",\n NewUserDefault = true,\n Rules = new[]\n {\n new Rancher2.Inputs.GlobalRoleRuleArgs\n {\n ApiGroups = new[]\n {\n \"*\",\n },\n Resources = new[]\n {\n \"secrets\",\n },\n Verbs = new[]\n {\n \"create\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewGlobalRole(ctx, \"foo\", \u0026rancher2.GlobalRoleArgs{\n\t\t\tDescription: pulumi.String(\"Terraform global role acceptance test\"),\n\t\t\tNewUserDefault: pulumi.Bool(true),\n\t\t\tRules: rancher2.GlobalRoleRuleArray{\n\t\t\t\t\u0026rancher2.GlobalRoleRuleArgs{\n\t\t\t\t\tApiGroups: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t\t},\n\t\t\t\t\tResources: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"secrets\"),\n\t\t\t\t\t},\n\t\t\t\t\tVerbs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"create\"),\n\t\t\t\t\t},\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.rancher2.GlobalRole;\nimport com.pulumi.rancher2.GlobalRoleArgs;\nimport com.pulumi.rancher2.inputs.GlobalRoleRuleArgs;\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 foo = new GlobalRole(\"foo\", GlobalRoleArgs.builder() \n .description(\"Terraform global role acceptance test\")\n .newUserDefault(true)\n .rules(GlobalRoleRuleArgs.builder()\n .apiGroups(\"*\")\n .resources(\"secrets\")\n .verbs(\"create\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global Role\n foo:\n type: rancher2:GlobalRole\n properties:\n description: Terraform global role acceptance test\n newUserDefault: true\n rules:\n - apiGroups:\n - '*'\n resources:\n - secrets\n verbs:\n - create\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGlobal Role can be imported using the Rancher Global Role ID\n\n```sh\n $ pulumi import rancher2:index/globalRole:GlobalRole foo \u0026lt;global_role_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Global Role resource. This can be used to create Global Role for Rancher v2 and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global Role\nconst foo = new rancher2.GlobalRole(\"foo\", {\n description: \"Terraform global role acceptance test\",\n newUserDefault: true,\n rules: [{\n apiGroups: [\"*\"],\n resources: [\"secrets\"],\n verbs: [\"create\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global Role\nfoo = rancher2.GlobalRole(\"foo\",\n description=\"Terraform global role acceptance test\",\n new_user_default=True,\n rules=[rancher2.GlobalRoleRuleArgs(\n api_groups=[\"*\"],\n resources=[\"secrets\"],\n verbs=[\"create\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global Role\n var foo = new Rancher2.GlobalRole(\"foo\", new()\n {\n Description = \"Terraform global role acceptance test\",\n NewUserDefault = true,\n Rules = new[]\n {\n new Rancher2.Inputs.GlobalRoleRuleArgs\n {\n ApiGroups = new[]\n {\n \"*\",\n },\n Resources = new[]\n {\n \"secrets\",\n },\n Verbs = new[]\n {\n \"create\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewGlobalRole(ctx, \"foo\", \u0026rancher2.GlobalRoleArgs{\n\t\t\tDescription: pulumi.String(\"Terraform global role acceptance test\"),\n\t\t\tNewUserDefault: pulumi.Bool(true),\n\t\t\tRules: rancher2.GlobalRoleRuleArray{\n\t\t\t\t\u0026rancher2.GlobalRoleRuleArgs{\n\t\t\t\t\tApiGroups: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t\t},\n\t\t\t\t\tResources: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"secrets\"),\n\t\t\t\t\t},\n\t\t\t\t\tVerbs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"create\"),\n\t\t\t\t\t},\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.rancher2.GlobalRole;\nimport com.pulumi.rancher2.GlobalRoleArgs;\nimport com.pulumi.rancher2.inputs.GlobalRoleRuleArgs;\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 foo = new GlobalRole(\"foo\", GlobalRoleArgs.builder() \n .description(\"Terraform global role acceptance test\")\n .newUserDefault(true)\n .rules(GlobalRoleRuleArgs.builder()\n .apiGroups(\"*\")\n .resources(\"secrets\")\n .verbs(\"create\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global Role\n foo:\n type: rancher2:GlobalRole\n properties:\n description: Terraform global role acceptance test\n newUserDefault: true\n rules:\n - apiGroups:\n - '*'\n resources:\n - secrets\n verbs:\n - create\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGlobal Role can be imported using the Rancher Global Role ID\n\n```sh\n $ pulumi import rancher2:index/globalRole:GlobalRole foo \u0026lt;global_role_id\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -29083,6 +28400,13 @@ "type": "string", "description": "Global role description (string)\n" }, + "inheritedClusterRoles": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster\n" + }, "labels": { "type": "object", "additionalProperties": { @@ -29126,6 +28450,13 @@ "type": "string", "description": "Global role description (string)\n" }, + "inheritedClusterRoles": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster\n" + }, "labels": { "type": "object", "additionalProperties": { @@ -29167,6 +28498,13 @@ "type": "string", "description": "Global role description (string)\n" }, + "inheritedClusterRoles": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster\n" + }, "labels": { "type": "object", "additionalProperties": { @@ -29194,7 +28532,7 @@ } }, "rancher2:index/globalRoleBinding:GlobalRoleBinding": { - "description": "Provides a Rancher v2 Global Role Binding resource. This can be used to create Global Role Bindings for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global Role Binding using user_id\nconst foo = new rancher2.GlobalRoleBinding(\"foo\", {\n globalRoleId: \"admin\",\n userId: \"user-XXXXX\",\n});\n// Create a new rancher2 Global Role Binding using group_principal_id\nconst foo2 = new rancher2.GlobalRoleBinding(\"foo2\", {\n globalRoleId: \"admin\",\n groupPrincipalId: \"local://g-XXXXX\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global Role Binding using user_id\nfoo = rancher2.GlobalRoleBinding(\"foo\",\n global_role_id=\"admin\",\n user_id=\"user-XXXXX\")\n# Create a new rancher2 Global Role Binding using group_principal_id\nfoo2 = rancher2.GlobalRoleBinding(\"foo2\",\n global_role_id=\"admin\",\n group_principal_id=\"local://g-XXXXX\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global Role Binding using user_id\n var foo = new Rancher2.GlobalRoleBinding(\"foo\", new()\n {\n GlobalRoleId = \"admin\",\n UserId = \"user-XXXXX\",\n });\n\n // Create a new rancher2 Global Role Binding using group_principal_id\n var foo2 = new Rancher2.GlobalRoleBinding(\"foo2\", new()\n {\n GlobalRoleId = \"admin\",\n GroupPrincipalId = \"local://g-XXXXX\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewGlobalRoleBinding(ctx, \"foo\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.String(\"admin\"),\n\t\t\tUserId: pulumi.String(\"user-XXXXX\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalRoleBinding(ctx, \"foo2\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.String(\"admin\"),\n\t\t\tGroupPrincipalId: pulumi.String(\"local://g-XXXXX\"),\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.rancher2.GlobalRoleBinding;\nimport com.pulumi.rancher2.GlobalRoleBindingArgs;\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 foo = new GlobalRoleBinding(\"foo\", GlobalRoleBindingArgs.builder() \n .globalRoleId(\"admin\")\n .userId(\"user-XXXXX\")\n .build());\n\n var foo2 = new GlobalRoleBinding(\"foo2\", GlobalRoleBindingArgs.builder() \n .globalRoleId(\"admin\")\n .groupPrincipalId(\"local://g-XXXXX\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global Role Binding using user_id\n foo:\n type: rancher2:GlobalRoleBinding\n properties:\n globalRoleId: admin\n userId: user-XXXXX\n # Create a new rancher2 Global Role Binding using group_principal_id\n foo2:\n type: rancher2:GlobalRoleBinding\n properties:\n globalRoleId: admin\n groupPrincipalId: local://g-XXXXX\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGlobal Role Bindings can be imported using the Rancher Global Role Binding ID\n\n```sh\n $ pulumi import rancher2:index/globalRoleBinding:GlobalRoleBinding foo \u0026lt;GLOBAL_ROLE_BINDING_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Global Role Binding resource. This can be used to create Global Role Bindings for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Global Role Binding using user_id\nconst foo = new rancher2.GlobalRoleBinding(\"foo\", {\n globalRoleId: \"admin\",\n userId: \"user-XXXXX\",\n});\n// Create a new rancher2 Global Role Binding using group_principal_id\nconst foo2 = new rancher2.GlobalRoleBinding(\"foo2\", {\n globalRoleId: \"admin\",\n groupPrincipalId: \"local://g-XXXXX\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Global Role Binding using user_id\nfoo = rancher2.GlobalRoleBinding(\"foo\",\n global_role_id=\"admin\",\n user_id=\"user-XXXXX\")\n# Create a new rancher2 Global Role Binding using group_principal_id\nfoo2 = rancher2.GlobalRoleBinding(\"foo2\",\n global_role_id=\"admin\",\n group_principal_id=\"local://g-XXXXX\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Global Role Binding using user_id\n var foo = new Rancher2.GlobalRoleBinding(\"foo\", new()\n {\n GlobalRoleId = \"admin\",\n UserId = \"user-XXXXX\",\n });\n\n // Create a new rancher2 Global Role Binding using group_principal_id\n var foo2 = new Rancher2.GlobalRoleBinding(\"foo2\", new()\n {\n GlobalRoleId = \"admin\",\n GroupPrincipalId = \"local://g-XXXXX\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewGlobalRoleBinding(ctx, \"foo\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.String(\"admin\"),\n\t\t\tUserId: pulumi.String(\"user-XXXXX\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalRoleBinding(ctx, \"foo2\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.String(\"admin\"),\n\t\t\tGroupPrincipalId: pulumi.String(\"local://g-XXXXX\"),\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.rancher2.GlobalRoleBinding;\nimport com.pulumi.rancher2.GlobalRoleBindingArgs;\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 foo = new GlobalRoleBinding(\"foo\", GlobalRoleBindingArgs.builder() \n .globalRoleId(\"admin\")\n .userId(\"user-XXXXX\")\n .build());\n\n var foo2 = new GlobalRoleBinding(\"foo2\", GlobalRoleBindingArgs.builder() \n .globalRoleId(\"admin\")\n .groupPrincipalId(\"local://g-XXXXX\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Global Role Binding using user_id\n foo:\n type: rancher2:GlobalRoleBinding\n properties:\n globalRoleId: admin\n userId: user-XXXXX\n # Create a new rancher2 Global Role Binding using group_principal_id\n foo2:\n type: rancher2:GlobalRoleBinding\n properties:\n globalRoleId: admin\n groupPrincipalId: local://g-XXXXX\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGlobal Role Bindings can be imported using the Rancher Global Role Binding ID\n\n```sh\n $ pulumi import rancher2:index/globalRoleBinding:GlobalRoleBinding foo \u0026lt;GLOBAL_ROLE_BINDING_ID\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -29316,7 +28654,7 @@ } }, "rancher2:index/machineConfigV2:MachineConfigV2": { - "description": "Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above.\n\n`amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere` cloud providers are supported for machine config V2\n\n**Note:** This resource is used by \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Using the Harvester Node Driver\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-harvesterClusterV2 = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvesterCloudCredential\", {harvesterCredentialConfig: {\n clusterId: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.kubeConfig),\n}});\n// Create a new rancher2 machine config v2 using harvester node_driver\nconst foo_harvester_v2 = new rancher2.MachineConfigV2(\"foo-harvester-v2\", {\n generateName: \"foo-harvester-v2\",\n harvesterConfig: {\n vmNamespace: \"default\",\n cpuCount: \"2\",\n memorySize: \"4\",\n diskInfo: ` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_harvester_cluster_v2 = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvesterCloudCredential\", harvester_credential_config=rancher2.CloudCredentialHarvesterCredentialConfigArgs(\n cluster_id=foo_harvester_cluster_v2.cluster_v1_id,\n cluster_type=\"imported\",\n kubeconfig_content=foo_harvester_cluster_v2.kube_config,\n))\n# Create a new rancher2 machine config v2 using harvester node_driver\nfoo_harvester_v2 = rancher2.MachineConfigV2(\"foo-harvester-v2\",\n generate_name=\"foo-harvester-v2\",\n harvester_config=rancher2.MachineConfigV2HarvesterConfigArgs(\n vm_namespace=\"default\",\n cpu_count=\"2\",\n memory_size=\"4\",\n disk_info=\"\"\" {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\"\"\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_harvesterClusterV2 = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvesterCloudCredential\", new()\n {\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n // Create a new rancher2 machine config v2 using harvester node_driver\n var foo_harvester_v2 = new Rancher2.MachineConfigV2(\"foo-harvester-v2\", new()\n {\n GenerateName = \"foo-harvester-v2\",\n HarvesterConfig = new Rancher2.Inputs.MachineConfigV2HarvesterConfigArgs\n {\n VmNamespace = \"default\",\n CpuCount = \"2\",\n MemorySize = \"4\",\n DiskInfo = @\" {\n \"\"disks\"\": [{\n \"\"imageName\"\": \"\"harvester-public/image-57hzg\"\",\n \"\"size\"\": 40,\n \"\"bootOrder\"\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"\"interfaces\"\": [{\n \"\"networkName\"\": \"\"harvester-public/vlan1\"\"\n }]\n }\n EOF,\n sshUser = \"\"ubuntu\"\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfoo_harvesterClusterV2, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvesterCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: *pulumi.String(foo_harvesterClusterV2.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: *pulumi.String(foo_harvesterClusterV2.KubeConfig),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewMachineConfigV2(ctx, \"foo-harvester-v2\", \u0026rancher2.MachineConfigV2Args{\n\t\t\tGenerateName: pulumi.String(\"foo-harvester-v2\"),\n\t\t\tHarvesterConfig: \u0026rancher2.MachineConfigV2HarvesterConfigArgs{\n\t\t\t\tVmNamespace: pulumi.String(\"default\"),\n\t\t\t\tCpuCount: pulumi.String(\"2\"),\n\t\t\t\tMemorySize: pulumi.String(\"4\"),\n\t\t\t\tDiskInfo: pulumi.String(` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport com.pulumi.rancher2.MachineConfigV2;\nimport com.pulumi.rancher2.MachineConfigV2Args;\nimport com.pulumi.rancher2.inputs.MachineConfigV2HarvesterConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo-harvesterClusterV2 = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder() \n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvesterClusterV2.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvesterClusterV2.kubeConfig())\n .build())\n .build());\n\n var foo_harvester_v2 = new MachineConfigV2(\"foo-harvester-v2\", MachineConfigV2Args.builder() \n .generateName(\"foo-harvester-v2\")\n .harvesterConfig(MachineConfigV2HarvesterConfigArgs.builder()\n .vmNamespace(\"default\")\n .cpuCount(\"2\")\n .memorySize(\"4\")\n .diskInfo(\"\"\"\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n properties:\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvesterClusterV2\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvesterClusterV2\"].kubeConfig}\n # Create a new rancher2 machine config v2 using harvester node_driver\n foo-harvester-v2:\n type: rancher2:MachineConfigV2\n properties:\n generateName: foo-harvester-v2\n harvesterConfig:\n vmNamespace: default\n cpuCount: '2'\n memorySize: '4'\n diskInfo: |2\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\nvariables:\n foo-harvesterClusterV2:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above.\n\nThe supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Using the Harvester Node Driver\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-harvesterClusterV2 = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvesterCloudCredential\", {harvesterCredentialConfig: {\n clusterId: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.kubeConfig),\n}});\n// Create a new rancher2 machine config v2 using harvester node_driver\nconst foo_harvester_v2 = new rancher2.MachineConfigV2(\"foo-harvester-v2\", {\n generateName: \"foo-harvester-v2\",\n harvesterConfig: {\n vmNamespace: \"default\",\n cpuCount: \"2\",\n memorySize: \"4\",\n diskInfo: ` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_harvester_cluster_v2 = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvesterCloudCredential\", harvester_credential_config=rancher2.CloudCredentialHarvesterCredentialConfigArgs(\n cluster_id=foo_harvester_cluster_v2.cluster_v1_id,\n cluster_type=\"imported\",\n kubeconfig_content=foo_harvester_cluster_v2.kube_config,\n))\n# Create a new rancher2 machine config v2 using harvester node_driver\nfoo_harvester_v2 = rancher2.MachineConfigV2(\"foo-harvester-v2\",\n generate_name=\"foo-harvester-v2\",\n harvester_config=rancher2.MachineConfigV2HarvesterConfigArgs(\n vm_namespace=\"default\",\n cpu_count=\"2\",\n memory_size=\"4\",\n disk_info=\"\"\" {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\"\"\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_harvesterClusterV2 = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvesterCloudCredential\", new()\n {\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n // Create a new rancher2 machine config v2 using harvester node_driver\n var foo_harvester_v2 = new Rancher2.MachineConfigV2(\"foo-harvester-v2\", new()\n {\n GenerateName = \"foo-harvester-v2\",\n HarvesterConfig = new Rancher2.Inputs.MachineConfigV2HarvesterConfigArgs\n {\n VmNamespace = \"default\",\n CpuCount = \"2\",\n MemorySize = \"4\",\n DiskInfo = @\" {\n \"\"disks\"\": [{\n \"\"imageName\"\": \"\"harvester-public/image-57hzg\"\",\n \"\"size\"\": 40,\n \"\"bootOrder\"\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"\"interfaces\"\": [{\n \"\"networkName\"\": \"\"harvester-public/vlan1\"\"\n }]\n }\n EOF,\n sshUser = \"\"ubuntu\"\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfoo_harvesterClusterV2, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvesterCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: *pulumi.String(foo_harvesterClusterV2.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: *pulumi.String(foo_harvesterClusterV2.KubeConfig),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewMachineConfigV2(ctx, \"foo-harvester-v2\", \u0026rancher2.MachineConfigV2Args{\n\t\t\tGenerateName: pulumi.String(\"foo-harvester-v2\"),\n\t\t\tHarvesterConfig: \u0026rancher2.MachineConfigV2HarvesterConfigArgs{\n\t\t\t\tVmNamespace: pulumi.String(\"default\"),\n\t\t\t\tCpuCount: pulumi.String(\"2\"),\n\t\t\t\tMemorySize: pulumi.String(\"4\"),\n\t\t\t\tDiskInfo: pulumi.String(` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport com.pulumi.rancher2.MachineConfigV2;\nimport com.pulumi.rancher2.MachineConfigV2Args;\nimport com.pulumi.rancher2.inputs.MachineConfigV2HarvesterConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo-harvesterClusterV2 = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder() \n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvesterClusterV2.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvesterClusterV2.kubeConfig())\n .build())\n .build());\n\n var foo_harvester_v2 = new MachineConfigV2(\"foo-harvester-v2\", MachineConfigV2Args.builder() \n .generateName(\"foo-harvester-v2\")\n .harvesterConfig(MachineConfigV2HarvesterConfigArgs.builder()\n .vmNamespace(\"default\")\n .cpuCount(\"2\")\n .memorySize(\"4\")\n .diskInfo(\"\"\"\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n properties:\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvesterClusterV2\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvesterClusterV2\"].kubeConfig}\n # Create a new rancher2 machine config v2 using harvester node_driver\n foo-harvester-v2:\n type: rancher2:MachineConfigV2\n properties:\n generateName: foo-harvester-v2\n harvesterConfig:\n vmNamespace: default\n cpuCount: '2'\n memorySize: '4'\n diskInfo: |2\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\nvariables:\n foo-harvesterClusterV2:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "amazonec2Config": { "$ref": "#/types/rancher2:index/MachineConfigV2Amazonec2Config:MachineConfigV2Amazonec2Config", @@ -29518,7 +28856,7 @@ } }, "rancher2:index/multiClusterApp:MultiClusterApp": { - "description": "Provides a Rancher v2 multi_cluster_app resource. This can be used to deploy multi_cluster_app on Rancher v2.\n\nThis resource can also modify Rancher v2 multi cluster apps in 3 ways:\n- `Add/Remove targets`: If `targets` arguments is modified, the multi cluster app targets will be updated.\n- `Rollback`: If `revision_id` argument is provided or modified the app will be rolled back accordingly. A new `revision_id` will be generated in Rancher. It will also generate a non-empty pulumi preview that will require manual .tf file intervention. Use carefully.\n- `Update`: If any other argument is modified the app will be upgraded.\n\nNote: In case of multiple resource modification in a row, `rollback` has preference.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Multi Cluster App\nconst foo = new rancher2.MultiClusterApp(\"foo\", {\n answers: [{\n values: {\n ingressHost: \"test.xip.io\",\n },\n }],\n catalogName: \"\u003ccatalog_name\u003e\",\n roles: [\"project-member\"],\n targets: [{\n projectId: \"\u003cproject_id\u003e\",\n }],\n templateName: \"\u003ctemplate_name\u003e\",\n templateVersion: \"\u003ctemplate_version\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Multi Cluster App\nfoo = rancher2.MultiClusterApp(\"foo\",\n answers=[rancher2.MultiClusterAppAnswerArgs(\n values={\n \"ingressHost\": \"test.xip.io\",\n },\n )],\n catalog_name=\"\u003ccatalog_name\u003e\",\n roles=[\"project-member\"],\n targets=[rancher2.MultiClusterAppTargetArgs(\n project_id=\"\u003cproject_id\u003e\",\n )],\n template_name=\"\u003ctemplate_name\u003e\",\n template_version=\"\u003ctemplate_version\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Multi Cluster App\n var foo = new Rancher2.MultiClusterApp(\"foo\", new()\n {\n Answers = new[]\n {\n new Rancher2.Inputs.MultiClusterAppAnswerArgs\n {\n Values = \n {\n { \"ingressHost\", \"test.xip.io\" },\n },\n },\n },\n CatalogName = \"\u003ccatalog_name\u003e\",\n Roles = new[]\n {\n \"project-member\",\n },\n Targets = new[]\n {\n new Rancher2.Inputs.MultiClusterAppTargetArgs\n {\n ProjectId = \"\u003cproject_id\u003e\",\n },\n },\n TemplateName = \"\u003ctemplate_name\u003e\",\n TemplateVersion = \"\u003ctemplate_version\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewMultiClusterApp(ctx, \"foo\", \u0026rancher2.MultiClusterAppArgs{\n\t\t\tAnswers: rancher2.MultiClusterAppAnswerArray{\n\t\t\t\t\u0026rancher2.MultiClusterAppAnswerArgs{\n\t\t\t\t\tValues: pulumi.Map{\n\t\t\t\t\t\t\"ingressHost\": pulumi.Any(\"test.xip.io\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tCatalogName: pulumi.String(\"\u003ccatalog_name\u003e\"),\n\t\t\tRoles: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"project-member\"),\n\t\t\t},\n\t\t\tTargets: rancher2.MultiClusterAppTargetArray{\n\t\t\t\t\u0026rancher2.MultiClusterAppTargetArgs{\n\t\t\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateName: pulumi.String(\"\u003ctemplate_name\u003e\"),\n\t\t\tTemplateVersion: pulumi.String(\"\u003ctemplate_version\u003e\"),\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.rancher2.MultiClusterApp;\nimport com.pulumi.rancher2.MultiClusterAppArgs;\nimport com.pulumi.rancher2.inputs.MultiClusterAppAnswerArgs;\nimport com.pulumi.rancher2.inputs.MultiClusterAppTargetArgs;\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 foo = new MultiClusterApp(\"foo\", MultiClusterAppArgs.builder() \n .answers(MultiClusterAppAnswerArgs.builder()\n .values(Map.of(\"ingressHost\", \"test.xip.io\"))\n .build())\n .catalogName(\"\u003ccatalog_name\u003e\")\n .roles(\"project-member\")\n .targets(MultiClusterAppTargetArgs.builder()\n .projectId(\"\u003cproject_id\u003e\")\n .build())\n .templateName(\"\u003ctemplate_name\u003e\")\n .templateVersion(\"\u003ctemplate_version\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Multi Cluster App\n foo:\n type: rancher2:MultiClusterApp\n properties:\n answers:\n - values:\n ingressHost: test.xip.io\n catalogName: \u003ccatalog_name\u003e\n roles:\n - project-member\n targets:\n - projectId: \u003cproject_id\u003e\n templateName: \u003ctemplate_name\u003e\n templateVersion: \u003ctemplate_version\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Multi Cluster App overriding answers\nconst foo = new rancher2.MultiClusterApp(\"foo\", {\n answers: [\n {\n values: {\n ingressHost: \"test.xip.io\",\n },\n },\n {\n projectId: \"\u003cproject_id2\u003e\",\n values: {\n ingressHost: \"test2.xip.io\",\n },\n },\n ],\n catalogName: \"\u003ccatalog_name\u003e\",\n roles: [\"project-member\"],\n targets: [\n {\n projectId: \"\u003cproject_id1\u003e\",\n },\n {\n projectId: \"\u003cproject_id2\u003e\",\n },\n ],\n templateName: \"\u003ctemplate_name\u003e\",\n templateVersion: \"\u003ctemplate_version\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Multi Cluster App overriding answers\nfoo = rancher2.MultiClusterApp(\"foo\",\n answers=[\n rancher2.MultiClusterAppAnswerArgs(\n values={\n \"ingressHost\": \"test.xip.io\",\n },\n ),\n rancher2.MultiClusterAppAnswerArgs(\n project_id=\"\u003cproject_id2\u003e\",\n values={\n \"ingressHost\": \"test2.xip.io\",\n },\n ),\n ],\n catalog_name=\"\u003ccatalog_name\u003e\",\n roles=[\"project-member\"],\n targets=[\n rancher2.MultiClusterAppTargetArgs(\n project_id=\"\u003cproject_id1\u003e\",\n ),\n rancher2.MultiClusterAppTargetArgs(\n project_id=\"\u003cproject_id2\u003e\",\n ),\n ],\n template_name=\"\u003ctemplate_name\u003e\",\n template_version=\"\u003ctemplate_version\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Multi Cluster App overriding answers\n var foo = new Rancher2.MultiClusterApp(\"foo\", new()\n {\n Answers = new[]\n {\n new Rancher2.Inputs.MultiClusterAppAnswerArgs\n {\n Values = \n {\n { \"ingressHost\", \"test.xip.io\" },\n },\n },\n new Rancher2.Inputs.MultiClusterAppAnswerArgs\n {\n ProjectId = \"\u003cproject_id2\u003e\",\n Values = \n {\n { \"ingressHost\", \"test2.xip.io\" },\n },\n },\n },\n CatalogName = \"\u003ccatalog_name\u003e\",\n Roles = new[]\n {\n \"project-member\",\n },\n Targets = new[]\n {\n new Rancher2.Inputs.MultiClusterAppTargetArgs\n {\n ProjectId = \"\u003cproject_id1\u003e\",\n },\n new Rancher2.Inputs.MultiClusterAppTargetArgs\n {\n ProjectId = \"\u003cproject_id2\u003e\",\n },\n },\n TemplateName = \"\u003ctemplate_name\u003e\",\n TemplateVersion = \"\u003ctemplate_version\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewMultiClusterApp(ctx, \"foo\", \u0026rancher2.MultiClusterAppArgs{\n\t\t\tAnswers: rancher2.MultiClusterAppAnswerArray{\n\t\t\t\t\u0026rancher2.MultiClusterAppAnswerArgs{\n\t\t\t\t\tValues: pulumi.Map{\n\t\t\t\t\t\t\"ingressHost\": pulumi.Any(\"test.xip.io\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.MultiClusterAppAnswerArgs{\n\t\t\t\t\tProjectId: pulumi.String(\"\u003cproject_id2\u003e\"),\n\t\t\t\t\tValues: pulumi.Map{\n\t\t\t\t\t\t\"ingressHost\": pulumi.Any(\"test2.xip.io\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tCatalogName: pulumi.String(\"\u003ccatalog_name\u003e\"),\n\t\t\tRoles: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"project-member\"),\n\t\t\t},\n\t\t\tTargets: rancher2.MultiClusterAppTargetArray{\n\t\t\t\t\u0026rancher2.MultiClusterAppTargetArgs{\n\t\t\t\t\tProjectId: pulumi.String(\"\u003cproject_id1\u003e\"),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.MultiClusterAppTargetArgs{\n\t\t\t\t\tProjectId: pulumi.String(\"\u003cproject_id2\u003e\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateName: pulumi.String(\"\u003ctemplate_name\u003e\"),\n\t\t\tTemplateVersion: pulumi.String(\"\u003ctemplate_version\u003e\"),\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.rancher2.MultiClusterApp;\nimport com.pulumi.rancher2.MultiClusterAppArgs;\nimport com.pulumi.rancher2.inputs.MultiClusterAppAnswerArgs;\nimport com.pulumi.rancher2.inputs.MultiClusterAppTargetArgs;\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 foo = new MultiClusterApp(\"foo\", MultiClusterAppArgs.builder() \n .answers( \n MultiClusterAppAnswerArgs.builder()\n .values(Map.of(\"ingressHost\", \"test.xip.io\"))\n .build(),\n MultiClusterAppAnswerArgs.builder()\n .projectId(\"\u003cproject_id2\u003e\")\n .values(Map.of(\"ingressHost\", \"test2.xip.io\"))\n .build())\n .catalogName(\"\u003ccatalog_name\u003e\")\n .roles(\"project-member\")\n .targets( \n MultiClusterAppTargetArgs.builder()\n .projectId(\"\u003cproject_id1\u003e\")\n .build(),\n MultiClusterAppTargetArgs.builder()\n .projectId(\"\u003cproject_id2\u003e\")\n .build())\n .templateName(\"\u003ctemplate_name\u003e\")\n .templateVersion(\"\u003ctemplate_version\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Multi Cluster App overriding answers\n foo:\n type: rancher2:MultiClusterApp\n properties:\n answers:\n - values:\n ingressHost: test.xip.io\n - projectId: \u003cproject_id2\u003e\n values:\n ingressHost: test2.xip.io\n catalogName: \u003ccatalog_name\u003e\n roles:\n - project-member\n targets:\n - projectId: \u003cproject_id1\u003e\n - projectId: \u003cproject_id2\u003e\n templateName: \u003ctemplate_name\u003e\n templateVersion: \u003ctemplate_version\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nMulti cluster app can be imported using the multi cluster app ID in the format `\u003cmulti_cluster_app_name\u003e`\n\n```sh\n $ pulumi import rancher2:index/multiClusterApp:MultiClusterApp foo \u0026lt;MULTI_CLUSTER_APP_ID\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 multi_cluster_app resource. This can be used to deploy multi_cluster_app on Rancher v2.\n\nThis resource can also modify Rancher v2 multi cluster apps in 3 ways:\n- `Add/Remove targets`: If `targets` arguments is modified, the multi cluster app targets will be updated.\n- `Rollback`: If `revision_id` argument is provided or modified the app will be rolled back accordingly. A new `revision_id` will be generated in Rancher. It will also generate a non-empty pulumi preview that will require manual .tf file intervention. Use carefully.\n- `Update`: If any other argument is modified the app will be upgraded.\n\nNote: In case of multiple resource modification in a row, `rollback` has preference.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Multi Cluster App\nconst foo = new rancher2.MultiClusterApp(\"foo\", {\n answers: [{\n values: {\n ingressHost: \"test.xip.io\",\n },\n }],\n catalogName: \"\u003ccatalog_name\u003e\",\n roles: [\"project-member\"],\n targets: [{\n projectId: \"\u003cproject_id\u003e\",\n }],\n templateName: \"\u003ctemplate_name\u003e\",\n templateVersion: \"\u003ctemplate_version\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Multi Cluster App\nfoo = rancher2.MultiClusterApp(\"foo\",\n answers=[rancher2.MultiClusterAppAnswerArgs(\n values={\n \"ingressHost\": \"test.xip.io\",\n },\n )],\n catalog_name=\"\u003ccatalog_name\u003e\",\n roles=[\"project-member\"],\n targets=[rancher2.MultiClusterAppTargetArgs(\n project_id=\"\u003cproject_id\u003e\",\n )],\n template_name=\"\u003ctemplate_name\u003e\",\n template_version=\"\u003ctemplate_version\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Multi Cluster App\n var foo = new Rancher2.MultiClusterApp(\"foo\", new()\n {\n Answers = new[]\n {\n new Rancher2.Inputs.MultiClusterAppAnswerArgs\n {\n Values = \n {\n { \"ingressHost\", \"test.xip.io\" },\n },\n },\n },\n CatalogName = \"\u003ccatalog_name\u003e\",\n Roles = new[]\n {\n \"project-member\",\n },\n Targets = new[]\n {\n new Rancher2.Inputs.MultiClusterAppTargetArgs\n {\n ProjectId = \"\u003cproject_id\u003e\",\n },\n },\n TemplateName = \"\u003ctemplate_name\u003e\",\n TemplateVersion = \"\u003ctemplate_version\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewMultiClusterApp(ctx, \"foo\", \u0026rancher2.MultiClusterAppArgs{\n\t\t\tAnswers: rancher2.MultiClusterAppAnswerArray{\n\t\t\t\t\u0026rancher2.MultiClusterAppAnswerArgs{\n\t\t\t\t\tValues: pulumi.Map{\n\t\t\t\t\t\t\"ingressHost\": pulumi.Any(\"test.xip.io\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tCatalogName: pulumi.String(\"\u003ccatalog_name\u003e\"),\n\t\t\tRoles: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"project-member\"),\n\t\t\t},\n\t\t\tTargets: rancher2.MultiClusterAppTargetArray{\n\t\t\t\t\u0026rancher2.MultiClusterAppTargetArgs{\n\t\t\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateName: pulumi.String(\"\u003ctemplate_name\u003e\"),\n\t\t\tTemplateVersion: pulumi.String(\"\u003ctemplate_version\u003e\"),\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.rancher2.MultiClusterApp;\nimport com.pulumi.rancher2.MultiClusterAppArgs;\nimport com.pulumi.rancher2.inputs.MultiClusterAppAnswerArgs;\nimport com.pulumi.rancher2.inputs.MultiClusterAppTargetArgs;\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 foo = new MultiClusterApp(\"foo\", MultiClusterAppArgs.builder() \n .answers(MultiClusterAppAnswerArgs.builder()\n .values(Map.of(\"ingressHost\", \"test.xip.io\"))\n .build())\n .catalogName(\"\u003ccatalog_name\u003e\")\n .roles(\"project-member\")\n .targets(MultiClusterAppTargetArgs.builder()\n .projectId(\"\u003cproject_id\u003e\")\n .build())\n .templateName(\"\u003ctemplate_name\u003e\")\n .templateVersion(\"\u003ctemplate_version\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Multi Cluster App\n foo:\n type: rancher2:MultiClusterApp\n properties:\n answers:\n - values:\n ingressHost: test.xip.io\n catalogName: \u003ccatalog_name\u003e\n roles:\n - project-member\n targets:\n - projectId: \u003cproject_id\u003e\n templateName: \u003ctemplate_name\u003e\n templateVersion: \u003ctemplate_version\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Multi Cluster App overriding answers\nconst foo = new rancher2.MultiClusterApp(\"foo\", {\n answers: [\n {\n values: {\n ingressHost: \"test.xip.io\",\n },\n },\n {\n projectId: \"\u003cproject_id2\u003e\",\n values: {\n ingressHost: \"test2.xip.io\",\n },\n },\n ],\n catalogName: \"\u003ccatalog_name\u003e\",\n roles: [\"project-member\"],\n targets: [\n {\n projectId: \"\u003cproject_id1\u003e\",\n },\n {\n projectId: \"\u003cproject_id2\u003e\",\n },\n ],\n templateName: \"\u003ctemplate_name\u003e\",\n templateVersion: \"\u003ctemplate_version\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Multi Cluster App overriding answers\nfoo = rancher2.MultiClusterApp(\"foo\",\n answers=[\n rancher2.MultiClusterAppAnswerArgs(\n values={\n \"ingressHost\": \"test.xip.io\",\n },\n ),\n rancher2.MultiClusterAppAnswerArgs(\n project_id=\"\u003cproject_id2\u003e\",\n values={\n \"ingressHost\": \"test2.xip.io\",\n },\n ),\n ],\n catalog_name=\"\u003ccatalog_name\u003e\",\n roles=[\"project-member\"],\n targets=[\n rancher2.MultiClusterAppTargetArgs(\n project_id=\"\u003cproject_id1\u003e\",\n ),\n rancher2.MultiClusterAppTargetArgs(\n project_id=\"\u003cproject_id2\u003e\",\n ),\n ],\n template_name=\"\u003ctemplate_name\u003e\",\n template_version=\"\u003ctemplate_version\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Multi Cluster App overriding answers\n var foo = new Rancher2.MultiClusterApp(\"foo\", new()\n {\n Answers = new[]\n {\n new Rancher2.Inputs.MultiClusterAppAnswerArgs\n {\n Values = \n {\n { \"ingressHost\", \"test.xip.io\" },\n },\n },\n new Rancher2.Inputs.MultiClusterAppAnswerArgs\n {\n ProjectId = \"\u003cproject_id2\u003e\",\n Values = \n {\n { \"ingressHost\", \"test2.xip.io\" },\n },\n },\n },\n CatalogName = \"\u003ccatalog_name\u003e\",\n Roles = new[]\n {\n \"project-member\",\n },\n Targets = new[]\n {\n new Rancher2.Inputs.MultiClusterAppTargetArgs\n {\n ProjectId = \"\u003cproject_id1\u003e\",\n },\n new Rancher2.Inputs.MultiClusterAppTargetArgs\n {\n ProjectId = \"\u003cproject_id2\u003e\",\n },\n },\n TemplateName = \"\u003ctemplate_name\u003e\",\n TemplateVersion = \"\u003ctemplate_version\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewMultiClusterApp(ctx, \"foo\", \u0026rancher2.MultiClusterAppArgs{\n\t\t\tAnswers: rancher2.MultiClusterAppAnswerArray{\n\t\t\t\t\u0026rancher2.MultiClusterAppAnswerArgs{\n\t\t\t\t\tValues: pulumi.Map{\n\t\t\t\t\t\t\"ingressHost\": pulumi.Any(\"test.xip.io\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.MultiClusterAppAnswerArgs{\n\t\t\t\t\tProjectId: pulumi.String(\"\u003cproject_id2\u003e\"),\n\t\t\t\t\tValues: pulumi.Map{\n\t\t\t\t\t\t\"ingressHost\": pulumi.Any(\"test2.xip.io\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tCatalogName: pulumi.String(\"\u003ccatalog_name\u003e\"),\n\t\t\tRoles: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"project-member\"),\n\t\t\t},\n\t\t\tTargets: rancher2.MultiClusterAppTargetArray{\n\t\t\t\t\u0026rancher2.MultiClusterAppTargetArgs{\n\t\t\t\t\tProjectId: pulumi.String(\"\u003cproject_id1\u003e\"),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.MultiClusterAppTargetArgs{\n\t\t\t\t\tProjectId: pulumi.String(\"\u003cproject_id2\u003e\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTemplateName: pulumi.String(\"\u003ctemplate_name\u003e\"),\n\t\t\tTemplateVersion: pulumi.String(\"\u003ctemplate_version\u003e\"),\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.rancher2.MultiClusterApp;\nimport com.pulumi.rancher2.MultiClusterAppArgs;\nimport com.pulumi.rancher2.inputs.MultiClusterAppAnswerArgs;\nimport com.pulumi.rancher2.inputs.MultiClusterAppTargetArgs;\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 foo = new MultiClusterApp(\"foo\", MultiClusterAppArgs.builder() \n .answers( \n MultiClusterAppAnswerArgs.builder()\n .values(Map.of(\"ingressHost\", \"test.xip.io\"))\n .build(),\n MultiClusterAppAnswerArgs.builder()\n .projectId(\"\u003cproject_id2\u003e\")\n .values(Map.of(\"ingressHost\", \"test2.xip.io\"))\n .build())\n .catalogName(\"\u003ccatalog_name\u003e\")\n .roles(\"project-member\")\n .targets( \n MultiClusterAppTargetArgs.builder()\n .projectId(\"\u003cproject_id1\u003e\")\n .build(),\n MultiClusterAppTargetArgs.builder()\n .projectId(\"\u003cproject_id2\u003e\")\n .build())\n .templateName(\"\u003ctemplate_name\u003e\")\n .templateVersion(\"\u003ctemplate_version\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Multi Cluster App overriding answers\n foo:\n type: rancher2:MultiClusterApp\n properties:\n answers:\n - values:\n ingressHost: test.xip.io\n - projectId: \u003cproject_id2\u003e\n values:\n ingressHost: test2.xip.io\n catalogName: \u003ccatalog_name\u003e\n roles:\n - project-member\n targets:\n - projectId: \u003cproject_id1\u003e\n - projectId: \u003cproject_id2\u003e\n templateName: \u003ctemplate_name\u003e\n templateVersion: \u003ctemplate_version\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nMulti cluster app can be imported using the multi cluster app ID in the format `\u003cmulti_cluster_app_name\u003e`\n\n```sh\n $ pulumi import rancher2:index/multiClusterApp:MultiClusterApp foo \u0026lt;MULTI_CLUSTER_APP_ID\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -29783,7 +29121,7 @@ } }, "rancher2:index/namespace:Namespace": { - "description": "Provides a Rancher v2 Namespace resource. This can be used to create namespaces for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Namespace\nconst foo = new rancher2.Namespace(\"foo\", {\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n description: \"foo namespace\",\n projectId: \"\u003cPROJECT_ID\u003e\",\n resourceQuota: {\n limit: {\n limitsCpu: \"100m\",\n limitsMemory: \"100Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Namespace\nfoo = rancher2.Namespace(\"foo\",\n container_resource_limit=rancher2.NamespaceContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ),\n description=\"foo namespace\",\n project_id=\"\u003cPROJECT_ID\u003e\",\n resource_quota=rancher2.NamespaceResourceQuotaArgs(\n limit=rancher2.NamespaceResourceQuotaLimitArgs(\n limits_cpu=\"100m\",\n limits_memory=\"100Mi\",\n requests_storage=\"1Gi\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Namespace\n var foo = new Rancher2.Namespace(\"foo\", new()\n {\n ContainerResourceLimit = new Rancher2.Inputs.NamespaceContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n Description = \"foo namespace\",\n ProjectId = \"\u003cPROJECT_ID\u003e\",\n ResourceQuota = new Rancher2.Inputs.NamespaceResourceQuotaArgs\n {\n Limit = new Rancher2.Inputs.NamespaceResourceQuotaLimitArgs\n {\n LimitsCpu = \"100m\",\n LimitsMemory = \"100Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewNamespace(ctx, \"foo\", \u0026rancher2.NamespaceArgs{\n\t\t\tContainerResourceLimit: \u0026rancher2.NamespaceContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"foo namespace\"),\n\t\t\tProjectId: pulumi.String(\"\u003cPROJECT_ID\u003e\"),\n\t\t\tResourceQuota: \u0026rancher2.NamespaceResourceQuotaArgs{\n\t\t\t\tLimit: \u0026rancher2.NamespaceResourceQuotaLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"100m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"100Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\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.rancher2.Namespace;\nimport com.pulumi.rancher2.NamespaceArgs;\nimport com.pulumi.rancher2.inputs.NamespaceContainerResourceLimitArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaLimitArgs;\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 foo = new Namespace(\"foo\", NamespaceArgs.builder() \n .containerResourceLimit(NamespaceContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .description(\"foo namespace\")\n .projectId(\"\u003cPROJECT_ID\u003e\")\n .resourceQuota(NamespaceResourceQuotaArgs.builder()\n .limit(NamespaceResourceQuotaLimitArgs.builder()\n .limitsCpu(\"100m\")\n .limitsMemory(\"100Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Namespace\n foo:\n type: rancher2:Namespace\n properties:\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n description: foo namespace\n projectId: \u003cPROJECT_ID\u003e\n resourceQuota:\n limit:\n limitsCpu: 100m\n limitsMemory: 100Mi\n requestsStorage: 1Gi\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cluster \nconst foo_custom = new rancher2.Cluster(\"foo-custom\", {\n description: \"Foo rancher2 custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n// Create a new rancher2 Namespace assigned to default cluster project\nconst foo = new rancher2.Namespace(\"foo\", {\n projectId: foo_custom.defaultProjectId,\n description: \"foo namespace\",\n resourceQuota: {\n limit: {\n limitsCpu: \"100m\",\n limitsMemory: \"100Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cluster \nfoo_custom = rancher2.Cluster(\"foo-custom\",\n description=\"Foo rancher2 custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n# Create a new rancher2 Namespace assigned to default cluster project\nfoo = rancher2.Namespace(\"foo\",\n project_id=foo_custom.default_project_id,\n description=\"foo namespace\",\n resource_quota=rancher2.NamespaceResourceQuotaArgs(\n limit=rancher2.NamespaceResourceQuotaLimitArgs(\n limits_cpu=\"100m\",\n limits_memory=\"100Mi\",\n requests_storage=\"1Gi\",\n ),\n ),\n container_resource_limit=rancher2.NamespaceContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cluster \n var foo_custom = new Rancher2.Cluster(\"foo-custom\", new()\n {\n Description = \"Foo rancher2 custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n // Create a new rancher2 Namespace assigned to default cluster project\n var foo = new Rancher2.Namespace(\"foo\", new()\n {\n ProjectId = foo_custom.DefaultProjectId,\n Description = \"foo namespace\",\n ResourceQuota = new Rancher2.Inputs.NamespaceResourceQuotaArgs\n {\n Limit = new Rancher2.Inputs.NamespaceResourceQuotaLimitArgs\n {\n LimitsCpu = \"100m\",\n LimitsMemory = \"100Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n ContainerResourceLimit = new Rancher2.Inputs.NamespaceContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-custom\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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\t_, err = rancher2.NewNamespace(ctx, \"foo\", \u0026rancher2.NamespaceArgs{\n\t\t\tProjectId: foo_custom.DefaultProjectId,\n\t\t\tDescription: pulumi.String(\"foo namespace\"),\n\t\t\tResourceQuota: \u0026rancher2.NamespaceResourceQuotaArgs{\n\t\t\t\tLimit: \u0026rancher2.NamespaceResourceQuotaLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"100m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"100Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tContainerResourceLimit: \u0026rancher2.NamespaceContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.Namespace;\nimport com.pulumi.rancher2.NamespaceArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaLimitArgs;\nimport com.pulumi.rancher2.inputs.NamespaceContainerResourceLimitArgs;\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 foo_custom = new Cluster(\"foo-custom\", ClusterArgs.builder() \n .description(\"Foo rancher2 custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n var foo = new Namespace(\"foo\", NamespaceArgs.builder() \n .projectId(foo_custom.defaultProjectId())\n .description(\"foo namespace\")\n .resourceQuota(NamespaceResourceQuotaArgs.builder()\n .limit(NamespaceResourceQuotaLimitArgs.builder()\n .limitsCpu(\"100m\")\n .limitsMemory(\"100Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .containerResourceLimit(NamespaceContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cluster\n foo-custom:\n type: rancher2:Cluster\n properties:\n description: Foo rancher2 custom cluster\n rkeConfig:\n network:\n plugin: canal\n # Create a new rancher2 Namespace assigned to default cluster project\n foo:\n type: rancher2:Namespace\n properties:\n projectId: ${[\"foo-custom\"].defaultProjectId}\n description: foo namespace\n resourceQuota:\n limit:\n limitsCpu: 100m\n limitsMemory: 100Mi\n requestsStorage: 1Gi\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNamespaces can be imported using the namespace ID in the format `\u003cproject_id\u003e.\u003cnamespace_id\u003e`\n\n ```sh\n $ pulumi import rancher2:index/namespace:Namespace foo \u0026lt;project_id\u0026gt;.\u0026lt;namespaces_id\u0026gt;\n```\n\n `\u003cproject_id\u003e` is in the format `\u003ccluster_id\u003e:\u003cid\u003e`, but \u003cid\u003e part is optional:\n\n - If full project_id is provided, `\u003cproject_id\u003e=\u003ccluster_id\u003e:\u003cid\u003e`, the namespace'll be assigned to corresponding cluster project once it's imported.\n\n - If `\u003cid\u003e` part is omitted `\u003cproject_id\u003e=\u003ccluster_id\u003e`, the namespace'll not be assigned to any project. To move it into a project, `\u003cproject_id\u003e=\u003ccluster_id\u003e:\u003cid\u003e` needs to be updated in tf file. Namespace movement is only supported inside same `cluster_id`.\n\n ", + "description": "Provides a Rancher v2 Namespace resource. This can be used to create namespaces for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Namespace\nconst foo = new rancher2.Namespace(\"foo\", {\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n description: \"foo namespace\",\n projectId: \"\u003cPROJECT_ID\u003e\",\n resourceQuota: {\n limit: {\n limitsCpu: \"100m\",\n limitsMemory: \"100Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Namespace\nfoo = rancher2.Namespace(\"foo\",\n container_resource_limit=rancher2.NamespaceContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ),\n description=\"foo namespace\",\n project_id=\"\u003cPROJECT_ID\u003e\",\n resource_quota=rancher2.NamespaceResourceQuotaArgs(\n limit=rancher2.NamespaceResourceQuotaLimitArgs(\n limits_cpu=\"100m\",\n limits_memory=\"100Mi\",\n requests_storage=\"1Gi\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Namespace\n var foo = new Rancher2.Namespace(\"foo\", new()\n {\n ContainerResourceLimit = new Rancher2.Inputs.NamespaceContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n Description = \"foo namespace\",\n ProjectId = \"\u003cPROJECT_ID\u003e\",\n ResourceQuota = new Rancher2.Inputs.NamespaceResourceQuotaArgs\n {\n Limit = new Rancher2.Inputs.NamespaceResourceQuotaLimitArgs\n {\n LimitsCpu = \"100m\",\n LimitsMemory = \"100Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewNamespace(ctx, \"foo\", \u0026rancher2.NamespaceArgs{\n\t\t\tContainerResourceLimit: \u0026rancher2.NamespaceContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"foo namespace\"),\n\t\t\tProjectId: pulumi.String(\"\u003cPROJECT_ID\u003e\"),\n\t\t\tResourceQuota: \u0026rancher2.NamespaceResourceQuotaArgs{\n\t\t\t\tLimit: \u0026rancher2.NamespaceResourceQuotaLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"100m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"100Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\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.rancher2.Namespace;\nimport com.pulumi.rancher2.NamespaceArgs;\nimport com.pulumi.rancher2.inputs.NamespaceContainerResourceLimitArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaLimitArgs;\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 foo = new Namespace(\"foo\", NamespaceArgs.builder() \n .containerResourceLimit(NamespaceContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .description(\"foo namespace\")\n .projectId(\"\u003cPROJECT_ID\u003e\")\n .resourceQuota(NamespaceResourceQuotaArgs.builder()\n .limit(NamespaceResourceQuotaLimitArgs.builder()\n .limitsCpu(\"100m\")\n .limitsMemory(\"100Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Namespace\n foo:\n type: rancher2:Namespace\n properties:\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n description: foo namespace\n projectId: \u003cPROJECT_ID\u003e\n resourceQuota:\n limit:\n limitsCpu: 100m\n limitsMemory: 100Mi\n requestsStorage: 1Gi\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Cluster \nconst foo_custom = new rancher2.Cluster(\"foo-custom\", {\n description: \"Foo rancher2 custom cluster\",\n rkeConfig: {\n network: {\n plugin: \"canal\",\n },\n },\n});\n// Create a new rancher2 Namespace assigned to default cluster project\nconst foo = new rancher2.Namespace(\"foo\", {\n projectId: foo_custom.defaultProjectId,\n description: \"foo namespace\",\n resourceQuota: {\n limit: {\n limitsCpu: \"100m\",\n limitsMemory: \"100Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Cluster \nfoo_custom = rancher2.Cluster(\"foo-custom\",\n description=\"Foo rancher2 custom cluster\",\n rke_config=rancher2.ClusterRkeConfigArgs(\n network=rancher2.ClusterRkeConfigNetworkArgs(\n plugin=\"canal\",\n ),\n ))\n# Create a new rancher2 Namespace assigned to default cluster project\nfoo = rancher2.Namespace(\"foo\",\n project_id=foo_custom.default_project_id,\n description=\"foo namespace\",\n resource_quota=rancher2.NamespaceResourceQuotaArgs(\n limit=rancher2.NamespaceResourceQuotaLimitArgs(\n limits_cpu=\"100m\",\n limits_memory=\"100Mi\",\n requests_storage=\"1Gi\",\n ),\n ),\n container_resource_limit=rancher2.NamespaceContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Cluster \n var foo_custom = new Rancher2.Cluster(\"foo-custom\", new()\n {\n Description = \"Foo rancher2 custom cluster\",\n RkeConfig = new Rancher2.Inputs.ClusterRkeConfigArgs\n {\n Network = new Rancher2.Inputs.ClusterRkeConfigNetworkArgs\n {\n Plugin = \"canal\",\n },\n },\n });\n\n // Create a new rancher2 Namespace assigned to default cluster project\n var foo = new Rancher2.Namespace(\"foo\", new()\n {\n ProjectId = foo_custom.DefaultProjectId,\n Description = \"foo namespace\",\n ResourceQuota = new Rancher2.Inputs.NamespaceResourceQuotaArgs\n {\n Limit = new Rancher2.Inputs.NamespaceResourceQuotaLimitArgs\n {\n LimitsCpu = \"100m\",\n LimitsMemory = \"100Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n ContainerResourceLimit = new Rancher2.Inputs.NamespaceContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewCluster(ctx, \"foo-custom\", \u0026rancher2.ClusterArgs{\n\t\t\tDescription: pulumi.String(\"Foo rancher2 custom cluster\"),\n\t\t\tRkeConfig: \u0026rancher2.ClusterRkeConfigArgs{\n\t\t\t\tNetwork: \u0026rancher2.ClusterRkeConfigNetworkArgs{\n\t\t\t\t\tPlugin: pulumi.String(\"canal\"),\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\t_, err = rancher2.NewNamespace(ctx, \"foo\", \u0026rancher2.NamespaceArgs{\n\t\t\tProjectId: foo_custom.DefaultProjectId,\n\t\t\tDescription: pulumi.String(\"foo namespace\"),\n\t\t\tResourceQuota: \u0026rancher2.NamespaceResourceQuotaArgs{\n\t\t\t\tLimit: \u0026rancher2.NamespaceResourceQuotaLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"100m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"100Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tContainerResourceLimit: \u0026rancher2.NamespaceContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\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.rancher2.Cluster;\nimport com.pulumi.rancher2.ClusterArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigArgs;\nimport com.pulumi.rancher2.inputs.ClusterRkeConfigNetworkArgs;\nimport com.pulumi.rancher2.Namespace;\nimport com.pulumi.rancher2.NamespaceArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.NamespaceResourceQuotaLimitArgs;\nimport com.pulumi.rancher2.inputs.NamespaceContainerResourceLimitArgs;\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 foo_custom = new Cluster(\"foo-custom\", ClusterArgs.builder() \n .description(\"Foo rancher2 custom cluster\")\n .rkeConfig(ClusterRkeConfigArgs.builder()\n .network(ClusterRkeConfigNetworkArgs.builder()\n .plugin(\"canal\")\n .build())\n .build())\n .build());\n\n var foo = new Namespace(\"foo\", NamespaceArgs.builder() \n .projectId(foo_custom.defaultProjectId())\n .description(\"foo namespace\")\n .resourceQuota(NamespaceResourceQuotaArgs.builder()\n .limit(NamespaceResourceQuotaLimitArgs.builder()\n .limitsCpu(\"100m\")\n .limitsMemory(\"100Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .containerResourceLimit(NamespaceContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Cluster\n foo-custom:\n type: rancher2:Cluster\n properties:\n description: Foo rancher2 custom cluster\n rkeConfig:\n network:\n plugin: canal\n # Create a new rancher2 Namespace assigned to default cluster project\n foo:\n type: rancher2:Namespace\n properties:\n projectId: ${[\"foo-custom\"].defaultProjectId}\n description: foo namespace\n resourceQuota:\n limit:\n limitsCpu: 100m\n limitsMemory: 100Mi\n requestsStorage: 1Gi\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNamespaces can be imported using the namespace ID in the format `\u003cproject_id\u003e.\u003cnamespace_id\u003e`\n\n ```sh\n $ pulumi import rancher2:index/namespace:Namespace foo \u0026lt;project_id\u0026gt;.\u0026lt;namespaces_id\u0026gt;\n```\n\n `\u003cproject_id\u003e` is in the format `\u003ccluster_id\u003e:\u003cid\u003e`, but \u003cid\u003e part is optional:\n\n - If full project_id is provided, `\u003cproject_id\u003e=\u003ccluster_id\u003e:\u003cid\u003e`, the namespace'll be assigned to corresponding cluster project once it's imported.\n\n - If `\u003cid\u003e` part is omitted `\u003cproject_id\u003e=\u003ccluster_id\u003e`, the namespace'll not be assigned to any project. To move it into a project, `\u003cproject_id\u003e=\u003ccluster_id\u003e:\u003cid\u003e` needs to be updated in tf file. Namespace movement is only supported inside same `cluster_id`.\n\n ", "properties": { "annotations": { "type": "object", @@ -29922,7 +29260,7 @@ } }, "rancher2:index/nodeDriver:NodeDriver": { - "description": "Provides a Rancher v2 Node Driver resource. This can be used to create Node Driver for Rancher v2 RKE clusters and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Driver\nconst foo = new rancher2.NodeDriver(\"foo\", {\n active: true,\n builtin: false,\n checksum: \"0x0\",\n description: \"Foo description\",\n externalId: \"foo_external\",\n uiUrl: \"local://ui\",\n url: \"local://\",\n whitelistDomains: [\"*.foo.com\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Driver\nfoo = rancher2.NodeDriver(\"foo\",\n active=True,\n builtin=False,\n checksum=\"0x0\",\n description=\"Foo description\",\n external_id=\"foo_external\",\n ui_url=\"local://ui\",\n url=\"local://\",\n whitelist_domains=[\"*.foo.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Driver\n var foo = new Rancher2.NodeDriver(\"foo\", new()\n {\n Active = true,\n Builtin = false,\n Checksum = \"0x0\",\n Description = \"Foo description\",\n ExternalId = \"foo_external\",\n UiUrl = \"local://ui\",\n Url = \"local://\",\n WhitelistDomains = new[]\n {\n \"*.foo.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewNodeDriver(ctx, \"foo\", \u0026rancher2.NodeDriverArgs{\n\t\t\tActive: pulumi.Bool(true),\n\t\t\tBuiltin: pulumi.Bool(false),\n\t\t\tChecksum: pulumi.String(\"0x0\"),\n\t\t\tDescription: pulumi.String(\"Foo description\"),\n\t\t\tExternalId: pulumi.String(\"foo_external\"),\n\t\t\tUiUrl: pulumi.String(\"local://ui\"),\n\t\t\tUrl: pulumi.String(\"local://\"),\n\t\t\tWhitelistDomains: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"*.foo.com\"),\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.rancher2.NodeDriver;\nimport com.pulumi.rancher2.NodeDriverArgs;\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 foo = new NodeDriver(\"foo\", NodeDriverArgs.builder() \n .active(true)\n .builtin(false)\n .checksum(\"0x0\")\n .description(\"Foo description\")\n .externalId(\"foo_external\")\n .uiUrl(\"local://ui\")\n .url(\"local://\")\n .whitelistDomains(\"*.foo.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Driver\n foo:\n type: rancher2:NodeDriver\n properties:\n active: true\n builtin: false\n checksum: 0x0\n description: Foo description\n externalId: foo_external\n uiUrl: local://ui\n url: local://\n whitelistDomains:\n - '*.foo.com'\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNode Driver can be imported using the Rancher Node Driver ID\n\n```sh\n $ pulumi import rancher2:index/nodeDriver:NodeDriver foo \u0026lt;node_driver_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Node Driver resource. This can be used to create Node Driver for Rancher v2 RKE clusters and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Driver\nconst foo = new rancher2.NodeDriver(\"foo\", {\n active: true,\n builtin: false,\n checksum: \"0x0\",\n description: \"Foo description\",\n externalId: \"foo_external\",\n uiUrl: \"local://ui\",\n url: \"local://\",\n whitelistDomains: [\"*.foo.com\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Driver\nfoo = rancher2.NodeDriver(\"foo\",\n active=True,\n builtin=False,\n checksum=\"0x0\",\n description=\"Foo description\",\n external_id=\"foo_external\",\n ui_url=\"local://ui\",\n url=\"local://\",\n whitelist_domains=[\"*.foo.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Driver\n var foo = new Rancher2.NodeDriver(\"foo\", new()\n {\n Active = true,\n Builtin = false,\n Checksum = \"0x0\",\n Description = \"Foo description\",\n ExternalId = \"foo_external\",\n UiUrl = \"local://ui\",\n Url = \"local://\",\n WhitelistDomains = new[]\n {\n \"*.foo.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewNodeDriver(ctx, \"foo\", \u0026rancher2.NodeDriverArgs{\n\t\t\tActive: pulumi.Bool(true),\n\t\t\tBuiltin: pulumi.Bool(false),\n\t\t\tChecksum: pulumi.String(\"0x0\"),\n\t\t\tDescription: pulumi.String(\"Foo description\"),\n\t\t\tExternalId: pulumi.String(\"foo_external\"),\n\t\t\tUiUrl: pulumi.String(\"local://ui\"),\n\t\t\tUrl: pulumi.String(\"local://\"),\n\t\t\tWhitelistDomains: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"*.foo.com\"),\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.rancher2.NodeDriver;\nimport com.pulumi.rancher2.NodeDriverArgs;\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 foo = new NodeDriver(\"foo\", NodeDriverArgs.builder() \n .active(true)\n .builtin(false)\n .checksum(\"0x0\")\n .description(\"Foo description\")\n .externalId(\"foo_external\")\n .uiUrl(\"local://ui\")\n .url(\"local://\")\n .whitelistDomains(\"*.foo.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Driver\n foo:\n type: rancher2:NodeDriver\n properties:\n active: true\n builtin: false\n checksum: 0x0\n description: Foo description\n externalId: foo_external\n uiUrl: local://ui\n url: local://\n whitelistDomains:\n - '*.foo.com'\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNode Driver can be imported using the Rancher Node Driver ID\n\n```sh\n $ pulumi import rancher2:index/nodeDriver:NodeDriver foo \u0026lt;node_driver_id\u0026gt;\n```\n ", "properties": { "active": { "type": "boolean", @@ -30320,7 +29658,7 @@ } }, "rancher2:index/nodeTemplate:NodeTemplate": { - "description": "Provides a Rancher v2 Node Template resource. This can be used to create Node Template for Rancher v2 and retrieve their information.\n\namazonec2, azure, digitalocean, harvester, linode, opennebula, openstack, outscale, hetzner and vsphere drivers are supported for node templates.\n\n**Note:** If you are upgrading to Rancher v2.3.3, please take a look to final section\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template up to Rancher 2.1.x\nconst foo = new rancher2.NodeTemplate(\"foo\", {\n amazonec2Config: {\n accessKey: \"AWS_ACCESS_KEY\",\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n description: \"foo test\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template up to Rancher 2.1.x\nfoo = rancher2.NodeTemplate(\"foo\",\n amazonec2_config=rancher2.NodeTemplateAmazonec2ConfigArgs(\n access_key=\"AWS_ACCESS_KEY\",\n ami=\"\u003cAMI_ID\u003e\",\n region=\"\u003cREGION\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n security_groups=[\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnet_id=\"\u003cSUBNET_ID\u003e\",\n vpc_id=\"\u003cVPC_ID\u003e\",\n zone=\"\u003cZONE\u003e\",\n ),\n description=\"foo test\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template up to Rancher 2.1.x\n var foo = new Rancher2.NodeTemplate(\"foo\", new()\n {\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n AccessKey = \"AWS_ACCESS_KEY\",\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n Description = \"foo test\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewNodeTemplate(ctx, \"foo\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"AWS_ACCESS_KEY\"),\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"foo test\"),\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.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\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 foo = new NodeTemplate(\"foo\", NodeTemplateArgs.builder() \n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .accessKey(\"AWS_ACCESS_KEY\")\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .description(\"foo test\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template up to Rancher 2.1.x\n foo:\n type: rancher2:NodeTemplate\n properties:\n amazonec2Config:\n accessKey: AWS_ACCESS_KEY\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n description: foo test\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template from Rancher 2.2.x\nconst fooCloudCredential = new rancher2.CloudCredential(\"fooCloudCredential\", {\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooNodeTemplate = new rancher2.NodeTemplate(\"fooNodeTemplate\", {\n description: \"foo test\",\n cloudCredentialId: fooCloudCredential.id,\n amazonec2Config: {\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template from Rancher 2.2.x\nfoo_cloud_credential = rancher2.CloudCredential(\"fooCloudCredential\",\n description=\"foo test\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ))\nfoo_node_template = rancher2.NodeTemplate(\"fooNodeTemplate\",\n description=\"foo test\",\n cloud_credential_id=foo_cloud_credential.id,\n amazonec2_config=rancher2.NodeTemplateAmazonec2ConfigArgs(\n ami=\"\u003cAMI_ID\u003e\",\n region=\"\u003cREGION\u003e\",\n security_groups=[\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnet_id=\"\u003cSUBNET_ID\u003e\",\n vpc_id=\"\u003cVPC_ID\u003e\",\n zone=\"\u003cZONE\u003e\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template from Rancher 2.2.x\n var fooCloudCredential = new Rancher2.CloudCredential(\"fooCloudCredential\", new()\n {\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooNodeTemplate = new Rancher2.NodeTemplate(\"fooNodeTemplate\", new()\n {\n Description = \"foo test\",\n CloudCredentialId = fooCloudCredential.Id,\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooCloudCredential, err := rancher2.NewCloudCredential(ctx, \"fooCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"fooNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tCloudCredentialId: fooCloudCredential.ID(),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\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 fooCloudCredential = new CloudCredential(\"fooCloudCredential\", CloudCredentialArgs.builder() \n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooNodeTemplate = new NodeTemplate(\"fooNodeTemplate\", NodeTemplateArgs.builder() \n .description(\"foo test\")\n .cloudCredentialId(fooCloudCredential.id())\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template from Rancher 2.2.x\n fooCloudCredential:\n type: rancher2:CloudCredential\n properties:\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n description: foo test\n cloudCredentialId: ${fooCloudCredential.id}\n amazonec2Config:\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n```\n{{% /example %}}\n{{% example %}}\n### Using the Harvester Node Driver\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-harvesterClusterV2 = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvesterCloudCredential\", {harvesterCredentialConfig: {\n clusterId: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.kubeConfig),\n}});\n// Create a new rancher2 Node Template using harvester node_driver\nconst foo_harvesterNodeTemplate = new rancher2.NodeTemplate(\"foo-harvesterNodeTemplate\", {\n cloudCredentialId: foo_harvesterCloudCredential.id,\n engineInstallUrl: \"https://releases.rancher.com/install-docker/20.10.sh\",\n harvesterConfig: {\n vmNamespace: \"default\",\n cpuCount: \"2\",\n memorySize: \"4\",\n diskInfo: ` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_harvester_cluster_v2 = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvesterCloudCredential\", harvester_credential_config=rancher2.CloudCredentialHarvesterCredentialConfigArgs(\n cluster_id=foo_harvester_cluster_v2.cluster_v1_id,\n cluster_type=\"imported\",\n kubeconfig_content=foo_harvester_cluster_v2.kube_config,\n))\n# Create a new rancher2 Node Template using harvester node_driver\nfoo_harvester_node_template = rancher2.NodeTemplate(\"foo-harvesterNodeTemplate\",\n cloud_credential_id=foo_harvester_cloud_credential.id,\n engine_install_url=\"https://releases.rancher.com/install-docker/20.10.sh\",\n harvester_config=rancher2.NodeTemplateHarvesterConfigArgs(\n vm_namespace=\"default\",\n cpu_count=\"2\",\n memory_size=\"4\",\n disk_info=\"\"\" {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\"\"\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_harvesterClusterV2 = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvesterCloudCredential\", new()\n {\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n // Create a new rancher2 Node Template using harvester node_driver\n var foo_harvesterNodeTemplate = new Rancher2.NodeTemplate(\"foo-harvesterNodeTemplate\", new()\n {\n CloudCredentialId = foo_harvesterCloudCredential.Id,\n EngineInstallUrl = \"https://releases.rancher.com/install-docker/20.10.sh\",\n HarvesterConfig = new Rancher2.Inputs.NodeTemplateHarvesterConfigArgs\n {\n VmNamespace = \"default\",\n CpuCount = \"2\",\n MemorySize = \"4\",\n DiskInfo = @\" {\n \"\"disks\"\": [{\n \"\"imageName\"\": \"\"harvester-public/image-57hzg\"\",\n \"\"size\"\": 40,\n \"\"bootOrder\"\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"\"interfaces\"\": [{\n \"\"networkName\"\": \"\"harvester-public/vlan1\"\"\n }]\n }\n EOF,\n sshUser = \"\"ubuntu\"\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfoo_harvesterClusterV2, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvesterCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: *pulumi.String(foo_harvesterClusterV2.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: *pulumi.String(foo_harvesterClusterV2.KubeConfig),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"foo-harvesterNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tCloudCredentialId: foo_harvesterCloudCredential.ID(),\n\t\t\tEngineInstallUrl: pulumi.String(\"https://releases.rancher.com/install-docker/20.10.sh\"),\n\t\t\tHarvesterConfig: \u0026rancher2.NodeTemplateHarvesterConfigArgs{\n\t\t\t\tVmNamespace: pulumi.String(\"default\"),\n\t\t\t\tCpuCount: pulumi.String(\"2\"),\n\t\t\t\tMemorySize: pulumi.String(\"4\"),\n\t\t\t\tDiskInfo: pulumi.String(` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateHarvesterConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo-harvesterClusterV2 = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder() \n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvesterClusterV2.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvesterClusterV2.kubeConfig())\n .build())\n .build());\n\n var foo_harvesterNodeTemplate = new NodeTemplate(\"foo-harvesterNodeTemplate\", NodeTemplateArgs.builder() \n .cloudCredentialId(foo_harvesterCloudCredential.id())\n .engineInstallUrl(\"https://releases.rancher.com/install-docker/20.10.sh\")\n .harvesterConfig(NodeTemplateHarvesterConfigArgs.builder()\n .vmNamespace(\"default\")\n .cpuCount(\"2\")\n .memorySize(\"4\")\n .diskInfo(\"\"\"\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n properties:\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvesterClusterV2\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvesterClusterV2\"].kubeConfig}\n # Create a new rancher2 Node Template using harvester node_driver\n foo-harvesterNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n cloudCredentialId: ${[\"foo-harvesterCloudCredential\"].id}\n engineInstallUrl: https://releases.rancher.com/install-docker/20.10.sh\n harvesterConfig:\n vmNamespace: default\n cpuCount: '2'\n memorySize: '4'\n diskInfo: |2\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\nvariables:\n foo-harvesterClusterV2:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n{{% /example %}}\n{{% example %}}\n### Using the Hetzner Node Driver\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template using hetzner node_driver\nconst hetznerNodeDriver = new rancher2.NodeDriver(\"hetznerNodeDriver\", {\n active: true,\n builtin: false,\n uiUrl: \"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n url: \"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n whitelistDomains: [\"storage.googleapis.com\"],\n});\nconst myHetznerNodeTemplate = new rancher2.NodeTemplate(\"myHetznerNodeTemplate\", {\n driverId: hetznerNodeDriver.id,\n hetznerConfig: {\n apiToken: \"XXXXXXXXXX\",\n image: \"ubuntu-18.04\",\n serverLocation: \"nbg1\",\n serverType: \"cx11\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template using hetzner node_driver\nhetzner_node_driver = rancher2.NodeDriver(\"hetznerNodeDriver\",\n active=True,\n builtin=False,\n ui_url=\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n url=\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n whitelist_domains=[\"storage.googleapis.com\"])\nmy_hetzner_node_template = rancher2.NodeTemplate(\"myHetznerNodeTemplate\",\n driver_id=hetzner_node_driver.id,\n hetzner_config=rancher2.NodeTemplateHetznerConfigArgs(\n api_token=\"XXXXXXXXXX\",\n image=\"ubuntu-18.04\",\n server_location=\"nbg1\",\n server_type=\"cx11\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template using hetzner node_driver\n var hetznerNodeDriver = new Rancher2.NodeDriver(\"hetznerNodeDriver\", new()\n {\n Active = true,\n Builtin = false,\n UiUrl = \"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n Url = \"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n WhitelistDomains = new[]\n {\n \"storage.googleapis.com\",\n },\n });\n\n var myHetznerNodeTemplate = new Rancher2.NodeTemplate(\"myHetznerNodeTemplate\", new()\n {\n DriverId = hetznerNodeDriver.Id,\n HetznerConfig = new Rancher2.Inputs.NodeTemplateHetznerConfigArgs\n {\n ApiToken = \"XXXXXXXXXX\",\n Image = \"ubuntu-18.04\",\n ServerLocation = \"nbg1\",\n ServerType = \"cx11\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thetznerNodeDriver, err := rancher2.NewNodeDriver(ctx, \"hetznerNodeDriver\", \u0026rancher2.NodeDriverArgs{\n\t\t\tActive: pulumi.Bool(true),\n\t\t\tBuiltin: pulumi.Bool(false),\n\t\t\tUiUrl: pulumi.String(\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\"),\n\t\t\tUrl: pulumi.String(\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\"),\n\t\t\tWhitelistDomains: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"storage.googleapis.com\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"myHetznerNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tDriverId: hetznerNodeDriver.ID(),\n\t\t\tHetznerConfig: \u0026rancher2.NodeTemplateHetznerConfigArgs{\n\t\t\t\tApiToken: pulumi.String(\"XXXXXXXXXX\"),\n\t\t\t\tImage: pulumi.String(\"ubuntu-18.04\"),\n\t\t\t\tServerLocation: pulumi.String(\"nbg1\"),\n\t\t\t\tServerType: pulumi.String(\"cx11\"),\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.rancher2.NodeDriver;\nimport com.pulumi.rancher2.NodeDriverArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateHetznerConfigArgs;\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 hetznerNodeDriver = new NodeDriver(\"hetznerNodeDriver\", NodeDriverArgs.builder() \n .active(true)\n .builtin(false)\n .uiUrl(\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\")\n .url(\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\")\n .whitelistDomains(\"storage.googleapis.com\")\n .build());\n\n var myHetznerNodeTemplate = new NodeTemplate(\"myHetznerNodeTemplate\", NodeTemplateArgs.builder() \n .driverId(hetznerNodeDriver.id())\n .hetznerConfig(NodeTemplateHetznerConfigArgs.builder()\n .apiToken(\"XXXXXXXXXX\")\n .image(\"ubuntu-18.04\")\n .serverLocation(\"nbg1\")\n .serverType(\"cx11\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template using hetzner node_driver\n hetznerNodeDriver:\n type: rancher2:NodeDriver\n properties:\n active: true\n builtin: false\n uiUrl: https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\n url: https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\n whitelistDomains:\n - storage.googleapis.com\n myHetznerNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n driverId: ${hetznerNodeDriver.id}\n hetznerConfig:\n apiToken: XXXXXXXXXX\n image: ubuntu-18.04\n serverLocation: nbg1\n serverType: cx11\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNode Template can be imported using the Rancher Node Template ID\n\n```sh\n $ pulumi import rancher2:index/nodeTemplate:NodeTemplate foo \u0026lt;node_template_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Node Template resource. This can be used to create Node Template for Rancher v2 and retrieve their information.\n\namazonec2, azure, digitalocean, harvester, linode, opennebula, openstack, outscale, hetzner and vsphere drivers are supported for node templates.\n\n**Note:** If you are upgrading to Rancher v2.3.3, please take a look to final section\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template up to Rancher 2.1.x\nconst foo = new rancher2.NodeTemplate(\"foo\", {\n amazonec2Config: {\n accessKey: \"AWS_ACCESS_KEY\",\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n description: \"foo test\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template up to Rancher 2.1.x\nfoo = rancher2.NodeTemplate(\"foo\",\n amazonec2_config=rancher2.NodeTemplateAmazonec2ConfigArgs(\n access_key=\"AWS_ACCESS_KEY\",\n ami=\"\u003cAMI_ID\u003e\",\n region=\"\u003cREGION\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n security_groups=[\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnet_id=\"\u003cSUBNET_ID\u003e\",\n vpc_id=\"\u003cVPC_ID\u003e\",\n zone=\"\u003cZONE\u003e\",\n ),\n description=\"foo test\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template up to Rancher 2.1.x\n var foo = new Rancher2.NodeTemplate(\"foo\", new()\n {\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n AccessKey = \"AWS_ACCESS_KEY\",\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n Description = \"foo test\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewNodeTemplate(ctx, \"foo\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"AWS_ACCESS_KEY\"),\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\n\t\t\t},\n\t\t\tDescription: pulumi.String(\"foo test\"),\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.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\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 foo = new NodeTemplate(\"foo\", NodeTemplateArgs.builder() \n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .accessKey(\"AWS_ACCESS_KEY\")\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .description(\"foo test\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template up to Rancher 2.1.x\n foo:\n type: rancher2:NodeTemplate\n properties:\n amazonec2Config:\n accessKey: AWS_ACCESS_KEY\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n description: foo test\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template from Rancher 2.2.x\nconst fooCloudCredential = new rancher2.CloudCredential(\"fooCloudCredential\", {\n description: \"foo test\",\n amazonec2CredentialConfig: {\n accessKey: \"\u003cAWS_ACCESS_KEY\u003e\",\n secretKey: \"\u003cAWS_SECRET_KEY\u003e\",\n },\n});\nconst fooNodeTemplate = new rancher2.NodeTemplate(\"fooNodeTemplate\", {\n description: \"foo test\",\n cloudCredentialId: fooCloudCredential.id,\n amazonec2Config: {\n ami: \"\u003cAMI_ID\u003e\",\n region: \"\u003cREGION\u003e\",\n securityGroups: [\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnetId: \"\u003cSUBNET_ID\u003e\",\n vpcId: \"\u003cVPC_ID\u003e\",\n zone: \"\u003cZONE\u003e\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template from Rancher 2.2.x\nfoo_cloud_credential = rancher2.CloudCredential(\"fooCloudCredential\",\n description=\"foo test\",\n amazonec2_credential_config=rancher2.CloudCredentialAmazonec2CredentialConfigArgs(\n access_key=\"\u003cAWS_ACCESS_KEY\u003e\",\n secret_key=\"\u003cAWS_SECRET_KEY\u003e\",\n ))\nfoo_node_template = rancher2.NodeTemplate(\"fooNodeTemplate\",\n description=\"foo test\",\n cloud_credential_id=foo_cloud_credential.id,\n amazonec2_config=rancher2.NodeTemplateAmazonec2ConfigArgs(\n ami=\"\u003cAMI_ID\u003e\",\n region=\"\u003cREGION\u003e\",\n security_groups=[\"\u003cAWS_SECURITY_GROUP\u003e\"],\n subnet_id=\"\u003cSUBNET_ID\u003e\",\n vpc_id=\"\u003cVPC_ID\u003e\",\n zone=\"\u003cZONE\u003e\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template from Rancher 2.2.x\n var fooCloudCredential = new Rancher2.CloudCredential(\"fooCloudCredential\", new()\n {\n Description = \"foo test\",\n Amazonec2CredentialConfig = new Rancher2.Inputs.CloudCredentialAmazonec2CredentialConfigArgs\n {\n AccessKey = \"\u003cAWS_ACCESS_KEY\u003e\",\n SecretKey = \"\u003cAWS_SECRET_KEY\u003e\",\n },\n });\n\n var fooNodeTemplate = new Rancher2.NodeTemplate(\"fooNodeTemplate\", new()\n {\n Description = \"foo test\",\n CloudCredentialId = fooCloudCredential.Id,\n Amazonec2Config = new Rancher2.Inputs.NodeTemplateAmazonec2ConfigArgs\n {\n Ami = \"\u003cAMI_ID\u003e\",\n Region = \"\u003cREGION\u003e\",\n SecurityGroups = new[]\n {\n \"\u003cAWS_SECURITY_GROUP\u003e\",\n },\n SubnetId = \"\u003cSUBNET_ID\u003e\",\n VpcId = \"\u003cVPC_ID\u003e\",\n Zone = \"\u003cZONE\u003e\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooCloudCredential, err := rancher2.NewCloudCredential(ctx, \"fooCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tAmazonec2CredentialConfig: \u0026rancher2.CloudCredentialAmazonec2CredentialConfigArgs{\n\t\t\t\tAccessKey: pulumi.String(\"\u003cAWS_ACCESS_KEY\u003e\"),\n\t\t\t\tSecretKey: pulumi.String(\"\u003cAWS_SECRET_KEY\u003e\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"fooNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tDescription: pulumi.String(\"foo test\"),\n\t\t\tCloudCredentialId: fooCloudCredential.ID(),\n\t\t\tAmazonec2Config: \u0026rancher2.NodeTemplateAmazonec2ConfigArgs{\n\t\t\t\tAmi: pulumi.String(\"\u003cAMI_ID\u003e\"),\n\t\t\t\tRegion: pulumi.String(\"\u003cREGION\u003e\"),\n\t\t\t\tSecurityGroups: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"\u003cAWS_SECURITY_GROUP\u003e\"),\n\t\t\t\t},\n\t\t\t\tSubnetId: pulumi.String(\"\u003cSUBNET_ID\u003e\"),\n\t\t\t\tVpcId: pulumi.String(\"\u003cVPC_ID\u003e\"),\n\t\t\t\tZone: pulumi.String(\"\u003cZONE\u003e\"),\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.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialAmazonec2CredentialConfigArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateAmazonec2ConfigArgs;\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 fooCloudCredential = new CloudCredential(\"fooCloudCredential\", CloudCredentialArgs.builder() \n .description(\"foo test\")\n .amazonec2CredentialConfig(CloudCredentialAmazonec2CredentialConfigArgs.builder()\n .accessKey(\"\u003cAWS_ACCESS_KEY\u003e\")\n .secretKey(\"\u003cAWS_SECRET_KEY\u003e\")\n .build())\n .build());\n\n var fooNodeTemplate = new NodeTemplate(\"fooNodeTemplate\", NodeTemplateArgs.builder() \n .description(\"foo test\")\n .cloudCredentialId(fooCloudCredential.id())\n .amazonec2Config(NodeTemplateAmazonec2ConfigArgs.builder()\n .ami(\"\u003cAMI_ID\u003e\")\n .region(\"\u003cREGION\u003e\")\n .securityGroups(\"\u003cAWS_SECURITY_GROUP\u003e\")\n .subnetId(\"\u003cSUBNET_ID\u003e\")\n .vpcId(\"\u003cVPC_ID\u003e\")\n .zone(\"\u003cZONE\u003e\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template from Rancher 2.2.x\n fooCloudCredential:\n type: rancher2:CloudCredential\n properties:\n description: foo test\n amazonec2CredentialConfig:\n accessKey: \u003cAWS_ACCESS_KEY\u003e\n secretKey: \u003cAWS_SECRET_KEY\u003e\n fooNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n description: foo test\n cloudCredentialId: ${fooCloudCredential.id}\n amazonec2Config:\n ami: \u003cAMI_ID\u003e\n region: \u003cREGION\u003e\n securityGroups:\n - \u003cAWS_SECURITY_GROUP\u003e\n subnetId: \u003cSUBNET_ID\u003e\n vpcId: \u003cVPC_ID\u003e\n zone: \u003cZONE\u003e\n```\n{{% /example %}}\n{{% example %}}\n### Using the Harvester Node Driver\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-harvesterClusterV2 = rancher2.getClusterV2({\n name: \"foo-harvester\",\n});\n// Create a new Cloud Credential for an imported Harvester cluster\nconst foo_harvesterCloudCredential = new rancher2.CloudCredential(\"foo-harvesterCloudCredential\", {harvesterCredentialConfig: {\n clusterId: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.clusterV1Id),\n clusterType: \"imported\",\n kubeconfigContent: foo_harvesterClusterV2.then(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.kubeConfig),\n}});\n// Create a new rancher2 Node Template using harvester node_driver\nconst foo_harvesterNodeTemplate = new rancher2.NodeTemplate(\"foo-harvesterNodeTemplate\", {\n cloudCredentialId: foo_harvesterCloudCredential.id,\n engineInstallUrl: \"https://releases.rancher.com/install-docker/20.10.sh\",\n harvesterConfig: {\n vmNamespace: \"default\",\n cpuCount: \"2\",\n memorySize: \"4\",\n diskInfo: ` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_harvester_cluster_v2 = rancher2.get_cluster_v2(name=\"foo-harvester\")\n# Create a new Cloud Credential for an imported Harvester cluster\nfoo_harvester_cloud_credential = rancher2.CloudCredential(\"foo-harvesterCloudCredential\", harvester_credential_config=rancher2.CloudCredentialHarvesterCredentialConfigArgs(\n cluster_id=foo_harvester_cluster_v2.cluster_v1_id,\n cluster_type=\"imported\",\n kubeconfig_content=foo_harvester_cluster_v2.kube_config,\n))\n# Create a new rancher2 Node Template using harvester node_driver\nfoo_harvester_node_template = rancher2.NodeTemplate(\"foo-harvesterNodeTemplate\",\n cloud_credential_id=foo_harvester_cloud_credential.id,\n engine_install_url=\"https://releases.rancher.com/install-docker/20.10.sh\",\n harvester_config=rancher2.NodeTemplateHarvesterConfigArgs(\n vm_namespace=\"default\",\n cpu_count=\"2\",\n memory_size=\"4\",\n disk_info=\"\"\" {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\"\"\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_harvesterClusterV2 = Rancher2.GetClusterV2.Invoke(new()\n {\n Name = \"foo-harvester\",\n });\n\n // Create a new Cloud Credential for an imported Harvester cluster\n var foo_harvesterCloudCredential = new Rancher2.CloudCredential(\"foo-harvesterCloudCredential\", new()\n {\n HarvesterCredentialConfig = new Rancher2.Inputs.CloudCredentialHarvesterCredentialConfigArgs\n {\n ClusterId = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.ClusterV1Id)),\n ClusterType = \"imported\",\n KubeconfigContent = foo_harvesterClusterV2.Apply(foo_harvesterClusterV2 =\u003e foo_harvesterClusterV2.Apply(getClusterV2Result =\u003e getClusterV2Result.KubeConfig)),\n },\n });\n\n // Create a new rancher2 Node Template using harvester node_driver\n var foo_harvesterNodeTemplate = new Rancher2.NodeTemplate(\"foo-harvesterNodeTemplate\", new()\n {\n CloudCredentialId = foo_harvesterCloudCredential.Id,\n EngineInstallUrl = \"https://releases.rancher.com/install-docker/20.10.sh\",\n HarvesterConfig = new Rancher2.Inputs.NodeTemplateHarvesterConfigArgs\n {\n VmNamespace = \"default\",\n CpuCount = \"2\",\n MemorySize = \"4\",\n DiskInfo = @\" {\n \"\"disks\"\": [{\n \"\"imageName\"\": \"\"harvester-public/image-57hzg\"\",\n \"\"size\"\": 40,\n \"\"bootOrder\"\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"\"interfaces\"\": [{\n \"\"networkName\"\": \"\"harvester-public/vlan1\"\"\n }]\n }\n EOF,\n sshUser = \"\"ubuntu\"\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfoo_harvesterClusterV2, err := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tName: \"foo-harvester\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewCloudCredential(ctx, \"foo-harvesterCloudCredential\", \u0026rancher2.CloudCredentialArgs{\n\t\t\tHarvesterCredentialConfig: \u0026rancher2.CloudCredentialHarvesterCredentialConfigArgs{\n\t\t\t\tClusterId: *pulumi.String(foo_harvesterClusterV2.ClusterV1Id),\n\t\t\t\tClusterType: pulumi.String(\"imported\"),\n\t\t\t\tKubeconfigContent: *pulumi.String(foo_harvesterClusterV2.KubeConfig),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"foo-harvesterNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tCloudCredentialId: foo_harvesterCloudCredential.ID(),\n\t\t\tEngineInstallUrl: pulumi.String(\"https://releases.rancher.com/install-docker/20.10.sh\"),\n\t\t\tHarvesterConfig: \u0026rancher2.NodeTemplateHarvesterConfigArgs{\n\t\t\t\tVmNamespace: pulumi.String(\"default\"),\n\t\t\t\tCpuCount: pulumi.String(\"2\"),\n\t\t\t\tMemorySize: pulumi.String(\"4\"),\n\t\t\t\tDiskInfo: pulumi.String(` {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n`),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport com.pulumi.rancher2.CloudCredential;\nimport com.pulumi.rancher2.CloudCredentialArgs;\nimport com.pulumi.rancher2.inputs.CloudCredentialHarvesterCredentialConfigArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateHarvesterConfigArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo-harvesterClusterV2 = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .name(\"foo-harvester\")\n .build());\n\n var foo_harvesterCloudCredential = new CloudCredential(\"foo-harvesterCloudCredential\", CloudCredentialArgs.builder() \n .harvesterCredentialConfig(CloudCredentialHarvesterCredentialConfigArgs.builder()\n .clusterId(foo_harvesterClusterV2.clusterV1Id())\n .clusterType(\"imported\")\n .kubeconfigContent(foo_harvesterClusterV2.kubeConfig())\n .build())\n .build());\n\n var foo_harvesterNodeTemplate = new NodeTemplate(\"foo-harvesterNodeTemplate\", NodeTemplateArgs.builder() \n .cloudCredentialId(foo_harvesterCloudCredential.id())\n .engineInstallUrl(\"https://releases.rancher.com/install-docker/20.10.sh\")\n .harvesterConfig(NodeTemplateHarvesterConfigArgs.builder()\n .vmNamespace(\"default\")\n .cpuCount(\"2\")\n .memorySize(\"4\")\n .diskInfo(\"\"\"\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Cloud Credential for an imported Harvester cluster\n foo-harvesterCloudCredential:\n type: rancher2:CloudCredential\n properties:\n harvesterCredentialConfig:\n clusterId: ${[\"foo-harvesterClusterV2\"].clusterV1Id}\n clusterType: imported\n kubeconfigContent: ${[\"foo-harvesterClusterV2\"].kubeConfig}\n # Create a new rancher2 Node Template using harvester node_driver\n foo-harvesterNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n cloudCredentialId: ${[\"foo-harvesterCloudCredential\"].id}\n engineInstallUrl: https://releases.rancher.com/install-docker/20.10.sh\n harvesterConfig:\n vmNamespace: default\n cpuCount: '2'\n memorySize: '4'\n diskInfo: |2\n {\n \"disks\": [{\n \"imageName\": \"harvester-public/image-57hzg\",\n \"size\": 40,\n \"bootOrder\": 1\n }]\n }\n EOF,\n networkInfo = \u003c\u003cEOF\n {\n \"interfaces\": [{\n \"networkName\": \"harvester-public/vlan1\"\n }]\n }\n EOF,\n sshUser = \"ubuntu\",\n userData = \u003c\u003cEOF\n package_update: true\n packages:\n - qemu-guest-agent\n - iptables\n runcmd:\n - - systemctl\n - enable\n - '--now'\n - qemu-guest-agent.service\nvariables:\n foo-harvesterClusterV2:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n name: foo-harvester\n```\n{{% /example %}}\n{{% example %}}\n### Using the Hetzner Node Driver\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Node Template using hetzner node_driver\nconst hetznerNodeDriver = new rancher2.NodeDriver(\"hetznerNodeDriver\", {\n active: true,\n builtin: false,\n uiUrl: \"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n url: \"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n whitelistDomains: [\"storage.googleapis.com\"],\n});\nconst myHetznerNodeTemplate = new rancher2.NodeTemplate(\"myHetznerNodeTemplate\", {\n driverId: hetznerNodeDriver.id,\n hetznerConfig: {\n apiToken: \"XXXXXXXXXX\",\n image: \"ubuntu-18.04\",\n serverLocation: \"nbg1\",\n serverType: \"cx11\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Node Template using hetzner node_driver\nhetzner_node_driver = rancher2.NodeDriver(\"hetznerNodeDriver\",\n active=True,\n builtin=False,\n ui_url=\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n url=\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n whitelist_domains=[\"storage.googleapis.com\"])\nmy_hetzner_node_template = rancher2.NodeTemplate(\"myHetznerNodeTemplate\",\n driver_id=hetzner_node_driver.id,\n hetzner_config=rancher2.NodeTemplateHetznerConfigArgs(\n api_token=\"XXXXXXXXXX\",\n image=\"ubuntu-18.04\",\n server_location=\"nbg1\",\n server_type=\"cx11\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Node Template using hetzner node_driver\n var hetznerNodeDriver = new Rancher2.NodeDriver(\"hetznerNodeDriver\", new()\n {\n Active = true,\n Builtin = false,\n UiUrl = \"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\",\n Url = \"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\",\n WhitelistDomains = new[]\n {\n \"storage.googleapis.com\",\n },\n });\n\n var myHetznerNodeTemplate = new Rancher2.NodeTemplate(\"myHetznerNodeTemplate\", new()\n {\n DriverId = hetznerNodeDriver.Id,\n HetznerConfig = new Rancher2.Inputs.NodeTemplateHetznerConfigArgs\n {\n ApiToken = \"XXXXXXXXXX\",\n Image = \"ubuntu-18.04\",\n ServerLocation = \"nbg1\",\n ServerType = \"cx11\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thetznerNodeDriver, err := rancher2.NewNodeDriver(ctx, \"hetznerNodeDriver\", \u0026rancher2.NodeDriverArgs{\n\t\t\tActive: pulumi.Bool(true),\n\t\t\tBuiltin: pulumi.Bool(false),\n\t\t\tUiUrl: pulumi.String(\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\"),\n\t\t\tUrl: pulumi.String(\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\"),\n\t\t\tWhitelistDomains: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"storage.googleapis.com\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewNodeTemplate(ctx, \"myHetznerNodeTemplate\", \u0026rancher2.NodeTemplateArgs{\n\t\t\tDriverId: hetznerNodeDriver.ID(),\n\t\t\tHetznerConfig: \u0026rancher2.NodeTemplateHetznerConfigArgs{\n\t\t\t\tApiToken: pulumi.String(\"XXXXXXXXXX\"),\n\t\t\t\tImage: pulumi.String(\"ubuntu-18.04\"),\n\t\t\t\tServerLocation: pulumi.String(\"nbg1\"),\n\t\t\t\tServerType: pulumi.String(\"cx11\"),\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.rancher2.NodeDriver;\nimport com.pulumi.rancher2.NodeDriverArgs;\nimport com.pulumi.rancher2.NodeTemplate;\nimport com.pulumi.rancher2.NodeTemplateArgs;\nimport com.pulumi.rancher2.inputs.NodeTemplateHetznerConfigArgs;\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 hetznerNodeDriver = new NodeDriver(\"hetznerNodeDriver\", NodeDriverArgs.builder() \n .active(true)\n .builtin(false)\n .uiUrl(\"https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\")\n .url(\"https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\")\n .whitelistDomains(\"storage.googleapis.com\")\n .build());\n\n var myHetznerNodeTemplate = new NodeTemplate(\"myHetznerNodeTemplate\", NodeTemplateArgs.builder() \n .driverId(hetznerNodeDriver.id())\n .hetznerConfig(NodeTemplateHetznerConfigArgs.builder()\n .apiToken(\"XXXXXXXXXX\")\n .image(\"ubuntu-18.04\")\n .serverLocation(\"nbg1\")\n .serverType(\"cx11\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Node Template using hetzner node_driver\n hetznerNodeDriver:\n type: rancher2:NodeDriver\n properties:\n active: true\n builtin: false\n uiUrl: https://storage.googleapis.com/hcloud-rancher-v2-ui-driver/component.js\n url: https://github.com/JonasProgrammer/docker-machine-driver-hetzner/releases/download/3.6.0/docker-machine-driver-hetzner_3.6.0_linux_amd64.tar.gz\n whitelistDomains:\n - storage.googleapis.com\n myHetznerNodeTemplate:\n type: rancher2:NodeTemplate\n properties:\n driverId: ${hetznerNodeDriver.id}\n hetznerConfig:\n apiToken: XXXXXXXXXX\n image: ubuntu-18.04\n serverLocation: nbg1\n serverType: cx11\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNode Template can be imported using the Rancher Node Template ID\n\n```sh\n $ pulumi import rancher2:index/nodeTemplate:NodeTemplate foo \u0026lt;node_template_id\u0026gt;\n```\n ", "properties": { "amazonec2Config": { "$ref": "#/types/rancher2:index/NodeTemplateAmazonec2Config:NodeTemplateAmazonec2Config", @@ -30751,7 +30089,7 @@ } }, "rancher2:index/notifier:Notifier": { - "description": "Provides a Rancher v2 Notifier resource. This can be used to create notifiers for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Notifier\nconst foo = new rancher2.Notifier(\"foo\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform notifier acceptance test\",\n pagerdutyConfig: {\n proxyUrl: \"http://proxy.test.io\",\n serviceKey: \"XXXXXXXX\",\n },\n sendResolved: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Notifier\nfoo = rancher2.Notifier(\"foo\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform notifier acceptance test\",\n pagerduty_config=rancher2.NotifierPagerdutyConfigArgs(\n proxy_url=\"http://proxy.test.io\",\n service_key=\"XXXXXXXX\",\n ),\n send_resolved=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Notifier\n var foo = new Rancher2.Notifier(\"foo\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform notifier acceptance test\",\n PagerdutyConfig = new Rancher2.Inputs.NotifierPagerdutyConfigArgs\n {\n ProxyUrl = \"http://proxy.test.io\",\n ServiceKey = \"XXXXXXXX\",\n },\n SendResolved = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewNotifier(ctx, \"foo\", \u0026rancher2.NotifierArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform notifier acceptance test\"),\n\t\t\tPagerdutyConfig: \u0026rancher2.NotifierPagerdutyConfigArgs{\n\t\t\t\tProxyUrl: pulumi.String(\"http://proxy.test.io\"),\n\t\t\t\tServiceKey: pulumi.String(\"XXXXXXXX\"),\n\t\t\t},\n\t\t\tSendResolved: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.Notifier;\nimport com.pulumi.rancher2.NotifierArgs;\nimport com.pulumi.rancher2.inputs.NotifierPagerdutyConfigArgs;\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 foo = new Notifier(\"foo\", NotifierArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform notifier acceptance test\")\n .pagerdutyConfig(NotifierPagerdutyConfigArgs.builder()\n .proxyUrl(\"http://proxy.test.io\")\n .serviceKey(\"XXXXXXXX\")\n .build())\n .sendResolved(\"true\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Notifier\n foo:\n type: rancher2:Notifier\n properties:\n clusterId: \u003ccluster_id\u003e\n description: Terraform notifier acceptance test\n pagerdutyConfig:\n proxyUrl: http://proxy.test.io\n serviceKey: XXXXXXXX\n sendResolved: 'true'\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNotifiers can be imported using the Rancher nNtifier ID\n\n```sh\n $ pulumi import rancher2:index/notifier:Notifier foo \u0026lt;notifier_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Notifier resource. This can be used to create notifiers for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Notifier\nconst foo = new rancher2.Notifier(\"foo\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform notifier acceptance test\",\n pagerdutyConfig: {\n proxyUrl: \"http://proxy.test.io\",\n serviceKey: \"XXXXXXXX\",\n },\n sendResolved: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Notifier\nfoo = rancher2.Notifier(\"foo\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform notifier acceptance test\",\n pagerduty_config=rancher2.NotifierPagerdutyConfigArgs(\n proxy_url=\"http://proxy.test.io\",\n service_key=\"XXXXXXXX\",\n ),\n send_resolved=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Notifier\n var foo = new Rancher2.Notifier(\"foo\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform notifier acceptance test\",\n PagerdutyConfig = new Rancher2.Inputs.NotifierPagerdutyConfigArgs\n {\n ProxyUrl = \"http://proxy.test.io\",\n ServiceKey = \"XXXXXXXX\",\n },\n SendResolved = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewNotifier(ctx, \"foo\", \u0026rancher2.NotifierArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform notifier acceptance test\"),\n\t\t\tPagerdutyConfig: \u0026rancher2.NotifierPagerdutyConfigArgs{\n\t\t\t\tProxyUrl: pulumi.String(\"http://proxy.test.io\"),\n\t\t\t\tServiceKey: pulumi.String(\"XXXXXXXX\"),\n\t\t\t},\n\t\t\tSendResolved: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.rancher2.Notifier;\nimport com.pulumi.rancher2.NotifierArgs;\nimport com.pulumi.rancher2.inputs.NotifierPagerdutyConfigArgs;\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 foo = new Notifier(\"foo\", NotifierArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform notifier acceptance test\")\n .pagerdutyConfig(NotifierPagerdutyConfigArgs.builder()\n .proxyUrl(\"http://proxy.test.io\")\n .serviceKey(\"XXXXXXXX\")\n .build())\n .sendResolved(\"true\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Notifier\n foo:\n type: rancher2:Notifier\n properties:\n clusterId: \u003ccluster_id\u003e\n description: Terraform notifier acceptance test\n pagerdutyConfig:\n proxyUrl: http://proxy.test.io\n serviceKey: XXXXXXXX\n sendResolved: 'true'\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nNotifiers can be imported using the Rancher nNtifier ID\n\n```sh\n $ pulumi import rancher2:index/notifier:Notifier foo \u0026lt;notifier_id\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -30949,7 +30287,7 @@ } }, "rancher2:index/podSecurityPolicyTemplate:PodSecurityPolicyTemplate": { - "description": "Provides a Rancher v2 PodSecurityPolicyTemplate resource. This can be used to create PodSecurityPolicyTemplates for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 PodSecurityPolicyTemplate\nconst foo = new rancher2.PodSecurityPolicyTemplate(\"foo\", {\n allowPrivilegeEscalation: false,\n allowedCsiDrivers: [\n {\n name: \"something\",\n },\n {\n name: \"something-else\",\n },\n ],\n allowedFlexVolumes: [\n {\n driver: \"something\",\n },\n {\n driver: \"something-else\",\n },\n ],\n allowedHostPaths: [\n {\n pathPrefix: \"/\",\n readOnly: true,\n },\n {\n pathPrefix: \"//\",\n readOnly: false,\n },\n ],\n allowedProcMountTypes: [\"Default\"],\n defaultAllowPrivilegeEscalation: false,\n description: \"Terraform PodSecurityPolicyTemplate acceptance test - update\",\n fsGroup: {\n ranges: [\n {\n max: 100,\n min: 0,\n },\n {\n max: 100,\n min: 0,\n },\n ],\n rule: \"MustRunAs\",\n },\n hostIpc: false,\n hostNetwork: false,\n hostPid: false,\n hostPorts: [\n {\n max: 65535,\n min: 0,\n },\n {\n max: 8080,\n min: 1024,\n },\n ],\n privileged: false,\n readOnlyRootFilesystem: false,\n requiredDropCapabilities: [\"something\"],\n runAsGroup: {\n ranges: [\n {\n max: 100,\n min: 1,\n },\n {\n max: 1024,\n min: 2,\n },\n ],\n rule: \"MustRunAs\",\n },\n runAsUser: {\n ranges: [\n {\n max: 100,\n min: 1,\n },\n {\n max: 1024,\n min: 2,\n },\n ],\n rule: \"MustRunAs\",\n },\n runtimeClass: {\n allowedRuntimeClassNames: [\"something\"],\n defaultRuntimeClassName: \"something\",\n },\n seLinux: {\n rule: \"RunAsAny\",\n },\n supplementalGroup: {\n rule: \"RunAsAny\",\n },\n volumes: [\"azureFile\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 PodSecurityPolicyTemplate\nfoo = rancher2.PodSecurityPolicyTemplate(\"foo\",\n allow_privilege_escalation=False,\n allowed_csi_drivers=[\n rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArgs(\n name=\"something\",\n ),\n rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArgs(\n name=\"something-else\",\n ),\n ],\n allowed_flex_volumes=[\n rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArgs(\n driver=\"something\",\n ),\n rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArgs(\n driver=\"something-else\",\n ),\n ],\n allowed_host_paths=[\n rancher2.PodSecurityPolicyTemplateAllowedHostPathArgs(\n path_prefix=\"/\",\n read_only=True,\n ),\n rancher2.PodSecurityPolicyTemplateAllowedHostPathArgs(\n path_prefix=\"//\",\n read_only=False,\n ),\n ],\n allowed_proc_mount_types=[\"Default\"],\n default_allow_privilege_escalation=False,\n description=\"Terraform PodSecurityPolicyTemplate acceptance test - update\",\n fs_group=rancher2.PodSecurityPolicyTemplateFsGroupArgs(\n ranges=[\n rancher2.PodSecurityPolicyTemplateFsGroupRangeArgs(\n max=100,\n min=0,\n ),\n rancher2.PodSecurityPolicyTemplateFsGroupRangeArgs(\n max=100,\n min=0,\n ),\n ],\n rule=\"MustRunAs\",\n ),\n host_ipc=False,\n host_network=False,\n host_pid=False,\n host_ports=[\n rancher2.PodSecurityPolicyTemplateHostPortArgs(\n max=65535,\n min=0,\n ),\n rancher2.PodSecurityPolicyTemplateHostPortArgs(\n max=8080,\n min=1024,\n ),\n ],\n privileged=False,\n read_only_root_filesystem=False,\n required_drop_capabilities=[\"something\"],\n run_as_group=rancher2.PodSecurityPolicyTemplateRunAsGroupArgs(\n ranges=[\n rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArgs(\n max=100,\n min=1,\n ),\n rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArgs(\n max=1024,\n min=2,\n ),\n ],\n rule=\"MustRunAs\",\n ),\n run_as_user=rancher2.PodSecurityPolicyTemplateRunAsUserArgs(\n ranges=[\n rancher2.PodSecurityPolicyTemplateRunAsUserRangeArgs(\n max=100,\n min=1,\n ),\n rancher2.PodSecurityPolicyTemplateRunAsUserRangeArgs(\n max=1024,\n min=2,\n ),\n ],\n rule=\"MustRunAs\",\n ),\n runtime_class=rancher2.PodSecurityPolicyTemplateRuntimeClassArgs(\n allowed_runtime_class_names=[\"something\"],\n default_runtime_class_name=\"something\",\n ),\n se_linux=rancher2.PodSecurityPolicyTemplateSeLinuxArgs(\n rule=\"RunAsAny\",\n ),\n supplemental_group=rancher2.PodSecurityPolicyTemplateSupplementalGroupArgs(\n rule=\"RunAsAny\",\n ),\n volumes=[\"azureFile\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 PodSecurityPolicyTemplate\n var foo = new Rancher2.PodSecurityPolicyTemplate(\"foo\", new()\n {\n AllowPrivilegeEscalation = false,\n AllowedCsiDrivers = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedCsiDriverArgs\n {\n Name = \"something\",\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedCsiDriverArgs\n {\n Name = \"something-else\",\n },\n },\n AllowedFlexVolumes = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedFlexVolumeArgs\n {\n Driver = \"something\",\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedFlexVolumeArgs\n {\n Driver = \"something-else\",\n },\n },\n AllowedHostPaths = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedHostPathArgs\n {\n PathPrefix = \"/\",\n ReadOnly = true,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedHostPathArgs\n {\n PathPrefix = \"//\",\n ReadOnly = false,\n },\n },\n AllowedProcMountTypes = new[]\n {\n \"Default\",\n },\n DefaultAllowPrivilegeEscalation = false,\n Description = \"Terraform PodSecurityPolicyTemplate acceptance test - update\",\n FsGroup = new Rancher2.Inputs.PodSecurityPolicyTemplateFsGroupArgs\n {\n Ranges = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateFsGroupRangeArgs\n {\n Max = 100,\n Min = 0,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateFsGroupRangeArgs\n {\n Max = 100,\n Min = 0,\n },\n },\n Rule = \"MustRunAs\",\n },\n HostIpc = false,\n HostNetwork = false,\n HostPid = false,\n HostPorts = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateHostPortArgs\n {\n Max = 65535,\n Min = 0,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateHostPortArgs\n {\n Max = 8080,\n Min = 1024,\n },\n },\n Privileged = false,\n ReadOnlyRootFilesystem = false,\n RequiredDropCapabilities = new[]\n {\n \"something\",\n },\n RunAsGroup = new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsGroupArgs\n {\n Ranges = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsGroupRangeArgs\n {\n Max = 100,\n Min = 1,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsGroupRangeArgs\n {\n Max = 1024,\n Min = 2,\n },\n },\n Rule = \"MustRunAs\",\n },\n RunAsUser = new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsUserArgs\n {\n Ranges = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsUserRangeArgs\n {\n Max = 100,\n Min = 1,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsUserRangeArgs\n {\n Max = 1024,\n Min = 2,\n },\n },\n Rule = \"MustRunAs\",\n },\n RuntimeClass = new Rancher2.Inputs.PodSecurityPolicyTemplateRuntimeClassArgs\n {\n AllowedRuntimeClassNames = new[]\n {\n \"something\",\n },\n DefaultRuntimeClassName = \"something\",\n },\n SeLinux = new Rancher2.Inputs.PodSecurityPolicyTemplateSeLinuxArgs\n {\n Rule = \"RunAsAny\",\n },\n SupplementalGroup = new Rancher2.Inputs.PodSecurityPolicyTemplateSupplementalGroupArgs\n {\n Rule = \"RunAsAny\",\n },\n Volumes = new[]\n {\n \"azureFile\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewPodSecurityPolicyTemplate(ctx, \"foo\", \u0026rancher2.PodSecurityPolicyTemplateArgs{\n\t\t\tAllowPrivilegeEscalation: pulumi.Bool(false),\n\t\t\tAllowedCsiDrivers: rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArray{\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArgs{\n\t\t\t\t\tName: pulumi.String(\"something\"),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArgs{\n\t\t\t\t\tName: pulumi.String(\"something-else\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAllowedFlexVolumes: rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArray{\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArgs{\n\t\t\t\t\tDriver: pulumi.String(\"something\"),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArgs{\n\t\t\t\t\tDriver: pulumi.String(\"something-else\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAllowedHostPaths: rancher2.PodSecurityPolicyTemplateAllowedHostPathArray{\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedHostPathArgs{\n\t\t\t\t\tPathPrefix: pulumi.String(\"/\"),\n\t\t\t\t\tReadOnly: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedHostPathArgs{\n\t\t\t\t\tPathPrefix: pulumi.String(\"//\"),\n\t\t\t\t\tReadOnly: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAllowedProcMountTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Default\"),\n\t\t\t},\n\t\t\tDefaultAllowPrivilegeEscalation: pulumi.Bool(false),\n\t\t\tDescription: pulumi.String(\"Terraform PodSecurityPolicyTemplate acceptance test - update\"),\n\t\t\tFsGroup: \u0026rancher2.PodSecurityPolicyTemplateFsGroupArgs{\n\t\t\t\tRanges: rancher2.PodSecurityPolicyTemplateFsGroupRangeArray{\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateFsGroupRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(100),\n\t\t\t\t\t\tMin: pulumi.Int(0),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateFsGroupRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(100),\n\t\t\t\t\t\tMin: pulumi.Int(0),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tRule: pulumi.String(\"MustRunAs\"),\n\t\t\t},\n\t\t\tHostIpc: pulumi.Bool(false),\n\t\t\tHostNetwork: pulumi.Bool(false),\n\t\t\tHostPid: pulumi.Bool(false),\n\t\t\tHostPorts: rancher2.PodSecurityPolicyTemplateHostPortArray{\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateHostPortArgs{\n\t\t\t\t\tMax: pulumi.Int(65535),\n\t\t\t\t\tMin: pulumi.Int(0),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateHostPortArgs{\n\t\t\t\t\tMax: pulumi.Int(8080),\n\t\t\t\t\tMin: pulumi.Int(1024),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPrivileged: pulumi.Bool(false),\n\t\t\tReadOnlyRootFilesystem: pulumi.Bool(false),\n\t\t\tRequiredDropCapabilities: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"something\"),\n\t\t\t},\n\t\t\tRunAsGroup: \u0026rancher2.PodSecurityPolicyTemplateRunAsGroupArgs{\n\t\t\t\tRanges: rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArray{\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(100),\n\t\t\t\t\t\tMin: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(1024),\n\t\t\t\t\t\tMin: pulumi.Int(2),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tRule: pulumi.String(\"MustRunAs\"),\n\t\t\t},\n\t\t\tRunAsUser: \u0026rancher2.PodSecurityPolicyTemplateRunAsUserArgs{\n\t\t\t\tRanges: rancher2.PodSecurityPolicyTemplateRunAsUserRangeArray{\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateRunAsUserRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(100),\n\t\t\t\t\t\tMin: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateRunAsUserRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(1024),\n\t\t\t\t\t\tMin: pulumi.Int(2),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tRule: pulumi.String(\"MustRunAs\"),\n\t\t\t},\n\t\t\tRuntimeClass: \u0026rancher2.PodSecurityPolicyTemplateRuntimeClassArgs{\n\t\t\t\tAllowedRuntimeClassNames: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"something\"),\n\t\t\t\t},\n\t\t\t\tDefaultRuntimeClassName: pulumi.String(\"something\"),\n\t\t\t},\n\t\t\tSeLinux: \u0026rancher2.PodSecurityPolicyTemplateSeLinuxArgs{\n\t\t\t\tRule: pulumi.String(\"RunAsAny\"),\n\t\t\t},\n\t\t\tSupplementalGroup: \u0026rancher2.PodSecurityPolicyTemplateSupplementalGroupArgs{\n\t\t\t\tRule: pulumi.String(\"RunAsAny\"),\n\t\t\t},\n\t\t\tVolumes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"azureFile\"),\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.rancher2.PodSecurityPolicyTemplate;\nimport com.pulumi.rancher2.PodSecurityPolicyTemplateArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateAllowedCsiDriverArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateAllowedFlexVolumeArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateAllowedHostPathArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateFsGroupArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateHostPortArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateRunAsGroupArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateRunAsUserArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateRuntimeClassArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateSeLinuxArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateSupplementalGroupArgs;\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 foo = new PodSecurityPolicyTemplate(\"foo\", PodSecurityPolicyTemplateArgs.builder() \n .allowPrivilegeEscalation(false)\n .allowedCsiDrivers( \n PodSecurityPolicyTemplateAllowedCsiDriverArgs.builder()\n .name(\"something\")\n .build(),\n PodSecurityPolicyTemplateAllowedCsiDriverArgs.builder()\n .name(\"something-else\")\n .build())\n .allowedFlexVolumes( \n PodSecurityPolicyTemplateAllowedFlexVolumeArgs.builder()\n .driver(\"something\")\n .build(),\n PodSecurityPolicyTemplateAllowedFlexVolumeArgs.builder()\n .driver(\"something-else\")\n .build())\n .allowedHostPaths( \n PodSecurityPolicyTemplateAllowedHostPathArgs.builder()\n .pathPrefix(\"/\")\n .readOnly(true)\n .build(),\n PodSecurityPolicyTemplateAllowedHostPathArgs.builder()\n .pathPrefix(\"//\")\n .readOnly(false)\n .build())\n .allowedProcMountTypes(\"Default\")\n .defaultAllowPrivilegeEscalation(false)\n .description(\"Terraform PodSecurityPolicyTemplate acceptance test - update\")\n .fsGroup(PodSecurityPolicyTemplateFsGroupArgs.builder()\n .ranges( \n PodSecurityPolicyTemplateFsGroupRangeArgs.builder()\n .max(100)\n .min(0)\n .build(),\n PodSecurityPolicyTemplateFsGroupRangeArgs.builder()\n .max(100)\n .min(0)\n .build())\n .rule(\"MustRunAs\")\n .build())\n .hostIpc(false)\n .hostNetwork(false)\n .hostPid(false)\n .hostPorts( \n PodSecurityPolicyTemplateHostPortArgs.builder()\n .max(65535)\n .min(0)\n .build(),\n PodSecurityPolicyTemplateHostPortArgs.builder()\n .max(8080)\n .min(1024)\n .build())\n .privileged(false)\n .readOnlyRootFilesystem(false)\n .requiredDropCapabilities(\"something\")\n .runAsGroup(PodSecurityPolicyTemplateRunAsGroupArgs.builder()\n .ranges( \n PodSecurityPolicyTemplateRunAsGroupRangeArgs.builder()\n .max(100)\n .min(1)\n .build(),\n PodSecurityPolicyTemplateRunAsGroupRangeArgs.builder()\n .max(1024)\n .min(2)\n .build())\n .rule(\"MustRunAs\")\n .build())\n .runAsUser(PodSecurityPolicyTemplateRunAsUserArgs.builder()\n .ranges( \n PodSecurityPolicyTemplateRunAsUserRangeArgs.builder()\n .max(100)\n .min(1)\n .build(),\n PodSecurityPolicyTemplateRunAsUserRangeArgs.builder()\n .max(1024)\n .min(2)\n .build())\n .rule(\"MustRunAs\")\n .build())\n .runtimeClass(PodSecurityPolicyTemplateRuntimeClassArgs.builder()\n .allowedRuntimeClassNames(\"something\")\n .defaultRuntimeClassName(\"something\")\n .build())\n .seLinux(PodSecurityPolicyTemplateSeLinuxArgs.builder()\n .rule(\"RunAsAny\")\n .build())\n .supplementalGroup(PodSecurityPolicyTemplateSupplementalGroupArgs.builder()\n .rule(\"RunAsAny\")\n .build())\n .volumes(\"azureFile\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 PodSecurityPolicyTemplate\n foo:\n type: rancher2:PodSecurityPolicyTemplate\n properties:\n allowPrivilegeEscalation: false\n allowedCsiDrivers:\n - name: something\n - name: something-else\n allowedFlexVolumes:\n - driver: something\n - driver: something-else\n allowedHostPaths:\n - pathPrefix: /\n readOnly: true\n - pathPrefix: //\n readOnly: false\n allowedProcMountTypes:\n - Default\n defaultAllowPrivilegeEscalation: false\n description: Terraform PodSecurityPolicyTemplate acceptance test - update\n fsGroup:\n ranges:\n - max: 100\n min: 0\n - max: 100\n min: 0\n rule: MustRunAs\n hostIpc: false\n hostNetwork: false\n hostPid: false\n hostPorts:\n - max: 65535\n min: 0\n - max: 8080\n min: 1024\n privileged: false\n readOnlyRootFilesystem: false\n requiredDropCapabilities:\n - something\n runAsGroup:\n ranges:\n - max: 100\n min: 1\n - max: 1024\n min: 2\n rule: MustRunAs\n runAsUser:\n ranges:\n - max: 100\n min: 1\n - max: 1024\n min: 2\n rule: MustRunAs\n runtimeClass:\n allowedRuntimeClassNames:\n - something\n defaultRuntimeClassName: something\n seLinux:\n rule: RunAsAny\n supplementalGroup:\n rule: RunAsAny\n volumes:\n - azureFile\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nPodSecurityPolicyTemplate can be imported using the Rancher PodSecurityPolicyTemplate Name\n\n```sh\n $ pulumi import rancher2:index/podSecurityPolicyTemplate:PodSecurityPolicyTemplate foo \u0026lt;pod_security_policy_name\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 PodSecurityPolicyTemplate resource. This can be used to create PodSecurityPolicyTemplates for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 PodSecurityPolicyTemplate\nconst foo = new rancher2.PodSecurityPolicyTemplate(\"foo\", {\n allowPrivilegeEscalation: false,\n allowedCsiDrivers: [\n {\n name: \"something\",\n },\n {\n name: \"something-else\",\n },\n ],\n allowedFlexVolumes: [\n {\n driver: \"something\",\n },\n {\n driver: \"something-else\",\n },\n ],\n allowedHostPaths: [\n {\n pathPrefix: \"/\",\n readOnly: true,\n },\n {\n pathPrefix: \"//\",\n readOnly: false,\n },\n ],\n allowedProcMountTypes: [\"Default\"],\n defaultAllowPrivilegeEscalation: false,\n description: \"Terraform PodSecurityPolicyTemplate acceptance test - update\",\n fsGroup: {\n ranges: [\n {\n max: 100,\n min: 0,\n },\n {\n max: 100,\n min: 0,\n },\n ],\n rule: \"MustRunAs\",\n },\n hostIpc: false,\n hostNetwork: false,\n hostPid: false,\n hostPorts: [\n {\n max: 65535,\n min: 0,\n },\n {\n max: 8080,\n min: 1024,\n },\n ],\n privileged: false,\n readOnlyRootFilesystem: false,\n requiredDropCapabilities: [\"something\"],\n runAsGroup: {\n ranges: [\n {\n max: 100,\n min: 1,\n },\n {\n max: 1024,\n min: 2,\n },\n ],\n rule: \"MustRunAs\",\n },\n runAsUser: {\n ranges: [\n {\n max: 100,\n min: 1,\n },\n {\n max: 1024,\n min: 2,\n },\n ],\n rule: \"MustRunAs\",\n },\n runtimeClass: {\n allowedRuntimeClassNames: [\"something\"],\n defaultRuntimeClassName: \"something\",\n },\n seLinux: {\n rule: \"RunAsAny\",\n },\n supplementalGroup: {\n rule: \"RunAsAny\",\n },\n volumes: [\"azureFile\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 PodSecurityPolicyTemplate\nfoo = rancher2.PodSecurityPolicyTemplate(\"foo\",\n allow_privilege_escalation=False,\n allowed_csi_drivers=[\n rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArgs(\n name=\"something\",\n ),\n rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArgs(\n name=\"something-else\",\n ),\n ],\n allowed_flex_volumes=[\n rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArgs(\n driver=\"something\",\n ),\n rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArgs(\n driver=\"something-else\",\n ),\n ],\n allowed_host_paths=[\n rancher2.PodSecurityPolicyTemplateAllowedHostPathArgs(\n path_prefix=\"/\",\n read_only=True,\n ),\n rancher2.PodSecurityPolicyTemplateAllowedHostPathArgs(\n path_prefix=\"//\",\n read_only=False,\n ),\n ],\n allowed_proc_mount_types=[\"Default\"],\n default_allow_privilege_escalation=False,\n description=\"Terraform PodSecurityPolicyTemplate acceptance test - update\",\n fs_group=rancher2.PodSecurityPolicyTemplateFsGroupArgs(\n ranges=[\n rancher2.PodSecurityPolicyTemplateFsGroupRangeArgs(\n max=100,\n min=0,\n ),\n rancher2.PodSecurityPolicyTemplateFsGroupRangeArgs(\n max=100,\n min=0,\n ),\n ],\n rule=\"MustRunAs\",\n ),\n host_ipc=False,\n host_network=False,\n host_pid=False,\n host_ports=[\n rancher2.PodSecurityPolicyTemplateHostPortArgs(\n max=65535,\n min=0,\n ),\n rancher2.PodSecurityPolicyTemplateHostPortArgs(\n max=8080,\n min=1024,\n ),\n ],\n privileged=False,\n read_only_root_filesystem=False,\n required_drop_capabilities=[\"something\"],\n run_as_group=rancher2.PodSecurityPolicyTemplateRunAsGroupArgs(\n ranges=[\n rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArgs(\n max=100,\n min=1,\n ),\n rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArgs(\n max=1024,\n min=2,\n ),\n ],\n rule=\"MustRunAs\",\n ),\n run_as_user=rancher2.PodSecurityPolicyTemplateRunAsUserArgs(\n ranges=[\n rancher2.PodSecurityPolicyTemplateRunAsUserRangeArgs(\n max=100,\n min=1,\n ),\n rancher2.PodSecurityPolicyTemplateRunAsUserRangeArgs(\n max=1024,\n min=2,\n ),\n ],\n rule=\"MustRunAs\",\n ),\n runtime_class=rancher2.PodSecurityPolicyTemplateRuntimeClassArgs(\n allowed_runtime_class_names=[\"something\"],\n default_runtime_class_name=\"something\",\n ),\n se_linux=rancher2.PodSecurityPolicyTemplateSeLinuxArgs(\n rule=\"RunAsAny\",\n ),\n supplemental_group=rancher2.PodSecurityPolicyTemplateSupplementalGroupArgs(\n rule=\"RunAsAny\",\n ),\n volumes=[\"azureFile\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 PodSecurityPolicyTemplate\n var foo = new Rancher2.PodSecurityPolicyTemplate(\"foo\", new()\n {\n AllowPrivilegeEscalation = false,\n AllowedCsiDrivers = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedCsiDriverArgs\n {\n Name = \"something\",\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedCsiDriverArgs\n {\n Name = \"something-else\",\n },\n },\n AllowedFlexVolumes = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedFlexVolumeArgs\n {\n Driver = \"something\",\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedFlexVolumeArgs\n {\n Driver = \"something-else\",\n },\n },\n AllowedHostPaths = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedHostPathArgs\n {\n PathPrefix = \"/\",\n ReadOnly = true,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateAllowedHostPathArgs\n {\n PathPrefix = \"//\",\n ReadOnly = false,\n },\n },\n AllowedProcMountTypes = new[]\n {\n \"Default\",\n },\n DefaultAllowPrivilegeEscalation = false,\n Description = \"Terraform PodSecurityPolicyTemplate acceptance test - update\",\n FsGroup = new Rancher2.Inputs.PodSecurityPolicyTemplateFsGroupArgs\n {\n Ranges = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateFsGroupRangeArgs\n {\n Max = 100,\n Min = 0,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateFsGroupRangeArgs\n {\n Max = 100,\n Min = 0,\n },\n },\n Rule = \"MustRunAs\",\n },\n HostIpc = false,\n HostNetwork = false,\n HostPid = false,\n HostPorts = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateHostPortArgs\n {\n Max = 65535,\n Min = 0,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateHostPortArgs\n {\n Max = 8080,\n Min = 1024,\n },\n },\n Privileged = false,\n ReadOnlyRootFilesystem = false,\n RequiredDropCapabilities = new[]\n {\n \"something\",\n },\n RunAsGroup = new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsGroupArgs\n {\n Ranges = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsGroupRangeArgs\n {\n Max = 100,\n Min = 1,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsGroupRangeArgs\n {\n Max = 1024,\n Min = 2,\n },\n },\n Rule = \"MustRunAs\",\n },\n RunAsUser = new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsUserArgs\n {\n Ranges = new[]\n {\n new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsUserRangeArgs\n {\n Max = 100,\n Min = 1,\n },\n new Rancher2.Inputs.PodSecurityPolicyTemplateRunAsUserRangeArgs\n {\n Max = 1024,\n Min = 2,\n },\n },\n Rule = \"MustRunAs\",\n },\n RuntimeClass = new Rancher2.Inputs.PodSecurityPolicyTemplateRuntimeClassArgs\n {\n AllowedRuntimeClassNames = new[]\n {\n \"something\",\n },\n DefaultRuntimeClassName = \"something\",\n },\n SeLinux = new Rancher2.Inputs.PodSecurityPolicyTemplateSeLinuxArgs\n {\n Rule = \"RunAsAny\",\n },\n SupplementalGroup = new Rancher2.Inputs.PodSecurityPolicyTemplateSupplementalGroupArgs\n {\n Rule = \"RunAsAny\",\n },\n Volumes = new[]\n {\n \"azureFile\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewPodSecurityPolicyTemplate(ctx, \"foo\", \u0026rancher2.PodSecurityPolicyTemplateArgs{\n\t\t\tAllowPrivilegeEscalation: pulumi.Bool(false),\n\t\t\tAllowedCsiDrivers: rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArray{\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArgs{\n\t\t\t\t\tName: pulumi.String(\"something\"),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedCsiDriverArgs{\n\t\t\t\t\tName: pulumi.String(\"something-else\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAllowedFlexVolumes: rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArray{\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArgs{\n\t\t\t\t\tDriver: pulumi.String(\"something\"),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedFlexVolumeArgs{\n\t\t\t\t\tDriver: pulumi.String(\"something-else\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAllowedHostPaths: rancher2.PodSecurityPolicyTemplateAllowedHostPathArray{\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedHostPathArgs{\n\t\t\t\t\tPathPrefix: pulumi.String(\"/\"),\n\t\t\t\t\tReadOnly: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateAllowedHostPathArgs{\n\t\t\t\t\tPathPrefix: pulumi.String(\"//\"),\n\t\t\t\t\tReadOnly: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tAllowedProcMountTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Default\"),\n\t\t\t},\n\t\t\tDefaultAllowPrivilegeEscalation: pulumi.Bool(false),\n\t\t\tDescription: pulumi.String(\"Terraform PodSecurityPolicyTemplate acceptance test - update\"),\n\t\t\tFsGroup: \u0026rancher2.PodSecurityPolicyTemplateFsGroupArgs{\n\t\t\t\tRanges: rancher2.PodSecurityPolicyTemplateFsGroupRangeArray{\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateFsGroupRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(100),\n\t\t\t\t\t\tMin: pulumi.Int(0),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateFsGroupRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(100),\n\t\t\t\t\t\tMin: pulumi.Int(0),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tRule: pulumi.String(\"MustRunAs\"),\n\t\t\t},\n\t\t\tHostIpc: pulumi.Bool(false),\n\t\t\tHostNetwork: pulumi.Bool(false),\n\t\t\tHostPid: pulumi.Bool(false),\n\t\t\tHostPorts: rancher2.PodSecurityPolicyTemplateHostPortArray{\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateHostPortArgs{\n\t\t\t\t\tMax: pulumi.Int(65535),\n\t\t\t\t\tMin: pulumi.Int(0),\n\t\t\t\t},\n\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateHostPortArgs{\n\t\t\t\t\tMax: pulumi.Int(8080),\n\t\t\t\t\tMin: pulumi.Int(1024),\n\t\t\t\t},\n\t\t\t},\n\t\t\tPrivileged: pulumi.Bool(false),\n\t\t\tReadOnlyRootFilesystem: pulumi.Bool(false),\n\t\t\tRequiredDropCapabilities: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"something\"),\n\t\t\t},\n\t\t\tRunAsGroup: \u0026rancher2.PodSecurityPolicyTemplateRunAsGroupArgs{\n\t\t\t\tRanges: rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArray{\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(100),\n\t\t\t\t\t\tMin: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateRunAsGroupRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(1024),\n\t\t\t\t\t\tMin: pulumi.Int(2),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tRule: pulumi.String(\"MustRunAs\"),\n\t\t\t},\n\t\t\tRunAsUser: \u0026rancher2.PodSecurityPolicyTemplateRunAsUserArgs{\n\t\t\t\tRanges: rancher2.PodSecurityPolicyTemplateRunAsUserRangeArray{\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateRunAsUserRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(100),\n\t\t\t\t\t\tMin: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t\t\u0026rancher2.PodSecurityPolicyTemplateRunAsUserRangeArgs{\n\t\t\t\t\t\tMax: pulumi.Int(1024),\n\t\t\t\t\t\tMin: pulumi.Int(2),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tRule: pulumi.String(\"MustRunAs\"),\n\t\t\t},\n\t\t\tRuntimeClass: \u0026rancher2.PodSecurityPolicyTemplateRuntimeClassArgs{\n\t\t\t\tAllowedRuntimeClassNames: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"something\"),\n\t\t\t\t},\n\t\t\t\tDefaultRuntimeClassName: pulumi.String(\"something\"),\n\t\t\t},\n\t\t\tSeLinux: \u0026rancher2.PodSecurityPolicyTemplateSeLinuxArgs{\n\t\t\t\tRule: pulumi.String(\"RunAsAny\"),\n\t\t\t},\n\t\t\tSupplementalGroup: \u0026rancher2.PodSecurityPolicyTemplateSupplementalGroupArgs{\n\t\t\t\tRule: pulumi.String(\"RunAsAny\"),\n\t\t\t},\n\t\t\tVolumes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"azureFile\"),\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.rancher2.PodSecurityPolicyTemplate;\nimport com.pulumi.rancher2.PodSecurityPolicyTemplateArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateAllowedCsiDriverArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateAllowedFlexVolumeArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateAllowedHostPathArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateFsGroupArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateHostPortArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateRunAsGroupArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateRunAsUserArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateRuntimeClassArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateSeLinuxArgs;\nimport com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateSupplementalGroupArgs;\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 foo = new PodSecurityPolicyTemplate(\"foo\", PodSecurityPolicyTemplateArgs.builder() \n .allowPrivilegeEscalation(false)\n .allowedCsiDrivers( \n PodSecurityPolicyTemplateAllowedCsiDriverArgs.builder()\n .name(\"something\")\n .build(),\n PodSecurityPolicyTemplateAllowedCsiDriverArgs.builder()\n .name(\"something-else\")\n .build())\n .allowedFlexVolumes( \n PodSecurityPolicyTemplateAllowedFlexVolumeArgs.builder()\n .driver(\"something\")\n .build(),\n PodSecurityPolicyTemplateAllowedFlexVolumeArgs.builder()\n .driver(\"something-else\")\n .build())\n .allowedHostPaths( \n PodSecurityPolicyTemplateAllowedHostPathArgs.builder()\n .pathPrefix(\"/\")\n .readOnly(true)\n .build(),\n PodSecurityPolicyTemplateAllowedHostPathArgs.builder()\n .pathPrefix(\"//\")\n .readOnly(false)\n .build())\n .allowedProcMountTypes(\"Default\")\n .defaultAllowPrivilegeEscalation(false)\n .description(\"Terraform PodSecurityPolicyTemplate acceptance test - update\")\n .fsGroup(PodSecurityPolicyTemplateFsGroupArgs.builder()\n .ranges( \n PodSecurityPolicyTemplateFsGroupRangeArgs.builder()\n .max(100)\n .min(0)\n .build(),\n PodSecurityPolicyTemplateFsGroupRangeArgs.builder()\n .max(100)\n .min(0)\n .build())\n .rule(\"MustRunAs\")\n .build())\n .hostIpc(false)\n .hostNetwork(false)\n .hostPid(false)\n .hostPorts( \n PodSecurityPolicyTemplateHostPortArgs.builder()\n .max(65535)\n .min(0)\n .build(),\n PodSecurityPolicyTemplateHostPortArgs.builder()\n .max(8080)\n .min(1024)\n .build())\n .privileged(false)\n .readOnlyRootFilesystem(false)\n .requiredDropCapabilities(\"something\")\n .runAsGroup(PodSecurityPolicyTemplateRunAsGroupArgs.builder()\n .ranges( \n PodSecurityPolicyTemplateRunAsGroupRangeArgs.builder()\n .max(100)\n .min(1)\n .build(),\n PodSecurityPolicyTemplateRunAsGroupRangeArgs.builder()\n .max(1024)\n .min(2)\n .build())\n .rule(\"MustRunAs\")\n .build())\n .runAsUser(PodSecurityPolicyTemplateRunAsUserArgs.builder()\n .ranges( \n PodSecurityPolicyTemplateRunAsUserRangeArgs.builder()\n .max(100)\n .min(1)\n .build(),\n PodSecurityPolicyTemplateRunAsUserRangeArgs.builder()\n .max(1024)\n .min(2)\n .build())\n .rule(\"MustRunAs\")\n .build())\n .runtimeClass(PodSecurityPolicyTemplateRuntimeClassArgs.builder()\n .allowedRuntimeClassNames(\"something\")\n .defaultRuntimeClassName(\"something\")\n .build())\n .seLinux(PodSecurityPolicyTemplateSeLinuxArgs.builder()\n .rule(\"RunAsAny\")\n .build())\n .supplementalGroup(PodSecurityPolicyTemplateSupplementalGroupArgs.builder()\n .rule(\"RunAsAny\")\n .build())\n .volumes(\"azureFile\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 PodSecurityPolicyTemplate\n foo:\n type: rancher2:PodSecurityPolicyTemplate\n properties:\n allowPrivilegeEscalation: false\n allowedCsiDrivers:\n - name: something\n - name: something-else\n allowedFlexVolumes:\n - driver: something\n - driver: something-else\n allowedHostPaths:\n - pathPrefix: /\n readOnly: true\n - pathPrefix: //\n readOnly: false\n allowedProcMountTypes:\n - Default\n defaultAllowPrivilegeEscalation: false\n description: Terraform PodSecurityPolicyTemplate acceptance test - update\n fsGroup:\n ranges:\n - max: 100\n min: 0\n - max: 100\n min: 0\n rule: MustRunAs\n hostIpc: false\n hostNetwork: false\n hostPid: false\n hostPorts:\n - max: 65535\n min: 0\n - max: 8080\n min: 1024\n privileged: false\n readOnlyRootFilesystem: false\n requiredDropCapabilities:\n - something\n runAsGroup:\n ranges:\n - max: 100\n min: 1\n - max: 1024\n min: 2\n rule: MustRunAs\n runAsUser:\n ranges:\n - max: 100\n min: 1\n - max: 1024\n min: 2\n rule: MustRunAs\n runtimeClass:\n allowedRuntimeClassNames:\n - something\n defaultRuntimeClassName: something\n seLinux:\n rule: RunAsAny\n supplementalGroup:\n rule: RunAsAny\n volumes:\n - azureFile\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nPodSecurityPolicyTemplate can be imported using the Rancher PodSecurityPolicyTemplate Name\n\n```sh\n $ pulumi import rancher2:index/podSecurityPolicyTemplate:PodSecurityPolicyTemplate foo \u0026lt;pod_security_policy_name\u0026gt;\n```\n ", "properties": { "allowPrivilegeEscalation": { "type": "boolean", @@ -31435,7 +30773,7 @@ } }, "rancher2:index/project:Project": { - "description": "Provides a Rancher v2 Project resource. This can be used to create projects for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Project\nconst foo = new rancher2.Project(\"foo\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n resourceQuota: {\n namespaceDefaultLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"500Mi\",\n requestsStorage: \"1Gi\",\n },\n projectLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"2000Mi\",\n requestsStorage: \"2Gi\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Project\nfoo = rancher2.Project(\"foo\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n container_resource_limit=rancher2.ProjectContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ),\n resource_quota=rancher2.ProjectResourceQuotaArgs(\n namespace_default_limit=rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"500Mi\",\n requests_storage=\"1Gi\",\n ),\n project_limit=rancher2.ProjectResourceQuotaProjectLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"2000Mi\",\n requests_storage=\"2Gi\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project\n var foo = new Rancher2.Project(\"foo\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs\n {\n NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"500Mi\",\n RequestsStorage = \"1Gi\",\n },\n ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"2000Mi\",\n RequestsStorage = \"2Gi\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewProject(ctx, \"foo\", \u0026rancher2.ProjectArgs{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tContainerResourceLimit: \u0026rancher2.ProjectContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\n\t\t\t},\n\t\t\tResourceQuota: \u0026rancher2.ProjectResourceQuotaArgs{\n\t\t\t\tNamespaceDefaultLimit: \u0026rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"500Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t\tProjectLimit: \u0026rancher2.ProjectResourceQuotaProjectLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"2000Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"2Gi\"),\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.rancher2.Project;\nimport com.pulumi.rancher2.ProjectArgs;\nimport com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs;\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 foo = new Project(\"foo\", ProjectArgs.builder() \n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .containerResourceLimit(ProjectContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .resourceQuota(ProjectResourceQuotaArgs.builder()\n .namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"500Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .projectLimit(ProjectResourceQuotaProjectLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"2000Mi\")\n .requestsStorage(\"2Gi\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project\n foo:\n type: rancher2:Project\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n resourceQuota:\n namespaceDefaultLimit:\n limitsCpu: 2000m\n limitsMemory: 500Mi\n requestsStorage: 1Gi\n projectLimit:\n limitsCpu: 2000m\n limitsMemory: 2000Mi\n requestsStorage: 2Gi\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Project enabling and customizing monitoring\nconst foo = new rancher2.Project(\"foo\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n enableProjectMonitoring: true,\n projectMonitoringInput: {\n answers: {\n \"exporter-kubelets.https\": true,\n \"exporter-node.enabled\": true,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": false,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n },\n resourceQuota: {\n namespaceDefaultLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"500Mi\",\n requestsStorage: \"1Gi\",\n },\n projectLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"2000Mi\",\n requestsStorage: \"2Gi\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Project enabling and customizing monitoring\nfoo = rancher2.Project(\"foo\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n container_resource_limit=rancher2.ProjectContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ),\n enable_project_monitoring=True,\n project_monitoring_input=rancher2.ProjectProjectMonitoringInputArgs(\n answers={\n \"exporter-kubelets.https\": True,\n \"exporter-node.enabled\": True,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": False,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n ),\n resource_quota=rancher2.ProjectResourceQuotaArgs(\n namespace_default_limit=rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"500Mi\",\n requests_storage=\"1Gi\",\n ),\n project_limit=rancher2.ProjectResourceQuotaProjectLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"2000Mi\",\n requests_storage=\"2Gi\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project enabling and customizing monitoring\n var foo = new Rancher2.Project(\"foo\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n EnableProjectMonitoring = true,\n ProjectMonitoringInput = new Rancher2.Inputs.ProjectProjectMonitoringInputArgs\n {\n Answers = \n {\n { \"exporter-kubelets.https\", true },\n { \"exporter-node.enabled\", true },\n { \"exporter-node.ports.metrics.port\", 9796 },\n { \"exporter-node.resources.limits.cpu\", \"200m\" },\n { \"exporter-node.resources.limits.memory\", \"200Mi\" },\n { \"grafana.persistence.enabled\", false },\n { \"grafana.persistence.size\", \"10Gi\" },\n { \"grafana.persistence.storageClass\", \"default\" },\n { \"operator.resources.limits.memory\", \"500Mi\" },\n { \"prometheus.persistence.enabled\", \"false\" },\n { \"prometheus.persistence.size\", \"50Gi\" },\n { \"prometheus.persistence.storageClass\", \"default\" },\n { \"prometheus.persistent.useReleaseName\", \"true\" },\n { \"prometheus.resources.core.limits.cpu\", \"1000m\" },\n { \"prometheus.resources.core.limits.memory\", \"1500Mi\" },\n { \"prometheus.resources.core.requests.cpu\", \"750m\" },\n { \"prometheus.resources.core.requests.memory\", \"750Mi\" },\n { \"prometheus.retention\", \"12h\" },\n },\n },\n ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs\n {\n NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"500Mi\",\n RequestsStorage = \"1Gi\",\n },\n ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"2000Mi\",\n RequestsStorage = \"2Gi\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewProject(ctx, \"foo\", \u0026rancher2.ProjectArgs{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tContainerResourceLimit: \u0026rancher2.ProjectContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\n\t\t\t},\n\t\t\tEnableProjectMonitoring: pulumi.Bool(true),\n\t\t\tProjectMonitoringInput: \u0026rancher2.ProjectProjectMonitoringInputArgs{\n\t\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\t\"exporter-kubelets.https\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.enabled\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.ports.metrics.port\": pulumi.Any(9796),\n\t\t\t\t\t\"exporter-node.resources.limits.cpu\": pulumi.Any(\"200m\"),\n\t\t\t\t\t\"exporter-node.resources.limits.memory\": pulumi.Any(\"200Mi\"),\n\t\t\t\t\t\"grafana.persistence.enabled\": pulumi.Any(false),\n\t\t\t\t\t\"grafana.persistence.size\": pulumi.Any(\"10Gi\"),\n\t\t\t\t\t\"grafana.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"operator.resources.limits.memory\": pulumi.Any(\"500Mi\"),\n\t\t\t\t\t\"prometheus.persistence.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\t\"prometheus.persistence.size\": pulumi.Any(\"50Gi\"),\n\t\t\t\t\t\"prometheus.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"prometheus.persistent.useReleaseName\": pulumi.Any(\"true\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.memory\": pulumi.Any(\"1500Mi\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.cpu\": pulumi.Any(\"750m\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.memory\": pulumi.Any(\"750Mi\"),\n\t\t\t\t\t\"prometheus.retention\": pulumi.Any(\"12h\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceQuota: \u0026rancher2.ProjectResourceQuotaArgs{\n\t\t\t\tNamespaceDefaultLimit: \u0026rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"500Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t\tProjectLimit: \u0026rancher2.ProjectResourceQuotaProjectLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"2000Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"2Gi\"),\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.rancher2.Project;\nimport com.pulumi.rancher2.ProjectArgs;\nimport com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectProjectMonitoringInputArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs;\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 foo = new Project(\"foo\", ProjectArgs.builder() \n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .containerResourceLimit(ProjectContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .enableProjectMonitoring(true)\n .projectMonitoringInput(ProjectProjectMonitoringInputArgs.builder()\n .answers(Map.ofEntries(\n Map.entry(\"exporter-kubelets.https\", true),\n Map.entry(\"exporter-node.enabled\", true),\n Map.entry(\"exporter-node.ports.metrics.port\", 9796),\n Map.entry(\"exporter-node.resources.limits.cpu\", \"200m\"),\n Map.entry(\"exporter-node.resources.limits.memory\", \"200Mi\"),\n Map.entry(\"grafana.persistence.enabled\", false),\n Map.entry(\"grafana.persistence.size\", \"10Gi\"),\n Map.entry(\"grafana.persistence.storageClass\", \"default\"),\n Map.entry(\"operator.resources.limits.memory\", \"500Mi\"),\n Map.entry(\"prometheus.persistence.enabled\", \"false\"),\n Map.entry(\"prometheus.persistence.size\", \"50Gi\"),\n Map.entry(\"prometheus.persistence.storageClass\", \"default\"),\n Map.entry(\"prometheus.persistent.useReleaseName\", \"true\"),\n Map.entry(\"prometheus.resources.core.limits.cpu\", \"1000m\"),\n Map.entry(\"prometheus.resources.core.limits.memory\", \"1500Mi\"),\n Map.entry(\"prometheus.resources.core.requests.cpu\", \"750m\"),\n Map.entry(\"prometheus.resources.core.requests.memory\", \"750Mi\"),\n Map.entry(\"prometheus.retention\", \"12h\")\n ))\n .build())\n .resourceQuota(ProjectResourceQuotaArgs.builder()\n .namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"500Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .projectLimit(ProjectResourceQuotaProjectLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"2000Mi\")\n .requestsStorage(\"2Gi\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project enabling and customizing monitoring\n foo:\n type: rancher2:Project\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n enableProjectMonitoring: true\n projectMonitoringInput:\n answers:\n exporter-kubelets.https: true\n exporter-node.enabled: true\n exporter-node.ports.metrics.port: 9796\n exporter-node.resources.limits.cpu: 200m\n exporter-node.resources.limits.memory: 200Mi\n grafana.persistence.enabled: false\n grafana.persistence.size: 10Gi\n grafana.persistence.storageClass: default\n operator.resources.limits.memory: 500Mi\n prometheus.persistence.enabled: 'false'\n prometheus.persistence.size: 50Gi\n prometheus.persistence.storageClass: default\n prometheus.persistent.useReleaseName: 'true'\n prometheus.resources.core.limits.cpu: 1000m\n prometheus.resources.core.limits.memory: 1500Mi\n prometheus.resources.core.requests.cpu: 750m\n prometheus.resources.core.requests.memory: 750Mi\n prometheus.retention: 12h\n resourceQuota:\n namespaceDefaultLimit:\n limitsCpu: 2000m\n limitsMemory: 500Mi\n requestsStorage: 1Gi\n projectLimit:\n limitsCpu: 2000m\n limitsMemory: 2000Mi\n requestsStorage: 2Gi\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nProjects can be imported using the Rancher Project ID\n\n```sh\n $ pulumi import rancher2:index/project:Project foo \u0026lt;project_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Project resource. This can be used to create projects for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Project\nconst foo = new rancher2.Project(\"foo\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n resourceQuota: {\n namespaceDefaultLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"500Mi\",\n requestsStorage: \"1Gi\",\n },\n projectLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"2000Mi\",\n requestsStorage: \"2Gi\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Project\nfoo = rancher2.Project(\"foo\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n container_resource_limit=rancher2.ProjectContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ),\n resource_quota=rancher2.ProjectResourceQuotaArgs(\n namespace_default_limit=rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"500Mi\",\n requests_storage=\"1Gi\",\n ),\n project_limit=rancher2.ProjectResourceQuotaProjectLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"2000Mi\",\n requests_storage=\"2Gi\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project\n var foo = new Rancher2.Project(\"foo\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs\n {\n NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"500Mi\",\n RequestsStorage = \"1Gi\",\n },\n ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"2000Mi\",\n RequestsStorage = \"2Gi\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewProject(ctx, \"foo\", \u0026rancher2.ProjectArgs{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tContainerResourceLimit: \u0026rancher2.ProjectContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\n\t\t\t},\n\t\t\tResourceQuota: \u0026rancher2.ProjectResourceQuotaArgs{\n\t\t\t\tNamespaceDefaultLimit: \u0026rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"500Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t\tProjectLimit: \u0026rancher2.ProjectResourceQuotaProjectLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"2000Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"2Gi\"),\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.rancher2.Project;\nimport com.pulumi.rancher2.ProjectArgs;\nimport com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs;\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 foo = new Project(\"foo\", ProjectArgs.builder() \n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .containerResourceLimit(ProjectContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .resourceQuota(ProjectResourceQuotaArgs.builder()\n .namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"500Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .projectLimit(ProjectResourceQuotaProjectLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"2000Mi\")\n .requestsStorage(\"2Gi\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project\n foo:\n type: rancher2:Project\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n resourceQuota:\n namespaceDefaultLimit:\n limitsCpu: 2000m\n limitsMemory: 500Mi\n requestsStorage: 1Gi\n projectLimit:\n limitsCpu: 2000m\n limitsMemory: 2000Mi\n requestsStorage: 2Gi\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Project enabling and customizing monitoring\nconst foo = new rancher2.Project(\"foo\", {\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n enableProjectMonitoring: true,\n projectMonitoringInput: {\n answers: {\n \"exporter-kubelets.https\": true,\n \"exporter-node.enabled\": true,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": false,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n },\n resourceQuota: {\n namespaceDefaultLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"500Mi\",\n requestsStorage: \"1Gi\",\n },\n projectLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"2000Mi\",\n requestsStorage: \"2Gi\",\n },\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Project enabling and customizing monitoring\nfoo = rancher2.Project(\"foo\",\n cluster_id=\"\u003cCLUSTER_ID\u003e\",\n container_resource_limit=rancher2.ProjectContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ),\n enable_project_monitoring=True,\n project_monitoring_input=rancher2.ProjectProjectMonitoringInputArgs(\n answers={\n \"exporter-kubelets.https\": True,\n \"exporter-node.enabled\": True,\n \"exporter-node.ports.metrics.port\": 9796,\n \"exporter-node.resources.limits.cpu\": \"200m\",\n \"exporter-node.resources.limits.memory\": \"200Mi\",\n \"grafana.persistence.enabled\": False,\n \"grafana.persistence.size\": \"10Gi\",\n \"grafana.persistence.storageClass\": \"default\",\n \"operator.resources.limits.memory\": \"500Mi\",\n \"prometheus.persistence.enabled\": \"false\",\n \"prometheus.persistence.size\": \"50Gi\",\n \"prometheus.persistence.storageClass\": \"default\",\n \"prometheus.persistent.useReleaseName\": \"true\",\n \"prometheus.resources.core.limits.cpu\": \"1000m\",\n \"prometheus.resources.core.limits.memory\": \"1500Mi\",\n \"prometheus.resources.core.requests.cpu\": \"750m\",\n \"prometheus.resources.core.requests.memory\": \"750Mi\",\n \"prometheus.retention\": \"12h\",\n },\n ),\n resource_quota=rancher2.ProjectResourceQuotaArgs(\n namespace_default_limit=rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"500Mi\",\n requests_storage=\"1Gi\",\n ),\n project_limit=rancher2.ProjectResourceQuotaProjectLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"2000Mi\",\n requests_storage=\"2Gi\",\n ),\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project enabling and customizing monitoring\n var foo = new Rancher2.Project(\"foo\", new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n EnableProjectMonitoring = true,\n ProjectMonitoringInput = new Rancher2.Inputs.ProjectProjectMonitoringInputArgs\n {\n Answers = \n {\n { \"exporter-kubelets.https\", true },\n { \"exporter-node.enabled\", true },\n { \"exporter-node.ports.metrics.port\", 9796 },\n { \"exporter-node.resources.limits.cpu\", \"200m\" },\n { \"exporter-node.resources.limits.memory\", \"200Mi\" },\n { \"grafana.persistence.enabled\", false },\n { \"grafana.persistence.size\", \"10Gi\" },\n { \"grafana.persistence.storageClass\", \"default\" },\n { \"operator.resources.limits.memory\", \"500Mi\" },\n { \"prometheus.persistence.enabled\", \"false\" },\n { \"prometheus.persistence.size\", \"50Gi\" },\n { \"prometheus.persistence.storageClass\", \"default\" },\n { \"prometheus.persistent.useReleaseName\", \"true\" },\n { \"prometheus.resources.core.limits.cpu\", \"1000m\" },\n { \"prometheus.resources.core.limits.memory\", \"1500Mi\" },\n { \"prometheus.resources.core.requests.cpu\", \"750m\" },\n { \"prometheus.resources.core.requests.memory\", \"750Mi\" },\n { \"prometheus.retention\", \"12h\" },\n },\n },\n ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs\n {\n NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"500Mi\",\n RequestsStorage = \"1Gi\",\n },\n ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"2000Mi\",\n RequestsStorage = \"2Gi\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewProject(ctx, \"foo\", \u0026rancher2.ProjectArgs{\n\t\t\tClusterId: pulumi.String(\"\u003cCLUSTER_ID\u003e\"),\n\t\t\tContainerResourceLimit: \u0026rancher2.ProjectContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\n\t\t\t},\n\t\t\tEnableProjectMonitoring: pulumi.Bool(true),\n\t\t\tProjectMonitoringInput: \u0026rancher2.ProjectProjectMonitoringInputArgs{\n\t\t\t\tAnswers: pulumi.Map{\n\t\t\t\t\t\"exporter-kubelets.https\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.enabled\": pulumi.Any(true),\n\t\t\t\t\t\"exporter-node.ports.metrics.port\": pulumi.Any(9796),\n\t\t\t\t\t\"exporter-node.resources.limits.cpu\": pulumi.Any(\"200m\"),\n\t\t\t\t\t\"exporter-node.resources.limits.memory\": pulumi.Any(\"200Mi\"),\n\t\t\t\t\t\"grafana.persistence.enabled\": pulumi.Any(false),\n\t\t\t\t\t\"grafana.persistence.size\": pulumi.Any(\"10Gi\"),\n\t\t\t\t\t\"grafana.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"operator.resources.limits.memory\": pulumi.Any(\"500Mi\"),\n\t\t\t\t\t\"prometheus.persistence.enabled\": pulumi.Any(\"false\"),\n\t\t\t\t\t\"prometheus.persistence.size\": pulumi.Any(\"50Gi\"),\n\t\t\t\t\t\"prometheus.persistence.storageClass\": pulumi.Any(\"default\"),\n\t\t\t\t\t\"prometheus.persistent.useReleaseName\": pulumi.Any(\"true\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.cpu\": pulumi.Any(\"1000m\"),\n\t\t\t\t\t\"prometheus.resources.core.limits.memory\": pulumi.Any(\"1500Mi\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.cpu\": pulumi.Any(\"750m\"),\n\t\t\t\t\t\"prometheus.resources.core.requests.memory\": pulumi.Any(\"750Mi\"),\n\t\t\t\t\t\"prometheus.retention\": pulumi.Any(\"12h\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceQuota: \u0026rancher2.ProjectResourceQuotaArgs{\n\t\t\t\tNamespaceDefaultLimit: \u0026rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"500Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t\tProjectLimit: \u0026rancher2.ProjectResourceQuotaProjectLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"2000Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"2Gi\"),\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.rancher2.Project;\nimport com.pulumi.rancher2.ProjectArgs;\nimport com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectProjectMonitoringInputArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs;\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 foo = new Project(\"foo\", ProjectArgs.builder() \n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .containerResourceLimit(ProjectContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .enableProjectMonitoring(true)\n .projectMonitoringInput(ProjectProjectMonitoringInputArgs.builder()\n .answers(Map.ofEntries(\n Map.entry(\"exporter-kubelets.https\", true),\n Map.entry(\"exporter-node.enabled\", true),\n Map.entry(\"exporter-node.ports.metrics.port\", 9796),\n Map.entry(\"exporter-node.resources.limits.cpu\", \"200m\"),\n Map.entry(\"exporter-node.resources.limits.memory\", \"200Mi\"),\n Map.entry(\"grafana.persistence.enabled\", false),\n Map.entry(\"grafana.persistence.size\", \"10Gi\"),\n Map.entry(\"grafana.persistence.storageClass\", \"default\"),\n Map.entry(\"operator.resources.limits.memory\", \"500Mi\"),\n Map.entry(\"prometheus.persistence.enabled\", \"false\"),\n Map.entry(\"prometheus.persistence.size\", \"50Gi\"),\n Map.entry(\"prometheus.persistence.storageClass\", \"default\"),\n Map.entry(\"prometheus.persistent.useReleaseName\", \"true\"),\n Map.entry(\"prometheus.resources.core.limits.cpu\", \"1000m\"),\n Map.entry(\"prometheus.resources.core.limits.memory\", \"1500Mi\"),\n Map.entry(\"prometheus.resources.core.requests.cpu\", \"750m\"),\n Map.entry(\"prometheus.resources.core.requests.memory\", \"750Mi\"),\n Map.entry(\"prometheus.retention\", \"12h\")\n ))\n .build())\n .resourceQuota(ProjectResourceQuotaArgs.builder()\n .namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"500Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .projectLimit(ProjectResourceQuotaProjectLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"2000Mi\")\n .requestsStorage(\"2Gi\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project enabling and customizing monitoring\n foo:\n type: rancher2:Project\n properties:\n clusterId: \u003cCLUSTER_ID\u003e\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n enableProjectMonitoring: true\n projectMonitoringInput:\n answers:\n exporter-kubelets.https: true\n exporter-node.enabled: true\n exporter-node.ports.metrics.port: 9796\n exporter-node.resources.limits.cpu: 200m\n exporter-node.resources.limits.memory: 200Mi\n grafana.persistence.enabled: false\n grafana.persistence.size: 10Gi\n grafana.persistence.storageClass: default\n operator.resources.limits.memory: 500Mi\n prometheus.persistence.enabled: 'false'\n prometheus.persistence.size: 50Gi\n prometheus.persistence.storageClass: default\n prometheus.persistent.useReleaseName: 'true'\n prometheus.resources.core.limits.cpu: 1000m\n prometheus.resources.core.limits.memory: 1500Mi\n prometheus.resources.core.requests.cpu: 750m\n prometheus.resources.core.requests.memory: 750Mi\n prometheus.retention: 12h\n resourceQuota:\n namespaceDefaultLimit:\n limitsCpu: 2000m\n limitsMemory: 500Mi\n requestsStorage: 1Gi\n projectLimit:\n limitsCpu: 2000m\n limitsMemory: 2000Mi\n requestsStorage: 2Gi\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nProjects can be imported using the Rancher Project ID\n\n```sh\n $ pulumi import rancher2:index/project:Project foo \u0026lt;project_id\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -31609,7 +30947,7 @@ } }, "rancher2:index/projectAlertGroup:ProjectAlertGroup": { - "description": "Provides a Rancher v2 Project Alert Group resource. This can be used to create Project Alert Group for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Project Alert Group\nconst foo = new rancher2.ProjectAlertGroup(\"foo\", {\n description: \"Terraform project alert group\",\n groupIntervalSeconds: 300,\n projectId: \"\u003cproject_id\u003e\",\n repeatIntervalSeconds: 3600,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Project Alert Group\nfoo = rancher2.ProjectAlertGroup(\"foo\",\n description=\"Terraform project alert group\",\n group_interval_seconds=300,\n project_id=\"\u003cproject_id\u003e\",\n repeat_interval_seconds=3600)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Project Alert Group\n var foo = new Rancher2.ProjectAlertGroup(\"foo\", new()\n {\n Description = \"Terraform project alert group\",\n GroupIntervalSeconds = 300,\n ProjectId = \"\u003cproject_id\u003e\",\n RepeatIntervalSeconds = 3600,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewProjectAlertGroup(ctx, \"foo\", \u0026rancher2.ProjectAlertGroupArgs{\n\t\t\tDescription: pulumi.String(\"Terraform project alert group\"),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\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.rancher2.ProjectAlertGroup;\nimport com.pulumi.rancher2.ProjectAlertGroupArgs;\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 foo = new ProjectAlertGroup(\"foo\", ProjectAlertGroupArgs.builder() \n .description(\"Terraform project alert group\")\n .groupIntervalSeconds(300)\n .projectId(\"\u003cproject_id\u003e\")\n .repeatIntervalSeconds(3600)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Project Alert Group\n foo:\n type: rancher2:ProjectAlertGroup\n properties:\n description: Terraform project alert group\n groupIntervalSeconds: 300\n projectId: \u003cproject_id\u003e\n repeatIntervalSeconds: 3600\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nProject Alert Group can be imported using the Rancher project alert group ID\n\n```sh\n $ pulumi import rancher2:index/projectAlertGroup:ProjectAlertGroup foo \u0026lt;project_alert_group_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Project Alert Group resource. This can be used to create Project Alert Group for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Project Alert Group\nconst foo = new rancher2.ProjectAlertGroup(\"foo\", {\n description: \"Terraform project alert group\",\n groupIntervalSeconds: 300,\n projectId: \"\u003cproject_id\u003e\",\n repeatIntervalSeconds: 3600,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Project Alert Group\nfoo = rancher2.ProjectAlertGroup(\"foo\",\n description=\"Terraform project alert group\",\n group_interval_seconds=300,\n project_id=\"\u003cproject_id\u003e\",\n repeat_interval_seconds=3600)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Project Alert Group\n var foo = new Rancher2.ProjectAlertGroup(\"foo\", new()\n {\n Description = \"Terraform project alert group\",\n GroupIntervalSeconds = 300,\n ProjectId = \"\u003cproject_id\u003e\",\n RepeatIntervalSeconds = 3600,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewProjectAlertGroup(ctx, \"foo\", \u0026rancher2.ProjectAlertGroupArgs{\n\t\t\tDescription: pulumi.String(\"Terraform project alert group\"),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\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.rancher2.ProjectAlertGroup;\nimport com.pulumi.rancher2.ProjectAlertGroupArgs;\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 foo = new ProjectAlertGroup(\"foo\", ProjectAlertGroupArgs.builder() \n .description(\"Terraform project alert group\")\n .groupIntervalSeconds(300)\n .projectId(\"\u003cproject_id\u003e\")\n .repeatIntervalSeconds(3600)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Project Alert Group\n foo:\n type: rancher2:ProjectAlertGroup\n properties:\n description: Terraform project alert group\n groupIntervalSeconds: 300\n projectId: \u003cproject_id\u003e\n repeatIntervalSeconds: 3600\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nProject Alert Group can be imported using the Rancher project alert group ID\n\n```sh\n $ pulumi import rancher2:index/projectAlertGroup:ProjectAlertGroup foo \u0026lt;project_alert_group_id\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -31766,7 +31104,7 @@ } }, "rancher2:index/projectAlertRule:ProjectAlertRule": { - "description": "Provides a Rancher v2 Project Alert Rule resource. This can be used to create Project Alert Rule for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Project\nconst fooProject = new rancher2.Project(\"fooProject\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform project \",\n resourceQuota: {\n projectLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"2000Mi\",\n requestsStorage: \"2Gi\",\n },\n namespaceDefaultLimit: {\n limitsCpu: \"500m\",\n limitsMemory: \"500Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n});\n// Create a new Rancher2 Project Alert Group\nconst fooProjectAlertGroup = new rancher2.ProjectAlertGroup(\"fooProjectAlertGroup\", {\n description: \"Terraform project alert group\",\n projectId: fooProject.id,\n groupIntervalSeconds: 300,\n repeatIntervalSeconds: 3600,\n});\n// Create a new Rancher2 Project Alert Rule\nconst fooProjectAlertRule = new rancher2.ProjectAlertRule(\"fooProjectAlertRule\", {\n projectId: fooProjectAlertGroup.projectId,\n groupId: fooProjectAlertGroup.id,\n groupIntervalSeconds: 600,\n repeatIntervalSeconds: 6000,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Project\nfoo_project = rancher2.Project(\"fooProject\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform project \",\n resource_quota=rancher2.ProjectResourceQuotaArgs(\n project_limit=rancher2.ProjectResourceQuotaProjectLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"2000Mi\",\n requests_storage=\"2Gi\",\n ),\n namespace_default_limit=rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs(\n limits_cpu=\"500m\",\n limits_memory=\"500Mi\",\n requests_storage=\"1Gi\",\n ),\n ),\n container_resource_limit=rancher2.ProjectContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ))\n# Create a new Rancher2 Project Alert Group\nfoo_project_alert_group = rancher2.ProjectAlertGroup(\"fooProjectAlertGroup\",\n description=\"Terraform project alert group\",\n project_id=foo_project.id,\n group_interval_seconds=300,\n repeat_interval_seconds=3600)\n# Create a new Rancher2 Project Alert Rule\nfoo_project_alert_rule = rancher2.ProjectAlertRule(\"fooProjectAlertRule\",\n project_id=foo_project_alert_group.project_id,\n group_id=foo_project_alert_group.id,\n group_interval_seconds=600,\n repeat_interval_seconds=6000)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Project\n var fooProject = new Rancher2.Project(\"fooProject\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform project \",\n ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs\n {\n ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"2000Mi\",\n RequestsStorage = \"2Gi\",\n },\n NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs\n {\n LimitsCpu = \"500m\",\n LimitsMemory = \"500Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n });\n\n // Create a new Rancher2 Project Alert Group\n var fooProjectAlertGroup = new Rancher2.ProjectAlertGroup(\"fooProjectAlertGroup\", new()\n {\n Description = \"Terraform project alert group\",\n ProjectId = fooProject.Id,\n GroupIntervalSeconds = 300,\n RepeatIntervalSeconds = 3600,\n });\n\n // Create a new Rancher2 Project Alert Rule\n var fooProjectAlertRule = new Rancher2.ProjectAlertRule(\"fooProjectAlertRule\", new()\n {\n ProjectId = fooProjectAlertGroup.ProjectId,\n GroupId = fooProjectAlertGroup.Id,\n GroupIntervalSeconds = 600,\n RepeatIntervalSeconds = 6000,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooProject, err := rancher2.NewProject(ctx, \"fooProject\", \u0026rancher2.ProjectArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform project \"),\n\t\t\tResourceQuota: \u0026rancher2.ProjectResourceQuotaArgs{\n\t\t\t\tProjectLimit: \u0026rancher2.ProjectResourceQuotaProjectLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"2000Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"2Gi\"),\n\t\t\t\t},\n\t\t\t\tNamespaceDefaultLimit: \u0026rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"500m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"500Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tContainerResourceLimit: \u0026rancher2.ProjectContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooProjectAlertGroup, err := rancher2.NewProjectAlertGroup(ctx, \"fooProjectAlertGroup\", \u0026rancher2.ProjectAlertGroupArgs{\n\t\t\tDescription: pulumi.String(\"Terraform project alert group\"),\n\t\t\tProjectId: fooProject.ID(),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewProjectAlertRule(ctx, \"fooProjectAlertRule\", \u0026rancher2.ProjectAlertRuleArgs{\n\t\t\tProjectId: fooProjectAlertGroup.ProjectId,\n\t\t\tGroupId: fooProjectAlertGroup.ID(),\n\t\t\tGroupIntervalSeconds: pulumi.Int(600),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(6000),\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.rancher2.Project;\nimport com.pulumi.rancher2.ProjectArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs;\nimport com.pulumi.rancher2.ProjectAlertGroup;\nimport com.pulumi.rancher2.ProjectAlertGroupArgs;\nimport com.pulumi.rancher2.ProjectAlertRule;\nimport com.pulumi.rancher2.ProjectAlertRuleArgs;\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 fooProject = new Project(\"fooProject\", ProjectArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform project \")\n .resourceQuota(ProjectResourceQuotaArgs.builder()\n .projectLimit(ProjectResourceQuotaProjectLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"2000Mi\")\n .requestsStorage(\"2Gi\")\n .build())\n .namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimitArgs.builder()\n .limitsCpu(\"500m\")\n .limitsMemory(\"500Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .containerResourceLimit(ProjectContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .build());\n\n var fooProjectAlertGroup = new ProjectAlertGroup(\"fooProjectAlertGroup\", ProjectAlertGroupArgs.builder() \n .description(\"Terraform project alert group\")\n .projectId(fooProject.id())\n .groupIntervalSeconds(300)\n .repeatIntervalSeconds(3600)\n .build());\n\n var fooProjectAlertRule = new ProjectAlertRule(\"fooProjectAlertRule\", ProjectAlertRuleArgs.builder() \n .projectId(fooProjectAlertGroup.projectId())\n .groupId(fooProjectAlertGroup.id())\n .groupIntervalSeconds(600)\n .repeatIntervalSeconds(6000)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Project\n fooProject:\n type: rancher2:Project\n properties:\n clusterId: \u003ccluster_id\u003e\n description: 'Terraform project '\n resourceQuota:\n projectLimit:\n limitsCpu: 2000m\n limitsMemory: 2000Mi\n requestsStorage: 2Gi\n namespaceDefaultLimit:\n limitsCpu: 500m\n limitsMemory: 500Mi\n requestsStorage: 1Gi\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n # Create a new Rancher2 Project Alert Group\n fooProjectAlertGroup:\n type: rancher2:ProjectAlertGroup\n properties:\n description: Terraform project alert group\n projectId: ${fooProject.id}\n groupIntervalSeconds: 300\n repeatIntervalSeconds: 3600\n # Create a new Rancher2 Project Alert Rule\n fooProjectAlertRule:\n type: rancher2:ProjectAlertRule\n properties:\n projectId: ${fooProjectAlertGroup.projectId}\n groupId: ${fooProjectAlertGroup.id}\n groupIntervalSeconds: 600\n repeatIntervalSeconds: 6000\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nProject Alert Rule can be imported using the Rancher project alert rule ID\n\n```sh\n $ pulumi import rancher2:index/projectAlertRule:ProjectAlertRule foo \u0026lt;project_alert_rule_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Project Alert Rule resource. This can be used to create Project Alert Rule for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new Rancher2 Project\nconst fooProject = new rancher2.Project(\"fooProject\", {\n clusterId: \"\u003ccluster_id\u003e\",\n description: \"Terraform project \",\n resourceQuota: {\n projectLimit: {\n limitsCpu: \"2000m\",\n limitsMemory: \"2000Mi\",\n requestsStorage: \"2Gi\",\n },\n namespaceDefaultLimit: {\n limitsCpu: \"500m\",\n limitsMemory: \"500Mi\",\n requestsStorage: \"1Gi\",\n },\n },\n containerResourceLimit: {\n limitsCpu: \"20m\",\n limitsMemory: \"20Mi\",\n requestsCpu: \"1m\",\n requestsMemory: \"1Mi\",\n },\n});\n// Create a new Rancher2 Project Alert Group\nconst fooProjectAlertGroup = new rancher2.ProjectAlertGroup(\"fooProjectAlertGroup\", {\n description: \"Terraform project alert group\",\n projectId: fooProject.id,\n groupIntervalSeconds: 300,\n repeatIntervalSeconds: 3600,\n});\n// Create a new Rancher2 Project Alert Rule\nconst fooProjectAlertRule = new rancher2.ProjectAlertRule(\"fooProjectAlertRule\", {\n projectId: fooProjectAlertGroup.projectId,\n groupId: fooProjectAlertGroup.id,\n groupIntervalSeconds: 600,\n repeatIntervalSeconds: 6000,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new Rancher2 Project\nfoo_project = rancher2.Project(\"fooProject\",\n cluster_id=\"\u003ccluster_id\u003e\",\n description=\"Terraform project \",\n resource_quota=rancher2.ProjectResourceQuotaArgs(\n project_limit=rancher2.ProjectResourceQuotaProjectLimitArgs(\n limits_cpu=\"2000m\",\n limits_memory=\"2000Mi\",\n requests_storage=\"2Gi\",\n ),\n namespace_default_limit=rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs(\n limits_cpu=\"500m\",\n limits_memory=\"500Mi\",\n requests_storage=\"1Gi\",\n ),\n ),\n container_resource_limit=rancher2.ProjectContainerResourceLimitArgs(\n limits_cpu=\"20m\",\n limits_memory=\"20Mi\",\n requests_cpu=\"1m\",\n requests_memory=\"1Mi\",\n ))\n# Create a new Rancher2 Project Alert Group\nfoo_project_alert_group = rancher2.ProjectAlertGroup(\"fooProjectAlertGroup\",\n description=\"Terraform project alert group\",\n project_id=foo_project.id,\n group_interval_seconds=300,\n repeat_interval_seconds=3600)\n# Create a new Rancher2 Project Alert Rule\nfoo_project_alert_rule = rancher2.ProjectAlertRule(\"fooProjectAlertRule\",\n project_id=foo_project_alert_group.project_id,\n group_id=foo_project_alert_group.id,\n group_interval_seconds=600,\n repeat_interval_seconds=6000)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Rancher2 Project\n var fooProject = new Rancher2.Project(\"fooProject\", new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Description = \"Terraform project \",\n ResourceQuota = new Rancher2.Inputs.ProjectResourceQuotaArgs\n {\n ProjectLimit = new Rancher2.Inputs.ProjectResourceQuotaProjectLimitArgs\n {\n LimitsCpu = \"2000m\",\n LimitsMemory = \"2000Mi\",\n RequestsStorage = \"2Gi\",\n },\n NamespaceDefaultLimit = new Rancher2.Inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs\n {\n LimitsCpu = \"500m\",\n LimitsMemory = \"500Mi\",\n RequestsStorage = \"1Gi\",\n },\n },\n ContainerResourceLimit = new Rancher2.Inputs.ProjectContainerResourceLimitArgs\n {\n LimitsCpu = \"20m\",\n LimitsMemory = \"20Mi\",\n RequestsCpu = \"1m\",\n RequestsMemory = \"1Mi\",\n },\n });\n\n // Create a new Rancher2 Project Alert Group\n var fooProjectAlertGroup = new Rancher2.ProjectAlertGroup(\"fooProjectAlertGroup\", new()\n {\n Description = \"Terraform project alert group\",\n ProjectId = fooProject.Id,\n GroupIntervalSeconds = 300,\n RepeatIntervalSeconds = 3600,\n });\n\n // Create a new Rancher2 Project Alert Rule\n var fooProjectAlertRule = new Rancher2.ProjectAlertRule(\"fooProjectAlertRule\", new()\n {\n ProjectId = fooProjectAlertGroup.ProjectId,\n GroupId = fooProjectAlertGroup.Id,\n GroupIntervalSeconds = 600,\n RepeatIntervalSeconds = 6000,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooProject, err := rancher2.NewProject(ctx, \"fooProject\", \u0026rancher2.ProjectArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster_id\u003e\"),\n\t\t\tDescription: pulumi.String(\"Terraform project \"),\n\t\t\tResourceQuota: \u0026rancher2.ProjectResourceQuotaArgs{\n\t\t\t\tProjectLimit: \u0026rancher2.ProjectResourceQuotaProjectLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"2000m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"2000Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"2Gi\"),\n\t\t\t\t},\n\t\t\t\tNamespaceDefaultLimit: \u0026rancher2.ProjectResourceQuotaNamespaceDefaultLimitArgs{\n\t\t\t\t\tLimitsCpu: pulumi.String(\"500m\"),\n\t\t\t\t\tLimitsMemory: pulumi.String(\"500Mi\"),\n\t\t\t\t\tRequestsStorage: pulumi.String(\"1Gi\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tContainerResourceLimit: \u0026rancher2.ProjectContainerResourceLimitArgs{\n\t\t\t\tLimitsCpu: pulumi.String(\"20m\"),\n\t\t\t\tLimitsMemory: pulumi.String(\"20Mi\"),\n\t\t\t\tRequestsCpu: pulumi.String(\"1m\"),\n\t\t\t\tRequestsMemory: pulumi.String(\"1Mi\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfooProjectAlertGroup, err := rancher2.NewProjectAlertGroup(ctx, \"fooProjectAlertGroup\", \u0026rancher2.ProjectAlertGroupArgs{\n\t\t\tDescription: pulumi.String(\"Terraform project alert group\"),\n\t\t\tProjectId: fooProject.ID(),\n\t\t\tGroupIntervalSeconds: pulumi.Int(300),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(3600),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewProjectAlertRule(ctx, \"fooProjectAlertRule\", \u0026rancher2.ProjectAlertRuleArgs{\n\t\t\tProjectId: fooProjectAlertGroup.ProjectId,\n\t\t\tGroupId: fooProjectAlertGroup.ID(),\n\t\t\tGroupIntervalSeconds: pulumi.Int(600),\n\t\t\tRepeatIntervalSeconds: pulumi.Int(6000),\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.rancher2.Project;\nimport com.pulumi.rancher2.ProjectArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs;\nimport com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs;\nimport com.pulumi.rancher2.ProjectAlertGroup;\nimport com.pulumi.rancher2.ProjectAlertGroupArgs;\nimport com.pulumi.rancher2.ProjectAlertRule;\nimport com.pulumi.rancher2.ProjectAlertRuleArgs;\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 fooProject = new Project(\"fooProject\", ProjectArgs.builder() \n .clusterId(\"\u003ccluster_id\u003e\")\n .description(\"Terraform project \")\n .resourceQuota(ProjectResourceQuotaArgs.builder()\n .projectLimit(ProjectResourceQuotaProjectLimitArgs.builder()\n .limitsCpu(\"2000m\")\n .limitsMemory(\"2000Mi\")\n .requestsStorage(\"2Gi\")\n .build())\n .namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimitArgs.builder()\n .limitsCpu(\"500m\")\n .limitsMemory(\"500Mi\")\n .requestsStorage(\"1Gi\")\n .build())\n .build())\n .containerResourceLimit(ProjectContainerResourceLimitArgs.builder()\n .limitsCpu(\"20m\")\n .limitsMemory(\"20Mi\")\n .requestsCpu(\"1m\")\n .requestsMemory(\"1Mi\")\n .build())\n .build());\n\n var fooProjectAlertGroup = new ProjectAlertGroup(\"fooProjectAlertGroup\", ProjectAlertGroupArgs.builder() \n .description(\"Terraform project alert group\")\n .projectId(fooProject.id())\n .groupIntervalSeconds(300)\n .repeatIntervalSeconds(3600)\n .build());\n\n var fooProjectAlertRule = new ProjectAlertRule(\"fooProjectAlertRule\", ProjectAlertRuleArgs.builder() \n .projectId(fooProjectAlertGroup.projectId())\n .groupId(fooProjectAlertGroup.id())\n .groupIntervalSeconds(600)\n .repeatIntervalSeconds(6000)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Rancher2 Project\n fooProject:\n type: rancher2:Project\n properties:\n clusterId: \u003ccluster_id\u003e\n description: 'Terraform project '\n resourceQuota:\n projectLimit:\n limitsCpu: 2000m\n limitsMemory: 2000Mi\n requestsStorage: 2Gi\n namespaceDefaultLimit:\n limitsCpu: 500m\n limitsMemory: 500Mi\n requestsStorage: 1Gi\n containerResourceLimit:\n limitsCpu: 20m\n limitsMemory: 20Mi\n requestsCpu: 1m\n requestsMemory: 1Mi\n # Create a new Rancher2 Project Alert Group\n fooProjectAlertGroup:\n type: rancher2:ProjectAlertGroup\n properties:\n description: Terraform project alert group\n projectId: ${fooProject.id}\n groupIntervalSeconds: 300\n repeatIntervalSeconds: 3600\n # Create a new Rancher2 Project Alert Rule\n fooProjectAlertRule:\n type: rancher2:ProjectAlertRule\n properties:\n projectId: ${fooProjectAlertGroup.projectId}\n groupId: ${fooProjectAlertGroup.id}\n groupIntervalSeconds: 600\n repeatIntervalSeconds: 6000\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nProject Alert Rule can be imported using the Rancher project alert rule ID\n\n```sh\n $ pulumi import rancher2:index/projectAlertRule:ProjectAlertRule foo \u0026lt;project_alert_rule_id\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -31964,7 +31302,7 @@ } }, "rancher2:index/projectRoleTemplateBinding:ProjectRoleTemplateBinding": { - "description": "Provides a Rancher v2 Project Role Template Binding resource. This can be used to create Project Role Template Bindings for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Project Role Template Binding\nconst foo = new rancher2.ProjectRoleTemplateBinding(\"foo\", {\n projectId: \"\u003cproject_id\u003e\",\n roleTemplateId: \"\u003crole_template_id\u003e\",\n userId: \"\u003cuser_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Project Role Template Binding\nfoo = rancher2.ProjectRoleTemplateBinding(\"foo\",\n project_id=\"\u003cproject_id\u003e\",\n role_template_id=\"\u003crole_template_id\u003e\",\n user_id=\"\u003cuser_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project Role Template Binding\n var foo = new Rancher2.ProjectRoleTemplateBinding(\"foo\", new()\n {\n ProjectId = \"\u003cproject_id\u003e\",\n RoleTemplateId = \"\u003crole_template_id\u003e\",\n UserId = \"\u003cuser_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewProjectRoleTemplateBinding(ctx, \"foo\", \u0026rancher2.ProjectRoleTemplateBindingArgs{\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tRoleTemplateId: pulumi.String(\"\u003crole_template_id\u003e\"),\n\t\t\tUserId: pulumi.String(\"\u003cuser_id\u003e\"),\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.rancher2.ProjectRoleTemplateBinding;\nimport com.pulumi.rancher2.ProjectRoleTemplateBindingArgs;\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 foo = new ProjectRoleTemplateBinding(\"foo\", ProjectRoleTemplateBindingArgs.builder() \n .projectId(\"\u003cproject_id\u003e\")\n .roleTemplateId(\"\u003crole_template_id\u003e\")\n .userId(\"\u003cuser_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project Role Template Binding\n foo:\n type: rancher2:ProjectRoleTemplateBinding\n properties:\n projectId: \u003cproject_id\u003e\n roleTemplateId: \u003crole_template_id\u003e\n userId: \u003cuser_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nProject Role Template Bindings can be imported using the Rancher Project Role Template Binding ID\n\n```sh\n $ pulumi import rancher2:index/projectRoleTemplateBinding:ProjectRoleTemplateBinding foo \u0026lt;project_role_template_binding_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Project Role Template Binding resource. This can be used to create Project Role Template Bindings for Rancher v2 environments and retrieve their information.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Project Role Template Binding\nconst foo = new rancher2.ProjectRoleTemplateBinding(\"foo\", {\n projectId: \"\u003cproject_id\u003e\",\n roleTemplateId: \"\u003crole_template_id\u003e\",\n userId: \"\u003cuser_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Project Role Template Binding\nfoo = rancher2.ProjectRoleTemplateBinding(\"foo\",\n project_id=\"\u003cproject_id\u003e\",\n role_template_id=\"\u003crole_template_id\u003e\",\n user_id=\"\u003cuser_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project Role Template Binding\n var foo = new Rancher2.ProjectRoleTemplateBinding(\"foo\", new()\n {\n ProjectId = \"\u003cproject_id\u003e\",\n RoleTemplateId = \"\u003crole_template_id\u003e\",\n UserId = \"\u003cuser_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewProjectRoleTemplateBinding(ctx, \"foo\", \u0026rancher2.ProjectRoleTemplateBindingArgs{\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tRoleTemplateId: pulumi.String(\"\u003crole_template_id\u003e\"),\n\t\t\tUserId: pulumi.String(\"\u003cuser_id\u003e\"),\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.rancher2.ProjectRoleTemplateBinding;\nimport com.pulumi.rancher2.ProjectRoleTemplateBindingArgs;\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 foo = new ProjectRoleTemplateBinding(\"foo\", ProjectRoleTemplateBindingArgs.builder() \n .projectId(\"\u003cproject_id\u003e\")\n .roleTemplateId(\"\u003crole_template_id\u003e\")\n .userId(\"\u003cuser_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project Role Template Binding\n foo:\n type: rancher2:ProjectRoleTemplateBinding\n properties:\n projectId: \u003cproject_id\u003e\n roleTemplateId: \u003crole_template_id\u003e\n userId: \u003cuser_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nProject Role Template Bindings can be imported using the Rancher Project Role Template Binding ID\n\n```sh\n $ pulumi import rancher2:index/projectRoleTemplateBinding:ProjectRoleTemplateBinding foo \u0026lt;project_role_template_binding_id\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -31994,7 +31332,7 @@ }, "projectId": { "type": "string", - "description": "The project id where bind project role template (string)\n" + "description": "The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string)\n" }, "roleTemplateId": { "type": "string", @@ -32052,7 +31390,7 @@ }, "projectId": { "type": "string", - "description": "The project id where bind project role template (string)\n", + "description": "The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string)\n", "willReplaceOnChanges": true }, "roleTemplateId": { @@ -32109,7 +31447,7 @@ }, "projectId": { "type": "string", - "description": "The project id where bind project role template (string)\n", + "description": "The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string)\n", "willReplaceOnChanges": true }, "roleTemplateId": { @@ -32132,7 +31470,7 @@ } }, "rancher2:index/registry:Registry": { - "description": "Provides a Rancher v2 Registry resource. This resource creates Kubernetes secrets with the type `kubernetes.io/dockerconfigjson` for authenticating against Docker registries for Rancher v2 environments and retrieving their information.\n\nDepending on the availability, there are 2 types of Rancher v2 Docker registry resources:\n- Project registry resource: Available to all namespaces in the `project_id`.\n- Namespaced registry resource: Available to `namespace_id` in the `project_id`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Project Registry\nconst foo = new rancher2.Registry(\"foo\", {\n description: \"Terraform registry foo\",\n projectId: \"\u003cproject_id\u003e\",\n registries: [{\n address: \"test.io\",\n password: \"pass\",\n username: \"user\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Project Registry\nfoo = rancher2.Registry(\"foo\",\n description=\"Terraform registry foo\",\n project_id=\"\u003cproject_id\u003e\",\n registries=[rancher2.RegistryRegistryArgs(\n address=\"test.io\",\n password=\"pass\",\n username=\"user\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project Registry\n var foo = new Rancher2.Registry(\"foo\", new()\n {\n Description = \"Terraform registry foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n Registries = new[]\n {\n new Rancher2.Inputs.RegistryRegistryArgs\n {\n Address = \"test.io\",\n Password = \"pass\",\n Username = \"user\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewRegistry(ctx, \"foo\", \u0026rancher2.RegistryArgs{\n\t\t\tDescription: pulumi.String(\"Terraform registry foo\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tRegistries: rancher2.RegistryRegistryArray{\n\t\t\t\t\u0026rancher2.RegistryRegistryArgs{\n\t\t\t\t\tAddress: pulumi.String(\"test.io\"),\n\t\t\t\t\tPassword: pulumi.String(\"pass\"),\n\t\t\t\t\tUsername: pulumi.String(\"user\"),\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.rancher2.Registry;\nimport com.pulumi.rancher2.RegistryArgs;\nimport com.pulumi.rancher2.inputs.RegistryRegistryArgs;\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 foo = new Registry(\"foo\", RegistryArgs.builder() \n .description(\"Terraform registry foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .registries(RegistryRegistryArgs.builder()\n .address(\"test.io\")\n .password(\"pass\")\n .username(\"user\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project Registry\n foo:\n type: rancher2:Registry\n properties:\n description: Terraform registry foo\n projectId: \u003cproject_id\u003e\n registries:\n - address: test.io\n password: pass\n username: user\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Namespaced Registry\nconst foo = new rancher2.Registry(\"foo\", {\n description: \"Terraform registry foo\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n registries: [{\n address: \"test.io\",\n password: \"pass\",\n username: \"user2\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Namespaced Registry\nfoo = rancher2.Registry(\"foo\",\n description=\"Terraform registry foo\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n project_id=\"\u003cproject_id\u003e\",\n registries=[rancher2.RegistryRegistryArgs(\n address=\"test.io\",\n password=\"pass\",\n username=\"user2\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Namespaced Registry\n var foo = new Rancher2.Registry(\"foo\", new()\n {\n Description = \"Terraform registry foo\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n Registries = new[]\n {\n new Rancher2.Inputs.RegistryRegistryArgs\n {\n Address = \"test.io\",\n Password = \"pass\",\n Username = \"user2\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewRegistry(ctx, \"foo\", \u0026rancher2.RegistryArgs{\n\t\t\tDescription: pulumi.String(\"Terraform registry foo\"),\n\t\t\tNamespaceId: pulumi.String(\"\u003cnamespace_id\u003e\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tRegistries: rancher2.RegistryRegistryArray{\n\t\t\t\t\u0026rancher2.RegistryRegistryArgs{\n\t\t\t\t\tAddress: pulumi.String(\"test.io\"),\n\t\t\t\t\tPassword: pulumi.String(\"pass\"),\n\t\t\t\t\tUsername: pulumi.String(\"user2\"),\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.rancher2.Registry;\nimport com.pulumi.rancher2.RegistryArgs;\nimport com.pulumi.rancher2.inputs.RegistryRegistryArgs;\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 foo = new Registry(\"foo\", RegistryArgs.builder() \n .description(\"Terraform registry foo\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .registries(RegistryRegistryArgs.builder()\n .address(\"test.io\")\n .password(\"pass\")\n .username(\"user2\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Namespaced Registry\n foo:\n type: rancher2:Registry\n properties:\n description: Terraform registry foo\n namespaceId: \u003cnamespace_id\u003e\n projectId: \u003cproject_id\u003e\n registries:\n - address: test.io\n password: pass\n username: user2\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nRegistries can be imported using the registry ID in the format `\u003cnamespace_id\u003e.\u003cproject_id\u003e.\u003cregistry_id\u003e`\n\n```sh\n $ pulumi import rancher2:index/registry:Registry foo \u0026lt;namespace_id\u0026gt;.\u0026lt;project_id\u0026gt;.\u0026lt;registry_id\u0026gt;\n```\n `\u003cnamespace_id\u003e` is optional, just needed for namespaced registry.\n\n", + "description": "Provides a Rancher v2 Registry resource. This resource creates Kubernetes secrets with the type `kubernetes.io/dockerconfigjson` for authenticating against Docker registries for Rancher v2 environments and retrieving their information.\n\nDepending on the availability, there are 2 types of Rancher v2 Docker registry resources:\n- Project registry resource: Available to all namespaces in the `project_id`.\n- Namespaced registry resource: Available to `namespace_id` in the `project_id`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Project Registry\nconst foo = new rancher2.Registry(\"foo\", {\n description: \"Terraform registry foo\",\n projectId: \"\u003cproject_id\u003e\",\n registries: [{\n address: \"test.io\",\n password: \"pass\",\n username: \"user\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Project Registry\nfoo = rancher2.Registry(\"foo\",\n description=\"Terraform registry foo\",\n project_id=\"\u003cproject_id\u003e\",\n registries=[rancher2.RegistryRegistryArgs(\n address=\"test.io\",\n password=\"pass\",\n username=\"user\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Project Registry\n var foo = new Rancher2.Registry(\"foo\", new()\n {\n Description = \"Terraform registry foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n Registries = new[]\n {\n new Rancher2.Inputs.RegistryRegistryArgs\n {\n Address = \"test.io\",\n Password = \"pass\",\n Username = \"user\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewRegistry(ctx, \"foo\", \u0026rancher2.RegistryArgs{\n\t\t\tDescription: pulumi.String(\"Terraform registry foo\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tRegistries: rancher2.RegistryRegistryArray{\n\t\t\t\t\u0026rancher2.RegistryRegistryArgs{\n\t\t\t\t\tAddress: pulumi.String(\"test.io\"),\n\t\t\t\t\tPassword: pulumi.String(\"pass\"),\n\t\t\t\t\tUsername: pulumi.String(\"user\"),\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.rancher2.Registry;\nimport com.pulumi.rancher2.RegistryArgs;\nimport com.pulumi.rancher2.inputs.RegistryRegistryArgs;\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 foo = new Registry(\"foo\", RegistryArgs.builder() \n .description(\"Terraform registry foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .registries(RegistryRegistryArgs.builder()\n .address(\"test.io\")\n .password(\"pass\")\n .username(\"user\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Project Registry\n foo:\n type: rancher2:Registry\n properties:\n description: Terraform registry foo\n projectId: \u003cproject_id\u003e\n registries:\n - address: test.io\n password: pass\n username: user\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Namespaced Registry\nconst foo = new rancher2.Registry(\"foo\", {\n description: \"Terraform registry foo\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n registries: [{\n address: \"test.io\",\n password: \"pass\",\n username: \"user2\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Namespaced Registry\nfoo = rancher2.Registry(\"foo\",\n description=\"Terraform registry foo\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n project_id=\"\u003cproject_id\u003e\",\n registries=[rancher2.RegistryRegistryArgs(\n address=\"test.io\",\n password=\"pass\",\n username=\"user2\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Namespaced Registry\n var foo = new Rancher2.Registry(\"foo\", new()\n {\n Description = \"Terraform registry foo\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n Registries = new[]\n {\n new Rancher2.Inputs.RegistryRegistryArgs\n {\n Address = \"test.io\",\n Password = \"pass\",\n Username = \"user2\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewRegistry(ctx, \"foo\", \u0026rancher2.RegistryArgs{\n\t\t\tDescription: pulumi.String(\"Terraform registry foo\"),\n\t\t\tNamespaceId: pulumi.String(\"\u003cnamespace_id\u003e\"),\n\t\t\tProjectId: pulumi.String(\"\u003cproject_id\u003e\"),\n\t\t\tRegistries: rancher2.RegistryRegistryArray{\n\t\t\t\t\u0026rancher2.RegistryRegistryArgs{\n\t\t\t\t\tAddress: pulumi.String(\"test.io\"),\n\t\t\t\t\tPassword: pulumi.String(\"pass\"),\n\t\t\t\t\tUsername: pulumi.String(\"user2\"),\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.rancher2.Registry;\nimport com.pulumi.rancher2.RegistryArgs;\nimport com.pulumi.rancher2.inputs.RegistryRegistryArgs;\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 foo = new Registry(\"foo\", RegistryArgs.builder() \n .description(\"Terraform registry foo\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .registries(RegistryRegistryArgs.builder()\n .address(\"test.io\")\n .password(\"pass\")\n .username(\"user2\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Namespaced Registry\n foo:\n type: rancher2:Registry\n properties:\n description: Terraform registry foo\n namespaceId: \u003cnamespace_id\u003e\n projectId: \u003cproject_id\u003e\n registries:\n - address: test.io\n password: pass\n username: user2\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nRegistries can be imported using the registry ID in the format `\u003cnamespace_id\u003e.\u003cproject_id\u003e.\u003cregistry_id\u003e`\n\n```sh\n $ pulumi import rancher2:index/registry:Registry foo \u0026lt;namespace_id\u0026gt;.\u0026lt;project_id\u0026gt;.\u0026lt;registry_id\u0026gt;\n```\n `\u003cnamespace_id\u003e` is optional, just needed for namespaced registry.\n\n", "properties": { "annotations": { "type": "object", @@ -32272,219 +31610,8 @@ "type": "object" } }, - "rancher2:index/roleTempalte:RoleTempalte": { - "description": "Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. \n\n`cluster` and `project` scopes are supported for role templates.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 cluster Role Template\nconst foo = new rancher2.RoleTemplate(\"foo\", {\n context: \"cluster\",\n defaultRole: true,\n description: \"Terraform role template acceptance test\",\n rules: [{\n apiGroups: [\"*\"],\n resources: [\"secrets\"],\n verbs: [\"create\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 cluster Role Template\nfoo = rancher2.RoleTemplate(\"foo\",\n context=\"cluster\",\n default_role=True,\n description=\"Terraform role template acceptance test\",\n rules=[rancher2.RoleTemplateRuleArgs(\n api_groups=[\"*\"],\n resources=[\"secrets\"],\n verbs=[\"create\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 cluster Role Template\n var foo = new Rancher2.RoleTemplate(\"foo\", new()\n {\n Context = \"cluster\",\n DefaultRole = true,\n Description = \"Terraform role template acceptance test\",\n Rules = new[]\n {\n new Rancher2.Inputs.RoleTemplateRuleArgs\n {\n ApiGroups = new[]\n {\n \"*\",\n },\n Resources = new[]\n {\n \"secrets\",\n },\n Verbs = new[]\n {\n \"create\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewRoleTemplate(ctx, \"foo\", \u0026rancher2.RoleTemplateArgs{\n\t\t\tContext: pulumi.String(\"cluster\"),\n\t\t\tDefaultRole: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Terraform role template acceptance test\"),\n\t\t\tRules: rancher2.RoleTemplateRuleArray{\n\t\t\t\t\u0026rancher2.RoleTemplateRuleArgs{\n\t\t\t\t\tApiGroups: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t\t},\n\t\t\t\t\tResources: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"secrets\"),\n\t\t\t\t\t},\n\t\t\t\t\tVerbs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"create\"),\n\t\t\t\t\t},\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.rancher2.RoleTemplate;\nimport com.pulumi.rancher2.RoleTemplateArgs;\nimport com.pulumi.rancher2.inputs.RoleTemplateRuleArgs;\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 foo = new RoleTemplate(\"foo\", RoleTemplateArgs.builder() \n .context(\"cluster\")\n .defaultRole(true)\n .description(\"Terraform role template acceptance test\")\n .rules(RoleTemplateRuleArgs.builder()\n .apiGroups(\"*\")\n .resources(\"secrets\")\n .verbs(\"create\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 cluster Role Template\n foo:\n type: rancher2:RoleTemplate\n properties:\n context: cluster\n defaultRole: true\n description: Terraform role template acceptance test\n rules:\n - apiGroups:\n - '*'\n resources:\n - secrets\n verbs:\n - create\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 project Role Template\nconst foo = new rancher2.RoleTemplate(\"foo\", {\n context: \"project\",\n defaultRole: true,\n description: \"Terraform role template acceptance test\",\n rules: [{\n apiGroups: [\"*\"],\n resources: [\"secrets\"],\n verbs: [\"create\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 project Role Template\nfoo = rancher2.RoleTemplate(\"foo\",\n context=\"project\",\n default_role=True,\n description=\"Terraform role template acceptance test\",\n rules=[rancher2.RoleTemplateRuleArgs(\n api_groups=[\"*\"],\n resources=[\"secrets\"],\n verbs=[\"create\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 project Role Template\n var foo = new Rancher2.RoleTemplate(\"foo\", new()\n {\n Context = \"project\",\n DefaultRole = true,\n Description = \"Terraform role template acceptance test\",\n Rules = new[]\n {\n new Rancher2.Inputs.RoleTemplateRuleArgs\n {\n ApiGroups = new[]\n {\n \"*\",\n },\n Resources = new[]\n {\n \"secrets\",\n },\n Verbs = new[]\n {\n \"create\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewRoleTemplate(ctx, \"foo\", \u0026rancher2.RoleTemplateArgs{\n\t\t\tContext: pulumi.String(\"project\"),\n\t\t\tDefaultRole: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Terraform role template acceptance test\"),\n\t\t\tRules: rancher2.RoleTemplateRuleArray{\n\t\t\t\t\u0026rancher2.RoleTemplateRuleArgs{\n\t\t\t\t\tApiGroups: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t\t},\n\t\t\t\t\tResources: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"secrets\"),\n\t\t\t\t\t},\n\t\t\t\t\tVerbs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"create\"),\n\t\t\t\t\t},\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.rancher2.RoleTemplate;\nimport com.pulumi.rancher2.RoleTemplateArgs;\nimport com.pulumi.rancher2.inputs.RoleTemplateRuleArgs;\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 foo = new RoleTemplate(\"foo\", RoleTemplateArgs.builder() \n .context(\"project\")\n .defaultRole(true)\n .description(\"Terraform role template acceptance test\")\n .rules(RoleTemplateRuleArgs.builder()\n .apiGroups(\"*\")\n .resources(\"secrets\")\n .verbs(\"create\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 project Role Template\n foo:\n type: rancher2:RoleTemplate\n properties:\n context: project\n defaultRole: true\n description: Terraform role template acceptance test\n rules:\n - apiGroups:\n - '*'\n resources:\n - secrets\n verbs:\n - create\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nRole Template can be imported using the Rancher Role Template ID\n\n```sh\n $ pulumi import rancher2:index/roleTempalte:RoleTempalte foo \u0026lt;role_template_id\u0026gt;\n```\n ", - "properties": { - "administrative": { - "type": "boolean", - "description": "Administrative role template. Default `false` (bool)\n" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Annotations for role template object (map)\n" - }, - "builtin": { - "type": "boolean", - "description": "(Computed) Builtin role template (string)\n" - }, - "context": { - "type": "string", - "description": "Role template context. `cluster` and `project` values are supported. Default: `cluster` (string)\n" - }, - "defaultRole": { - "type": "boolean", - "description": "Default role template for new created cluster or project. Default `false` (bool)\n" - }, - "description": { - "type": "string", - "description": "Role template description (string)\n" - }, - "external": { - "type": "boolean", - "description": "External role template. Default `false` (bool)\n" - }, - "hidden": { - "type": "boolean", - "description": "Hidden role template. Default `false` (bool)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Labels for role template object (map)\n" - }, - "locked": { - "type": "boolean", - "description": "Locked role template. Default `false` (bool)\n" - }, - "name": { - "type": "string", - "description": "Role template name (string)\n" - }, - "roleTemplateIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Inherit role template IDs (list)\n" - }, - "rules": { - "type": "array", - "items": { - "$ref": "#/types/rancher2:index/RoleTempalteRule:RoleTempalteRule" - }, - "description": "Role template policy rules (list)\n" - } - }, - "required": [ - "annotations", - "builtin", - "description", - "labels", - "name", - "roleTemplateIds", - "rules" - ], - "inputProperties": { - "administrative": { - "type": "boolean", - "description": "Administrative role template. Default `false` (bool)\n" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Annotations for role template object (map)\n" - }, - "context": { - "type": "string", - "description": "Role template context. `cluster` and `project` values are supported. Default: `cluster` (string)\n" - }, - "defaultRole": { - "type": "boolean", - "description": "Default role template for new created cluster or project. Default `false` (bool)\n" - }, - "description": { - "type": "string", - "description": "Role template description (string)\n" - }, - "external": { - "type": "boolean", - "description": "External role template. Default `false` (bool)\n" - }, - "hidden": { - "type": "boolean", - "description": "Hidden role template. Default `false` (bool)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Labels for role template object (map)\n" - }, - "locked": { - "type": "boolean", - "description": "Locked role template. Default `false` (bool)\n" - }, - "name": { - "type": "string", - "description": "Role template name (string)\n" - }, - "roleTemplateIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Inherit role template IDs (list)\n" - }, - "rules": { - "type": "array", - "items": { - "$ref": "#/types/rancher2:index/RoleTempalteRule:RoleTempalteRule" - }, - "description": "Role template policy rules (list)\n" - } - }, - "stateInputs": { - "description": "Input properties used for looking up and filtering RoleTempalte resources.\n", - "properties": { - "administrative": { - "type": "boolean", - "description": "Administrative role template. Default `false` (bool)\n" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Annotations for role template object (map)\n" - }, - "builtin": { - "type": "boolean", - "description": "(Computed) Builtin role template (string)\n" - }, - "context": { - "type": "string", - "description": "Role template context. `cluster` and `project` values are supported. Default: `cluster` (string)\n" - }, - "defaultRole": { - "type": "boolean", - "description": "Default role template for new created cluster or project. Default `false` (bool)\n" - }, - "description": { - "type": "string", - "description": "Role template description (string)\n" - }, - "external": { - "type": "boolean", - "description": "External role template. Default `false` (bool)\n" - }, - "hidden": { - "type": "boolean", - "description": "Hidden role template. Default `false` (bool)\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "Labels for role template object (map)\n" - }, - "locked": { - "type": "boolean", - "description": "Locked role template. Default `false` (bool)\n" - }, - "name": { - "type": "string", - "description": "Role template name (string)\n" - }, - "roleTemplateIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Inherit role template IDs (list)\n" - }, - "rules": { - "type": "array", - "items": { - "$ref": "#/types/rancher2:index/RoleTempalteRule:RoleTempalteRule" - }, - "description": "Role template policy rules (list)\n" - } - }, - "type": "object" - }, - "deprecationMessage": "rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate" - }, "rancher2:index/roleTemplate:RoleTemplate": { - "description": "Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. \n\n`cluster` and `project` scopes are supported for role templates.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 cluster Role Template\nconst foo = new rancher2.RoleTemplate(\"foo\", {\n context: \"cluster\",\n defaultRole: true,\n description: \"Terraform role template acceptance test\",\n rules: [{\n apiGroups: [\"*\"],\n resources: [\"secrets\"],\n verbs: [\"create\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 cluster Role Template\nfoo = rancher2.RoleTemplate(\"foo\",\n context=\"cluster\",\n default_role=True,\n description=\"Terraform role template acceptance test\",\n rules=[rancher2.RoleTemplateRuleArgs(\n api_groups=[\"*\"],\n resources=[\"secrets\"],\n verbs=[\"create\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 cluster Role Template\n var foo = new Rancher2.RoleTemplate(\"foo\", new()\n {\n Context = \"cluster\",\n DefaultRole = true,\n Description = \"Terraform role template acceptance test\",\n Rules = new[]\n {\n new Rancher2.Inputs.RoleTemplateRuleArgs\n {\n ApiGroups = new[]\n {\n \"*\",\n },\n Resources = new[]\n {\n \"secrets\",\n },\n Verbs = new[]\n {\n \"create\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewRoleTemplate(ctx, \"foo\", \u0026rancher2.RoleTemplateArgs{\n\t\t\tContext: pulumi.String(\"cluster\"),\n\t\t\tDefaultRole: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Terraform role template acceptance test\"),\n\t\t\tRules: rancher2.RoleTemplateRuleArray{\n\t\t\t\t\u0026rancher2.RoleTemplateRuleArgs{\n\t\t\t\t\tApiGroups: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t\t},\n\t\t\t\t\tResources: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"secrets\"),\n\t\t\t\t\t},\n\t\t\t\t\tVerbs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"create\"),\n\t\t\t\t\t},\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.rancher2.RoleTemplate;\nimport com.pulumi.rancher2.RoleTemplateArgs;\nimport com.pulumi.rancher2.inputs.RoleTemplateRuleArgs;\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 foo = new RoleTemplate(\"foo\", RoleTemplateArgs.builder() \n .context(\"cluster\")\n .defaultRole(true)\n .description(\"Terraform role template acceptance test\")\n .rules(RoleTemplateRuleArgs.builder()\n .apiGroups(\"*\")\n .resources(\"secrets\")\n .verbs(\"create\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 cluster Role Template\n foo:\n type: rancher2:RoleTemplate\n properties:\n context: cluster\n defaultRole: true\n description: Terraform role template acceptance test\n rules:\n - apiGroups:\n - '*'\n resources:\n - secrets\n verbs:\n - create\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 project Role Template\nconst foo = new rancher2.RoleTemplate(\"foo\", {\n context: \"project\",\n defaultRole: true,\n description: \"Terraform role template acceptance test\",\n rules: [{\n apiGroups: [\"*\"],\n resources: [\"secrets\"],\n verbs: [\"create\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 project Role Template\nfoo = rancher2.RoleTemplate(\"foo\",\n context=\"project\",\n default_role=True,\n description=\"Terraform role template acceptance test\",\n rules=[rancher2.RoleTemplateRuleArgs(\n api_groups=[\"*\"],\n resources=[\"secrets\"],\n verbs=[\"create\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 project Role Template\n var foo = new Rancher2.RoleTemplate(\"foo\", new()\n {\n Context = \"project\",\n DefaultRole = true,\n Description = \"Terraform role template acceptance test\",\n Rules = new[]\n {\n new Rancher2.Inputs.RoleTemplateRuleArgs\n {\n ApiGroups = new[]\n {\n \"*\",\n },\n Resources = new[]\n {\n \"secrets\",\n },\n Verbs = new[]\n {\n \"create\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewRoleTemplate(ctx, \"foo\", \u0026rancher2.RoleTemplateArgs{\n\t\t\tContext: pulumi.String(\"project\"),\n\t\t\tDefaultRole: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Terraform role template acceptance test\"),\n\t\t\tRules: rancher2.RoleTemplateRuleArray{\n\t\t\t\t\u0026rancher2.RoleTemplateRuleArgs{\n\t\t\t\t\tApiGroups: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t\t},\n\t\t\t\t\tResources: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"secrets\"),\n\t\t\t\t\t},\n\t\t\t\t\tVerbs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"create\"),\n\t\t\t\t\t},\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.rancher2.RoleTemplate;\nimport com.pulumi.rancher2.RoleTemplateArgs;\nimport com.pulumi.rancher2.inputs.RoleTemplateRuleArgs;\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 foo = new RoleTemplate(\"foo\", RoleTemplateArgs.builder() \n .context(\"project\")\n .defaultRole(true)\n .description(\"Terraform role template acceptance test\")\n .rules(RoleTemplateRuleArgs.builder()\n .apiGroups(\"*\")\n .resources(\"secrets\")\n .verbs(\"create\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 project Role Template\n foo:\n type: rancher2:RoleTemplate\n properties:\n context: project\n defaultRole: true\n description: Terraform role template acceptance test\n rules:\n - apiGroups:\n - '*'\n resources:\n - secrets\n verbs:\n - create\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nRole Template can be imported using the Rancher Role Template ID\n\n```sh\n $ pulumi import rancher2:index/roleTemplate:RoleTemplate foo \u0026lt;role_template_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. \n\n`cluster` and `project` scopes are supported for role templates.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 cluster Role Template\nconst foo = new rancher2.RoleTemplate(\"foo\", {\n context: \"cluster\",\n defaultRole: true,\n description: \"Terraform role template acceptance test\",\n rules: [{\n apiGroups: [\"*\"],\n resources: [\"secrets\"],\n verbs: [\"create\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 cluster Role Template\nfoo = rancher2.RoleTemplate(\"foo\",\n context=\"cluster\",\n default_role=True,\n description=\"Terraform role template acceptance test\",\n rules=[rancher2.RoleTemplateRuleArgs(\n api_groups=[\"*\"],\n resources=[\"secrets\"],\n verbs=[\"create\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 cluster Role Template\n var foo = new Rancher2.RoleTemplate(\"foo\", new()\n {\n Context = \"cluster\",\n DefaultRole = true,\n Description = \"Terraform role template acceptance test\",\n Rules = new[]\n {\n new Rancher2.Inputs.RoleTemplateRuleArgs\n {\n ApiGroups = new[]\n {\n \"*\",\n },\n Resources = new[]\n {\n \"secrets\",\n },\n Verbs = new[]\n {\n \"create\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewRoleTemplate(ctx, \"foo\", \u0026rancher2.RoleTemplateArgs{\n\t\t\tContext: pulumi.String(\"cluster\"),\n\t\t\tDefaultRole: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Terraform role template acceptance test\"),\n\t\t\tRules: rancher2.RoleTemplateRuleArray{\n\t\t\t\t\u0026rancher2.RoleTemplateRuleArgs{\n\t\t\t\t\tApiGroups: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t\t},\n\t\t\t\t\tResources: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"secrets\"),\n\t\t\t\t\t},\n\t\t\t\t\tVerbs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"create\"),\n\t\t\t\t\t},\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.rancher2.RoleTemplate;\nimport com.pulumi.rancher2.RoleTemplateArgs;\nimport com.pulumi.rancher2.inputs.RoleTemplateRuleArgs;\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 foo = new RoleTemplate(\"foo\", RoleTemplateArgs.builder() \n .context(\"cluster\")\n .defaultRole(true)\n .description(\"Terraform role template acceptance test\")\n .rules(RoleTemplateRuleArgs.builder()\n .apiGroups(\"*\")\n .resources(\"secrets\")\n .verbs(\"create\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 cluster Role Template\n foo:\n type: rancher2:RoleTemplate\n properties:\n context: cluster\n defaultRole: true\n description: Terraform role template acceptance test\n rules:\n - apiGroups:\n - '*'\n resources:\n - secrets\n verbs:\n - create\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 project Role Template\nconst foo = new rancher2.RoleTemplate(\"foo\", {\n context: \"project\",\n defaultRole: true,\n description: \"Terraform role template acceptance test\",\n rules: [{\n apiGroups: [\"*\"],\n resources: [\"secrets\"],\n verbs: [\"create\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 project Role Template\nfoo = rancher2.RoleTemplate(\"foo\",\n context=\"project\",\n default_role=True,\n description=\"Terraform role template acceptance test\",\n rules=[rancher2.RoleTemplateRuleArgs(\n api_groups=[\"*\"],\n resources=[\"secrets\"],\n verbs=[\"create\"],\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 project Role Template\n var foo = new Rancher2.RoleTemplate(\"foo\", new()\n {\n Context = \"project\",\n DefaultRole = true,\n Description = \"Terraform role template acceptance test\",\n Rules = new[]\n {\n new Rancher2.Inputs.RoleTemplateRuleArgs\n {\n ApiGroups = new[]\n {\n \"*\",\n },\n Resources = new[]\n {\n \"secrets\",\n },\n Verbs = new[]\n {\n \"create\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewRoleTemplate(ctx, \"foo\", \u0026rancher2.RoleTemplateArgs{\n\t\t\tContext: pulumi.String(\"project\"),\n\t\t\tDefaultRole: pulumi.Bool(true),\n\t\t\tDescription: pulumi.String(\"Terraform role template acceptance test\"),\n\t\t\tRules: rancher2.RoleTemplateRuleArray{\n\t\t\t\t\u0026rancher2.RoleTemplateRuleArgs{\n\t\t\t\t\tApiGroups: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t\t},\n\t\t\t\t\tResources: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"secrets\"),\n\t\t\t\t\t},\n\t\t\t\t\tVerbs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"create\"),\n\t\t\t\t\t},\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.rancher2.RoleTemplate;\nimport com.pulumi.rancher2.RoleTemplateArgs;\nimport com.pulumi.rancher2.inputs.RoleTemplateRuleArgs;\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 foo = new RoleTemplate(\"foo\", RoleTemplateArgs.builder() \n .context(\"project\")\n .defaultRole(true)\n .description(\"Terraform role template acceptance test\")\n .rules(RoleTemplateRuleArgs.builder()\n .apiGroups(\"*\")\n .resources(\"secrets\")\n .verbs(\"create\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 project Role Template\n foo:\n type: rancher2:RoleTemplate\n properties:\n context: project\n defaultRole: true\n description: Terraform role template acceptance test\n rules:\n - apiGroups:\n - '*'\n resources:\n - secrets\n verbs:\n - create\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nRole Template can be imported using the Rancher Role Template ID\n\n```sh\n $ pulumi import rancher2:index/roleTemplate:RoleTemplate foo \u0026lt;role_template_id\u0026gt;\n```\n ", "properties": { "administrative": { "type": "boolean", @@ -32691,12 +31818,7 @@ } }, "type": "object" - }, - "aliases": [ - { - "type": "rancher2:index/roleTempalte:RoleTempalte" - } - ] + } }, "rancher2:index/secret:Secret": { "description": "Provides a Rancher v2 Secret resource. This can be used to create secrets for Rancher v2 environments and retrieve their information.\n\nDepending of the availability, there are 2 types of Rancher v2 secrets:\n- Project secret: Available to all namespaces in the `project_id`\n- Namespaced secret: Available to just `namespace_id` in the `project_id`\n\n\n## Import\n\nSecrets can be imported using the secret ID in the format `\u003cnamespace_id\u003e.\u003cproject_id\u003e.\u003csecret_id\u003e`\n\n```sh\n $ pulumi import rancher2:index/secret:Secret foo \u0026lt;namespace_id\u0026gt;.\u0026lt;project_id\u0026gt;.\u0026lt;secret_id\u0026gt;\n```\n `\u003cnamespace_id\u003e` is optional, just needed for namespaced secret.\n\n", @@ -33006,7 +32128,7 @@ } }, "rancher2:index/setting:Setting": { - "description": "Provides a Rancher v2 Setting resource. This can be used to create settings for Rancher v2 environments and retrieve their information.\n\nOn create, if setting already exists, provider will import it and update its value.\n\nOn destroy, if setting is a system setting like `server-url`, provider'll not delete it from Rancher, it'll just update setting value to default and remove it from tfstate. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Setting\nconst foo = new rancher2.Setting(\"foo\", {value: \"\u003cVALUE\u003e\"});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Setting\nfoo = rancher2.Setting(\"foo\", value=\"\u003cVALUE\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Setting\n var foo = new Rancher2.Setting(\"foo\", new()\n {\n Value = \"\u003cVALUE\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewSetting(ctx, \"foo\", \u0026rancher2.SettingArgs{\n\t\t\tValue: pulumi.String(\"\u003cVALUE\u003e\"),\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.rancher2.Setting;\nimport com.pulumi.rancher2.SettingArgs;\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 foo = new Setting(\"foo\", SettingArgs.builder() \n .value(\"\u003cVALUE\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Setting\n foo:\n type: rancher2:Setting\n properties:\n value: \u003cVALUE\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nSetting can be imported using the Rancher setting ID.\n\n```sh\n $ pulumi import rancher2:index/setting:Setting foo \u0026lt;setting_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 Setting resource. This can be used to create settings for Rancher v2 environments and retrieve their information.\n\nOn create, if setting already exists, provider will import it and update its value.\n\nOn destroy, if setting is a system setting like `server-url`, provider'll not delete it from Rancher, it'll just update setting value to default and remove it from tfstate. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Setting\nconst foo = new rancher2.Setting(\"foo\", {value: \"\u003cVALUE\u003e\"});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Setting\nfoo = rancher2.Setting(\"foo\", value=\"\u003cVALUE\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Setting\n var foo = new Rancher2.Setting(\"foo\", new()\n {\n Value = \"\u003cVALUE\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewSetting(ctx, \"foo\", \u0026rancher2.SettingArgs{\n\t\t\tValue: pulumi.String(\"\u003cVALUE\u003e\"),\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.rancher2.Setting;\nimport com.pulumi.rancher2.SettingArgs;\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 foo = new Setting(\"foo\", SettingArgs.builder() \n .value(\"\u003cVALUE\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Setting\n foo:\n type: rancher2:Setting\n properties:\n value: \u003cVALUE\u003e\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nSetting can be imported using the Rancher setting ID.\n\n```sh\n $ pulumi import rancher2:index/setting:Setting foo \u0026lt;setting_id\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -33297,7 +32419,7 @@ } }, "rancher2:index/token:Token": { - "description": "Provides a Rancher v2 Token resource. This can be used to create Tokens for Rancher v2 provider user and retrieve their information.\n\nThere are 2 kind of tokens:\n- no scoped: valid for global system.\n- scoped: valid for just a specific cluster (`cluster_id` should be provided).\n\nTokens can't be updated once created. Any diff in token data will recreate the token. If any token expire, Rancher2 provider will generate a diff to regenerate it.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Token scoped\nconst foo = new rancher2.Token(\"foo\", {\n clusterId: \"\u003ccluster-id\u003e\",\n description: \"foo token\",\n ttl: 1200,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Token scoped\nfoo = rancher2.Token(\"foo\",\n cluster_id=\"\u003ccluster-id\u003e\",\n description=\"foo token\",\n ttl=1200)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Token scoped\n var foo = new Rancher2.Token(\"foo\", new()\n {\n ClusterId = \"\u003ccluster-id\u003e\",\n Description = \"foo token\",\n Ttl = 1200,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.NewToken(ctx, \"foo\", \u0026rancher2.TokenArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster-id\u003e\"),\n\t\t\tDescription: pulumi.String(\"foo token\"),\n\t\t\tTtl: pulumi.Int(1200),\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.rancher2.Token;\nimport com.pulumi.rancher2.TokenArgs;\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 foo = new Token(\"foo\", TokenArgs.builder() \n .clusterId(\"\u003ccluster-id\u003e\")\n .description(\"foo token\")\n .ttl(1200)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Token scoped\n foo:\n type: rancher2:Token\n properties:\n clusterId: \u003ccluster-id\u003e\n description: foo token\n ttl: 1200\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher v2 Token resource. This can be used to create Tokens for Rancher v2 provider user and retrieve their information.\n\nThere are 2 kind of tokens:\n- no scoped: valid for global system.\n- scoped: valid for just a specific cluster (`cluster_id` should be provided).\n\nTokens can't be updated once created. Any diff in token data will recreate the token. If any token expire, Rancher2 provider will generate a diff to regenerate it.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 Token scoped\nconst foo = new rancher2.Token(\"foo\", {\n clusterId: \"\u003ccluster-id\u003e\",\n description: \"foo token\",\n ttl: 1200,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 Token scoped\nfoo = rancher2.Token(\"foo\",\n cluster_id=\"\u003ccluster-id\u003e\",\n description=\"foo token\",\n ttl=1200)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 Token scoped\n var foo = new Rancher2.Token(\"foo\", new()\n {\n ClusterId = \"\u003ccluster-id\u003e\",\n Description = \"foo token\",\n Ttl = 1200,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.NewToken(ctx, \"foo\", \u0026rancher2.TokenArgs{\n\t\t\tClusterId: pulumi.String(\"\u003ccluster-id\u003e\"),\n\t\t\tDescription: pulumi.String(\"foo token\"),\n\t\t\tTtl: pulumi.Int(1200),\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.rancher2.Token;\nimport com.pulumi.rancher2.TokenArgs;\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 foo = new Token(\"foo\", TokenArgs.builder() \n .clusterId(\"\u003ccluster-id\u003e\")\n .description(\"foo token\")\n .ttl(1200)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 Token scoped\n foo:\n type: rancher2:Token\n properties:\n clusterId: \u003ccluster-id\u003e\n description: foo token\n ttl: 1200\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "accessKey": { "type": "string", @@ -33489,7 +32611,7 @@ } }, "rancher2:index/user:User": { - "description": "Provides a Rancher v2 User resource. This can be used to create Users for Rancher v2 environments and retrieve their information.\n\nWhen a Rancher User is created, it doesn't have a global role binding. At least, `user-base` global role binding in needed in order to enable user login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 User\nconst fooUser = new rancher2.User(\"fooUser\", {\n username: \"foo\",\n password: \"changeme\",\n enabled: true,\n});\n// Create a new rancher2 global_role_binding for User\nconst fooGlobalRoleBinding = new rancher2.GlobalRoleBinding(\"fooGlobalRoleBinding\", {\n globalRoleId: \"user-base\",\n userId: fooUser.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 User\nfoo_user = rancher2.User(\"fooUser\",\n username=\"foo\",\n password=\"changeme\",\n enabled=True)\n# Create a new rancher2 global_role_binding for User\nfoo_global_role_binding = rancher2.GlobalRoleBinding(\"fooGlobalRoleBinding\",\n global_role_id=\"user-base\",\n user_id=foo_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 User\n var fooUser = new Rancher2.User(\"fooUser\", new()\n {\n Username = \"foo\",\n Password = \"changeme\",\n Enabled = true,\n });\n\n // Create a new rancher2 global_role_binding for User\n var fooGlobalRoleBinding = new Rancher2.GlobalRoleBinding(\"fooGlobalRoleBinding\", new()\n {\n GlobalRoleId = \"user-base\",\n UserId = fooUser.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooUser, err := rancher2.NewUser(ctx, \"fooUser\", \u0026rancher2.UserArgs{\n\t\t\tUsername: pulumi.String(\"foo\"),\n\t\t\tPassword: pulumi.String(\"changeme\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalRoleBinding(ctx, \"fooGlobalRoleBinding\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.String(\"user-base\"),\n\t\t\tUserId: fooUser.ID(),\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.rancher2.User;\nimport com.pulumi.rancher2.UserArgs;\nimport com.pulumi.rancher2.GlobalRoleBinding;\nimport com.pulumi.rancher2.GlobalRoleBindingArgs;\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 fooUser = new User(\"fooUser\", UserArgs.builder() \n .username(\"foo\")\n .password(\"changeme\")\n .enabled(true)\n .build());\n\n var fooGlobalRoleBinding = new GlobalRoleBinding(\"fooGlobalRoleBinding\", GlobalRoleBindingArgs.builder() \n .globalRoleId(\"user-base\")\n .userId(fooUser.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 User\n fooUser:\n type: rancher2:User\n properties:\n username: foo\n password: changeme\n enabled: true\n # Create a new rancher2 global_role_binding for User\n fooGlobalRoleBinding:\n type: rancher2:GlobalRoleBinding\n properties:\n globalRoleId: user-base\n userId: ${fooUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsers can be imported using the Rancher User ID\n\n```sh\n $ pulumi import rancher2:index/user:User foo \u0026lt;user_id\u0026gt;\n```\n ", + "description": "Provides a Rancher v2 User resource. This can be used to create Users for Rancher v2 environments and retrieve their information.\n\nWhen a Rancher User is created, it doesn't have a global role binding. At least, `user-base` global role binding in needed in order to enable user login.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\n// Create a new rancher2 User\nconst fooUser = new rancher2.User(\"fooUser\", {\n username: \"foo\",\n password: \"changeme\",\n enabled: true,\n});\n// Create a new rancher2 global_role_binding for User\nconst fooGlobalRoleBinding = new rancher2.GlobalRoleBinding(\"fooGlobalRoleBinding\", {\n globalRoleId: \"user-base\",\n userId: fooUser.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\n# Create a new rancher2 User\nfoo_user = rancher2.User(\"fooUser\",\n username=\"foo\",\n password=\"changeme\",\n enabled=True)\n# Create a new rancher2 global_role_binding for User\nfoo_global_role_binding = rancher2.GlobalRoleBinding(\"fooGlobalRoleBinding\",\n global_role_id=\"user-base\",\n user_id=foo_user.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new rancher2 User\n var fooUser = new Rancher2.User(\"fooUser\", new()\n {\n Username = \"foo\",\n Password = \"changeme\",\n Enabled = true,\n });\n\n // Create a new rancher2 global_role_binding for User\n var fooGlobalRoleBinding = new Rancher2.GlobalRoleBinding(\"fooGlobalRoleBinding\", new()\n {\n GlobalRoleId = \"user-base\",\n UserId = fooUser.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tfooUser, err := rancher2.NewUser(ctx, \"fooUser\", \u0026rancher2.UserArgs{\n\t\t\tUsername: pulumi.String(\"foo\"),\n\t\t\tPassword: pulumi.String(\"changeme\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = rancher2.NewGlobalRoleBinding(ctx, \"fooGlobalRoleBinding\", \u0026rancher2.GlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.String(\"user-base\"),\n\t\t\tUserId: fooUser.ID(),\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.rancher2.User;\nimport com.pulumi.rancher2.UserArgs;\nimport com.pulumi.rancher2.GlobalRoleBinding;\nimport com.pulumi.rancher2.GlobalRoleBindingArgs;\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 fooUser = new User(\"fooUser\", UserArgs.builder() \n .username(\"foo\")\n .password(\"changeme\")\n .enabled(true)\n .build());\n\n var fooGlobalRoleBinding = new GlobalRoleBinding(\"fooGlobalRoleBinding\", GlobalRoleBindingArgs.builder() \n .globalRoleId(\"user-base\")\n .userId(fooUser.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new rancher2 User\n fooUser:\n type: rancher2:User\n properties:\n username: foo\n password: changeme\n enabled: true\n # Create a new rancher2 global_role_binding for User\n fooGlobalRoleBinding:\n type: rancher2:GlobalRoleBinding\n properties:\n globalRoleId: user-base\n userId: ${fooUser.id}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nUsers can be imported using the Rancher User ID\n\n```sh\n $ pulumi import rancher2:index/user:User foo \u0026lt;user_id\u0026gt;\n```\n ", "properties": { "annotations": { "type": "object", @@ -33622,7 +32744,7 @@ }, "functions": { "rancher2:index/getApp:getApp": { - "description": "Use this data source to retrieve information about a Rancher v2 app.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst rancher2 = rancher2.getApp({\n name: \"foo\",\n projectId: \"\u003cproject_id\u003e\",\n targetNamespace: \"\u003cnamespace_name\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nrancher2 = rancher2.get_app(name=\"foo\",\n project_id=\"\u003cproject_id\u003e\",\n target_namespace=\"\u003cnamespace_name\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var rancher2 = Rancher2.GetApp.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n TargetNamespace = \"\u003cnamespace_name\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupApp(ctx, \u0026rancher2.LookupAppArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tTargetNamespace: pulumi.StringRef(\"\u003cnamespace_name\u003e\"),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetAppArgs;\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 rancher2 = Rancher2Functions.getApp(GetAppArgs.builder()\n .name(\"foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .targetNamespace(\"\u003cnamespace_name\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n rancher2:\n fn::invoke:\n Function: rancher2:getApp\n Arguments:\n name: foo\n projectId: \u003cproject_id\u003e\n targetNamespace: \u003cnamespace_name\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 app.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst rancher2 = rancher2.getApp({\n name: \"foo\",\n projectId: \"\u003cproject_id\u003e\",\n targetNamespace: \"\u003cnamespace_name\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nrancher2 = rancher2.get_app(name=\"foo\",\n project_id=\"\u003cproject_id\u003e\",\n target_namespace=\"\u003cnamespace_name\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var rancher2 = Rancher2.GetApp.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = \"\u003cproject_id\u003e\",\n TargetNamespace = \"\u003cnamespace_name\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupApp(ctx, \u0026rancher2.LookupAppArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\n\t\t\tTargetNamespace: pulumi.StringRef(\"\u003cnamespace_name\u003e\"),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetAppArgs;\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 rancher2 = Rancher2Functions.getApp(GetAppArgs.builder()\n .name(\"foo\")\n .projectId(\"\u003cproject_id\u003e\")\n .targetNamespace(\"\u003cnamespace_name\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n rancher2:\n fn::invoke:\n Function: rancher2:getApp\n Arguments:\n name: foo\n projectId: \u003cproject_id\u003e\n targetNamespace: \u003cnamespace_name\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getApp.\n", "properties": { @@ -33738,7 +32860,7 @@ } }, "rancher2:index/getCatalog:getCatalog": { - "description": "Use this data source to retrieve information about a Rancher v2 catalog.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst library = rancher2.getCatalog({\n name: \"catalog\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nlibrary = rancher2.get_catalog(name=\"catalog\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var library = Rancher2.GetCatalog.Invoke(new()\n {\n Name = \"catalog\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupCatalog(ctx, \u0026rancher2.LookupCatalogArgs{\n\t\t\tName: \"catalog\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCatalogArgs;\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 library = Rancher2Functions.getCatalog(GetCatalogArgs.builder()\n .name(\"catalog\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n library:\n fn::invoke:\n Function: rancher2:getCatalog\n Arguments:\n name: catalog\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 catalog.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst library = rancher2.getCatalog({\n name: \"catalog\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nlibrary = rancher2.get_catalog(name=\"catalog\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var library = Rancher2.GetCatalog.Invoke(new()\n {\n Name = \"catalog\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupCatalog(ctx, \u0026rancher2.LookupCatalogArgs{\n\t\t\tName: \"catalog\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCatalogArgs;\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 library = Rancher2Functions.getCatalog(GetCatalogArgs.builder()\n .name(\"catalog\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n library:\n fn::invoke:\n Function: rancher2:getCatalog\n Arguments:\n name: catalog\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getCatalog.\n", "properties": { @@ -33954,7 +33076,7 @@ } }, "rancher2:index/getCertificate:getCertificate": { - "description": "Use this data source to retrieve information about a Rancher v2 certificate.\n\nDepending of the availability, there are 2 types of Rancher v2 certificates:\n- Project certificate: Available to all namespaces in the `project_id`\n- Namespaced certificate: Available to just `namespace_id` in the `project_id`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getCertificate({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_certificate(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetCertificate.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupCertificate(ctx, \u0026rancher2.LookupCertificateArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getCertificate(GetCertificateArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getCertificate\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getCertificate({\n name: \"\u003cname\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_certificate(name=\"\u003cname\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetCertificate.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupCertificate(ctx, \u0026rancher2.LookupCertificateArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getCertificate(GetCertificateArgs.builder()\n .name(\"\u003cname\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getCertificate\n Arguments:\n name: \u003cname\u003e\n namespaceId: \u003cnamespace_id\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 certificate.\n\nDepending of the availability, there are 2 types of Rancher v2 certificates:\n- Project certificate: Available to all namespaces in the `project_id`\n- Namespaced certificate: Available to just `namespace_id` in the `project_id`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getCertificate({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_certificate(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetCertificate.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupCertificate(ctx, \u0026rancher2.LookupCertificateArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getCertificate(GetCertificateArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getCertificate\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getCertificate({\n name: \"\u003cname\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_certificate(name=\"\u003cname\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetCertificate.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupCertificate(ctx, \u0026rancher2.LookupCertificateArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCertificateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getCertificate(GetCertificateArgs.builder()\n .name(\"\u003cname\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getCertificate\n Arguments:\n name: \u003cname\u003e\n namespaceId: \u003cnamespace_id\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getCertificate.\n", "properties": { @@ -34029,7 +33151,7 @@ } }, "rancher2:index/getCloudCredential:getCloudCredential": { - "description": "Use this data source to retrieve information about a Rancher v2 Cloud Credential.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst test = rancher2.getCloudCredential({\n name: \"test\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\ntest = rancher2.get_cloud_credential(name=\"test\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Rancher2.GetCloudCredential.Invoke(new()\n {\n Name = \"test\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupCloudCredential(ctx, \u0026rancher2.LookupCloudCredentialArgs{\n\t\t\tName: \"test\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCloudCredentialArgs;\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 test = Rancher2Functions.getCloudCredential(GetCloudCredentialArgs.builder()\n .name(\"test\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n Function: rancher2:getCloudCredential\n Arguments:\n name: test\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 Cloud Credential.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst test = rancher2.getCloudCredential({\n name: \"test\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\ntest = rancher2.get_cloud_credential(name=\"test\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = Rancher2.GetCloudCredential.Invoke(new()\n {\n Name = \"test\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupCloudCredential(ctx, \u0026rancher2.LookupCloudCredentialArgs{\n\t\t\tName: \"test\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetCloudCredentialArgs;\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 test = Rancher2Functions.getCloudCredential(GetCloudCredentialArgs.builder()\n .name(\"test\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n test:\n fn::invoke:\n Function: rancher2:getCloudCredential\n Arguments:\n name: test\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getCloudCredential.\n", "properties": { @@ -34078,7 +33200,7 @@ } }, "rancher2:index/getCluster:getCluster": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-custom = rancher2.getCluster({\n name: \"foo-custom\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_custom = rancher2.get_cluster(name=\"foo-custom\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_custom = Rancher2.GetCluster.Invoke(new()\n {\n Name = \"foo-custom\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupCluster(ctx, \u0026rancher2.LookupClusterArgs{\n\t\t\tName: \"foo-custom\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo-custom = Rancher2Functions.getCluster(GetClusterArgs.builder()\n .name(\"foo-custom\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo-custom:\n fn::invoke:\n Function: rancher2:getCluster\n Arguments:\n name: foo-custom\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 cluster.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo-custom = rancher2.getCluster({\n name: \"foo-custom\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo_custom = rancher2.get_cluster(name=\"foo-custom\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo_custom = Rancher2.GetCluster.Invoke(new()\n {\n Name = \"foo-custom\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupCluster(ctx, \u0026rancher2.LookupClusterArgs{\n\t\t\tName: \"foo-custom\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo-custom = Rancher2Functions.getCluster(GetClusterArgs.builder()\n .name(\"foo-custom\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo-custom:\n fn::invoke:\n Function: rancher2:getCluster\n Arguments:\n name: foo-custom\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getCluster.\n", "properties": { @@ -34285,7 +33407,7 @@ } }, "rancher2:index/getClusterAlertGroup:getClusterAlertGroup": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster alert group.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterAlertGroup({\n clusterId: \"\u003ccluster_id\u003e\",\n name: \"\u003ccluster_alert_group_name\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_alert_group(cluster_id=\"\u003ccluster_id\u003e\",\n name=\"\u003ccluster_alert_group_name\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterAlertGroup.Invoke(new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Name = \"\u003ccluster_alert_group_name\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupClusterAlertGroup(ctx, \u0026rancher2.LookupClusterAlertGroupArgs{\n\t\t\tClusterId: \"\u003ccluster_id\u003e\",\n\t\t\tName: \"\u003ccluster_alert_group_name\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterAlertGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterAlertGroup(GetClusterAlertGroupArgs.builder()\n .clusterId(\"\u003ccluster_id\u003e\")\n .name(\"\u003ccluster_alert_group_name\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterAlertGroup\n Arguments:\n clusterId: \u003ccluster_id\u003e\n name: \u003ccluster_alert_group_name\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 cluster alert group.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterAlertGroup({\n clusterId: \"\u003ccluster_id\u003e\",\n name: \"\u003ccluster_alert_group_name\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_alert_group(cluster_id=\"\u003ccluster_id\u003e\",\n name=\"\u003ccluster_alert_group_name\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterAlertGroup.Invoke(new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Name = \"\u003ccluster_alert_group_name\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupClusterAlertGroup(ctx, \u0026rancher2.LookupClusterAlertGroupArgs{\n\t\t\tClusterId: \"\u003ccluster_id\u003e\",\n\t\t\tName: \"\u003ccluster_alert_group_name\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterAlertGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterAlertGroup(GetClusterAlertGroupArgs.builder()\n .clusterId(\"\u003ccluster_id\u003e\")\n .name(\"\u003ccluster_alert_group_name\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterAlertGroup\n Arguments:\n clusterId: \u003ccluster_id\u003e\n name: \u003ccluster_alert_group_name\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getClusterAlertGroup.\n", "properties": { @@ -34370,10 +33492,10 @@ ] } }, - "rancher2:index/getClusterAlterRule:getClusterAlterRule": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster alert rule.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterAlterRule({\n clusterId: \"\u003ccluster_id\u003e\",\n name: \"\u003ccluster_alert_rule_name\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_alter_rule(cluster_id=\"\u003ccluster_id\u003e\",\n name=\"\u003ccluster_alert_rule_name\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterAlterRule.Invoke(new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Name = \"\u003ccluster_alert_rule_name\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupClusterAlterRule(ctx, \u0026rancher2.LookupClusterAlterRuleArgs{\n\t\t\tClusterId: \"\u003ccluster_id\u003e\",\n\t\t\tName: \"\u003ccluster_alert_rule_name\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterAlterRuleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterAlterRule(GetClusterAlterRuleArgs.builder()\n .clusterId(\"\u003ccluster_id\u003e\")\n .name(\"\u003ccluster_alert_rule_name\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterAlterRule\n Arguments:\n clusterId: \u003ccluster_id\u003e\n name: \u003ccluster_alert_rule_name\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "rancher2:index/getClusterAlertRule:getClusterAlertRule": { + "description": "Use this data source to retrieve information about a Rancher v2 cluster alert rule.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterAlertRule({\n clusterId: \"\u003ccluster_id\u003e\",\n name: \"\u003ccluster_alert_rule_name\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_alert_rule(cluster_id=\"\u003ccluster_id\u003e\",\n name=\"\u003ccluster_alert_rule_name\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterAlertRule.Invoke(new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Name = \"\u003ccluster_alert_rule_name\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupClusterAlertRule(ctx, \u0026rancher2.LookupClusterAlertRuleArgs{\n\t\t\tClusterId: \"\u003ccluster_id\u003e\",\n\t\t\tName: \"\u003ccluster_alert_rule_name\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterAlertRuleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterAlertRule(GetClusterAlertRuleArgs.builder()\n .clusterId(\"\u003ccluster_id\u003e\")\n .name(\"\u003ccluster_alert_rule_name\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterAlertRule\n Arguments:\n clusterId: \u003ccluster_id\u003e\n name: \u003ccluster_alert_rule_name\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { - "description": "A collection of arguments for invoking getClusterAlterRule.\n", + "description": "A collection of arguments for invoking getClusterAlertRule.\n", "properties": { "clusterId": { "type": "string", @@ -34398,7 +33520,7 @@ ] }, "outputs": { - "description": "A collection of values returned by getClusterAlterRule.\n", + "description": "A collection of values returned by getClusterAlertRule.\n", "properties": { "annotations": { "type": "object", @@ -34411,7 +33533,7 @@ "type": "string" }, "eventRule": { - "$ref": "#/types/rancher2:index/getClusterAlterRuleEventRule:getClusterAlterRuleEventRule", + "$ref": "#/types/rancher2:index/getClusterAlertRuleEventRule:getClusterAlertRuleEventRule", "description": "(Computed) The cluster alert rule event rule. ConflictsWith: `\"metric_rule\", \"node_rule\", \"system_service_rule\"` (list Maxitems:1)\n" }, "groupId": { @@ -34442,14 +33564,14 @@ "description": "(Computed) The cluster alert rule labels (map)\n" }, "metricRule": { - "$ref": "#/types/rancher2:index/getClusterAlterRuleMetricRule:getClusterAlterRuleMetricRule", + "$ref": "#/types/rancher2:index/getClusterAlertRuleMetricRule:getClusterAlertRuleMetricRule", "description": "(Computed) The cluster alert rule metric rule. ConflictsWith: `\"event_rule\", \"node_rule\", \"system_service_rule\"`` (list Maxitems:1)\n" }, "name": { "type": "string" }, "nodeRule": { - "$ref": "#/types/rancher2:index/getClusterAlterRuleNodeRule:getClusterAlterRuleNodeRule", + "$ref": "#/types/rancher2:index/getClusterAlertRuleNodeRule:getClusterAlertRuleNodeRule", "description": "(Computed) The cluster alert rule node rule. ConflictsWith: `\"event_rule\", \"metric_rule\", \"system_service_rule\"`` (list Maxitems:1)\n" }, "repeatIntervalSeconds": { @@ -34461,7 +33583,7 @@ "description": "(Computed) The cluster alert rule severity. Supported values : `\"critical\" | \"info\" | \"warning\"`. Default: `critical` (string)\n" }, "systemServiceRule": { - "$ref": "#/types/rancher2:index/getClusterAlterRuleSystemServiceRule:getClusterAlterRuleSystemServiceRule", + "$ref": "#/types/rancher2:index/getClusterAlertRuleSystemServiceRule:getClusterAlertRuleSystemServiceRule", "description": "(Computed) The cluster alert rule system service rule. ConflictsWith: `\"event_rule\", \"metric_rule\", \"node_rule\"`` (list Maxitems:1)\n" } }, @@ -34485,7 +33607,7 @@ } }, "rancher2:index/getClusterDriver:getClusterDriver": { - "description": "Use this data source to retrieve information about a Rancher v2 Cluster Driver resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterDriver({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_driver(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterDriver.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupClusterDriver(ctx, \u0026rancher2.LookupClusterDriverArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterDriverArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterDriver(GetClusterDriverArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterDriver\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 Cluster Driver resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterDriver({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_driver(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterDriver.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupClusterDriver(ctx, \u0026rancher2.LookupClusterDriverArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterDriverArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterDriver(GetClusterDriverArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterDriver\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getClusterDriver.\n", "properties": { @@ -34575,7 +33697,7 @@ } }, "rancher2:index/getClusterRoleTemplateBinding:getClusterRoleTemplateBinding": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster role template binding.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterRoleTemplateBinding({\n clusterId: \"foo_id\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_role_template_binding(cluster_id=\"foo_id\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterRoleTemplateBinding.Invoke(new()\n {\n ClusterId = \"foo_id\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupClusterRoleTemplateBinding(ctx, \u0026rancher2.LookupClusterRoleTemplateBindingArgs{\n\t\t\tClusterId: \"foo_id\",\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterRoleTemplateBindingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterRoleTemplateBinding(GetClusterRoleTemplateBindingArgs.builder()\n .clusterId(\"foo_id\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterRoleTemplateBinding\n Arguments:\n clusterId: foo_id\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 cluster role template binding.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterRoleTemplateBinding({\n clusterId: \"foo_id\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_role_template_binding(cluster_id=\"foo_id\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterRoleTemplateBinding.Invoke(new()\n {\n ClusterId = \"foo_id\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupClusterRoleTemplateBinding(ctx, \u0026rancher2.LookupClusterRoleTemplateBindingArgs{\n\t\t\tClusterId: \"foo_id\",\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterRoleTemplateBindingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterRoleTemplateBinding(GetClusterRoleTemplateBindingArgs.builder()\n .clusterId(\"foo_id\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterRoleTemplateBinding\n Arguments:\n clusterId: foo_id\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getClusterRoleTemplateBinding.\n", "properties": { @@ -34661,7 +33783,7 @@ } }, "rancher2:index/getClusterTemplate:getClusterTemplate": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster template.\n\nCluster Templates are available from Rancher v2.3.x and above.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupClusterTemplate(ctx, \u0026rancher2.LookupClusterTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterTemplate(GetClusterTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 cluster template.\n\nCluster Templates are available from Rancher v2.3.x and above.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupClusterTemplate(ctx, \u0026rancher2.LookupClusterTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterTemplate(GetClusterTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getClusterTemplate.\n", "properties": { @@ -34752,7 +33874,7 @@ } }, "rancher2:index/getClusterV2:getClusterV2": { - "description": "Use this data source to retrieve information about a Rancher v2 cluster.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterV2({\n fleetNamespace: \"fleet-ns\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_v2(fleet_namespace=\"fleet-ns\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterV2.Invoke(new()\n {\n FleetNamespace = \"fleet-ns\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tFleetNamespace: pulumi.StringRef(\"fleet-ns\"),\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .fleetNamespace(\"fleet-ns\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n fleetNamespace: fleet-ns\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 cluster.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getClusterV2({\n fleetNamespace: \"fleet-ns\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_cluster_v2(fleet_namespace=\"fleet-ns\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetClusterV2.Invoke(new()\n {\n FleetNamespace = \"fleet-ns\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupClusterV2(ctx, \u0026rancher2.LookupClusterV2Args{\n\t\t\tFleetNamespace: pulumi.StringRef(\"fleet-ns\"),\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetClusterV2Args;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getClusterV2(GetClusterV2Args.builder()\n .fleetNamespace(\"fleet-ns\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getClusterV2\n Arguments:\n fleetNamespace: fleet-ns\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getClusterV2.\n", "properties": { @@ -34954,7 +34076,7 @@ } }, "rancher2:index/getEtcdBackup:getEtcdBackup": { - "description": "Use this data source to retrieve information about a Rancher v2 etcd backup.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getEtcdBackup({\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_etcd_backup(cluster_id=\"\u003cCLUSTER_ID\u003e\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetEtcdBackup.Invoke(new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupEtcdBackup(ctx, \u0026rancher2.LookupEtcdBackupArgs{\n\t\t\tClusterId: \"\u003cCLUSTER_ID\u003e\",\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetEtcdBackupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getEtcdBackup(GetEtcdBackupArgs.builder()\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getEtcdBackup\n Arguments:\n clusterId: \u003cCLUSTER_ID\u003e\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 etcd backup.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getEtcdBackup({\n clusterId: \"\u003cCLUSTER_ID\u003e\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_etcd_backup(cluster_id=\"\u003cCLUSTER_ID\u003e\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetEtcdBackup.Invoke(new()\n {\n ClusterId = \"\u003cCLUSTER_ID\u003e\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupEtcdBackup(ctx, \u0026rancher2.LookupEtcdBackupArgs{\n\t\t\tClusterId: \"\u003cCLUSTER_ID\u003e\",\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetEtcdBackupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getEtcdBackup(GetEtcdBackupArgs.builder()\n .clusterId(\"\u003cCLUSTER_ID\u003e\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getEtcdBackup\n Arguments:\n clusterId: \u003cCLUSTER_ID\u003e\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getEtcdBackup.\n", "properties": { @@ -35032,7 +34154,7 @@ } }, "rancher2:index/getGlobalDnsProvider:getGlobalDnsProvider": { - "description": "Provides a Rancher V2 Global DNS Provider data source. Use this data source to retrieve information about a Rancher v2 global DNS provider\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalDnsProvider({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_dns_provider(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalDnsProvider.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupGlobalDnsProvider(ctx, \u0026rancher2.LookupGlobalDnsProviderArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalDnsProviderArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getGlobalDnsProvider(GetGlobalDnsProviderArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getGlobalDnsProvider\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a Rancher V2 Global DNS Provider data source. Use this data source to retrieve information about a Rancher v2 global DNS provider\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalDnsProvider({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_dns_provider(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalDnsProvider.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupGlobalDnsProvider(ctx, \u0026rancher2.LookupGlobalDnsProviderArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalDnsProviderArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getGlobalDnsProvider(GetGlobalDnsProviderArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getGlobalDnsProvider\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getGlobalDnsProvider.\n", "properties": { @@ -35102,10 +34224,17 @@ } }, "rancher2:index/getGlobalRole:getGlobalRole": { - "description": "Use this data source to retrieve information about a Rancher v2 global role resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalRole({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_role(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalRole.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupGlobalRole(ctx, \u0026rancher2.LookupGlobalRoleArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getGlobalRole(GetGlobalRoleArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getGlobalRole\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 global role resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalRole({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_role(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalRole.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupGlobalRole(ctx, \u0026rancher2.LookupGlobalRoleArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalRoleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getGlobalRole(GetGlobalRoleArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getGlobalRole\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getGlobalRole.\n", "properties": { + "inheritedClusterRoles": { + "type": "array", + "items": { + "type": "string" + }, + "description": "(Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list)\n" + }, "name": { "type": "string", "description": "The name of the Global Role (string)\n" @@ -35138,6 +34267,13 @@ "type": "string", "description": "The provider-assigned unique ID for this managed resource.\n" }, + "inheritedClusterRoles": { + "type": "array", + "items": { + "type": "string" + }, + "description": "(Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list)\n" + }, "labels": { "type": "object", "additionalProperties": { @@ -35174,7 +34310,7 @@ } }, "rancher2:index/getGlobalRoleBinding:getGlobalRoleBinding": { - "description": "Use this data source to retrieve information about a Rancher v2 global role binding.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalRoleBinding({\n globalRoleId: \"foo_id\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_role_binding(global_role_id=\"foo_id\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalRoleBinding.Invoke(new()\n {\n GlobalRoleId = \"foo_id\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupGlobalRoleBinding(ctx, \u0026rancher2.LookupGlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.StringRef(\"foo_id\"),\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalRoleBindingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getGlobalRoleBinding(GetGlobalRoleBindingArgs.builder()\n .globalRoleId(\"foo_id\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getGlobalRoleBinding\n Arguments:\n globalRoleId: foo_id\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 global role binding.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getGlobalRoleBinding({\n globalRoleId: \"foo_id\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_global_role_binding(global_role_id=\"foo_id\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetGlobalRoleBinding.Invoke(new()\n {\n GlobalRoleId = \"foo_id\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupGlobalRoleBinding(ctx, \u0026rancher2.LookupGlobalRoleBindingArgs{\n\t\t\tGlobalRoleId: pulumi.StringRef(\"foo_id\"),\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetGlobalRoleBindingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getGlobalRoleBinding(GetGlobalRoleBindingArgs.builder()\n .globalRoleId(\"foo_id\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getGlobalRoleBinding\n Arguments:\n globalRoleId: foo_id\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getGlobalRoleBinding.\n", "properties": { @@ -35241,7 +34377,7 @@ } }, "rancher2:index/getMultiClusterApp:getMultiClusterApp": { - "description": "Use this data source to retrieve information about a Rancher v2 multi cluster app.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getMultiClusterApp({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_multi_cluster_app(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetMultiClusterApp.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupMultiClusterApp(ctx, \u0026rancher2.LookupMultiClusterAppArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetMultiClusterAppArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getMultiClusterApp(GetMultiClusterAppArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getMultiClusterApp\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 multi cluster app.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getMultiClusterApp({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_multi_cluster_app(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetMultiClusterApp.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupMultiClusterApp(ctx, \u0026rancher2.LookupMultiClusterAppArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetMultiClusterAppArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getMultiClusterApp(GetMultiClusterAppArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getMultiClusterApp\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getMultiClusterApp.\n", "properties": { @@ -35360,7 +34496,7 @@ } }, "rancher2:index/getNamespace:getNamespace": { - "description": "Use this data source to retrieve information about a Rancher v2 namespace.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNamespace({\n name: \"foo\",\n projectId: rancher2_cluster[\"foo-custom\"].default_project_id,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_namespace(name=\"foo\",\n project_id=rancher2_cluster[\"foo-custom\"][\"default_project_id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNamespace.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = rancher2_cluster.Foo_custom.Default_project_id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupNamespace(ctx, \u0026rancher2.LookupNamespaceArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: rancher2_cluster.FooCustom.Default_project_id,\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNamespaceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNamespace(GetNamespaceArgs.builder()\n .name(\"foo\")\n .projectId(rancher2_cluster.foo-custom().default_project_id())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNamespace\n Arguments:\n name: foo\n projectId: ${rancher2_cluster\"foo-custom\"[%!s(MISSING)].default_project_id}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 namespace.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNamespace({\n name: \"foo\",\n projectId: rancher2_cluster[\"foo-custom\"].default_project_id,\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_namespace(name=\"foo\",\n project_id=rancher2_cluster[\"foo-custom\"][\"default_project_id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNamespace.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = rancher2_cluster.Foo_custom.Default_project_id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupNamespace(ctx, \u0026rancher2.LookupNamespaceArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: rancher2_cluster.FooCustom.Default_project_id,\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNamespaceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNamespace(GetNamespaceArgs.builder()\n .name(\"foo\")\n .projectId(rancher2_cluster.foo-custom().default_project_id())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNamespace\n Arguments:\n name: foo\n projectId: ${rancher2_cluster\"foo-custom\"[%!s(MISSING)].default_project_id}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getNamespace.\n", "properties": { @@ -35433,7 +34569,7 @@ } }, "rancher2:index/getNodeDriver:getNodeDriver": { - "description": "Use this data source to retrieve information about a Rancher v2 Node Driver resource. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodeDriver({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_driver(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodeDriver.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupNodeDriver(ctx, \u0026rancher2.LookupNodeDriverArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodeDriverArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNodeDriver(GetNodeDriverArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodeDriver\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 Node Driver resource. \n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodeDriver({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_driver(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodeDriver.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupNodeDriver(ctx, \u0026rancher2.LookupNodeDriverArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodeDriverArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNodeDriver(GetNodeDriverArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodeDriver\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getNodeDriver.\n", "properties": { @@ -35528,7 +34664,7 @@ } }, "rancher2:index/getNodePool:getNodePool": { - "description": "Use this data source to retrieve information about a Rancher v2 Node Pool resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodePool({\n clusterId: rancher2_cluster[\"foo-custom\"].id,\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_pool(cluster_id=rancher2_cluster[\"foo-custom\"][\"id\"],\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodePool.Invoke(new()\n {\n ClusterId = rancher2_cluster.Foo_custom.Id,\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupNodePool(ctx, \u0026rancher2.LookupNodePoolArgs{\n\t\t\tClusterId: rancher2_cluster.FooCustom.Id,\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodePoolArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNodePool(GetNodePoolArgs.builder()\n .clusterId(rancher2_cluster.foo-custom().id())\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodePool\n Arguments:\n clusterId: ${rancher2_cluster\"foo-custom\"[%!s(MISSING)].id}\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 Node Pool resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodePool({\n clusterId: rancher2_cluster[\"foo-custom\"].id,\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_pool(cluster_id=rancher2_cluster[\"foo-custom\"][\"id\"],\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodePool.Invoke(new()\n {\n ClusterId = rancher2_cluster.Foo_custom.Id,\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupNodePool(ctx, \u0026rancher2.LookupNodePoolArgs{\n\t\t\tClusterId: rancher2_cluster.FooCustom.Id,\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodePoolArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNodePool(GetNodePoolArgs.builder()\n .clusterId(rancher2_cluster.foo-custom().id())\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodePool\n Arguments:\n clusterId: ${rancher2_cluster\"foo-custom\"[%!s(MISSING)].id}\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getNodePool.\n", "properties": { @@ -35632,7 +34768,7 @@ } }, "rancher2:index/getNodeTemplate:getNodeTemplate": { - "description": "Use this data source to retrieve information about a Rancher v2 Node Template resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodeTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodeTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupNodeTemplate(ctx, \u0026rancher2.LookupNodeTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodeTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNodeTemplate(GetNodeTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodeTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 Node Template resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNodeTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_node_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNodeTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupNodeTemplate(ctx, \u0026rancher2.LookupNodeTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNodeTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNodeTemplate(GetNodeTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNodeTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getNodeTemplate.\n", "properties": { @@ -35762,7 +34898,7 @@ } }, "rancher2:index/getNotifier:getNotifier": { - "description": "Use this data source to retrieve information about a Rancher v2 notifier.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNotifier({\n clusterId: \"\u003ccluster_id\u003e\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_notifier(cluster_id=\"\u003ccluster_id\u003e\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNotifier.Invoke(new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupNotifier(ctx, \u0026rancher2.LookupNotifierArgs{\n\t\t\tClusterId: \"\u003ccluster_id\u003e\",\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNotifierArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNotifier(GetNotifierArgs.builder()\n .clusterId(\"\u003ccluster_id\u003e\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNotifier\n Arguments:\n clusterId: \u003ccluster_id\u003e\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 notifier.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getNotifier({\n clusterId: \"\u003ccluster_id\u003e\",\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_notifier(cluster_id=\"\u003ccluster_id\u003e\",\n name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetNotifier.Invoke(new()\n {\n ClusterId = \"\u003ccluster_id\u003e\",\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupNotifier(ctx, \u0026rancher2.LookupNotifierArgs{\n\t\t\tClusterId: \"\u003ccluster_id\u003e\",\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetNotifierArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getNotifier(GetNotifierArgs.builder()\n .clusterId(\"\u003ccluster_id\u003e\")\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getNotifier\n Arguments:\n clusterId: \u003ccluster_id\u003e\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getNotifier.\n", "properties": { @@ -35866,7 +35002,7 @@ } }, "rancher2:index/getPodSecurityPolicyTemplate:getPodSecurityPolicyTemplate": { - "description": "Use this data source to retrieve information about a Rancher v2 PodSecurityPolicyTemplate.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getPodSecurityPolicyTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_pod_security_policy_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetPodSecurityPolicyTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupPodSecurityPolicyTemplate(ctx, \u0026rancher2.LookupPodSecurityPolicyTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getPodSecurityPolicyTemplate(GetPodSecurityPolicyTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getPodSecurityPolicyTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 PodSecurityPolicyTemplate.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getPodSecurityPolicyTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_pod_security_policy_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetPodSecurityPolicyTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupPodSecurityPolicyTemplate(ctx, \u0026rancher2.LookupPodSecurityPolicyTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getPodSecurityPolicyTemplate(GetPodSecurityPolicyTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getPodSecurityPolicyTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getPodSecurityPolicyTemplate.\n", "properties": { @@ -36181,7 +35317,7 @@ } }, "rancher2:index/getPrincipal:getPrincipal": { - "description": "Use this data source to retrieve information about a Rancher v2 Principal resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getPrincipal({\n name: \"user@example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_principal(name=\"user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetPrincipal.Invoke(new()\n {\n Name = \"user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.GetPrincipal(ctx, \u0026rancher2.GetPrincipalArgs{\n\t\t\tName: \"user@example.com\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetPrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getPrincipal(GetPrincipalArgs.builder()\n .name(\"user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getPrincipal\n Arguments:\n name: user@example.com\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 Principal resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getPrincipal({\n name: \"user@example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_principal(name=\"user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetPrincipal.Invoke(new()\n {\n Name = \"user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.GetPrincipal(ctx, \u0026rancher2.GetPrincipalArgs{\n\t\t\tName: \"user@example.com\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetPrincipalArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getPrincipal(GetPrincipalArgs.builder()\n .name(\"user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getPrincipal\n Arguments:\n name: user@example.com\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getPrincipal.\n", "properties": { @@ -36308,7 +35444,7 @@ } }, "rancher2:index/getProjectAlertGroup:getProjectAlertGroup": { - "description": "Use this data source to retrieve information about a Rancher v2 project alert group.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getProjectAlertGroup({\n name: \"\u003cproject_alert_group_name\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_project_alert_group(name=\"\u003cproject_alert_group_name\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetProjectAlertGroup.Invoke(new()\n {\n Name = \"\u003cproject_alert_group_name\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupProjectAlertGroup(ctx, \u0026rancher2.LookupProjectAlertGroupArgs{\n\t\t\tName: \"\u003cproject_alert_group_name\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetProjectAlertGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getProjectAlertGroup(GetProjectAlertGroupArgs.builder()\n .name(\"\u003cproject_alert_group_name\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getProjectAlertGroup\n Arguments:\n name: \u003cproject_alert_group_name\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 project alert group.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getProjectAlertGroup({\n name: \"\u003cproject_alert_group_name\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_project_alert_group(name=\"\u003cproject_alert_group_name\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetProjectAlertGroup.Invoke(new()\n {\n Name = \"\u003cproject_alert_group_name\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupProjectAlertGroup(ctx, \u0026rancher2.LookupProjectAlertGroupArgs{\n\t\t\tName: \"\u003cproject_alert_group_name\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetProjectAlertGroupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getProjectAlertGroup(GetProjectAlertGroupArgs.builder()\n .name(\"\u003cproject_alert_group_name\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getProjectAlertGroup\n Arguments:\n name: \u003cproject_alert_group_name\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getProjectAlertGroup.\n", "properties": { @@ -36394,7 +35530,7 @@ } }, "rancher2:index/getProjectAlertRule:getProjectAlertRule": { - "description": "Use this data source to retrieve information about a Rancher v2 project alert rule.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getProjectAlertRule({\n name: \"\u003cproject_alert_rule_name\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_project_alert_rule(name=\"\u003cproject_alert_rule_name\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetProjectAlertRule.Invoke(new()\n {\n Name = \"\u003cproject_alert_rule_name\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupProjectAlertRule(ctx, \u0026rancher2.LookupProjectAlertRuleArgs{\n\t\t\tName: \"\u003cproject_alert_rule_name\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetProjectAlertRuleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getProjectAlertRule(GetProjectAlertRuleArgs.builder()\n .name(\"\u003cproject_alert_rule_name\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getProjectAlertRule\n Arguments:\n name: \u003cproject_alert_rule_name\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 project alert rule.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getProjectAlertRule({\n name: \"\u003cproject_alert_rule_name\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_project_alert_rule(name=\"\u003cproject_alert_rule_name\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetProjectAlertRule.Invoke(new()\n {\n Name = \"\u003cproject_alert_rule_name\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupProjectAlertRule(ctx, \u0026rancher2.LookupProjectAlertRuleArgs{\n\t\t\tName: \"\u003cproject_alert_rule_name\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetProjectAlertRuleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getProjectAlertRule(GetProjectAlertRuleArgs.builder()\n .name(\"\u003cproject_alert_rule_name\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getProjectAlertRule\n Arguments:\n name: \u003cproject_alert_rule_name\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getProjectAlertRule.\n", "properties": { @@ -36503,7 +35639,7 @@ } }, "rancher2:index/getProjectRoleTemplateBinding:getProjectRoleTemplateBinding": { - "description": "Use this data source to retrieve information about a Rancher v2 project role template binding.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getProjectRoleTemplateBinding({\n name: \"foo\",\n projectId: \"foo_id\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_project_role_template_binding(name=\"foo\",\n project_id=\"foo_id\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetProjectRoleTemplateBinding.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = \"foo_id\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupProjectRoleTemplateBinding(ctx, \u0026rancher2.LookupProjectRoleTemplateBindingArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: \"foo_id\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetProjectRoleTemplateBindingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getProjectRoleTemplateBinding(GetProjectRoleTemplateBindingArgs.builder()\n .name(\"foo\")\n .projectId(\"foo_id\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getProjectRoleTemplateBinding\n Arguments:\n name: foo\n projectId: foo_id\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 project role template binding.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getProjectRoleTemplateBinding({\n name: \"foo\",\n projectId: \"foo_id\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_project_role_template_binding(name=\"foo\",\n project_id=\"foo_id\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetProjectRoleTemplateBinding.Invoke(new()\n {\n Name = \"foo\",\n ProjectId = \"foo_id\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupProjectRoleTemplateBinding(ctx, \u0026rancher2.LookupProjectRoleTemplateBindingArgs{\n\t\t\tName: \"foo\",\n\t\t\tProjectId: \"foo_id\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetProjectRoleTemplateBindingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getProjectRoleTemplateBinding(GetProjectRoleTemplateBindingArgs.builder()\n .name(\"foo\")\n .projectId(\"foo_id\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getProjectRoleTemplateBinding\n Arguments:\n name: foo\n projectId: foo_id\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getProjectRoleTemplateBinding.\n", "properties": { @@ -36589,7 +35725,7 @@ } }, "rancher2:index/getRegistry:getRegistry": { - "description": "Use this data source to retrieve information about a Rancher v2 docker registry.\n\nDepending of the availability, there are 2 types of Rancher v2 docker registries:\n- Project registry: Available to all namespaces in the `project_id`\n- Namespaced registry: Available to just `namespace_id` in the `project_id`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRegistry({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_registry(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRegistry.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupRegistry(ctx, \u0026rancher2.LookupRegistryArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRegistryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getRegistry(GetRegistryArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getRegistry\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRegistry({\n name: \"\u003cname\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_registry(name=\"\u003cname\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRegistry.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupRegistry(ctx, \u0026rancher2.LookupRegistryArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRegistryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getRegistry(GetRegistryArgs.builder()\n .name(\"\u003cname\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getRegistry\n Arguments:\n name: \u003cname\u003e\n namespaceId: \u003cnamespace_id\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 docker registry.\n\nDepending of the availability, there are 2 types of Rancher v2 docker registries:\n- Project registry: Available to all namespaces in the `project_id`\n- Namespaced registry: Available to just `namespace_id` in the `project_id`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRegistry({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_registry(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRegistry.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupRegistry(ctx, \u0026rancher2.LookupRegistryArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRegistryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getRegistry(GetRegistryArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getRegistry\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRegistry({\n name: \"\u003cname\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_registry(name=\"\u003cname\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRegistry.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupRegistry(ctx, \u0026rancher2.LookupRegistryArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRegistryArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getRegistry(GetRegistryArgs.builder()\n .name(\"\u003cname\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getRegistry\n Arguments:\n name: \u003cname\u003e\n namespaceId: \u003cnamespace_id\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getRegistry.\n", "properties": { @@ -36666,117 +35802,8 @@ ] } }, - "rancher2:index/getRoleTempalte:getRoleTempalte": { - "deprecationMessage": "rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate", - "description": "Use this data source to retrieve information about a Rancher v2 role template resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRoleTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_role_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRoleTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupRoleTemplate(ctx, \u0026rancher2.LookupRoleTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRoleTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getRoleTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", - "inputs": { - "description": "A collection of arguments for invoking getRoleTempalte.\n", - "properties": { - "context": { - "type": "string", - "description": "Role template context. `cluster` and `project` values are supported (string)\n" - }, - "name": { - "type": "string", - "description": "The name of the Role Template (string)\n" - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "outputs": { - "description": "A collection of values returned by getRoleTempalte.\n", - "properties": { - "administrative": { - "type": "boolean", - "description": "(Computed) Administrative role template (bool)\n" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "(Computed) Annotations for role template object (map)\n" - }, - "builtin": { - "type": "boolean", - "description": "(Computed) Builtin role template (string)\n" - }, - "context": { - "type": "string" - }, - "defaultRole": { - "type": "boolean", - "description": "(Computed) Default role template for new created cluster or project (bool)\n" - }, - "description": { - "type": "string", - "description": "(Computed) Role template description (string)\n" - }, - "external": { - "type": "boolean", - "description": "(Computed) External role template (bool)\n" - }, - "hidden": { - "type": "boolean", - "description": "(Computed) Hidden role template (bool)\n" - }, - "id": { - "type": "string", - "description": "The provider-assigned unique ID for this managed resource.\n" - }, - "labels": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "description": "(Computed) Labels for role template object (map)\n" - }, - "locked": { - "type": "boolean", - "description": "(Computed) Locked role template (bool)\n" - }, - "name": { - "type": "string" - }, - "roleTemplateIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "(Computed) Inherit role template IDs (list)\n" - }, - "rules": { - "type": "array", - "items": { - "$ref": "#/types/rancher2:index/getRoleTempalteRule:getRoleTempalteRule" - }, - "description": "(Computed) Role template policy rules (list)\n" - } - }, - "type": "object", - "required": [ - "administrative", - "annotations", - "builtin", - "context", - "defaultRole", - "description", - "external", - "hidden", - "labels", - "locked", - "name", - "roleTemplateIds", - "rules", - "id" - ] - } - }, "rancher2:index/getRoleTemplate:getRoleTemplate": { - "description": "Use this data source to retrieve information about a Rancher v2 role template resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRoleTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_role_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRoleTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupRoleTemplate(ctx, \u0026rancher2.LookupRoleTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRoleTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getRoleTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 role template resource.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getRoleTemplate({\n name: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_role_template(name=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetRoleTemplate.Invoke(new()\n {\n Name = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupRoleTemplate(ctx, \u0026rancher2.LookupRoleTemplateArgs{\n\t\t\tName: \"foo\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetRoleTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder()\n .name(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getRoleTemplate\n Arguments:\n name: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getRoleTemplate.\n", "properties": { @@ -36884,7 +35911,7 @@ } }, "rancher2:index/getSecret:getSecret": { - "description": "Use this data source to retrieve information about a Rancher v2 secret.\n\nDepending of the availability, there are 2 types of Rancher v2 secrets:\n- Project secret: Available to all namespaces in the `project_id`\n- Namespaced secret: Available to just `namespace_id` in the `project_id`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getSecret({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_secret(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetSecret.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupSecret(ctx, \u0026rancher2.LookupSecretArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getSecret(GetSecretArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getSecret\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getSecret({\n name: \"\u003cname\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_secret(name=\"\u003cname\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetSecret.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupSecret(ctx, \u0026rancher2.LookupSecretArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getSecret(GetSecretArgs.builder()\n .name(\"\u003cname\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getSecret\n Arguments:\n name: \u003cname\u003e\n namespaceId: \u003cnamespace_id\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 secret.\n\nDepending of the availability, there are 2 types of Rancher v2 secrets:\n- Project secret: Available to all namespaces in the `project_id`\n- Namespaced secret: Available to just `namespace_id` in the `project_id`\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getSecret({\n name: \"\u003cname\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_secret(name=\"\u003cname\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetSecret.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupSecret(ctx, \u0026rancher2.LookupSecretArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getSecret(GetSecretArgs.builder()\n .name(\"\u003cname\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getSecret\n Arguments:\n name: \u003cname\u003e\n projectId: \u003cproject_id\u003e\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getSecret({\n name: \"\u003cname\u003e\",\n namespaceId: \"\u003cnamespace_id\u003e\",\n projectId: \"\u003cproject_id\u003e\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_secret(name=\"\u003cname\u003e\",\n namespace_id=\"\u003cnamespace_id\u003e\",\n project_id=\"\u003cproject_id\u003e\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetSecret.Invoke(new()\n {\n Name = \"\u003cname\u003e\",\n NamespaceId = \"\u003cnamespace_id\u003e\",\n ProjectId = \"\u003cproject_id\u003e\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupSecret(ctx, \u0026rancher2.LookupSecretArgs{\n\t\t\tName: \"\u003cname\u003e\",\n\t\t\tNamespaceId: pulumi.StringRef(\"\u003cnamespace_id\u003e\"),\n\t\t\tProjectId: \"\u003cproject_id\u003e\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSecretArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getSecret(GetSecretArgs.builder()\n .name(\"\u003cname\u003e\")\n .namespaceId(\"\u003cnamespace_id\u003e\")\n .projectId(\"\u003cproject_id\u003e\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getSecret\n Arguments:\n name: \u003cname\u003e\n namespaceId: \u003cnamespace_id\u003e\n projectId: \u003cproject_id\u003e\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getSecret.\n", "properties": { @@ -37050,7 +36077,7 @@ } }, "rancher2:index/getSetting:getSetting": { - "description": "Use this data source to retrieve information about a Rancher v2 setting.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst server-image = rancher2.getSetting({\n name: \"server-image\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nserver_image = rancher2.get_setting(name=\"server-image\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var server_image = Rancher2.GetSetting.Invoke(new()\n {\n Name = \"server-image\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupSetting(ctx, \u0026rancher2.LookupSettingArgs{\n\t\t\tName: \"server-image\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSettingArgs;\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 server-image = Rancher2Functions.getSetting(GetSettingArgs.builder()\n .name(\"server-image\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n server-image:\n fn::invoke:\n Function: rancher2:getSetting\n Arguments:\n name: server-image\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 setting.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst server-image = rancher2.getSetting({\n name: \"server-image\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nserver_image = rancher2.get_setting(name=\"server-image\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var server_image = Rancher2.GetSetting.Invoke(new()\n {\n Name = \"server-image\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupSetting(ctx, \u0026rancher2.LookupSettingArgs{\n\t\t\tName: \"server-image\",\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetSettingArgs;\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 server-image = Rancher2Functions.getSetting(GetSettingArgs.builder()\n .name(\"server-image\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n server-image:\n fn::invoke:\n Function: rancher2:getSetting\n Arguments:\n name: server-image\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getSetting.\n", "properties": { @@ -37187,7 +36214,7 @@ } }, "rancher2:index/getUser:getUser": { - "description": "Use this data source to retrieve information about a Rancher v2 user\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getUser({\n username: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_user(username=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetUser.Invoke(new()\n {\n Username = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2\"\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 := rancher2.LookupUser(ctx, \u0026rancher2.LookupUserArgs{\n\t\t\tUsername: pulumi.StringRef(\"foo\"),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getUser(GetUserArgs.builder()\n .username(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getUser\n Arguments:\n username: foo\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a Rancher v2 user\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as rancher2 from \"@pulumi/rancher2\";\n\nconst foo = rancher2.getUser({\n username: \"foo\",\n});\n```\n```python\nimport pulumi\nimport pulumi_rancher2 as rancher2\n\nfoo = rancher2.get_user(username=\"foo\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Rancher2 = Pulumi.Rancher2;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Rancher2.GetUser.Invoke(new()\n {\n Username = \"foo\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2\"\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 := rancher2.LookupUser(ctx, \u0026rancher2.LookupUserArgs{\n\t\t\tUsername: pulumi.StringRef(\"foo\"),\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.rancher2.Rancher2Functions;\nimport com.pulumi.rancher2.inputs.GetUserArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var foo = Rancher2Functions.getUser(GetUserArgs.builder()\n .username(\"foo\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: rancher2:getUser\n Arguments:\n username: foo\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getUser.\n", "properties": { diff --git a/provider/cmd/pulumi-tfgen-rancher2/main.go b/provider/cmd/pulumi-tfgen-rancher2/main.go index 46a2649c1..ad3018893 100644 --- a/provider/cmd/pulumi-tfgen-rancher2/main.go +++ b/provider/cmd/pulumi-tfgen-rancher2/main.go @@ -17,8 +17,8 @@ package main import ( "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen" - rancher2 "github.com/pulumi/pulumi-rancher2/provider/v5" - "github.com/pulumi/pulumi-rancher2/provider/v5/pkg/version" + rancher2 "github.com/pulumi/pulumi-rancher2/provider/v6" + "github.com/pulumi/pulumi-rancher2/provider/v6/pkg/version" ) func main() { diff --git a/provider/go.mod b/provider/go.mod index 3c4c54e3c..89c9dc416 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,17 +1,31 @@ -module github.com/pulumi/pulumi-rancher2/provider/v5 +module github.com/pulumi/pulumi-rancher2/provider/v6 go 1.21 replace ( - github.com/crewjam/saml => github.com/crewjam/saml v0.4.1 - github.com/docker/distribution => github.com/docker/distribution v2.7.1+incompatible - github.com/docker/docker => github.com/docker/docker v20.10.6+incompatible - github.com/hashicorp/go-getter => github.com/hashicorp/go-getter v1.7.0 + // tfinstall was removed from terraform-exec in v0.16.0. + // + // Pinning avoids this error: + // + // go: finding module for package github.com/hashicorp/terraform-exec/tfinstall + // go: github.com/pulumi/pulumi-rancher2/provider/v6 imports + // github.com/rancher/terraform-provider-rancher2/rancher2 imports + // github.com/hashicorp/terraform-plugin-sdk/helper/resource imports + // github.com/hashicorp/terraform-plugin-test/v2 imports + // github.com/hashicorp/terraform-exec/tfinstall: module github.com/hashicorp/terraform-exec@latest found (v0.20.0), but does not contain package github.com/hashicorp/terraform-exec/tfinstall github.com/hashicorp/terraform-exec => github.com/hashicorp/terraform-exec v0.15.0 - github.com/hashicorp/vault => github.com/hashicorp/vault v1.2.0 - github.com/rancher/rancher/pkg/apis => github.com/rancher/rancher/pkg/apis v0.0.0-20230512212658-eaa7b90049a4 - github.com/rancher/rancher/pkg/client => github.com/rancher/rancher/pkg/client v0.0.0-20230512212658-eaa7b90049a4 + github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240202163305-e2a20ae13ef9 +) + +// Replace block copied from upstream +replace ( + github.com/crewjam/saml => github.com/crewjam/saml v0.4.5 + github.com/docker/distribution => github.com/docker/distribution v2.8.1+incompatible + github.com/docker/docker => github.com/docker/docker v20.10.17+incompatible + github.com/rancher/rancher/pkg/apis => github.com/rancher/rancher/pkg/apis v0.0.0-20230901132600-5e1ee2611616 + github.com/rancher/rancher/pkg/client => github.com/rancher/rancher/pkg/client v0.0.0-20230901132600-5e1ee2611616 github.com/spf13/afero => github.com/spf13/afero v1.2.2 + helm.sh/helm/v3 => github.com/rancher/helm/v3 v3.9.0-rancher1 k8s.io/api => k8s.io/api v0.25.4 k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.25.4 k8s.io/apimachinery => k8s.io/apimachinery v0.25.4 @@ -38,13 +52,14 @@ replace ( k8s.io/mount-utils => k8s.io/mount-utils v0.25.4 k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.25.4 k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.25.4 + launchpad.net/gocheck => github.com/go-check/check v0.0.0-20200227125254-8fa46927fb4f ) require ( github.com/hashicorp/terraform-plugin-sdk v1.17.2 github.com/pulumi/pulumi-terraform-bridge/v3 v3.74.0 github.com/pulumi/pulumi/sdk/v3 v3.105.0 - github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20231013004807-59ba43ca3a23 + github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20240205172342-160eda274458 ) require ( @@ -172,7 +187,7 @@ require ( github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7 // indirect - github.com/hashicorp/terraform-exec v0.19.0 // indirect + github.com/hashicorp/terraform-exec v0.20.0 // indirect github.com/hashicorp/terraform-json v0.17.1 // indirect github.com/hashicorp/terraform-plugin-go v0.21.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect @@ -244,18 +259,18 @@ require ( github.com/pulumi/pulumi/pkg/v3 v3.105.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect - github.com/rancher/aks-operator v1.1.1-rc2 // indirect + github.com/rancher/aks-operator v1.2.0-rc2 // indirect github.com/rancher/apiserver v0.0.0-20230120214941-e88c32739dc7 // indirect github.com/rancher/channelserver v0.5.1-0.20220405170618-28c9b37deff1 // indirect - github.com/rancher/eks-operator v1.2.1 // indirect - github.com/rancher/fleet/pkg/apis v0.0.0-20230420151154-ab055fa31e05 // indirect - github.com/rancher/gke-operator v1.1.5 // indirect - github.com/rancher/lasso v0.0.0-20230428185353-36908edf817b // indirect + github.com/rancher/eks-operator v1.2.2-rc3 // indirect + github.com/rancher/fleet/pkg/apis v0.0.0-20230810121238-9d0ee7f56848 // indirect + github.com/rancher/gke-operator v1.1.6-rc2 // indirect + github.com/rancher/lasso v0.0.0-20230629200414-8a54b32e6792 // indirect github.com/rancher/norman v0.0.0-20230426211126-d3552b018687 // indirect - github.com/rancher/rancher v0.0.0-20230512212658-eaa7b90049a4 // indirect + github.com/rancher/rancher v0.0.0-20230525094739-ff2e09449efc // indirect github.com/rancher/rancher/pkg/apis v0.0.0 // indirect github.com/rancher/rancher/pkg/client v0.0.0 // indirect - github.com/rancher/rke v1.4.6-rc3 // indirect + github.com/rancher/rke v1.5.0-rc2 // indirect github.com/rancher/wrangler v1.1.1 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect @@ -267,7 +282,7 @@ require ( github.com/segmentio/encoding v0.3.5 // indirect github.com/sergi/go-diff v1.3.1 // indirect github.com/shopspring/decimal v1.3.1 // indirect - github.com/sirupsen/logrus v1.9.2 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect github.com/skeema/knownhosts v1.2.1 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/cast v1.5.0 // indirect @@ -325,7 +340,7 @@ require ( k8s.io/component-base v0.25.4 // indirect k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect k8s.io/klog/v2 v2.90.1 // indirect - k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a // indirect + k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect k8s.io/kubernetes v1.25.4 // indirect k8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect lukechampine.com/frand v1.4.2 // indirect @@ -336,5 +351,3 @@ require ( sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect sigs.k8s.io/yaml v1.3.0 // indirect ) - -replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240202163305-e2a20ae13ef9 diff --git a/provider/go.sum b/provider/go.sum index 1a07dd979..1201fbedb 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -818,6 +818,7 @@ github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn github.com/auth0/go-jwt-middleware v1.0.1/go.mod h1:YSeUX3z6+TF2H+7padiEqNJ73Zy9vXW72U//IgN0BIM= github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= github.com/aws/aws-sdk-go v1.15.27/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZoCYDt7FT0= +github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM= github.com/aws/aws-sdk-go v1.25.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.35.24/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k= @@ -1149,8 +1150,8 @@ github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/ github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v20.10.6+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v20.10.17+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= github.com/docker/go-events v0.0.0-20170721190031-9461782956ad/go.mod h1:Uw6UezgYA44ePAFQYUehOuCzmy5zmg/+nl2ZfMWGkpA= @@ -1672,8 +1673,10 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9n github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= -github.com/hashicorp/go-getter v1.7.0 h1:bzrYP+qu/gMrL1au7/aDvkoOVGUJpeKBgbqRHACAFDY= -github.com/hashicorp/go-getter v1.7.0/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.4.0/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY= +github.com/hashicorp/go-getter v1.5.3/go.mod h1:BrrV/1clo8cCYu6mxvboYg+KutTiFnXjMEgDD8+i7ZI= +github.com/hashicorp/go-getter v1.7.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= +github.com/hashicorp/go-getter v1.7.1/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= @@ -1731,6 +1734,7 @@ github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= @@ -1930,6 +1934,7 @@ github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.2/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.13/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= @@ -2167,8 +2172,8 @@ github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042 github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU= github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk= -github.com/onsi/ginkgo/v2 v2.9.5 h1:+6Hr4uxzP4XIUyAkg61dWBw8lb/gc4/X5luuxN/EC+Q= -github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3RonqW57k= +github.com/onsi/ginkgo/v2 v2.11.0 h1:WgqUCUt/lT6yXoQ8Wef0fsNn5cAuMK7+KT9UFRz2tcU= +github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM= github.com/onsi/gomega v0.0.0-20151007035656-2152b45fa28a/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.3.0/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= @@ -2363,8 +2368,8 @@ github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240202163305-e2a20ae13ef9 h1: github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240202163305-e2a20ae13ef9/go.mod h1:qH/34G25Ugdj5FcM95cSoXzUgIbgfhVLXCcEcYaMwq8= github.com/qri-io/starlib v0.4.2-0.20200213133954-ff2e8cd5ef8d/go.mod h1:7DPO4domFU579Ga6E61sB9VFNaniPVwJP5C4bBCu3wA= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= -github.com/rancher/aks-operator v1.1.1-rc2 h1:c7Ca+dW1+Kp+EVYcyrqa6gWmb0FMQzKnlK6OewIAMjI= -github.com/rancher/aks-operator v1.1.1-rc2/go.mod h1:vH7uVTYNZjAC7wJ6oYnefwwoQJxCPwAznvmH1d+Nll8= +github.com/rancher/aks-operator v1.2.0-rc2 h1:zP1VEzAc/jZ7FyeiQcQ+pkFUxDySrKoN+RdSnnj7LnE= +github.com/rancher/aks-operator v1.2.0-rc2/go.mod h1:ga4p9r8nTUuSRqkYLTBgA5OlPf19iT/i9Qa3kXH7H7Y= github.com/rancher/apiserver v0.0.0-20201023000256-1a0a904f9197/go.mod h1:8W0EwaR9dH5NDFw6mpAX437D0q+EZqKWbZyX71+z2WI= github.com/rancher/apiserver v0.0.0-20230120214941-e88c32739dc7 h1:Ob72oeF0iM8gWEMh+qKT5e1pzTwQU70I5kx4gMaqCmI= github.com/rancher/apiserver v0.0.0-20230120214941-e88c32739dc7/go.mod h1:xwQhXv3XFxWfA6tLa4ZeaERu8ldNbyKv2sF+mT+c5WA= @@ -2372,35 +2377,31 @@ github.com/rancher/channelserver v0.5.1-0.20220405170618-28c9b37deff1 h1:NMYQzCt github.com/rancher/channelserver v0.5.1-0.20220405170618-28c9b37deff1/go.mod h1:dZ4saGTw1S0RwX8ivPijBIR+2obRpfFuO2NkDHUKKXg= github.com/rancher/client-go v1.25.4-rancher1 h1:9MlBC8QbgngUkhNzMR8rZmmCIj6WNRHFOnYiwC2Kty4= github.com/rancher/client-go v1.25.4-rancher1/go.mod h1:8trHCAC83XKY0wsBIpbirZU4NTUpbuhc2JnI7OruGZw= -github.com/rancher/eks-operator v1.2.1 h1:AwkDVnK7X2lnlo/VzC+ve7xTotY9thQhTbzICuEvFqQ= -github.com/rancher/eks-operator v1.2.1/go.mod h1:e8Tqz6q5B1LWDudAYsMoziiZmUQfCIIfToWKQTJrIyE= -github.com/rancher/fleet/pkg/apis v0.0.0-20230420151154-ab055fa31e05 h1:dBR/K04EcW2xZ1HPbUqNUHdNyfIO1LEpT1Eo1evKcD8= -github.com/rancher/fleet/pkg/apis v0.0.0-20230420151154-ab055fa31e05/go.mod h1:TbpjMODeuFUJlHG8IfehZ4FBzgzpxwPwa+GwtFq2Tq0= -github.com/rancher/gke-operator v1.1.5 h1:XHNrM67enwDkqYG5C4s1HVgfJGmfwtVYGfl9TgXT6zA= -github.com/rancher/gke-operator v1.1.5/go.mod h1:ZApFZ7iCuyzwX/+aCSdEqkbAPtOYcTH7/BeLoI/Mz9Y= -github.com/rancher/lasso v0.0.0-20200427171700-e0509f89f319/go.mod h1:6Dw19z1lDIpL887eelVjyqH/mna1hfR61ddCFOG78lw= +github.com/rancher/eks-operator v1.2.2-rc3 h1:zzf4JNCXJHPmI82bVFbJvywz346vWL9FFaBSrvNOhPQ= +github.com/rancher/eks-operator v1.2.2-rc3/go.mod h1:/wyszmtekvefdRRuBSe0XVZln5BnVrFIeBFrNHCPawo= +github.com/rancher/fleet/pkg/apis v0.0.0-20230810121238-9d0ee7f56848 h1:FNZEI+rCC+u5RVE4dyH7EX8ltlZ74zBowUOviMoGk5c= +github.com/rancher/fleet/pkg/apis v0.0.0-20230810121238-9d0ee7f56848/go.mod h1:TbpjMODeuFUJlHG8IfehZ4FBzgzpxwPwa+GwtFq2Tq0= +github.com/rancher/gke-operator v1.1.6-rc2 h1:ENFi2Cj2t/EwI7m6wSiZ8xYZWS3TpU0owY47pH9raXw= +github.com/rancher/gke-operator v1.1.6-rc2/go.mod h1:Zcc1ROLHoyxI19eVZ3OdXco4S/B1TReOtm7shIxYxwg= github.com/rancher/lasso v0.0.0-20210616224652-fc3ebd901c08/go.mod h1:9qZd/S8DqWzfKtjKGgSoHqGEByYmUE3qRaBaaAHwfEM= -github.com/rancher/lasso v0.0.0-20230428185353-36908edf817b h1:mcCmrZZlkjh9bMWk6CXCf85WajjarmEyuSJzCTL67fU= -github.com/rancher/lasso v0.0.0-20230428185353-36908edf817b/go.mod h1:dEfC9eFQigj95lv/JQ8K5e7+qQCacWs1aIA6nLxKzT8= +github.com/rancher/lasso v0.0.0-20230629200414-8a54b32e6792 h1:IaPhDqppVYX2v/nCR8j2i0nqOLD5yggzzy39QUlcqDw= +github.com/rancher/lasso v0.0.0-20230629200414-8a54b32e6792/go.mod h1:dNcwXjcqgdOuKFIVETNAPURRh3e5PAi/nWUjj+MLVZA= github.com/rancher/norman v0.0.0-20230426211126-d3552b018687 h1:9Bf4fZBIdkidKTqHFsJXMlnzflxx3h4ZAEH/n6HMuyI= github.com/rancher/norman v0.0.0-20230426211126-d3552b018687/go.mod h1:7MyWxfCmPl6N/UFLu4neLH6nwTFgQQF5rxtUGyZvPFE= -github.com/rancher/rancher v0.0.0-20230512212658-eaa7b90049a4 h1:bH3VdarXZF2m7BpR8B606RyKZ50nCRh/rDXx8+kI3ik= -github.com/rancher/rancher v0.0.0-20230512212658-eaa7b90049a4/go.mod h1:JNtROLf9mzc3QZyKt1esP3QWKpenZ2LyggFXy8Qm3Rs= -github.com/rancher/rancher/pkg/apis v0.0.0-20230512212658-eaa7b90049a4 h1:f2EsjKPe3AV/lFkyfva2dov7E+2ehI4vCB0Fb7s5izo= -github.com/rancher/rancher/pkg/apis v0.0.0-20230512212658-eaa7b90049a4/go.mod h1:gVzqnV7L3EwG5zzc9oVxTj0yYY0cTcVceCuax/D9j1Y= -github.com/rancher/rancher/pkg/client v0.0.0-20230512212658-eaa7b90049a4 h1:Y2bUuW1hcW+gNAtLQdaDmCCid722iUsRBOSfKgFABpw= -github.com/rancher/rancher/pkg/client v0.0.0-20230512212658-eaa7b90049a4/go.mod h1:AO4eGvjbR9UvWtNryv/vSoz1ZIgvjkhP34GZ23CFEx8= -github.com/rancher/rke v1.4.6-rc3 h1:r/akzh+yxf5El1xwumQtp+QuKEVo77BaB+Tieev3Nzc= -github.com/rancher/rke v1.4.6-rc3/go.mod h1:0s8+XfiyC9Ff3KLaQ4Z5mDNI+taSb/hma13xOpW6slg= -github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20231013004807-59ba43ca3a23 h1:AyPdvdZoSFvTEEs2QlIlVk++m2rCjun2npPBU+qGQxY= -github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20231013004807-59ba43ca3a23/go.mod h1:qCsLm5b7jV1fENsAjWYZxlCrevPfdp1pItmdEbS9mts= +github.com/rancher/rancher v0.0.0-20230525094739-ff2e09449efc h1:gM1tmiUxwjcl2ijQqyBBFz3Mgf/r+PGHKlJgHLXSK6U= +github.com/rancher/rancher v0.0.0-20230525094739-ff2e09449efc/go.mod h1:VvtuvzQVlhE/Xa3WMoyRS1hzjlHge0tbkPs4PAhxmOE= +github.com/rancher/rancher/pkg/apis v0.0.0-20230901132600-5e1ee2611616 h1:jMNvKWFg5XEtzJijQS6IgbpVlT1H7WIoLlXAbiM2Jas= +github.com/rancher/rancher/pkg/apis v0.0.0-20230901132600-5e1ee2611616/go.mod h1:faAHE0MFFEB+fZQMfjfylYuzuVOn5yxKi7JFRsEfFOE= +github.com/rancher/rancher/pkg/client v0.0.0-20230901132600-5e1ee2611616 h1:4GkRP5TXOXqH1M0DOLd8Olohlhna0/0e3kWpzdJ4EZ8= +github.com/rancher/rancher/pkg/client v0.0.0-20230901132600-5e1ee2611616/go.mod h1:eDLHGs0Wrq0gvAY3YCBPbWatkhj1/R+lg04S3slbroY= +github.com/rancher/rke v1.5.0-rc2 h1:gec//2jkyEimO/fZLMMRVAJF8GpKqDf3voe+k3jrhGg= +github.com/rancher/rke v1.5.0-rc2/go.mod h1:wUwsm6dXyzzxWlVwmPPR5XMWX6ICjAdWJ+l45ZqV+P0= +github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20240205172342-160eda274458 h1:MGlZd1WPuLUvZ8Neojyd2vKR5raT8SgbSKuoo5yEfyE= +github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20240205172342-160eda274458/go.mod h1:MTQSBIbx2Ru6D6Xmu+5GQv4t20e5N/wxbMuBsvss+AE= github.com/rancher/wrangler v0.6.1/go.mod h1:L4HtjPeX8iqLgsxfJgz+JjKMcX2q3qbRXSeTlC/CSd4= -github.com/rancher/wrangler v0.6.2-0.20200427172034-da9b142ae061/go.mod h1:n5Du/gGD7WoiqnEo0SHnPirDIp1V9Zu+6guc8lXS2dk= -github.com/rancher/wrangler v0.8.10/go.mod h1:Lte9WjPtGYxYacIWeiS9qawvu2R4NujFU9xuXWJvc/0= github.com/rancher/wrangler v0.8.11-0.20220120160420-18c996a8e956/go.mod h1:Lte9WjPtGYxYacIWeiS9qawvu2R4NujFU9xuXWJvc/0= github.com/rancher/wrangler v1.1.1 h1:wmqUwqc2M7ADfXnBCJTFkTB5ZREWpD78rnZMzmxwMvM= github.com/rancher/wrangler v1.1.1/go.mod h1:ioVbKupzcBOdzsl55MvEDN0R1wdGggj8iNCYGFI5JvM= -github.com/rancher/wrangler-api v0.6.1-0.20200427172631-a7c2f09b783e/go.mod h1:2lcWR98q8HU3U4mVETnXc8quNG0uXxrt8vKd6cAa/30= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= @@ -2476,8 +2477,8 @@ github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrf github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/sirupsen/logrus v1.9.2 h1:oxx1eChJGI6Uks2ZC4W1zpLlVgqB8ner4EuQwV4Ik1Y= -github.com/sirupsen/logrus v1.9.2/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/skeema/knownhosts v1.2.0/go.mod h1:g4fPeYpque7P0xefxtGzV81ihjC8sX2IqpAoNkjxbMo= github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ= github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo= @@ -2566,6 +2567,8 @@ github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6 github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= +github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8= github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= @@ -2967,7 +2970,6 @@ golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220708220712-1185a9018129/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220802222814-0bcc04d9c69b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= @@ -3809,8 +3811,8 @@ k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e/go.mod h1:vHXdDvt9+2spS2R k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42/go.mod h1:Z/45zLw8lUo4wdiUkI+v/ImEGAvu3WatcZl3lPMR4Rk= k8s.io/kube-openapi v0.0.0-20220401212409-b28bf2818661/go.mod h1:daOouuuwd9JXpv1L7Y34iV3yf6nxzipkKMWWlqlvK9M= k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1/go.mod h1:C/N6wCaBHeBHkHUesQOQy2/MZqGgMAFPqGsGQLdbZBU= -k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a h1:gmovKNur38vgoWfGtP5QOGNOA7ki4n6qNYoFAgMlNvg= -k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a/go.mod h1:y5VtZWM9sHHc2ZodIH/6SHzXj+TPU5USoA8lcIeKEKY= +k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f h1:2kWPakN3i/k81b0gvD5C5FJ2kxm1WrQFanWchyKuqGg= +k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f/go.mod h1:byini6yhqGC14c3ebc/QwanvYwhuMWF6yz2F8uwW8eg= k8s.io/kube-proxy v0.25.4/go.mod h1:k76TWxXoQwclQfH/NU6SFmOjPJt7h+11PGwgx0OR8T0= k8s.io/kube-scheduler v0.25.4/go.mod h1:o3NLBkBhJMI7QjERmWwi/uLE0+YijV1xxWmDmWeZTvE= k8s.io/kubectl v0.25.4/go.mod h1:CKMrQ67Bn2YCP26tZStPQGq62zr9pvzEf65A0navm8k= diff --git a/provider/resources.go b/provider/resources.go index c90f87ae2..6955bc6a0 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -16,9 +16,7 @@ package rancher2 import ( "fmt" - "path/filepath" - "strings" - "unicode" + "path" // embed is used to store bridge-metadata.json in the compiled binary _ "embed" @@ -31,7 +29,7 @@ import ( shimv1 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v1" "github.com/pulumi/pulumi/sdk/v3/go/common/tokens" - "github.com/pulumi/pulumi-rancher2/provider/v5/pkg/version" + "github.com/pulumi/pulumi-rancher2/provider/v6/pkg/version" ) // all of the token components used below. @@ -42,28 +40,8 @@ const ( mainMod = "index" // the Main module ) -var namespaceMap = map[string]string{ - mainPkg: "Rancher2", -} - -func makeMember(moduleTitle string, mem string) tokens.ModuleMember { - moduleName := strings.ToLower(moduleTitle) - namespaceMap[moduleName] = moduleTitle - fn := string(unicode.ToLower(rune(mem[0]))) + mem[1:] - token := moduleName + "/" + fn - return tokens.ModuleMember(mainPkg + ":" + token + ":" + mem) -} - -func makeType(mod string, typ string) tokens.Type { - return tokens.Type(makeMember(mod, typ)) -} - -func makeDataSource(mod string, res string) tokens.ModuleMember { - return makeMember(mod, res) -} - -func makeResource(mod string, res string) tokens.Type { - return makeType(mod, res) +func makeResource(res string) tokens.Type { + return tfbridge.MakeResource(mainPkg, mainMod, res) } // Provider returns additional overlaid schema and metadata associated with the provider.. @@ -73,15 +51,16 @@ func Provider() tfbridge.ProviderInfo { // Create a Pulumi provider mapping prov := tfbridge.ProviderInfo{ - P: p, - Name: "rancher2", - Description: "A Pulumi package for creating and managing rancher2 resources.", - Keywords: []string{"pulumi", "rancher2"}, - License: "Apache-2.0", - Homepage: "https://pulumi.io", - Repository: "https://github.com/pulumi/pulumi-rancher2", - GitHubOrg: "rancher", - Version: version.Version, + P: p, + Name: "rancher2", + Description: "A Pulumi package for creating and managing rancher2 resources.", + Keywords: []string{"pulumi", "rancher2"}, + License: "Apache-2.0", + Homepage: "https://pulumi.io", + Repository: "https://github.com/pulumi/pulumi-rancher2", + GitHubOrg: "rancher", + Version: version.Version, + MetadataInfo: tfbridge.NewProviderMetadata(metadata), Config: map[string]*tfbridge.SchemaInfo{ "bootstrap": { Default: &tfbridge.DefaultInfo{ @@ -97,97 +76,19 @@ func Provider() tfbridge.ProviderInfo { }, }, Resources: map[string]*tfbridge.ResourceInfo{ - "rancher2_app": {Tok: makeResource(mainMod, "App")}, - "rancher2_auth_config_adfs": {Tok: makeResource(mainMod, "AuthConfigAdfs")}, - "rancher2_auth_config_azuread": {Tok: makeResource(mainMod, "AuthConfigAzureAd")}, - "rancher2_auth_config_freeipa": {Tok: makeResource(mainMod, "AuthConfigFreeIpa")}, - "rancher2_auth_config_github": {Tok: makeResource(mainMod, "AuthConfigGithub")}, - "rancher2_auth_config_keycloak": {Tok: makeResource(mainMod, "AuthConfigKeycloak")}, - "rancher2_auth_config_okta": {Tok: makeResource(mainMod, "AuthConfigOkta")}, - "rancher2_auth_config_openldap": {Tok: makeResource(mainMod, "AuthConfigOpenLdap")}, - "rancher2_auth_config_ping": {Tok: makeResource(mainMod, "AuthConfigPing")}, - "rancher2_bootstrap": {Tok: makeResource(mainMod, "Bootstrap")}, - "rancher2_catalog": {Tok: makeResource(mainMod, "Catalog")}, - "rancher2_certificate": {Tok: makeResource(mainMod, "Certificate")}, - "rancher2_cloud_credential": {Tok: makeResource(mainMod, "CloudCredential")}, - "rancher2_cluster": {Tok: makeResource(mainMod, "Cluster")}, - "rancher2_cluster_v2": {Tok: makeResource(mainMod, "ClusterV2")}, - "rancher2_cluster_driver": {Tok: makeResource(mainMod, "ClusterDriver")}, - "rancher2_cluster_role_template_binding": {Tok: makeResource(mainMod, "ClusterRoleTemplateBinding")}, - "rancher2_cluster_sync": {Tok: makeResource(mainMod, "ClusterSync")}, - "rancher2_cluster_template": {Tok: makeResource(mainMod, "ClusterTemplate")}, - "rancher2_etcd_backup": {Tok: makeResource(mainMod, "EtcdBackup")}, - "rancher2_global_role_binding": {Tok: makeResource(mainMod, "GlobalRoleBinding")}, - "rancher2_multi_cluster_app": {Tok: makeResource(mainMod, "MultiClusterApp")}, - "rancher2_namespace": {Tok: makeResource(mainMod, "Namespace")}, - "rancher2_node_driver": {Tok: makeResource(mainMod, "NodeDriver")}, - "rancher2_node_pool": {Tok: makeResource(mainMod, "NodePool")}, - "rancher2_node_template": {Tok: makeResource(mainMod, "NodeTemplate")}, - "rancher2_notifier": {Tok: makeResource(mainMod, "Notifier")}, - "rancher2_project": {Tok: makeResource(mainMod, "Project")}, - "rancher2_project_alert_group": {Tok: makeResource(mainMod, "ProjectAlertGroup")}, - "rancher2_project_alert_rule": {Tok: makeResource(mainMod, "ProjectAlertRule")}, - "rancher2_project_role_template_binding": {Tok: makeResource(mainMod, "ProjectRoleTemplateBinding")}, - "rancher2_registry": {Tok: makeResource(mainMod, "Registry")}, - "rancher2_secret": {Tok: makeResource(mainMod, "Secret")}, - "rancher2_setting": {Tok: makeResource(mainMod, "Setting")}, + "rancher2_auth_config_azuread": {Tok: makeResource("AuthConfigAzureAd")}, + "rancher2_auth_config_freeipa": {Tok: makeResource("AuthConfigFreeIpa")}, + "rancher2_auth_config_openldap": {Tok: makeResource("AuthConfigOpenLdap")}, "rancher2_token": { - Tok: makeResource(mainMod, "Token"), Fields: map[string]*tfbridge.SchemaInfo{ "token": { CSharpName: "TokenName", }, }, }, - "rancher2_user": {Tok: makeResource(mainMod, "User")}, - "rancher2_pod_security_policy_template": {Tok: makeResource(mainMod, "PodSecurityPolicyTemplate")}, - "rancher2_catalog_v2": {Tok: makeResource(mainMod, "CatalogV2")}, - "rancher2_app_v2": {Tok: makeResource(mainMod, "AppV2")}, - "rancher2_global_dns": {Tok: makeResource(mainMod, "GlobalDns")}, - "rancher2_global_dns_provider": {Tok: makeResource(mainMod, "GlobalDnsProvider")}, - "rancher2_global_role": {Tok: makeResource(mainMod, "GlobalRole")}, - "rancher2_feature": {Tok: makeResource(mainMod, "Feature")}, - "rancher2_secret_v2": {Tok: makeResource(mainMod, "SecretV2")}, - "rancher2_machine_config_v2": {Tok: makeResource(mainMod, "MachineConfigV2")}, - "rancher2_storage_class_v2": {Tok: makeResource(mainMod, "StorageClassV2")}, - "rancher2_config_map_v2": {Tok: makeResource(mainMod, "ConfigMapV2")}, - }, - DataSources: map[string]*tfbridge.DataSourceInfo{ - "rancher2_app": {Tok: makeDataSource(mainMod, "getApp")}, - "rancher2_catalog": {Tok: makeDataSource(mainMod, "getCatalog")}, - "rancher2_certificate": {Tok: makeDataSource(mainMod, "getCertificate")}, - "rancher2_cloud_credential": {Tok: makeDataSource(mainMod, "getCloudCredential")}, - "rancher2_cluster": {Tok: makeDataSource(mainMod, "getCluster")}, - "rancher2_cluster_alert_group": {Tok: makeDataSource(mainMod, "getClusterAlertGroup")}, - "rancher2_cluster_alert_rule": {Tok: makeDataSource(mainMod, "getClusterAlterRule")}, - "rancher2_cluster_driver": {Tok: makeDataSource(mainMod, "getClusterDriver")}, - "rancher2_cluster_role_template_binding": {Tok: makeDataSource(mainMod, "getClusterRoleTemplateBinding")}, - "rancher2_cluster_template": {Tok: makeDataSource(mainMod, "getClusterTemplate")}, - "rancher2_etcd_backup": {Tok: makeDataSource(mainMod, "getEtcdBackup")}, - "rancher2_global_role_binding": {Tok: makeDataSource(mainMod, "getGlobalRoleBinding")}, - "rancher2_multi_cluster_app": {Tok: makeDataSource(mainMod, "getMultiClusterApp")}, - "rancher2_namespace": {Tok: makeDataSource(mainMod, "getNamespace")}, - "rancher2_node_driver": {Tok: makeDataSource(mainMod, "getNodeDriver")}, - "rancher2_node_pool": {Tok: makeDataSource(mainMod, "getNodePool")}, - "rancher2_node_template": {Tok: makeDataSource(mainMod, "getNodeTemplate")}, - "rancher2_notifier": {Tok: makeDataSource(mainMod, "getNotifier")}, - "rancher2_project": {Tok: makeDataSource(mainMod, "getProject")}, - "rancher2_project_alert_group": {Tok: makeDataSource(mainMod, "getProjectAlertGroup")}, - "rancher2_project_alert_rule": {Tok: makeDataSource(mainMod, "getProjectAlertRule")}, - "rancher2_project_role_template_binding": {Tok: makeDataSource(mainMod, "getProjectRoleTemplateBinding")}, - "rancher2_registry": {Tok: makeDataSource(mainMod, "getRegistry")}, - "rancher2_secret": {Tok: makeDataSource(mainMod, "getSecret")}, - "rancher2_setting": {Tok: makeDataSource(mainMod, "getSetting")}, - "rancher2_user": {Tok: makeDataSource(mainMod, "getUser")}, - "rancher2_pod_security_policy_template": {Tok: makeDataSource(mainMod, "getPodSecurityPolicyTemplate")}, - "rancher2_catalog_v2": {Tok: makeDataSource(mainMod, "getCatalogV2")}, - "rancher2_global_dns_provider": {Tok: makeDataSource(mainMod, "getGlobalDnsProvider")}, - "rancher2_global_role": {Tok: makeDataSource(mainMod, "getGlobalRole")}, - "rancher2_secret_v2": {Tok: makeDataSource(mainMod, "getSecretV2")}, - "rancher2_cluster_v2": {Tok: makeDataSource(mainMod, "getClusterV2")}, - "rancher2_storage_class_v2": {Tok: makeDataSource(mainMod, "getStorageClassV2")}, - "rancher2_config_map_v2": {Tok: makeDataSource(mainMod, "getConfigMapV2")}, - "rancher2_principal": {Tok: makeDataSource(mainMod, "getPrincipal")}, + + // Override capitalization for backwards compatibility. + "rancher2_auth_config_activedirectory": {Tok: makeResource("AuthConfigActiveDirectory")}, }, JavaScript: &tfbridge.JavaScriptInfo{ // List any npm dependencies and their versions @@ -199,17 +100,15 @@ func Provider() tfbridge.ProviderInfo { "@types/mime": "^2.0.0", }, }, - Python: (func() *tfbridge.PythonInfo { - i := &tfbridge.PythonInfo{ - Requires: map[string]string{ - "pulumi": ">=3.0.0,<4.0.0", - }} - i.PyProject.Enabled = true - return i - })(), + Python: &tfbridge.PythonInfo{ + Requires: map[string]string{ + "pulumi": ">=3.0.0,<4.0.0", + }, + PyProject: struct{ Enabled bool }{true}, + }, Golang: &tfbridge.GolangInfo{ - ImportBasePath: filepath.Join( + ImportBasePath: path.Join( fmt.Sprintf("github.com/pulumi/pulumi-%[1]s/sdk/", mainPkg), tfbridge.GetModuleMajorVersion(version.Version), "go", @@ -221,36 +120,9 @@ func Provider() tfbridge.ProviderInfo { PackageReferences: map[string]string{ "Pulumi": "3.*", }, - Namespaces: namespaceMap, - }, MetadataInfo: tfbridge.NewProviderMetadata(metadata), + }, } - prov.RenameDataSource("rancher2_role_template", makeDataSource(mainMod, "getRoleTempalte"), - makeDataSource(mainMod, "getRoleTemplate"), mainMod, mainMod, &tfbridge.DataSourceInfo{ - Docs: &tfbridge.DocInfo{Source: "role_template.md"}, - }) - - prov.RenameResourceWithAlias("rancher2_cluster_alert_group", makeResource(mainMod, "ClusterAlterGroup"), - makeResource(mainMod, "ClusterAlertGroup"), mainMod, mainMod, &tfbridge.ResourceInfo{ - Docs: &tfbridge.DocInfo{Source: "cluster_alert_group.md"}, - }) - prov.RenameResourceWithAlias("rancher2_cluster_alert_rule", makeResource(mainMod, "ClusterAlterRule"), - makeResource(mainMod, "ClusterAlertRule"), mainMod, mainMod, &tfbridge.ResourceInfo{ - Docs: &tfbridge.DocInfo{Source: "cluster_alert_group.md"}, - }) - prov.RenameResourceWithAlias("rancher2_role_template", makeResource(mainMod, "RoleTempalte"), - makeResource(mainMod, "RoleTemplate"), mainMod, mainMod, - &tfbridge.ResourceInfo{ - Docs: &tfbridge.DocInfo{Source: "role_template.md"}, - }) - prov.RenameResourceWithAlias("rancher2_auth_config_activedirectory", makeResource(mainMod, "ActiveDirectory"), - makeResource(mainMod, "AuthConfigActiveDirectory"), mainMod, mainMod, - &tfbridge.ResourceInfo{ - Docs: &tfbridge.DocInfo{ - Source: "auth_config_activedirectory.md", - }, - }) - prov.MustComputeTokens(tks.SingleModule("rancher2_", mainMod, tks.MakeStandard(mainPkg))) prov.MustApplyAutoAliases() prov.SetAutonaming(255, "-") diff --git a/sdk/dotnet/ActiveDirectory.cs b/sdk/dotnet/ActiveDirectory.cs deleted file mode 100644 index 1ad1620bc..000000000 --- a/sdk/dotnet/ActiveDirectory.cs +++ /dev/null @@ -1,833 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2 -{ - /// - /// Provides a Rancher v2 Auth Config ActiveDirectory resource. This can be used to configure and enable Auth Config ActiveDirectory for Rancher v2 RKE clusters and retrieve their information. - /// - /// In addition to the built-in local auth, only one external auth config provider can be enabled at a time. - /// - [Obsolete(@"rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory")] - [Rancher2ResourceType("rancher2:index/activeDirectory:ActiveDirectory")] - public partial class ActiveDirectory : global::Pulumi.CustomResource - { - /// - /// Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - /// - [Output("accessMode")] - public Output AccessMode { get; private set; } = null!; - - /// - /// Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - /// - [Output("allowedPrincipalIds")] - public Output> AllowedPrincipalIds { get; private set; } = null!; - - /// - /// Annotations of the resource (map) - /// - [Output("annotations")] - public Output> Annotations { get; private set; } = null!; - - /// - /// CA certificate for TLS if selfsigned (string) - /// - [Output("certificate")] - public Output Certificate { get; private set; } = null!; - - /// - /// ActiveDirectory connection timeout. Default `5000` (int) - /// - [Output("connectionTimeout")] - public Output ConnectionTimeout { get; private set; } = null!; - - /// - /// ActiveDirectory defult login domain (string) - /// - [Output("defaultLoginDomain")] - public Output DefaultLoginDomain { get; private set; } = null!; - - /// - /// Enable auth config provider. Default `true` (bool) - /// - [Output("enabled")] - public Output Enabled { get; private set; } = null!; - - /// - /// Group DN attribute. Default `distinguishedName` (string) - /// - [Output("groupDnAttribute")] - public Output GroupDnAttribute { get; private set; } = null!; - - /// - /// Group member mapping attribute. Default `member` (string) - /// - [Output("groupMemberMappingAttribute")] - public Output GroupMemberMappingAttribute { get; private set; } = null!; - - /// - /// Group member user attribute. Default `distinguishedName` (string) - /// - [Output("groupMemberUserAttribute")] - public Output GroupMemberUserAttribute { get; private set; } = null!; - - /// - /// Group name attribute. Default `name` (string) - /// - [Output("groupNameAttribute")] - public Output GroupNameAttribute { get; private set; } = null!; - - /// - /// Group object class. Default `group` (string) - /// - [Output("groupObjectClass")] - public Output GroupObjectClass { get; private set; } = null!; - - /// - /// Group search attribute. Default `sAMAccountName` (string) - /// - [Output("groupSearchAttribute")] - public Output GroupSearchAttribute { get; private set; } = null!; - - /// - /// Group search base (string) - /// - [Output("groupSearchBase")] - public Output GroupSearchBase { get; private set; } = null!; - - /// - /// Group search filter (string) - /// - [Output("groupSearchFilter")] - public Output GroupSearchFilter { get; private set; } = null!; - - /// - /// Labels of the resource (map) - /// - [Output("labels")] - public Output> Labels { get; private set; } = null!; - - /// - /// (Computed) The name of the resource (string) - /// - [Output("name")] - public Output Name { get; private set; } = null!; - - /// - /// Nested group membership enable. Default `false` (bool) - /// - [Output("nestedGroupMembershipEnabled")] - public Output NestedGroupMembershipEnabled { get; private set; } = null!; - - /// - /// ActiveDirectory port. Default `389` (int) - /// - [Output("port")] - public Output Port { get; private set; } = null!; - - /// - /// ActiveDirectory servers list (list) - /// - [Output("servers")] - public Output> Servers { get; private set; } = null!; - - /// - /// Service account password for access ActiveDirectory service (string) - /// - [Output("serviceAccountPassword")] - public Output ServiceAccountPassword { get; private set; } = null!; - - /// - /// Service account DN for access ActiveDirectory service (string) - /// - [Output("serviceAccountUsername")] - public Output ServiceAccountUsername { get; private set; } = null!; - - /// - /// Enable start TLS connection (bool) - /// - [Output("startTls")] - public Output StartTls { get; private set; } = null!; - - /// - /// Password for test access to ActiveDirectory service (string) - /// - [Output("testPassword")] - public Output TestPassword { get; private set; } = null!; - - /// - /// Username for test access to ActiveDirectory service (string) - /// - [Output("testUsername")] - public Output TestUsername { get; private set; } = null!; - - /// - /// Enable TLS connection (bool) - /// - [Output("tls")] - public Output Tls { get; private set; } = null!; - - /// - /// (Computed) The type of the resource (string) - /// - [Output("type")] - public Output Type { get; private set; } = null!; - - /// - /// User disabled bit mask. Default `2` (int) - /// - [Output("userDisabledBitMask")] - public Output UserDisabledBitMask { get; private set; } = null!; - - /// - /// User enable attribute (string) - /// - [Output("userEnabledAttribute")] - public Output UserEnabledAttribute { get; private set; } = null!; - - /// - /// User login attribute. Default `sAMAccountName` (string) - /// - [Output("userLoginAttribute")] - public Output UserLoginAttribute { get; private set; } = null!; - - /// - /// User name attribute. Default `name` (string) - /// - [Output("userNameAttribute")] - public Output UserNameAttribute { get; private set; } = null!; - - /// - /// User object class. Default `person` (string) - /// - [Output("userObjectClass")] - public Output UserObjectClass { get; private set; } = null!; - - /// - /// User search attribute. Default `sAMAccountName|sn|givenName` (string) - /// - [Output("userSearchAttribute")] - public Output UserSearchAttribute { get; private set; } = null!; - - /// - /// User search base DN (string) - /// - [Output("userSearchBase")] - public Output UserSearchBase { get; private set; } = null!; - - /// - /// User search filter (string) - /// - [Output("userSearchFilter")] - public Output UserSearchFilter { get; private set; } = null!; - - - /// - /// Create a ActiveDirectory resource with the given unique name, arguments, and options. - /// - /// - /// The unique name of the resource - /// The arguments used to populate this resource's properties - /// A bag of options that control this resource's behavior - public ActiveDirectory(string name, ActiveDirectoryArgs args, CustomResourceOptions? options = null) - : base("rancher2:index/activeDirectory:ActiveDirectory", name, args ?? new ActiveDirectoryArgs(), MakeResourceOptions(options, "")) - { - } - - private ActiveDirectory(string name, Input id, ActiveDirectoryState? state = null, CustomResourceOptions? options = null) - : base("rancher2:index/activeDirectory:ActiveDirectory", name, state, MakeResourceOptions(options, id)) - { - } - - private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) - { - var defaultOptions = new CustomResourceOptions - { - Version = Utilities.Version, - AdditionalSecretOutputs = - { - "certificate", - "serviceAccountPassword", - "serviceAccountUsername", - "testPassword", - }, - }; - var merged = CustomResourceOptions.Merge(defaultOptions, options); - // Override the ID if one was specified for consistency with other language SDKs. - merged.Id = id ?? merged.Id; - return merged; - } - /// - /// Get an existing ActiveDirectory resource's state with the given name, ID, and optional extra - /// properties used to qualify the lookup. - /// - /// - /// The unique name of the resulting resource. - /// The unique provider ID of the resource to lookup. - /// Any extra arguments used during the lookup. - /// A bag of options that control this resource's behavior - public static ActiveDirectory Get(string name, Input id, ActiveDirectoryState? state = null, CustomResourceOptions? options = null) - { - return new ActiveDirectory(name, id, state, options); - } - } - - public sealed class ActiveDirectoryArgs : global::Pulumi.ResourceArgs - { - /// - /// Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - /// - [Input("accessMode")] - public Input? AccessMode { get; set; } - - [Input("allowedPrincipalIds")] - private InputList? _allowedPrincipalIds; - - /// - /// Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - /// - public InputList AllowedPrincipalIds - { - get => _allowedPrincipalIds ?? (_allowedPrincipalIds = new InputList()); - set => _allowedPrincipalIds = value; - } - - [Input("annotations")] - private InputMap? _annotations; - - /// - /// Annotations of the resource (map) - /// - public InputMap Annotations - { - get => _annotations ?? (_annotations = new InputMap()); - set => _annotations = value; - } - - [Input("certificate")] - private Input? _certificate; - - /// - /// CA certificate for TLS if selfsigned (string) - /// - public Input? Certificate - { - get => _certificate; - set - { - var emptySecret = Output.CreateSecret(0); - _certificate = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); - } - } - - /// - /// ActiveDirectory connection timeout. Default `5000` (int) - /// - [Input("connectionTimeout")] - public Input? ConnectionTimeout { get; set; } - - /// - /// ActiveDirectory defult login domain (string) - /// - [Input("defaultLoginDomain")] - public Input? DefaultLoginDomain { get; set; } - - /// - /// Enable auth config provider. Default `true` (bool) - /// - [Input("enabled")] - public Input? Enabled { get; set; } - - /// - /// Group DN attribute. Default `distinguishedName` (string) - /// - [Input("groupDnAttribute")] - public Input? GroupDnAttribute { get; set; } - - /// - /// Group member mapping attribute. Default `member` (string) - /// - [Input("groupMemberMappingAttribute")] - public Input? GroupMemberMappingAttribute { get; set; } - - /// - /// Group member user attribute. Default `distinguishedName` (string) - /// - [Input("groupMemberUserAttribute")] - public Input? GroupMemberUserAttribute { get; set; } - - /// - /// Group name attribute. Default `name` (string) - /// - [Input("groupNameAttribute")] - public Input? GroupNameAttribute { get; set; } - - /// - /// Group object class. Default `group` (string) - /// - [Input("groupObjectClass")] - public Input? GroupObjectClass { get; set; } - - /// - /// Group search attribute. Default `sAMAccountName` (string) - /// - [Input("groupSearchAttribute")] - public Input? GroupSearchAttribute { get; set; } - - /// - /// Group search base (string) - /// - [Input("groupSearchBase")] - public Input? GroupSearchBase { get; set; } - - /// - /// Group search filter (string) - /// - [Input("groupSearchFilter")] - public Input? GroupSearchFilter { get; set; } - - [Input("labels")] - private InputMap? _labels; - - /// - /// Labels of the resource (map) - /// - public InputMap Labels - { - get => _labels ?? (_labels = new InputMap()); - set => _labels = value; - } - - /// - /// Nested group membership enable. Default `false` (bool) - /// - [Input("nestedGroupMembershipEnabled")] - public Input? NestedGroupMembershipEnabled { get; set; } - - /// - /// ActiveDirectory port. Default `389` (int) - /// - [Input("port")] - public Input? Port { get; set; } - - [Input("servers", required: true)] - private InputList? _servers; - - /// - /// ActiveDirectory servers list (list) - /// - public InputList Servers - { - get => _servers ?? (_servers = new InputList()); - set => _servers = value; - } - - [Input("serviceAccountPassword", required: true)] - private Input? _serviceAccountPassword; - - /// - /// Service account password for access ActiveDirectory service (string) - /// - public Input? ServiceAccountPassword - { - get => _serviceAccountPassword; - set - { - var emptySecret = Output.CreateSecret(0); - _serviceAccountPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); - } - } - - [Input("serviceAccountUsername", required: true)] - private Input? _serviceAccountUsername; - - /// - /// Service account DN for access ActiveDirectory service (string) - /// - public Input? ServiceAccountUsername - { - get => _serviceAccountUsername; - set - { - var emptySecret = Output.CreateSecret(0); - _serviceAccountUsername = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); - } - } - - /// - /// Enable start TLS connection (bool) - /// - [Input("startTls")] - public Input? StartTls { get; set; } - - [Input("testPassword", required: true)] - private Input? _testPassword; - - /// - /// Password for test access to ActiveDirectory service (string) - /// - public Input? TestPassword - { - get => _testPassword; - set - { - var emptySecret = Output.CreateSecret(0); - _testPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); - } - } - - /// - /// Username for test access to ActiveDirectory service (string) - /// - [Input("testUsername", required: true)] - public Input TestUsername { get; set; } = null!; - - /// - /// Enable TLS connection (bool) - /// - [Input("tls")] - public Input? Tls { get; set; } - - /// - /// User disabled bit mask. Default `2` (int) - /// - [Input("userDisabledBitMask")] - public Input? UserDisabledBitMask { get; set; } - - /// - /// User enable attribute (string) - /// - [Input("userEnabledAttribute")] - public Input? UserEnabledAttribute { get; set; } - - /// - /// User login attribute. Default `sAMAccountName` (string) - /// - [Input("userLoginAttribute")] - public Input? UserLoginAttribute { get; set; } - - /// - /// User name attribute. Default `name` (string) - /// - [Input("userNameAttribute")] - public Input? UserNameAttribute { get; set; } - - /// - /// User object class. Default `person` (string) - /// - [Input("userObjectClass")] - public Input? UserObjectClass { get; set; } - - /// - /// User search attribute. Default `sAMAccountName|sn|givenName` (string) - /// - [Input("userSearchAttribute")] - public Input? UserSearchAttribute { get; set; } - - /// - /// User search base DN (string) - /// - [Input("userSearchBase", required: true)] - public Input UserSearchBase { get; set; } = null!; - - /// - /// User search filter (string) - /// - [Input("userSearchFilter")] - public Input? UserSearchFilter { get; set; } - - public ActiveDirectoryArgs() - { - } - public static new ActiveDirectoryArgs Empty => new ActiveDirectoryArgs(); - } - - public sealed class ActiveDirectoryState : global::Pulumi.ResourceArgs - { - /// - /// Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - /// - [Input("accessMode")] - public Input? AccessMode { get; set; } - - [Input("allowedPrincipalIds")] - private InputList? _allowedPrincipalIds; - - /// - /// Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - /// - public InputList AllowedPrincipalIds - { - get => _allowedPrincipalIds ?? (_allowedPrincipalIds = new InputList()); - set => _allowedPrincipalIds = value; - } - - [Input("annotations")] - private InputMap? _annotations; - - /// - /// Annotations of the resource (map) - /// - public InputMap Annotations - { - get => _annotations ?? (_annotations = new InputMap()); - set => _annotations = value; - } - - [Input("certificate")] - private Input? _certificate; - - /// - /// CA certificate for TLS if selfsigned (string) - /// - public Input? Certificate - { - get => _certificate; - set - { - var emptySecret = Output.CreateSecret(0); - _certificate = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); - } - } - - /// - /// ActiveDirectory connection timeout. Default `5000` (int) - /// - [Input("connectionTimeout")] - public Input? ConnectionTimeout { get; set; } - - /// - /// ActiveDirectory defult login domain (string) - /// - [Input("defaultLoginDomain")] - public Input? DefaultLoginDomain { get; set; } - - /// - /// Enable auth config provider. Default `true` (bool) - /// - [Input("enabled")] - public Input? Enabled { get; set; } - - /// - /// Group DN attribute. Default `distinguishedName` (string) - /// - [Input("groupDnAttribute")] - public Input? GroupDnAttribute { get; set; } - - /// - /// Group member mapping attribute. Default `member` (string) - /// - [Input("groupMemberMappingAttribute")] - public Input? GroupMemberMappingAttribute { get; set; } - - /// - /// Group member user attribute. Default `distinguishedName` (string) - /// - [Input("groupMemberUserAttribute")] - public Input? GroupMemberUserAttribute { get; set; } - - /// - /// Group name attribute. Default `name` (string) - /// - [Input("groupNameAttribute")] - public Input? GroupNameAttribute { get; set; } - - /// - /// Group object class. Default `group` (string) - /// - [Input("groupObjectClass")] - public Input? GroupObjectClass { get; set; } - - /// - /// Group search attribute. Default `sAMAccountName` (string) - /// - [Input("groupSearchAttribute")] - public Input? GroupSearchAttribute { get; set; } - - /// - /// Group search base (string) - /// - [Input("groupSearchBase")] - public Input? GroupSearchBase { get; set; } - - /// - /// Group search filter (string) - /// - [Input("groupSearchFilter")] - public Input? GroupSearchFilter { get; set; } - - [Input("labels")] - private InputMap? _labels; - - /// - /// Labels of the resource (map) - /// - public InputMap Labels - { - get => _labels ?? (_labels = new InputMap()); - set => _labels = value; - } - - /// - /// (Computed) The name of the resource (string) - /// - [Input("name")] - public Input? Name { get; set; } - - /// - /// Nested group membership enable. Default `false` (bool) - /// - [Input("nestedGroupMembershipEnabled")] - public Input? NestedGroupMembershipEnabled { get; set; } - - /// - /// ActiveDirectory port. Default `389` (int) - /// - [Input("port")] - public Input? Port { get; set; } - - [Input("servers")] - private InputList? _servers; - - /// - /// ActiveDirectory servers list (list) - /// - public InputList Servers - { - get => _servers ?? (_servers = new InputList()); - set => _servers = value; - } - - [Input("serviceAccountPassword")] - private Input? _serviceAccountPassword; - - /// - /// Service account password for access ActiveDirectory service (string) - /// - public Input? ServiceAccountPassword - { - get => _serviceAccountPassword; - set - { - var emptySecret = Output.CreateSecret(0); - _serviceAccountPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); - } - } - - [Input("serviceAccountUsername")] - private Input? _serviceAccountUsername; - - /// - /// Service account DN for access ActiveDirectory service (string) - /// - public Input? ServiceAccountUsername - { - get => _serviceAccountUsername; - set - { - var emptySecret = Output.CreateSecret(0); - _serviceAccountUsername = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); - } - } - - /// - /// Enable start TLS connection (bool) - /// - [Input("startTls")] - public Input? StartTls { get; set; } - - [Input("testPassword")] - private Input? _testPassword; - - /// - /// Password for test access to ActiveDirectory service (string) - /// - public Input? TestPassword - { - get => _testPassword; - set - { - var emptySecret = Output.CreateSecret(0); - _testPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); - } - } - - /// - /// Username for test access to ActiveDirectory service (string) - /// - [Input("testUsername")] - public Input? TestUsername { get; set; } - - /// - /// Enable TLS connection (bool) - /// - [Input("tls")] - public Input? Tls { get; set; } - - /// - /// (Computed) The type of the resource (string) - /// - [Input("type")] - public Input? Type { get; set; } - - /// - /// User disabled bit mask. Default `2` (int) - /// - [Input("userDisabledBitMask")] - public Input? UserDisabledBitMask { get; set; } - - /// - /// User enable attribute (string) - /// - [Input("userEnabledAttribute")] - public Input? UserEnabledAttribute { get; set; } - - /// - /// User login attribute. Default `sAMAccountName` (string) - /// - [Input("userLoginAttribute")] - public Input? UserLoginAttribute { get; set; } - - /// - /// User name attribute. Default `name` (string) - /// - [Input("userNameAttribute")] - public Input? UserNameAttribute { get; set; } - - /// - /// User object class. Default `person` (string) - /// - [Input("userObjectClass")] - public Input? UserObjectClass { get; set; } - - /// - /// User search attribute. Default `sAMAccountName|sn|givenName` (string) - /// - [Input("userSearchAttribute")] - public Input? UserSearchAttribute { get; set; } - - /// - /// User search base DN (string) - /// - [Input("userSearchBase")] - public Input? UserSearchBase { get; set; } - - /// - /// User search filter (string) - /// - [Input("userSearchFilter")] - public Input? UserSearchFilter { get; set; } - - public ActiveDirectoryState() - { - } - public static new ActiveDirectoryState Empty => new ActiveDirectoryState(); - } -} diff --git a/sdk/dotnet/AppV2.cs b/sdk/dotnet/AppV2.cs index c24b81680..433b39ad9 100644 --- a/sdk/dotnet/AppV2.cs +++ b/sdk/dotnet/AppV2.cs @@ -36,6 +36,29 @@ namespace Pulumi.Rancher2 /// /// }); /// ``` + /// ### Create an App from a Helm Chart using a different registry + /// + /// The `system_default_registry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Rancher2 = Pulumi.Rancher2; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cisBenchmark = new Rancher2.AppV2("cisBenchmark", new() + /// { + /// ChartName = "rancher-cis-benchmark", + /// ClusterId = "<CLUSTER_ID>", + /// Namespace = "cis-operator-system", + /// RepoName = "rancher-charts", + /// SystemDefaultRegistry = "<some.dns.here>:<PORT>", + /// }); + /// + /// }); + /// ``` /// /// ## Import /// @@ -141,7 +164,7 @@ public partial class AppV2 : global::Pulumi.CustomResource public Output RepoName { get; private set; } = null!; /// - /// (Computed) The system default registry of the app (string) + /// System default registry providing images for app deployment (string) /// [Output("systemDefaultRegistry")] public Output SystemDefaultRegistry { get; private set; } = null!; @@ -294,6 +317,12 @@ public InputMap Labels [Input("repoName", required: true)] public Input RepoName { get; set; } = null!; + /// + /// System default registry providing images for app deployment (string) + /// + [Input("systemDefaultRegistry")] + public Input? SystemDefaultRegistry { get; set; } + /// /// The app v2 values yaml. Yaml format is required (string) /// @@ -419,7 +448,7 @@ public InputMap Labels public Input? RepoName { get; set; } /// - /// (Computed) The system default registry of the app (string) + /// System default registry providing images for app deployment (string) /// [Input("systemDefaultRegistry")] public Input? SystemDefaultRegistry { get; set; } diff --git a/sdk/dotnet/AuthConfigActiveDirectory.cs b/sdk/dotnet/AuthConfigActiveDirectory.cs index 46ce31a03..a47596c9b 100644 --- a/sdk/dotnet/AuthConfigActiveDirectory.cs +++ b/sdk/dotnet/AuthConfigActiveDirectory.cs @@ -250,10 +250,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - Aliases = - { - new global::Pulumi.Alias { Type = "rancher2:index/activeDirectory:ActiveDirectory" }, - }, AdditionalSecretOutputs = { "certificate", diff --git a/sdk/dotnet/CatalogV2.cs b/sdk/dotnet/CatalogV2.cs index b898fddad..2b2c2d6f0 100644 --- a/sdk/dotnet/CatalogV2.cs +++ b/sdk/dotnet/CatalogV2.cs @@ -30,7 +30,7 @@ public partial class CatalogV2 : global::Pulumi.CustomResource public Output> Annotations { get; private set; } = null!; /// - /// PEM encoded CA bundle which will be used to validate the repo's certificate (string) + /// CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) /// [Output("caBundle")] public Output CaBundle { get; private set; } = null!; @@ -172,7 +172,7 @@ public InputMap Annotations } /// - /// PEM encoded CA bundle which will be used to validate the repo's certificate (string) + /// CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) /// [Input("caBundle")] public Input? CaBundle { get; set; } @@ -276,7 +276,7 @@ public InputMap Annotations } /// - /// PEM encoded CA bundle which will be used to validate the repo's certificate (string) + /// CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) /// [Input("caBundle")] public Input? CaBundle { get; set; } diff --git a/sdk/dotnet/ClusterAlertGroup.cs b/sdk/dotnet/ClusterAlertGroup.cs index 6578559a0..f5d71c371 100644 --- a/sdk/dotnet/ClusterAlertGroup.cs +++ b/sdk/dotnet/ClusterAlertGroup.cs @@ -122,10 +122,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - Aliases = - { - new global::Pulumi.Alias { Type = "rancher2:index/clusterAlterGroup:ClusterAlterGroup" }, - }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ClusterAlertRule.cs b/sdk/dotnet/ClusterAlertRule.cs index 8b4c5b278..17f68af0a 100644 --- a/sdk/dotnet/ClusterAlertRule.cs +++ b/sdk/dotnet/ClusterAlertRule.cs @@ -161,10 +161,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - Aliases = - { - new global::Pulumi.Alias { Type = "rancher2:index/clusterAlterRule:ClusterAlterRule" }, - }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ClusterAlterGroup.cs b/sdk/dotnet/ClusterAlterGroup.cs deleted file mode 100644 index cc2fd2413..000000000 --- a/sdk/dotnet/ClusterAlterGroup.cs +++ /dev/null @@ -1,306 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2 -{ - /// - /// Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Rancher2 = Pulumi.Rancher2; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create a new Rancher2 Cluster Alert Group - /// var foo = new Rancher2.ClusterAlertGroup("foo", new() - /// { - /// ClusterId = "<cluster_id>", - /// Description = "Terraform cluster alert group", - /// GroupIntervalSeconds = 300, - /// RepeatIntervalSeconds = 3600, - /// }); - /// - /// }); - /// ``` - /// - /// ## Import - /// - /// Cluster Alert Group can be imported using the Rancher cluster alert group ID - /// - /// ```sh - /// $ pulumi import rancher2:index/clusterAlterGroup:ClusterAlterGroup foo &lt;CLUSTER_ALERT_GROUP_ID&gt; - /// ``` - /// - [Obsolete(@"rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup")] - [Rancher2ResourceType("rancher2:index/clusterAlterGroup:ClusterAlterGroup")] - public partial class ClusterAlterGroup : global::Pulumi.CustomResource - { - /// - /// The cluster alert group annotations (map) - /// - [Output("annotations")] - public Output> Annotations { get; private set; } = null!; - - /// - /// The cluster id where create cluster alert group (string) - /// - [Output("clusterId")] - public Output ClusterId { get; private set; } = null!; - - /// - /// The cluster alert group description (string) - /// - [Output("description")] - public Output Description { get; private set; } = null!; - - /// - /// The cluster alert group interval seconds. Default: `180` (int) - /// - [Output("groupIntervalSeconds")] - public Output GroupIntervalSeconds { get; private set; } = null!; - - /// - /// The cluster alert group wait seconds. Default: `180` (int) - /// - [Output("groupWaitSeconds")] - public Output GroupWaitSeconds { get; private set; } = null!; - - /// - /// The cluster alert group labels (map) - /// - [Output("labels")] - public Output> Labels { get; private set; } = null!; - - /// - /// The cluster alert group name (string) - /// - [Output("name")] - public Output Name { get; private set; } = null!; - - /// - /// The cluster alert group recipients (list) - /// - [Output("recipients")] - public Output> Recipients { get; private set; } = null!; - - /// - /// The cluster alert group wait seconds. Default: `3600` (int) - /// - [Output("repeatIntervalSeconds")] - public Output RepeatIntervalSeconds { get; private set; } = null!; - - - /// - /// Create a ClusterAlterGroup resource with the given unique name, arguments, and options. - /// - /// - /// The unique name of the resource - /// The arguments used to populate this resource's properties - /// A bag of options that control this resource's behavior - public ClusterAlterGroup(string name, ClusterAlterGroupArgs args, CustomResourceOptions? options = null) - : base("rancher2:index/clusterAlterGroup:ClusterAlterGroup", name, args ?? new ClusterAlterGroupArgs(), MakeResourceOptions(options, "")) - { - } - - private ClusterAlterGroup(string name, Input id, ClusterAlterGroupState? state = null, CustomResourceOptions? options = null) - : base("rancher2:index/clusterAlterGroup:ClusterAlterGroup", name, state, MakeResourceOptions(options, id)) - { - } - - private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) - { - var defaultOptions = new CustomResourceOptions - { - Version = Utilities.Version, - }; - var merged = CustomResourceOptions.Merge(defaultOptions, options); - // Override the ID if one was specified for consistency with other language SDKs. - merged.Id = id ?? merged.Id; - return merged; - } - /// - /// Get an existing ClusterAlterGroup resource's state with the given name, ID, and optional extra - /// properties used to qualify the lookup. - /// - /// - /// The unique name of the resulting resource. - /// The unique provider ID of the resource to lookup. - /// Any extra arguments used during the lookup. - /// A bag of options that control this resource's behavior - public static ClusterAlterGroup Get(string name, Input id, ClusterAlterGroupState? state = null, CustomResourceOptions? options = null) - { - return new ClusterAlterGroup(name, id, state, options); - } - } - - public sealed class ClusterAlterGroupArgs : global::Pulumi.ResourceArgs - { - [Input("annotations")] - private InputMap? _annotations; - - /// - /// The cluster alert group annotations (map) - /// - public InputMap Annotations - { - get => _annotations ?? (_annotations = new InputMap()); - set => _annotations = value; - } - - /// - /// The cluster id where create cluster alert group (string) - /// - [Input("clusterId", required: true)] - public Input ClusterId { get; set; } = null!; - - /// - /// The cluster alert group description (string) - /// - [Input("description")] - public Input? Description { get; set; } - - /// - /// The cluster alert group interval seconds. Default: `180` (int) - /// - [Input("groupIntervalSeconds")] - public Input? GroupIntervalSeconds { get; set; } - - /// - /// The cluster alert group wait seconds. Default: `180` (int) - /// - [Input("groupWaitSeconds")] - public Input? GroupWaitSeconds { get; set; } - - [Input("labels")] - private InputMap? _labels; - - /// - /// The cluster alert group labels (map) - /// - public InputMap Labels - { - get => _labels ?? (_labels = new InputMap()); - set => _labels = value; - } - - /// - /// The cluster alert group name (string) - /// - [Input("name")] - public Input? Name { get; set; } - - [Input("recipients")] - private InputList? _recipients; - - /// - /// The cluster alert group recipients (list) - /// - public InputList Recipients - { - get => _recipients ?? (_recipients = new InputList()); - set => _recipients = value; - } - - /// - /// The cluster alert group wait seconds. Default: `3600` (int) - /// - [Input("repeatIntervalSeconds")] - public Input? RepeatIntervalSeconds { get; set; } - - public ClusterAlterGroupArgs() - { - } - public static new ClusterAlterGroupArgs Empty => new ClusterAlterGroupArgs(); - } - - public sealed class ClusterAlterGroupState : global::Pulumi.ResourceArgs - { - [Input("annotations")] - private InputMap? _annotations; - - /// - /// The cluster alert group annotations (map) - /// - public InputMap Annotations - { - get => _annotations ?? (_annotations = new InputMap()); - set => _annotations = value; - } - - /// - /// The cluster id where create cluster alert group (string) - /// - [Input("clusterId")] - public Input? ClusterId { get; set; } - - /// - /// The cluster alert group description (string) - /// - [Input("description")] - public Input? Description { get; set; } - - /// - /// The cluster alert group interval seconds. Default: `180` (int) - /// - [Input("groupIntervalSeconds")] - public Input? GroupIntervalSeconds { get; set; } - - /// - /// The cluster alert group wait seconds. Default: `180` (int) - /// - [Input("groupWaitSeconds")] - public Input? GroupWaitSeconds { get; set; } - - [Input("labels")] - private InputMap? _labels; - - /// - /// The cluster alert group labels (map) - /// - public InputMap Labels - { - get => _labels ?? (_labels = new InputMap()); - set => _labels = value; - } - - /// - /// The cluster alert group name (string) - /// - [Input("name")] - public Input? Name { get; set; } - - [Input("recipients")] - private InputList? _recipients; - - /// - /// The cluster alert group recipients (list) - /// - public InputList Recipients - { - get => _recipients ?? (_recipients = new InputList()); - set => _recipients = value; - } - - /// - /// The cluster alert group wait seconds. Default: `3600` (int) - /// - [Input("repeatIntervalSeconds")] - public Input? RepeatIntervalSeconds { get; set; } - - public ClusterAlterGroupState() - { - } - public static new ClusterAlterGroupState Empty => new ClusterAlterGroupState(); - } -} diff --git a/sdk/dotnet/ClusterAlterRule.cs b/sdk/dotnet/ClusterAlterRule.cs deleted file mode 100644 index 3d2db86d2..000000000 --- a/sdk/dotnet/ClusterAlterRule.cs +++ /dev/null @@ -1,384 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2 -{ - /// - /// Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Rancher2 = Pulumi.Rancher2; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create a new Rancher2 Cluster Alert Group - /// var foo = new Rancher2.ClusterAlertGroup("foo", new() - /// { - /// ClusterId = "<cluster_id>", - /// Description = "Terraform cluster alert group", - /// GroupIntervalSeconds = 300, - /// RepeatIntervalSeconds = 3600, - /// }); - /// - /// }); - /// ``` - /// - /// ## Import - /// - /// Cluster Alert Group can be imported using the Rancher cluster alert group ID - /// - /// ```sh - /// $ pulumi import rancher2:index/clusterAlterRule:ClusterAlterRule foo &lt;CLUSTER_ALERT_GROUP_ID&gt; - /// ``` - /// - [Obsolete(@"rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule")] - [Rancher2ResourceType("rancher2:index/clusterAlterRule:ClusterAlterRule")] - public partial class ClusterAlterRule : global::Pulumi.CustomResource - { - /// - /// The cluster alert group annotations (map) - /// - [Output("annotations")] - public Output> Annotations { get; private set; } = null!; - - /// - /// The cluster id where create cluster alert group (string) - /// - [Output("clusterId")] - public Output ClusterId { get; private set; } = null!; - - /// - /// Alert event rule - /// - [Output("eventRule")] - public Output EventRule { get; private set; } = null!; - - /// - /// Alert rule group ID - /// - [Output("groupId")] - public Output GroupId { get; private set; } = null!; - - /// - /// The cluster alert group interval seconds. Default: `180` (int) - /// - [Output("groupIntervalSeconds")] - public Output GroupIntervalSeconds { get; private set; } = null!; - - /// - /// The cluster alert group wait seconds. Default: `180` (int) - /// - [Output("groupWaitSeconds")] - public Output GroupWaitSeconds { get; private set; } = null!; - - /// - /// Alert rule inherited - /// - [Output("inherited")] - public Output Inherited { get; private set; } = null!; - - /// - /// The cluster alert group labels (map) - /// - [Output("labels")] - public Output> Labels { get; private set; } = null!; - - /// - /// Alert metric rule - /// - [Output("metricRule")] - public Output MetricRule { get; private set; } = null!; - - /// - /// The cluster alert group name (string) - /// - [Output("name")] - public Output Name { get; private set; } = null!; - - /// - /// Alert node rule - /// - [Output("nodeRule")] - public Output NodeRule { get; private set; } = null!; - - /// - /// The cluster alert group wait seconds. Default: `3600` (int) - /// - [Output("repeatIntervalSeconds")] - public Output RepeatIntervalSeconds { get; private set; } = null!; - - /// - /// Alert rule severity - /// - [Output("severity")] - public Output Severity { get; private set; } = null!; - - /// - /// Alert system service rule - /// - [Output("systemServiceRule")] - public Output SystemServiceRule { get; private set; } = null!; - - - /// - /// Create a ClusterAlterRule resource with the given unique name, arguments, and options. - /// - /// - /// The unique name of the resource - /// The arguments used to populate this resource's properties - /// A bag of options that control this resource's behavior - public ClusterAlterRule(string name, ClusterAlterRuleArgs args, CustomResourceOptions? options = null) - : base("rancher2:index/clusterAlterRule:ClusterAlterRule", name, args ?? new ClusterAlterRuleArgs(), MakeResourceOptions(options, "")) - { - } - - private ClusterAlterRule(string name, Input id, ClusterAlterRuleState? state = null, CustomResourceOptions? options = null) - : base("rancher2:index/clusterAlterRule:ClusterAlterRule", name, state, MakeResourceOptions(options, id)) - { - } - - private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) - { - var defaultOptions = new CustomResourceOptions - { - Version = Utilities.Version, - }; - var merged = CustomResourceOptions.Merge(defaultOptions, options); - // Override the ID if one was specified for consistency with other language SDKs. - merged.Id = id ?? merged.Id; - return merged; - } - /// - /// Get an existing ClusterAlterRule resource's state with the given name, ID, and optional extra - /// properties used to qualify the lookup. - /// - /// - /// The unique name of the resulting resource. - /// The unique provider ID of the resource to lookup. - /// Any extra arguments used during the lookup. - /// A bag of options that control this resource's behavior - public static ClusterAlterRule Get(string name, Input id, ClusterAlterRuleState? state = null, CustomResourceOptions? options = null) - { - return new ClusterAlterRule(name, id, state, options); - } - } - - public sealed class ClusterAlterRuleArgs : global::Pulumi.ResourceArgs - { - [Input("annotations")] - private InputMap? _annotations; - - /// - /// The cluster alert group annotations (map) - /// - public InputMap Annotations - { - get => _annotations ?? (_annotations = new InputMap()); - set => _annotations = value; - } - - /// - /// The cluster id where create cluster alert group (string) - /// - [Input("clusterId", required: true)] - public Input ClusterId { get; set; } = null!; - - /// - /// Alert event rule - /// - [Input("eventRule")] - public Input? EventRule { get; set; } - - /// - /// Alert rule group ID - /// - [Input("groupId", required: true)] - public Input GroupId { get; set; } = null!; - - /// - /// The cluster alert group interval seconds. Default: `180` (int) - /// - [Input("groupIntervalSeconds")] - public Input? GroupIntervalSeconds { get; set; } - - /// - /// The cluster alert group wait seconds. Default: `180` (int) - /// - [Input("groupWaitSeconds")] - public Input? GroupWaitSeconds { get; set; } - - /// - /// Alert rule inherited - /// - [Input("inherited")] - public Input? Inherited { get; set; } - - [Input("labels")] - private InputMap? _labels; - - /// - /// The cluster alert group labels (map) - /// - public InputMap Labels - { - get => _labels ?? (_labels = new InputMap()); - set => _labels = value; - } - - /// - /// Alert metric rule - /// - [Input("metricRule")] - public Input? MetricRule { get; set; } - - /// - /// The cluster alert group name (string) - /// - [Input("name")] - public Input? Name { get; set; } - - /// - /// Alert node rule - /// - [Input("nodeRule")] - public Input? NodeRule { get; set; } - - /// - /// The cluster alert group wait seconds. Default: `3600` (int) - /// - [Input("repeatIntervalSeconds")] - public Input? RepeatIntervalSeconds { get; set; } - - /// - /// Alert rule severity - /// - [Input("severity")] - public Input? Severity { get; set; } - - /// - /// Alert system service rule - /// - [Input("systemServiceRule")] - public Input? SystemServiceRule { get; set; } - - public ClusterAlterRuleArgs() - { - } - public static new ClusterAlterRuleArgs Empty => new ClusterAlterRuleArgs(); - } - - public sealed class ClusterAlterRuleState : global::Pulumi.ResourceArgs - { - [Input("annotations")] - private InputMap? _annotations; - - /// - /// The cluster alert group annotations (map) - /// - public InputMap Annotations - { - get => _annotations ?? (_annotations = new InputMap()); - set => _annotations = value; - } - - /// - /// The cluster id where create cluster alert group (string) - /// - [Input("clusterId")] - public Input? ClusterId { get; set; } - - /// - /// Alert event rule - /// - [Input("eventRule")] - public Input? EventRule { get; set; } - - /// - /// Alert rule group ID - /// - [Input("groupId")] - public Input? GroupId { get; set; } - - /// - /// The cluster alert group interval seconds. Default: `180` (int) - /// - [Input("groupIntervalSeconds")] - public Input? GroupIntervalSeconds { get; set; } - - /// - /// The cluster alert group wait seconds. Default: `180` (int) - /// - [Input("groupWaitSeconds")] - public Input? GroupWaitSeconds { get; set; } - - /// - /// Alert rule inherited - /// - [Input("inherited")] - public Input? Inherited { get; set; } - - [Input("labels")] - private InputMap? _labels; - - /// - /// The cluster alert group labels (map) - /// - public InputMap Labels - { - get => _labels ?? (_labels = new InputMap()); - set => _labels = value; - } - - /// - /// Alert metric rule - /// - [Input("metricRule")] - public Input? MetricRule { get; set; } - - /// - /// The cluster alert group name (string) - /// - [Input("name")] - public Input? Name { get; set; } - - /// - /// Alert node rule - /// - [Input("nodeRule")] - public Input? NodeRule { get; set; } - - /// - /// The cluster alert group wait seconds. Default: `3600` (int) - /// - [Input("repeatIntervalSeconds")] - public Input? RepeatIntervalSeconds { get; set; } - - /// - /// Alert rule severity - /// - [Input("severity")] - public Input? Severity { get; set; } - - /// - /// Alert system service rule - /// - [Input("systemServiceRule")] - public Input? SystemServiceRule { get; set; } - - public ClusterAlterRuleState() - { - } - public static new ClusterAlterRuleState Empty => new ClusterAlterRuleState(); - } -} diff --git a/sdk/dotnet/ClusterV2.cs b/sdk/dotnet/ClusterV2.cs index 757589665..67dcf4328 100644 --- a/sdk/dotnet/ClusterV2.cs +++ b/sdk/dotnet/ClusterV2.cs @@ -15,122 +15,122 @@ namespace Pulumi.Rancher2 /// Clusters v2 can be imported using the Rancher Cluster v2 ID, that is in the form &lt;FLEET_NAMESPACE&gt;/&lt;CLUSTER_NAME&gt; /// /// ```sh - /// $ pulumi import rancher2:index/clusterV2:ClusterV2 foo &lt;FLEET_NAMESPACE&gt;/&lt;CLUSTER_NAME&gt; + /// $ pulumi import rancher2:index/clusterV2:ClusterV2 foo <FLEET_NAMESPACE>/<CLUSTER_NAME> /// ``` /// [Rancher2ResourceType("rancher2:index/clusterV2:ClusterV2")] public partial class ClusterV2 : global::Pulumi.CustomResource { /// - /// Optional Agent Env Vars for Rancher agent (list) + /// Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. /// [Output("agentEnvVars")] public Output> AgentEnvVars { get; private set; } = null!; /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// [Output("annotations")] public Output> Annotations { get; private set; } = null!; /// - /// Cluster V2 cloud credential secret name (string) + /// Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. /// [Output("cloudCredentialSecretName")] public Output CloudCredentialSecretName { get; private set; } = null!; /// - /// Optional customization for cluster agent (list) + /// Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. /// [Output("clusterAgentDeploymentCustomizations")] public Output> ClusterAgentDeploymentCustomizations { get; private set; } = null!; /// - /// (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + /// (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. /// [Output("clusterRegistrationToken")] public Output ClusterRegistrationToken { get; private set; } = null!; /// - /// (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + /// (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). /// [Output("clusterV1Id")] public Output ClusterV1Id { get; private set; } = null!; /// - /// Cluster V2 default cluster role for project members (string) + /// Default cluster role for project members. /// [Output("defaultClusterRoleForProjectMembers")] public Output DefaultClusterRoleForProjectMembers { get; private set; } = null!; /// - /// Cluster V2 default pod security admission configuration template name (string) + /// The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. /// [Output("defaultPodSecurityAdmissionConfigurationTemplateName")] public Output DefaultPodSecurityAdmissionConfigurationTemplateName { get; private set; } = null!; /// - /// Cluster V2 default pod security policy template name (string) + /// Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). /// [Output("defaultPodSecurityPolicyTemplateName")] public Output DefaultPodSecurityPolicyTemplateName { get; private set; } = null!; /// - /// Enable k8s network policy at Cluster V2 (bool) + /// Enable k8s network policy on the cluster. /// [Output("enableNetworkPolicy")] public Output EnableNetworkPolicy { get; private set; } = null!; /// - /// Optional customization for fleet agent (list) + /// Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. /// [Output("fleetAgentDeploymentCustomizations")] public Output> FleetAgentDeploymentCustomizations { get; private set; } = null!; /// - /// The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + /// Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. /// [Output("fleetNamespace")] public Output FleetNamespace { get; private set; } = null!; /// - /// (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + /// (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. /// [Output("kubeConfig")] public Output KubeConfig { get; private set; } = null!; /// - /// The kubernetes version of the Cluster v2 (list maxitems:1) + /// The RKE2 or K3s version for the cluster. /// [Output("kubernetesVersion")] public Output KubernetesVersion { get; private set; } = null!; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// [Output("labels")] public Output> Labels { get; private set; } = null!; /// - /// Cluster V2 local auth endpoint (list maxitems:1) + /// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). /// [Output("localAuthEndpoint")] public Output LocalAuthEndpoint { get; private set; } = null!; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Output("name")] public Output Name { get; private set; } = null!; /// - /// (Computed) Cluster v2 k8s resource version (string) + /// (Computed, string) Cluster's k8s resource version. /// [Output("resourceVersion")] public Output ResourceVersion { get; private set; } = null!; /// - /// The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + /// The RKE configuration for the cluster. /// [Output("rkeConfig")] public Output RkeConfig { get; private set; } = null!; @@ -190,7 +190,7 @@ public sealed class ClusterV2Args : global::Pulumi.ResourceArgs private InputList? _agentEnvVars; /// - /// Optional Agent Env Vars for Rancher agent (list) + /// Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. /// public InputList AgentEnvVars { @@ -202,7 +202,7 @@ public InputList AgentEnvVars private InputMap? _annotations; /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// public InputMap Annotations { @@ -211,7 +211,7 @@ public InputMap Annotations } /// - /// Cluster V2 cloud credential secret name (string) + /// Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. /// [Input("cloudCredentialSecretName")] public Input? CloudCredentialSecretName { get; set; } @@ -220,7 +220,7 @@ public InputMap Annotations private InputList? _clusterAgentDeploymentCustomizations; /// - /// Optional customization for cluster agent (list) + /// Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. /// public InputList ClusterAgentDeploymentCustomizations { @@ -229,25 +229,25 @@ public InputList Cluste } /// - /// Cluster V2 default cluster role for project members (string) + /// Default cluster role for project members. /// [Input("defaultClusterRoleForProjectMembers")] public Input? DefaultClusterRoleForProjectMembers { get; set; } /// - /// Cluster V2 default pod security admission configuration template name (string) + /// The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. /// [Input("defaultPodSecurityAdmissionConfigurationTemplateName")] public Input? DefaultPodSecurityAdmissionConfigurationTemplateName { get; set; } /// - /// Cluster V2 default pod security policy template name (string) + /// Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). /// [Input("defaultPodSecurityPolicyTemplateName")] public Input? DefaultPodSecurityPolicyTemplateName { get; set; } /// - /// Enable k8s network policy at Cluster V2 (bool) + /// Enable k8s network policy on the cluster. /// [Input("enableNetworkPolicy")] public Input? EnableNetworkPolicy { get; set; } @@ -256,7 +256,7 @@ public InputList Cluste private InputList? _fleetAgentDeploymentCustomizations; /// - /// Optional customization for fleet agent (list) + /// Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. /// public InputList FleetAgentDeploymentCustomizations { @@ -265,13 +265,13 @@ public InputList FleetAge } /// - /// The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + /// Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. /// [Input("fleetNamespace")] public Input? FleetNamespace { get; set; } /// - /// The kubernetes version of the Cluster v2 (list maxitems:1) + /// The RKE2 or K3s version for the cluster. /// [Input("kubernetesVersion", required: true)] public Input KubernetesVersion { get; set; } = null!; @@ -280,7 +280,7 @@ public InputList FleetAge private InputMap? _labels; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// public InputMap Labels { @@ -289,19 +289,19 @@ public InputMap Labels } /// - /// Cluster V2 local auth endpoint (list maxitems:1) + /// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). /// [Input("localAuthEndpoint")] public Input? LocalAuthEndpoint { get; set; } /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name")] public Input? Name { get; set; } /// - /// The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + /// The RKE configuration for the cluster. /// [Input("rkeConfig")] public Input? RkeConfig { get; set; } @@ -318,7 +318,7 @@ public sealed class ClusterV2State : global::Pulumi.ResourceArgs private InputList? _agentEnvVars; /// - /// Optional Agent Env Vars for Rancher agent (list) + /// Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. /// public InputList AgentEnvVars { @@ -330,7 +330,7 @@ public InputList AgentEnvVars private InputMap? _annotations; /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// public InputMap Annotations { @@ -339,7 +339,7 @@ public InputMap Annotations } /// - /// Cluster V2 cloud credential secret name (string) + /// Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. /// [Input("cloudCredentialSecretName")] public Input? CloudCredentialSecretName { get; set; } @@ -348,7 +348,7 @@ public InputMap Annotations private InputList? _clusterAgentDeploymentCustomizations; /// - /// Optional customization for cluster agent (list) + /// Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. /// public InputList ClusterAgentDeploymentCustomizations { @@ -360,7 +360,7 @@ public InputList Clu private Input? _clusterRegistrationToken; /// - /// (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + /// (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. /// public Input? ClusterRegistrationToken { @@ -373,31 +373,31 @@ public Input? ClusterRegistrati } /// - /// (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + /// (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). /// [Input("clusterV1Id")] public Input? ClusterV1Id { get; set; } /// - /// Cluster V2 default cluster role for project members (string) + /// Default cluster role for project members. /// [Input("defaultClusterRoleForProjectMembers")] public Input? DefaultClusterRoleForProjectMembers { get; set; } /// - /// Cluster V2 default pod security admission configuration template name (string) + /// The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. /// [Input("defaultPodSecurityAdmissionConfigurationTemplateName")] public Input? DefaultPodSecurityAdmissionConfigurationTemplateName { get; set; } /// - /// Cluster V2 default pod security policy template name (string) + /// Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). /// [Input("defaultPodSecurityPolicyTemplateName")] public Input? DefaultPodSecurityPolicyTemplateName { get; set; } /// - /// Enable k8s network policy at Cluster V2 (bool) + /// Enable k8s network policy on the cluster. /// [Input("enableNetworkPolicy")] public Input? EnableNetworkPolicy { get; set; } @@ -406,7 +406,7 @@ public Input? ClusterRegistrati private InputList? _fleetAgentDeploymentCustomizations; /// - /// Optional customization for fleet agent (list) + /// Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. /// public InputList FleetAgentDeploymentCustomizations { @@ -415,7 +415,7 @@ public InputList Fleet } /// - /// The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + /// Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. /// [Input("fleetNamespace")] public Input? FleetNamespace { get; set; } @@ -424,7 +424,7 @@ public InputList Fleet private Input? _kubeConfig; /// - /// (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + /// (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. /// public Input? KubeConfig { @@ -437,7 +437,7 @@ public Input? KubeConfig } /// - /// The kubernetes version of the Cluster v2 (list maxitems:1) + /// The RKE2 or K3s version for the cluster. /// [Input("kubernetesVersion")] public Input? KubernetesVersion { get; set; } @@ -446,7 +446,7 @@ public Input? KubeConfig private InputMap? _labels; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// public InputMap Labels { @@ -455,25 +455,25 @@ public InputMap Labels } /// - /// Cluster V2 local auth endpoint (list maxitems:1) + /// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). /// [Input("localAuthEndpoint")] public Input? LocalAuthEndpoint { get; set; } /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name")] public Input? Name { get; set; } /// - /// (Computed) Cluster v2 k8s resource version (string) + /// (Computed, string) Cluster's k8s resource version. /// [Input("resourceVersion")] public Input? ResourceVersion { get; set; } /// - /// The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + /// The RKE configuration for the cluster. /// [Input("rkeConfig")] public Input? RkeConfig { get; set; } diff --git a/sdk/dotnet/GetClusterAlterRule.cs b/sdk/dotnet/GetClusterAlertRule.cs similarity index 81% rename from sdk/dotnet/GetClusterAlterRule.cs rename to sdk/dotnet/GetClusterAlertRule.cs index 156385ef6..2d871f711 100644 --- a/sdk/dotnet/GetClusterAlterRule.cs +++ b/sdk/dotnet/GetClusterAlertRule.cs @@ -9,7 +9,7 @@ namespace Pulumi.Rancher2 { - public static class GetClusterAlterRule + public static class GetClusterAlertRule { /// /// Use this data source to retrieve information about a Rancher v2 cluster alert rule. @@ -26,7 +26,7 @@ public static class GetClusterAlterRule /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Rancher2.GetClusterAlterRule.Invoke(new() + /// var foo = Rancher2.GetClusterAlertRule.Invoke(new() /// { /// ClusterId = "<cluster_id>", /// Name = "<cluster_alert_rule_name>", @@ -37,8 +37,8 @@ public static class GetClusterAlterRule /// {{% /example %}} /// {{% /examples %}} /// - public static Task InvokeAsync(GetClusterAlterRuleArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("rancher2:index/getClusterAlterRule:getClusterAlterRule", args ?? new GetClusterAlterRuleArgs(), options.WithDefaults()); + public static Task InvokeAsync(GetClusterAlertRuleArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("rancher2:index/getClusterAlertRule:getClusterAlertRule", args ?? new GetClusterAlertRuleArgs(), options.WithDefaults()); /// /// Use this data source to retrieve information about a Rancher v2 cluster alert rule. @@ -55,7 +55,7 @@ public static Task InvokeAsync(GetClusterAlterRuleArg /// /// return await Deployment.RunAsync(() => /// { - /// var foo = Rancher2.GetClusterAlterRule.Invoke(new() + /// var foo = Rancher2.GetClusterAlertRule.Invoke(new() /// { /// ClusterId = "<cluster_id>", /// Name = "<cluster_alert_rule_name>", @@ -66,12 +66,12 @@ public static Task InvokeAsync(GetClusterAlterRuleArg /// {{% /example %}} /// {{% /examples %}} /// - public static Output Invoke(GetClusterAlterRuleInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("rancher2:index/getClusterAlterRule:getClusterAlterRule", args ?? new GetClusterAlterRuleInvokeArgs(), options.WithDefaults()); + public static Output Invoke(GetClusterAlertRuleInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("rancher2:index/getClusterAlertRule:getClusterAlertRule", args ?? new GetClusterAlertRuleInvokeArgs(), options.WithDefaults()); } - public sealed class GetClusterAlterRuleArgs : global::Pulumi.InvokeArgs + public sealed class GetClusterAlertRuleArgs : global::Pulumi.InvokeArgs { /// /// The cluster id where create cluster alert rule (string) @@ -97,13 +97,13 @@ public Dictionary Labels [Input("name", required: true)] public string Name { get; set; } = null!; - public GetClusterAlterRuleArgs() + public GetClusterAlertRuleArgs() { } - public static new GetClusterAlterRuleArgs Empty => new GetClusterAlterRuleArgs(); + public static new GetClusterAlertRuleArgs Empty => new GetClusterAlertRuleArgs(); } - public sealed class GetClusterAlterRuleInvokeArgs : global::Pulumi.InvokeArgs + public sealed class GetClusterAlertRuleInvokeArgs : global::Pulumi.InvokeArgs { /// /// The cluster id where create cluster alert rule (string) @@ -129,15 +129,15 @@ public InputMap Labels [Input("name", required: true)] public Input Name { get; set; } = null!; - public GetClusterAlterRuleInvokeArgs() + public GetClusterAlertRuleInvokeArgs() { } - public static new GetClusterAlterRuleInvokeArgs Empty => new GetClusterAlterRuleInvokeArgs(); + public static new GetClusterAlertRuleInvokeArgs Empty => new GetClusterAlertRuleInvokeArgs(); } [OutputType] - public sealed class GetClusterAlterRuleResult + public sealed class GetClusterAlertRuleResult { /// /// (Computed) The cluster alert rule annotations (map) @@ -147,7 +147,7 @@ public sealed class GetClusterAlterRuleResult /// /// (Computed) The cluster alert rule event rule. ConflictsWith: `"metric_rule", "node_rule", "system_service_rule"` (list Maxitems:1) /// - public readonly Outputs.GetClusterAlterRuleEventRuleResult EventRule; + public readonly Outputs.GetClusterAlertRuleEventRuleResult EventRule; /// /// (Computed) The cluster alert rule alert group ID (string) /// @@ -175,12 +175,12 @@ public sealed class GetClusterAlterRuleResult /// /// (Computed) The cluster alert rule metric rule. ConflictsWith: `"event_rule", "node_rule", "system_service_rule"`` (list Maxitems:1) /// - public readonly Outputs.GetClusterAlterRuleMetricRuleResult MetricRule; + public readonly Outputs.GetClusterAlertRuleMetricRuleResult MetricRule; public readonly string Name; /// /// (Computed) The cluster alert rule node rule. ConflictsWith: `"event_rule", "metric_rule", "system_service_rule"`` (list Maxitems:1) /// - public readonly Outputs.GetClusterAlterRuleNodeRuleResult NodeRule; + public readonly Outputs.GetClusterAlertRuleNodeRuleResult NodeRule; /// /// (Optional) The cluster alert rule wait seconds. Default: `3600` (int) /// @@ -192,15 +192,15 @@ public sealed class GetClusterAlterRuleResult /// /// (Computed) The cluster alert rule system service rule. ConflictsWith: `"event_rule", "metric_rule", "node_rule"`` (list Maxitems:1) /// - public readonly Outputs.GetClusterAlterRuleSystemServiceRuleResult SystemServiceRule; + public readonly Outputs.GetClusterAlertRuleSystemServiceRuleResult SystemServiceRule; [OutputConstructor] - private GetClusterAlterRuleResult( + private GetClusterAlertRuleResult( ImmutableDictionary annotations, string clusterId, - Outputs.GetClusterAlterRuleEventRuleResult eventRule, + Outputs.GetClusterAlertRuleEventRuleResult eventRule, string groupId, @@ -214,17 +214,17 @@ private GetClusterAlterRuleResult( ImmutableDictionary? labels, - Outputs.GetClusterAlterRuleMetricRuleResult metricRule, + Outputs.GetClusterAlertRuleMetricRuleResult metricRule, string name, - Outputs.GetClusterAlterRuleNodeRuleResult nodeRule, + Outputs.GetClusterAlertRuleNodeRuleResult nodeRule, int repeatIntervalSeconds, string severity, - Outputs.GetClusterAlterRuleSystemServiceRuleResult systemServiceRule) + Outputs.GetClusterAlertRuleSystemServiceRuleResult systemServiceRule) { Annotations = annotations; ClusterId = clusterId; diff --git a/sdk/dotnet/GetGlobalRole.cs b/sdk/dotnet/GetGlobalRole.cs index d49ecb05b..729591e2c 100644 --- a/sdk/dotnet/GetGlobalRole.cs +++ b/sdk/dotnet/GetGlobalRole.cs @@ -71,6 +71,18 @@ public static Output Invoke(GetGlobalRoleInvokeArgs args, I public sealed class GetGlobalRoleArgs : global::Pulumi.InvokeArgs { + [Input("inheritedClusterRoles")] + private List? _inheritedClusterRoles; + + /// + /// (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + /// + public List InheritedClusterRoles + { + get => _inheritedClusterRoles ?? (_inheritedClusterRoles = new List()); + set => _inheritedClusterRoles = value; + } + /// /// The name of the Global Role (string) /// @@ -85,6 +97,18 @@ public GetGlobalRoleArgs() public sealed class GetGlobalRoleInvokeArgs : global::Pulumi.InvokeArgs { + [Input("inheritedClusterRoles")] + private InputList? _inheritedClusterRoles; + + /// + /// (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + /// + public InputList InheritedClusterRoles + { + get => _inheritedClusterRoles ?? (_inheritedClusterRoles = new InputList()); + set => _inheritedClusterRoles = value; + } + /// /// The name of the Global Role (string) /// @@ -118,6 +142,10 @@ public sealed class GetGlobalRoleResult /// public readonly string Id; /// + /// (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + /// + public readonly ImmutableArray InheritedClusterRoles; + /// /// (Computed) Labels for global role object (map) /// public readonly ImmutableDictionary Labels; @@ -141,6 +169,8 @@ private GetGlobalRoleResult( string id, + ImmutableArray inheritedClusterRoles, + ImmutableDictionary labels, string name, @@ -153,6 +183,7 @@ private GetGlobalRoleResult( Builtin = builtin; Description = description; Id = id; + InheritedClusterRoles = inheritedClusterRoles; Labels = labels; Name = name; NewUserDefault = newUserDefault; diff --git a/sdk/dotnet/GetRoleTempalte.cs b/sdk/dotnet/GetRoleTempalte.cs deleted file mode 100644 index 360892c31..000000000 --- a/sdk/dotnet/GetRoleTempalte.cs +++ /dev/null @@ -1,214 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2 -{ - [Obsolete(@"rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate")] - public static class GetRoleTempalte - { - /// - /// Use this data source to retrieve information about a Rancher v2 role template resource. - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Rancher2 = Pulumi.Rancher2; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = Rancher2.GetRoleTemplate.Invoke(new() - /// { - /// Name = "foo", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} - /// - public static Task InvokeAsync(GetRoleTempalteArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.InvokeAsync("rancher2:index/getRoleTempalte:getRoleTempalte", args ?? new GetRoleTempalteArgs(), options.WithDefaults()); - - /// - /// Use this data source to retrieve information about a Rancher v2 role template resource. - /// - /// {{% examples %}} - /// ## Example Usage - /// {{% example %}} - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Rancher2 = Pulumi.Rancher2; - /// - /// return await Deployment.RunAsync(() => - /// { - /// var foo = Rancher2.GetRoleTemplate.Invoke(new() - /// { - /// Name = "foo", - /// }); - /// - /// }); - /// ``` - /// {{% /example %}} - /// {{% /examples %}} - /// - public static Output Invoke(GetRoleTempalteInvokeArgs args, InvokeOptions? options = null) - => global::Pulumi.Deployment.Instance.Invoke("rancher2:index/getRoleTempalte:getRoleTempalte", args ?? new GetRoleTempalteInvokeArgs(), options.WithDefaults()); - } - - - public sealed class GetRoleTempalteArgs : global::Pulumi.InvokeArgs - { - /// - /// Role template context. `cluster` and `project` values are supported (string) - /// - [Input("context")] - public string? Context { get; set; } - - /// - /// The name of the Role Template (string) - /// - [Input("name", required: true)] - public string Name { get; set; } = null!; - - public GetRoleTempalteArgs() - { - } - public static new GetRoleTempalteArgs Empty => new GetRoleTempalteArgs(); - } - - public sealed class GetRoleTempalteInvokeArgs : global::Pulumi.InvokeArgs - { - /// - /// Role template context. `cluster` and `project` values are supported (string) - /// - [Input("context")] - public Input? Context { get; set; } - - /// - /// The name of the Role Template (string) - /// - [Input("name", required: true)] - public Input Name { get; set; } = null!; - - public GetRoleTempalteInvokeArgs() - { - } - public static new GetRoleTempalteInvokeArgs Empty => new GetRoleTempalteInvokeArgs(); - } - - - [OutputType] - public sealed class GetRoleTempalteResult - { - /// - /// (Computed) Administrative role template (bool) - /// - public readonly bool Administrative; - /// - /// (Computed) Annotations for role template object (map) - /// - public readonly ImmutableDictionary Annotations; - /// - /// (Computed) Builtin role template (string) - /// - public readonly bool Builtin; - public readonly string Context; - /// - /// (Computed) Default role template for new created cluster or project (bool) - /// - public readonly bool DefaultRole; - /// - /// (Computed) Role template description (string) - /// - public readonly string Description; - /// - /// (Computed) External role template (bool) - /// - public readonly bool External; - /// - /// (Computed) Hidden role template (bool) - /// - public readonly bool Hidden; - /// - /// The provider-assigned unique ID for this managed resource. - /// - public readonly string Id; - /// - /// (Computed) Labels for role template object (map) - /// - public readonly ImmutableDictionary Labels; - /// - /// (Computed) Locked role template (bool) - /// - public readonly bool Locked; - public readonly string Name; - /// - /// (Computed) Inherit role template IDs (list) - /// - public readonly ImmutableArray RoleTemplateIds; - /// - /// (Computed) Role template policy rules (list) - /// - public readonly ImmutableArray Rules; - - [OutputConstructor] - private GetRoleTempalteResult( - bool administrative, - - ImmutableDictionary annotations, - - bool builtin, - - string context, - - bool defaultRole, - - string description, - - bool external, - - bool hidden, - - string id, - - ImmutableDictionary labels, - - bool locked, - - string name, - - ImmutableArray roleTemplateIds, - - ImmutableArray rules) - { - Administrative = administrative; - Annotations = annotations; - Builtin = builtin; - Context = context; - DefaultRole = defaultRole; - Description = description; - External = external; - Hidden = hidden; - Id = id; - Labels = labels; - Locked = locked; - Name = name; - RoleTemplateIds = roleTemplateIds; - Rules = rules; - } - } -} diff --git a/sdk/dotnet/GlobalRole.cs b/sdk/dotnet/GlobalRole.cs index 0692be869..c621f70e9 100644 --- a/sdk/dotnet/GlobalRole.cs +++ b/sdk/dotnet/GlobalRole.cs @@ -79,6 +79,12 @@ public partial class GlobalRole : global::Pulumi.CustomResource [Output("description")] public Output Description { get; private set; } = null!; + /// + /// Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + /// + [Output("inheritedClusterRoles")] + public Output> InheritedClusterRoles { get; private set; } = null!; + /// /// Labels for global role object (map) /// @@ -167,6 +173,18 @@ public InputMap Annotations [Input("description")] public Input? Description { get; set; } + [Input("inheritedClusterRoles")] + private InputList? _inheritedClusterRoles; + + /// + /// Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + /// + public InputList InheritedClusterRoles + { + get => _inheritedClusterRoles ?? (_inheritedClusterRoles = new InputList()); + set => _inheritedClusterRoles = value; + } + [Input("labels")] private InputMap? _labels; @@ -235,6 +253,18 @@ public InputMap Annotations [Input("description")] public Input? Description { get; set; } + [Input("inheritedClusterRoles")] + private InputList? _inheritedClusterRoles; + + /// + /// Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + /// + public InputList InheritedClusterRoles + { + get => _inheritedClusterRoles ?? (_inheritedClusterRoles = new InputList()); + set => _inheritedClusterRoles = value; + } + [Input("labels")] private InputMap? _labels; diff --git a/sdk/dotnet/Inputs/ClusterAlterGroupRecipientArgs.cs b/sdk/dotnet/Inputs/ClusterAlterGroupRecipientArgs.cs deleted file mode 100644 index 0903ecab7..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterGroupRecipientArgs.cs +++ /dev/null @@ -1,44 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterGroupRecipientArgs : global::Pulumi.ResourceArgs - { - /// - /// Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - /// - [Input("defaultRecipient")] - public Input? DefaultRecipient { get; set; } - - /// - /// Recipient notifier ID (string) - /// - [Input("notifierId", required: true)] - public Input NotifierId { get; set; } = null!; - - /// - /// Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - /// - [Input("notifierType")] - public Input? NotifierType { get; set; } - - /// - /// Recipient (string) - /// - [Input("recipient")] - public Input? Recipient { get; set; } - - public ClusterAlterGroupRecipientArgs() - { - } - public static new ClusterAlterGroupRecipientArgs Empty => new ClusterAlterGroupRecipientArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterGroupRecipientGetArgs.cs b/sdk/dotnet/Inputs/ClusterAlterGroupRecipientGetArgs.cs deleted file mode 100644 index b994ac3cc..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterGroupRecipientGetArgs.cs +++ /dev/null @@ -1,44 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterGroupRecipientGetArgs : global::Pulumi.ResourceArgs - { - /// - /// Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - /// - [Input("defaultRecipient")] - public Input? DefaultRecipient { get; set; } - - /// - /// Recipient notifier ID (string) - /// - [Input("notifierId", required: true)] - public Input NotifierId { get; set; } = null!; - - /// - /// Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - /// - [Input("notifierType")] - public Input? NotifierType { get; set; } - - /// - /// Recipient (string) - /// - [Input("recipient")] - public Input? Recipient { get; set; } - - public ClusterAlterGroupRecipientGetArgs() - { - } - public static new ClusterAlterGroupRecipientGetArgs Empty => new ClusterAlterGroupRecipientGetArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterRuleEventRuleArgs.cs b/sdk/dotnet/Inputs/ClusterAlterRuleEventRuleArgs.cs deleted file mode 100644 index 20cbd7371..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterRuleEventRuleArgs.cs +++ /dev/null @@ -1,32 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterRuleEventRuleArgs : global::Pulumi.ResourceArgs - { - /// - /// Event type - /// - [Input("eventType")] - public Input? EventType { get; set; } - - /// - /// Resource kind - /// - [Input("resourceKind", required: true)] - public Input ResourceKind { get; set; } = null!; - - public ClusterAlterRuleEventRuleArgs() - { - } - public static new ClusterAlterRuleEventRuleArgs Empty => new ClusterAlterRuleEventRuleArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterRuleEventRuleGetArgs.cs b/sdk/dotnet/Inputs/ClusterAlterRuleEventRuleGetArgs.cs deleted file mode 100644 index 685e3ed5d..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterRuleEventRuleGetArgs.cs +++ /dev/null @@ -1,32 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterRuleEventRuleGetArgs : global::Pulumi.ResourceArgs - { - /// - /// Event type - /// - [Input("eventType")] - public Input? EventType { get; set; } - - /// - /// Resource kind - /// - [Input("resourceKind", required: true)] - public Input ResourceKind { get; set; } = null!; - - public ClusterAlterRuleEventRuleGetArgs() - { - } - public static new ClusterAlterRuleEventRuleGetArgs Empty => new ClusterAlterRuleEventRuleGetArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterRuleMetricRuleArgs.cs b/sdk/dotnet/Inputs/ClusterAlterRuleMetricRuleArgs.cs deleted file mode 100644 index 0830b9a8f..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterRuleMetricRuleArgs.cs +++ /dev/null @@ -1,50 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterRuleMetricRuleArgs : global::Pulumi.ResourceArgs - { - /// - /// Metric rule comparison - /// - [Input("comparison")] - public Input? Comparison { get; set; } - - /// - /// The cluster alert group description (string) - /// - [Input("description")] - public Input? Description { get; set; } - - /// - /// Metric rule duration - /// - [Input("duration", required: true)] - public Input Duration { get; set; } = null!; - - /// - /// Metric rule expression - /// - [Input("expression", required: true)] - public Input Expression { get; set; } = null!; - - /// - /// Metric rule threshold value - /// - [Input("thresholdValue", required: true)] - public Input ThresholdValue { get; set; } = null!; - - public ClusterAlterRuleMetricRuleArgs() - { - } - public static new ClusterAlterRuleMetricRuleArgs Empty => new ClusterAlterRuleMetricRuleArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterRuleMetricRuleGetArgs.cs b/sdk/dotnet/Inputs/ClusterAlterRuleMetricRuleGetArgs.cs deleted file mode 100644 index 289ad7ada..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterRuleMetricRuleGetArgs.cs +++ /dev/null @@ -1,50 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterRuleMetricRuleGetArgs : global::Pulumi.ResourceArgs - { - /// - /// Metric rule comparison - /// - [Input("comparison")] - public Input? Comparison { get; set; } - - /// - /// The cluster alert group description (string) - /// - [Input("description")] - public Input? Description { get; set; } - - /// - /// Metric rule duration - /// - [Input("duration", required: true)] - public Input Duration { get; set; } = null!; - - /// - /// Metric rule expression - /// - [Input("expression", required: true)] - public Input Expression { get; set; } = null!; - - /// - /// Metric rule threshold value - /// - [Input("thresholdValue", required: true)] - public Input ThresholdValue { get; set; } = null!; - - public ClusterAlterRuleMetricRuleGetArgs() - { - } - public static new ClusterAlterRuleMetricRuleGetArgs Empty => new ClusterAlterRuleMetricRuleGetArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterRuleNodeRuleArgs.cs b/sdk/dotnet/Inputs/ClusterAlterRuleNodeRuleArgs.cs deleted file mode 100644 index 48cd38b94..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterRuleNodeRuleArgs.cs +++ /dev/null @@ -1,56 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterRuleNodeRuleArgs : global::Pulumi.ResourceArgs - { - /// - /// Node rule condition - /// - [Input("condition")] - public Input? Condition { get; set; } - - /// - /// Node rule cpu threshold - /// - [Input("cpuThreshold")] - public Input? CpuThreshold { get; set; } - - /// - /// Node rule mem threshold - /// - [Input("memThreshold")] - public Input? MemThreshold { get; set; } - - /// - /// Node ID - /// - [Input("nodeId")] - public Input? NodeId { get; set; } - - [Input("selector")] - private InputMap? _selector; - - /// - /// Node rule selector - /// - public InputMap Selector - { - get => _selector ?? (_selector = new InputMap()); - set => _selector = value; - } - - public ClusterAlterRuleNodeRuleArgs() - { - } - public static new ClusterAlterRuleNodeRuleArgs Empty => new ClusterAlterRuleNodeRuleArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterRuleNodeRuleGetArgs.cs b/sdk/dotnet/Inputs/ClusterAlterRuleNodeRuleGetArgs.cs deleted file mode 100644 index cbc3cbca4..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterRuleNodeRuleGetArgs.cs +++ /dev/null @@ -1,56 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterRuleNodeRuleGetArgs : global::Pulumi.ResourceArgs - { - /// - /// Node rule condition - /// - [Input("condition")] - public Input? Condition { get; set; } - - /// - /// Node rule cpu threshold - /// - [Input("cpuThreshold")] - public Input? CpuThreshold { get; set; } - - /// - /// Node rule mem threshold - /// - [Input("memThreshold")] - public Input? MemThreshold { get; set; } - - /// - /// Node ID - /// - [Input("nodeId")] - public Input? NodeId { get; set; } - - [Input("selector")] - private InputMap? _selector; - - /// - /// Node rule selector - /// - public InputMap Selector - { - get => _selector ?? (_selector = new InputMap()); - set => _selector = value; - } - - public ClusterAlterRuleNodeRuleGetArgs() - { - } - public static new ClusterAlterRuleNodeRuleGetArgs Empty => new ClusterAlterRuleNodeRuleGetArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterRuleSystemServiceRuleArgs.cs b/sdk/dotnet/Inputs/ClusterAlterRuleSystemServiceRuleArgs.cs deleted file mode 100644 index 531079117..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterRuleSystemServiceRuleArgs.cs +++ /dev/null @@ -1,26 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterRuleSystemServiceRuleArgs : global::Pulumi.ResourceArgs - { - /// - /// System service rule condition - /// - [Input("condition")] - public Input? Condition { get; set; } - - public ClusterAlterRuleSystemServiceRuleArgs() - { - } - public static new ClusterAlterRuleSystemServiceRuleArgs Empty => new ClusterAlterRuleSystemServiceRuleArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterAlterRuleSystemServiceRuleGetArgs.cs b/sdk/dotnet/Inputs/ClusterAlterRuleSystemServiceRuleGetArgs.cs deleted file mode 100644 index d53d83538..000000000 --- a/sdk/dotnet/Inputs/ClusterAlterRuleSystemServiceRuleGetArgs.cs +++ /dev/null @@ -1,26 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class ClusterAlterRuleSystemServiceRuleGetArgs : global::Pulumi.ResourceArgs - { - /// - /// System service rule condition - /// - [Input("condition")] - public Input? Condition { get; set; } - - public ClusterAlterRuleSystemServiceRuleGetArgs() - { - } - public static new ClusterAlterRuleSystemServiceRuleGetArgs Empty => new ClusterAlterRuleSystemServiceRuleGetArgs(); - } -} diff --git a/sdk/dotnet/Inputs/ClusterEksConfigV2Args.cs b/sdk/dotnet/Inputs/ClusterEksConfigV2Args.cs index d9dac974e..e0bcb2f43 100644 --- a/sdk/dotnet/Inputs/ClusterEksConfigV2Args.cs +++ b/sdk/dotnet/Inputs/ClusterEksConfigV2Args.cs @@ -25,7 +25,7 @@ public sealed class ClusterEksConfigV2Args : global::Pulumi.ResourceArgs public Input? Imported { get; set; } /// - /// The AWS kms key to use (string) + /// The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) /// [Input("kmsKey")] public Input? KmsKey { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterEksConfigV2GetArgs.cs b/sdk/dotnet/Inputs/ClusterEksConfigV2GetArgs.cs index abaa61c62..8c527fa0d 100644 --- a/sdk/dotnet/Inputs/ClusterEksConfigV2GetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterEksConfigV2GetArgs.cs @@ -25,7 +25,7 @@ public sealed class ClusterEksConfigV2GetArgs : global::Pulumi.ResourceArgs public Input? Imported { get; set; } /// - /// The AWS kms key to use (string) + /// The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) /// [Input("kmsKey")] public Input? KmsKey { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.cs b/sdk/dotnet/Inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.cs index 4132e0d63..e264075c3 100644 --- a/sdk/dotnet/Inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.cs +++ b/sdk/dotnet/Inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.cs @@ -18,6 +18,9 @@ public sealed class ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs [Input("datacenters")] public Input? Datacenters { get; set; } + [Input("gracefulShutdownTimeout")] + public Input? GracefulShutdownTimeout { get; set; } + /// /// (bool) /// diff --git a/sdk/dotnet/Inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalGetArgs.cs b/sdk/dotnet/Inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalGetArgs.cs index 14c404c7b..fa5fa56b2 100644 --- a/sdk/dotnet/Inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalGetArgs.cs @@ -18,6 +18,9 @@ public sealed class ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalGetAr [Input("datacenters")] public Input? Datacenters { get; set; } + [Input("gracefulShutdownTimeout")] + public Input? GracefulShutdownTimeout { get; set; } + /// /// (bool) /// diff --git a/sdk/dotnet/Inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.cs b/sdk/dotnet/Inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.cs index 4e471e3eb..8b7527570 100644 --- a/sdk/dotnet/Inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.cs +++ b/sdk/dotnet/Inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.cs @@ -15,6 +15,9 @@ public sealed class ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudPr [Input("datacenters")] public Input? Datacenters { get; set; } + [Input("gracefulShutdownTimeout")] + public Input? GracefulShutdownTimeout { get; set; } + [Input("insecureFlag")] public Input? InsecureFlag { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalGetArgs.cs b/sdk/dotnet/Inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalGetArgs.cs index a66613d3c..0555cb066 100644 --- a/sdk/dotnet/Inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalGetArgs.cs @@ -15,6 +15,9 @@ public sealed class ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudPr [Input("datacenters")] public Input? Datacenters { get; set; } + [Input("gracefulShutdownTimeout")] + public Input? GracefulShutdownTimeout { get; set; } + [Input("insecureFlag")] public Input? InsecureFlag { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2AgentEnvVarArgs.cs b/sdk/dotnet/Inputs/ClusterV2AgentEnvVarArgs.cs index d3fe5e7b4..8cea34c05 100644 --- a/sdk/dotnet/Inputs/ClusterV2AgentEnvVarArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2AgentEnvVarArgs.cs @@ -13,13 +13,13 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2AgentEnvVarArgs : global::Pulumi.ResourceArgs { /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name", required: true)] public Input Name { get; set; } = null!; /// - /// The taint value (string) + /// The taint value. /// [Input("value", required: true)] public Input Value { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/ClusterV2AgentEnvVarGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2AgentEnvVarGetArgs.cs index 7c816b942..03dbdce3c 100644 --- a/sdk/dotnet/Inputs/ClusterV2AgentEnvVarGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2AgentEnvVarGetArgs.cs @@ -13,13 +13,13 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2AgentEnvVarGetArgs : global::Pulumi.ResourceArgs { /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name", required: true)] public Input Name { get; set; } = null!; /// - /// The taint value (string) + /// The taint value. /// [Input("value", required: true)] public Input Value { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.cs b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.cs index 01284841b..87cad70c6 100644 --- a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.cs @@ -13,31 +13,31 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs : global::Pulumi.ResourceArgs { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// [Input("effect")] public Input? Effect { get; set; } /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// [Input("key", required: true)] public Input Key { get; set; } = null!; /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// [Input("operator")] public Input? Operator { get; set; } /// - /// The number of seconds a pod will stay bound to a node with a matching taint (int) + /// The number of seconds a pod will stay bound to a node with a matching taint. /// [Input("seconds")] public Input? Seconds { get; set; } /// - /// The taint value (string) + /// The taint value. /// [Input("value")] public Input? Value { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationGetArgs.cs index 9c9e6c07d..a252f77c9 100644 --- a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationGetArgs.cs @@ -13,31 +13,31 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationGetArgs : global::Pulumi.ResourceArgs { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// [Input("effect")] public Input? Effect { get; set; } /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// [Input("key", required: true)] public Input Key { get; set; } = null!; /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// [Input("operator")] public Input? Operator { get; set; } /// - /// The number of seconds a pod will stay bound to a node with a matching taint (int) + /// The number of seconds a pod will stay bound to a node with a matching taint. /// [Input("seconds")] public Input? Seconds { get; set; } /// - /// The taint value (string) + /// The taint value. /// [Input("value")] public Input? Value { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationArgs.cs b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationArgs.cs index ba75f818b..ae448aac9 100644 --- a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2ClusterAgentDeploymentCustomizationArgs : global::P private InputList? _appendTolerations; /// - /// User defined tolerations to append to agent (list) + /// A list of tolerations to be appended to the default tolerations. /// public InputList AppendTolerations { @@ -25,7 +25,7 @@ public InputList - /// User defined affinity to override default agent affinity (string) + /// Override affinity overrides the global default affinity setting. /// [Input("overrideAffinity")] public Input? OverrideAffinity { get; set; } @@ -34,7 +34,7 @@ public InputList? _overrideResourceRequirements; /// - /// User defined resource requirements to set on the agent (list) + /// Override resource requirements overrides the default value for requests and/or limits. /// public InputList OverrideResourceRequirements { diff --git a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationGetArgs.cs index 9c3b904a5..88b3fa193 100644 --- a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationGetArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2ClusterAgentDeploymentCustomizationGetArgs : global private InputList? _appendTolerations; /// - /// User defined tolerations to append to agent (list) + /// A list of tolerations to be appended to the default tolerations. /// public InputList AppendTolerations { @@ -25,7 +25,7 @@ public InputList - /// User defined affinity to override default agent affinity (string) + /// Override affinity overrides the global default affinity setting. /// [Input("overrideAffinity")] public Input? OverrideAffinity { get; set; } @@ -34,7 +34,7 @@ public InputList? _overrideResourceRequirements; /// - /// User defined resource requirements to set on the agent (list) + /// Override resource requirements overrides the default value for requests and/or limits. /// public InputList OverrideResourceRequirements { diff --git a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs.cs b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs.cs index a9459263e..6e13d3316 100644 --- a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs.cs @@ -13,25 +13,25 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs : global::Pulumi.ResourceArgs { /// - /// The maximum CPU limit for agent (string) + /// The maximum CPU limit for agent. /// [Input("cpuLimit")] public Input? CpuLimit { get; set; } /// - /// The minimum CPU required for agent (string) + /// The minimum CPU required for agent. /// [Input("cpuRequest")] public Input? CpuRequest { get; set; } /// - /// The maximum memory limit for agent (string) + /// The maximum memory limit for agent. /// [Input("memoryLimit")] public Input? MemoryLimit { get; set; } /// - /// The minimum memory required for agent (string) + /// The minimum memory required for agent. /// [Input("memoryRequest")] public Input? MemoryRequest { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementGetArgs.cs index 66680d6a5..2e93bacc0 100644 --- a/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementGetArgs.cs @@ -13,25 +13,25 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementGetArgs : global::Pulumi.ResourceArgs { /// - /// The maximum CPU limit for agent (string) + /// The maximum CPU limit for agent. /// [Input("cpuLimit")] public Input? CpuLimit { get; set; } /// - /// The minimum CPU required for agent (string) + /// The minimum CPU required for agent. /// [Input("cpuRequest")] public Input? CpuRequest { get; set; } /// - /// The maximum memory limit for agent (string) + /// The maximum memory limit for agent. /// [Input("memoryLimit")] public Input? MemoryLimit { get; set; } /// - /// The minimum memory required for agent (string) + /// The minimum memory required for agent. /// [Input("memoryRequest")] public Input? MemoryRequest { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2ClusterRegistrationTokenArgs.cs b/sdk/dotnet/Inputs/ClusterV2ClusterRegistrationTokenArgs.cs index 6e7463b17..0740134a7 100644 --- a/sdk/dotnet/Inputs/ClusterV2ClusterRegistrationTokenArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2ClusterRegistrationTokenArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2ClusterRegistrationTokenArgs : global::Pulumi.Resou private InputMap? _annotations; /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// public InputMap Annotations { @@ -25,37 +25,37 @@ public InputMap Annotations } /// - /// Cluster ID (string) + /// Cluster ID. /// [Input("clusterId")] public Input? ClusterId { get; set; } /// - /// Command to execute in a imported k8s cluster (string) + /// Command to execute in an imported k8s cluster. /// [Input("command")] public Input? Command { get; set; } /// - /// (Computed) The ID of the resource (string) + /// (Computed, string) The ID of the resource. /// [Input("id")] public Input? Id { get; set; } /// - /// Insecure command to execute in a imported k8s cluster (string) + /// Insecure command to execute in an imported k8s cluster. /// [Input("insecureCommand")] public Input? InsecureCommand { get; set; } /// - /// Insecure node command to execute in a imported k8s cluster (string) + /// Insecure node command to execute in an imported k8s cluster. /// [Input("insecureNodeCommand")] public Input? InsecureNodeCommand { get; set; } /// - /// Insecure windows command to execute in a imported k8s cluster (string) + /// Insecure windows command to execute in an imported k8s cluster. /// [Input("insecureWindowsNodeCommand")] public Input? InsecureWindowsNodeCommand { get; set; } @@ -64,7 +64,7 @@ public InputMap Annotations private InputMap? _labels; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// public InputMap Labels { @@ -73,19 +73,19 @@ public InputMap Labels } /// - /// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + /// K8s manifest url to execute with `kubectl` to import an existing k8s cluster. /// [Input("manifestUrl")] public Input? ManifestUrl { get; set; } /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name")] public Input? Name { get; set; } /// - /// Node command to execute in linux nodes for custom k8s cluster (string) + /// Node command to execute in Linux nodes for custom k8s cluster. /// [Input("nodeCommand")] public Input? NodeCommand { get; set; } @@ -94,7 +94,7 @@ public InputMap Labels private Input? _token; /// - /// Token for cluster registration token object (string) + /// Token for cluster registration token object. /// public Input? Token { @@ -107,7 +107,7 @@ public Input? Token } /// - /// Node command to execute in windows nodes for custom k8s cluster (string) + /// Node command to execute in Windows nodes for custom k8s cluster. /// [Input("windowsNodeCommand")] public Input? WindowsNodeCommand { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2ClusterRegistrationTokenGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2ClusterRegistrationTokenGetArgs.cs index 0f53f02c6..7cb947698 100644 --- a/sdk/dotnet/Inputs/ClusterV2ClusterRegistrationTokenGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2ClusterRegistrationTokenGetArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2ClusterRegistrationTokenGetArgs : global::Pulumi.Re private InputMap? _annotations; /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// public InputMap Annotations { @@ -25,37 +25,37 @@ public InputMap Annotations } /// - /// Cluster ID (string) + /// Cluster ID. /// [Input("clusterId")] public Input? ClusterId { get; set; } /// - /// Command to execute in a imported k8s cluster (string) + /// Command to execute in an imported k8s cluster. /// [Input("command")] public Input? Command { get; set; } /// - /// (Computed) The ID of the resource (string) + /// (Computed, string) The ID of the resource. /// [Input("id")] public Input? Id { get; set; } /// - /// Insecure command to execute in a imported k8s cluster (string) + /// Insecure command to execute in an imported k8s cluster. /// [Input("insecureCommand")] public Input? InsecureCommand { get; set; } /// - /// Insecure node command to execute in a imported k8s cluster (string) + /// Insecure node command to execute in an imported k8s cluster. /// [Input("insecureNodeCommand")] public Input? InsecureNodeCommand { get; set; } /// - /// Insecure windows command to execute in a imported k8s cluster (string) + /// Insecure windows command to execute in an imported k8s cluster. /// [Input("insecureWindowsNodeCommand")] public Input? InsecureWindowsNodeCommand { get; set; } @@ -64,7 +64,7 @@ public InputMap Annotations private InputMap? _labels; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// public InputMap Labels { @@ -73,19 +73,19 @@ public InputMap Labels } /// - /// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + /// K8s manifest url to execute with `kubectl` to import an existing k8s cluster. /// [Input("manifestUrl")] public Input? ManifestUrl { get; set; } /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name")] public Input? Name { get; set; } /// - /// Node command to execute in linux nodes for custom k8s cluster (string) + /// Node command to execute in Linux nodes for custom k8s cluster. /// [Input("nodeCommand")] public Input? NodeCommand { get; set; } @@ -94,7 +94,7 @@ public InputMap Labels private Input? _token; /// - /// Token for cluster registration token object (string) + /// Token for cluster registration token object. /// public Input? Token { @@ -107,7 +107,7 @@ public Input? Token } /// - /// Node command to execute in windows nodes for custom k8s cluster (string) + /// Node command to execute in Windows nodes for custom k8s cluster. /// [Input("windowsNodeCommand")] public Input? WindowsNodeCommand { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.cs b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.cs index 38bc4ff0c..e75ce5b19 100644 --- a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.cs @@ -13,31 +13,31 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs : global::Pulumi.ResourceArgs { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// [Input("effect")] public Input? Effect { get; set; } /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// [Input("key", required: true)] public Input Key { get; set; } = null!; /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// [Input("operator")] public Input? Operator { get; set; } /// - /// The number of seconds a pod will stay bound to a node with a matching taint (int) + /// The number of seconds a pod will stay bound to a node with a matching taint. /// [Input("seconds")] public Input? Seconds { get; set; } /// - /// The taint value (string) + /// The taint value. /// [Input("value")] public Input? Value { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationGetArgs.cs index febfcbbb4..c2bb1eb53 100644 --- a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationGetArgs.cs @@ -13,31 +13,31 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2FleetAgentDeploymentCustomizationAppendTolerationGetArgs : global::Pulumi.ResourceArgs { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// [Input("effect")] public Input? Effect { get; set; } /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// [Input("key", required: true)] public Input Key { get; set; } = null!; /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// [Input("operator")] public Input? Operator { get; set; } /// - /// The number of seconds a pod will stay bound to a node with a matching taint (int) + /// The number of seconds a pod will stay bound to a node with a matching taint. /// [Input("seconds")] public Input? Seconds { get; set; } /// - /// The taint value (string) + /// The taint value. /// [Input("value")] public Input? Value { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationArgs.cs b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationArgs.cs index 737076bc4..ec9689ab6 100644 --- a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2FleetAgentDeploymentCustomizationArgs : global::Pul private InputList? _appendTolerations; /// - /// User defined tolerations to append to agent (list) + /// A list of tolerations to be appended to the default tolerations. /// public InputList AppendTolerations { @@ -25,7 +25,7 @@ public InputList - /// User defined affinity to override default agent affinity (string) + /// Override affinity overrides the global default affinity setting. /// [Input("overrideAffinity")] public Input? OverrideAffinity { get; set; } @@ -34,7 +34,7 @@ public InputList? _overrideResourceRequirements; /// - /// User defined resource requirements to set on the agent (list) + /// Override resource requirements overrides the default value for requests and/or limits. /// public InputList OverrideResourceRequirements { diff --git a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationGetArgs.cs index 2e0bbf5e2..4117d53eb 100644 --- a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationGetArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2FleetAgentDeploymentCustomizationGetArgs : global:: private InputList? _appendTolerations; /// - /// User defined tolerations to append to agent (list) + /// A list of tolerations to be appended to the default tolerations. /// public InputList AppendTolerations { @@ -25,7 +25,7 @@ public InputList - /// User defined affinity to override default agent affinity (string) + /// Override affinity overrides the global default affinity setting. /// [Input("overrideAffinity")] public Input? OverrideAffinity { get; set; } @@ -34,7 +34,7 @@ public InputList? _overrideResourceRequirements; /// - /// User defined resource requirements to set on the agent (list) + /// Override resource requirements overrides the default value for requests and/or limits. /// public InputList OverrideResourceRequirements { diff --git a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs.cs b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs.cs index 0af7b236e..486e6bb80 100644 --- a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs.cs @@ -13,25 +13,25 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs : global::Pulumi.ResourceArgs { /// - /// The maximum CPU limit for agent (string) + /// The maximum CPU limit for agent. /// [Input("cpuLimit")] public Input? CpuLimit { get; set; } /// - /// The minimum CPU required for agent (string) + /// The minimum CPU required for agent. /// [Input("cpuRequest")] public Input? CpuRequest { get; set; } /// - /// The maximum memory limit for agent (string) + /// The maximum memory limit for agent. /// [Input("memoryLimit")] public Input? MemoryLimit { get; set; } /// - /// The minimum memory required for agent (string) + /// The minimum memory required for agent. /// [Input("memoryRequest")] public Input? MemoryRequest { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementGetArgs.cs index 776279df0..e819abd3f 100644 --- a/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementGetArgs.cs @@ -13,25 +13,25 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementGetArgs : global::Pulumi.ResourceArgs { /// - /// The maximum CPU limit for agent (string) + /// The maximum CPU limit for agent. /// [Input("cpuLimit")] public Input? CpuLimit { get; set; } /// - /// The minimum CPU required for agent (string) + /// The minimum CPU required for agent. /// [Input("cpuRequest")] public Input? CpuRequest { get; set; } /// - /// The maximum memory limit for agent (string) + /// The maximum memory limit for agent. /// [Input("memoryLimit")] public Input? MemoryLimit { get; set; } /// - /// The minimum memory required for agent (string) + /// The minimum memory required for agent. /// [Input("memoryRequest")] public Input? MemoryRequest { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2LocalAuthEndpointArgs.cs b/sdk/dotnet/Inputs/ClusterV2LocalAuthEndpointArgs.cs index ba844c36e..d9bae301d 100644 --- a/sdk/dotnet/Inputs/ClusterV2LocalAuthEndpointArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2LocalAuthEndpointArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2LocalAuthEndpointArgs : global::Pulumi.ResourceArgs { /// - /// CA certs for the authorized cluster endpoint (string) + /// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. /// [Input("caCerts")] public Input? CaCerts { get; set; } /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// [Input("enabled")] public Input? Enabled { get; set; } /// - /// FQDN for the authorized cluster endpoint (string) + /// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. /// [Input("fqdn")] public Input? Fqdn { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2LocalAuthEndpointGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2LocalAuthEndpointGetArgs.cs index 91f7ad42a..483dcfdd1 100644 --- a/sdk/dotnet/Inputs/ClusterV2LocalAuthEndpointGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2LocalAuthEndpointGetArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2LocalAuthEndpointGetArgs : global::Pulumi.ResourceArgs { /// - /// CA certs for the authorized cluster endpoint (string) + /// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. /// [Input("caCerts")] public Input? CaCerts { get; set; } /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// [Input("enabled")] public Input? Enabled { get; set; } /// - /// FQDN for the authorized cluster endpoint (string) + /// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. /// [Input("fqdn")] public Input? Fqdn { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigArgs.cs index ce4d2cd92..fdf5b33ca 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigArgs.cs @@ -13,43 +13,43 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigArgs : global::Pulumi.ResourceArgs { /// - /// Cluster V2 additional manifest (string) + /// The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. /// [Input("additionalManifest")] public Input? AdditionalManifest { get; set; } /// - /// Cluster V2 chart values. Must be in YAML format (string) + /// The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). /// [Input("chartValues")] public Input? ChartValues { get; set; } /// - /// Cluster V2 etcd (list maxitems:1) + /// Etcd configures the behavior of the automatic etcd snapshot feature. /// [Input("etcd")] public Input? Etcd { get; set; } /// - /// Cluster V2 etcd snapshot create (list maxitems:1) + /// Cluster V2 etcd snapshot create. /// [Input("etcdSnapshotCreate")] public Input? EtcdSnapshotCreate { get; set; } /// - /// Cluster V2 etcd snapshot restore (list maxitems:1) + /// Cluster V2 etcd snapshot restore. /// [Input("etcdSnapshotRestore")] public Input? EtcdSnapshotRestore { get; set; } /// - /// Cluster V2 local auth endpoint (list maxitems:1) + /// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). /// [Input("localAuthEndpoint")] public Input? LocalAuthEndpoint { get; set; } /// - /// Cluster V2 machine global config. Must be in YAML format (string) + /// Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). /// [Input("machineGlobalConfig")] public Input? MachineGlobalConfig { get; set; } @@ -70,7 +70,7 @@ public InputList MachinePoolDef private InputList? _machinePools; /// - /// Cluster V2 machine pools (list) + /// Cluster V2 machine pools. /// public InputList MachinePools { @@ -82,7 +82,7 @@ public InputList MachinePools private InputList? _machineSelectorConfigs; /// - /// Cluster V2 machine selector config (list) + /// Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. /// public InputList MachineSelectorConfigs { @@ -90,20 +90,32 @@ public InputList MachineSele set => _machineSelectorConfigs = value; } + [Input("machineSelectorFiles")] + private InputList? _machineSelectorFiles; + + /// + /// Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + /// + public InputList MachineSelectorFiles + { + get => _machineSelectorFiles ?? (_machineSelectorFiles = new InputList()); + set => _machineSelectorFiles = value; + } + /// - /// Cluster V2 docker registries (list maxitems:1) + /// Docker registries from which the cluster pulls images. /// [Input("registries")] public Input? Registries { get; set; } /// - /// Cluster V2 certificate rotation (list maxitems:1) + /// Cluster V2 certificate rotation. /// [Input("rotateCertificates")] public Input? RotateCertificates { get; set; } /// - /// Cluster V2 upgrade strategy (list maxitems:1) + /// Cluster upgrade strategy. /// [Input("upgradeStrategy")] public Input? UpgradeStrategy { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdArgs.cs index ed7f496bd..9d274bc10 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdArgs.cs @@ -13,25 +13,25 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigEtcdArgs : global::Pulumi.ResourceArgs { /// - /// Disable ETCD snapshots. Default: `false` (bool) + /// Disable ETCD snapshots. /// [Input("disableSnapshots")] public Input? DisableSnapshots { get; set; } /// - /// Creation option for etcd service (list maxitems:1) + /// Creation option for etcd service. /// [Input("s3Config")] public Input? S3Config { get; set; } /// - /// ETCD snapshot retention (int) + /// ETCD snapshot retention. /// [Input("snapshotRetention")] public Input? SnapshotRetention { get; set; } /// - /// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) + /// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). /// [Input("snapshotScheduleCron")] public Input? SnapshotScheduleCron { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdGetArgs.cs index 13e485f57..d9fc43f73 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdGetArgs.cs @@ -13,25 +13,25 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigEtcdGetArgs : global::Pulumi.ResourceArgs { /// - /// Disable ETCD snapshots. Default: `false` (bool) + /// Disable ETCD snapshots. /// [Input("disableSnapshots")] public Input? DisableSnapshots { get; set; } /// - /// Creation option for etcd service (list maxitems:1) + /// Creation option for etcd service. /// [Input("s3Config")] public Input? S3Config { get; set; } /// - /// ETCD snapshot retention (int) + /// ETCD snapshot retention. /// [Input("snapshotRetention")] public Input? SnapshotRetention { get; set; } /// - /// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) + /// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). /// [Input("snapshotScheduleCron")] public Input? SnapshotScheduleCron { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.cs index d5cde3ab7..be5cd55e1 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.cs @@ -13,43 +13,43 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigEtcdS3ConfigArgs : global::Pulumi.ResourceArgs { /// - /// Bucket name for S3 service (string) + /// Bucket name for S3 service. /// [Input("bucket", required: true)] public Input Bucket { get; set; } = null!; /// - /// ETCD snapshot S3 cloud credential name (string) + /// ETCD snapshot S3 cloud credential name. /// [Input("cloudCredentialName")] public Input? CloudCredentialName { get; set; } /// - /// ETCD snapshot S3 endpoint (string) + /// ETCD snapshot S3 endpoint. /// [Input("endpoint", required: true)] public Input Endpoint { get; set; } = null!; /// - /// ETCD snapshot S3 endpoint CA (string) + /// ETCD snapshot S3 endpoint CA. /// [Input("endpointCa")] public Input? EndpointCa { get; set; } /// - /// ETCD snapshot S3 folder (string) + /// ETCD snapshot S3 folder. /// [Input("folder")] public Input? Folder { get; set; } /// - /// ETCD snapshot S3 region (string) + /// ETCD snapshot S3 region. /// [Input("region")] public Input? Region { get; set; } /// - /// Disable ETCD skip ssl verify. Default: `false` (bool) + /// Disable ETCD skip ssl verify. /// [Input("skipSslVerify")] public Input? SkipSslVerify { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdS3ConfigGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdS3ConfigGetArgs.cs index 11ecb87b5..1454b0080 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdS3ConfigGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdS3ConfigGetArgs.cs @@ -13,43 +13,43 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigEtcdS3ConfigGetArgs : global::Pulumi.ResourceArgs { /// - /// Bucket name for S3 service (string) + /// Bucket name for S3 service. /// [Input("bucket", required: true)] public Input Bucket { get; set; } = null!; /// - /// ETCD snapshot S3 cloud credential name (string) + /// ETCD snapshot S3 cloud credential name. /// [Input("cloudCredentialName")] public Input? CloudCredentialName { get; set; } /// - /// ETCD snapshot S3 endpoint (string) + /// ETCD snapshot S3 endpoint. /// [Input("endpoint", required: true)] public Input Endpoint { get; set; } = null!; /// - /// ETCD snapshot S3 endpoint CA (string) + /// ETCD snapshot S3 endpoint CA. /// [Input("endpointCa")] public Input? EndpointCa { get; set; } /// - /// ETCD snapshot S3 folder (string) + /// ETCD snapshot S3 folder. /// [Input("folder")] public Input? Folder { get; set; } /// - /// ETCD snapshot S3 region (string) + /// ETCD snapshot S3 region. /// [Input("region")] public Input? Region { get; set; } /// - /// Disable ETCD skip ssl verify. Default: `false` (bool) + /// Disable ETCD skip ssl verify. /// [Input("skipSslVerify")] public Input? SkipSslVerify { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.cs index 2fd862e21..2792d7b89 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.cs @@ -13,7 +13,7 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigEtcdSnapshotCreateArgs : global::Pulumi.ResourceArgs { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// [Input("generation", required: true)] public Input Generation { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotCreateGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotCreateGetArgs.cs index 91aced966..74b7fed5a 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotCreateGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotCreateGetArgs.cs @@ -13,7 +13,7 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigEtcdSnapshotCreateGetArgs : global::Pulumi.ResourceArgs { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// [Input("generation", required: true)] public Input Generation { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.cs index 1e4f3eecc..9df765ea9 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigEtcdSnapshotRestoreArgs : global::Pulumi.ResourceArgs { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// [Input("generation", required: true)] public Input Generation { get; set; } = null!; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name", required: true)] public Input Name { get; set; } = null!; /// - /// ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + /// ETCD restore RKE config (set to none, all, or kubernetesVersion). /// [Input("restoreRkeConfig")] public Input? RestoreRkeConfig { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotRestoreGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotRestoreGetArgs.cs index 65f39d902..eba47f248 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotRestoreGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigEtcdSnapshotRestoreGetArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigEtcdSnapshotRestoreGetArgs : global::Pulumi.ResourceArgs { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// [Input("generation", required: true)] public Input Generation { get; set; } = null!; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name", required: true)] public Input Name { get; set; } = null!; /// - /// ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + /// ETCD restore RKE config (set to none, all, or kubernetesVersion). /// [Input("restoreRkeConfig")] public Input? RestoreRkeConfig { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigGetArgs.cs index 615c12ddc..c6a715fd6 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigGetArgs.cs @@ -13,43 +13,43 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigGetArgs : global::Pulumi.ResourceArgs { /// - /// Cluster V2 additional manifest (string) + /// The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. /// [Input("additionalManifest")] public Input? AdditionalManifest { get; set; } /// - /// Cluster V2 chart values. Must be in YAML format (string) + /// The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). /// [Input("chartValues")] public Input? ChartValues { get; set; } /// - /// Cluster V2 etcd (list maxitems:1) + /// Etcd configures the behavior of the automatic etcd snapshot feature. /// [Input("etcd")] public Input? Etcd { get; set; } /// - /// Cluster V2 etcd snapshot create (list maxitems:1) + /// Cluster V2 etcd snapshot create. /// [Input("etcdSnapshotCreate")] public Input? EtcdSnapshotCreate { get; set; } /// - /// Cluster V2 etcd snapshot restore (list maxitems:1) + /// Cluster V2 etcd snapshot restore. /// [Input("etcdSnapshotRestore")] public Input? EtcdSnapshotRestore { get; set; } /// - /// Cluster V2 local auth endpoint (list maxitems:1) + /// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). /// [Input("localAuthEndpoint")] public Input? LocalAuthEndpoint { get; set; } /// - /// Cluster V2 machine global config. Must be in YAML format (string) + /// Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). /// [Input("machineGlobalConfig")] public Input? MachineGlobalConfig { get; set; } @@ -70,7 +70,7 @@ public InputList MachinePool private InputList? _machinePools; /// - /// Cluster V2 machine pools (list) + /// Cluster V2 machine pools. /// public InputList MachinePools { @@ -82,7 +82,7 @@ public InputList MachinePools private InputList? _machineSelectorConfigs; /// - /// Cluster V2 machine selector config (list) + /// Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. /// public InputList MachineSelectorConfigs { @@ -90,20 +90,32 @@ public InputList MachineS set => _machineSelectorConfigs = value; } + [Input("machineSelectorFiles")] + private InputList? _machineSelectorFiles; + + /// + /// Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + /// + public InputList MachineSelectorFiles + { + get => _machineSelectorFiles ?? (_machineSelectorFiles = new InputList()); + set => _machineSelectorFiles = value; + } + /// - /// Cluster V2 docker registries (list maxitems:1) + /// Docker registries from which the cluster pulls images. /// [Input("registries")] public Input? Registries { get; set; } /// - /// Cluster V2 certificate rotation (list maxitems:1) + /// Cluster V2 certificate rotation. /// [Input("rotateCertificates")] public Input? RotateCertificates { get; set; } /// - /// Cluster V2 upgrade strategy (list maxitems:1) + /// Cluster upgrade strategy. /// [Input("upgradeStrategy")] public Input? UpgradeStrategy { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigLocalAuthEndpointArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigLocalAuthEndpointArgs.cs index 298236901..23298fe2f 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigLocalAuthEndpointArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigLocalAuthEndpointArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigLocalAuthEndpointArgs : global::Pulumi.ResourceArgs { /// - /// CA certs for the authorized cluster endpoint (string) + /// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. /// [Input("caCerts")] public Input? CaCerts { get; set; } /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// [Input("enabled")] public Input? Enabled { get; set; } /// - /// FQDN for the authorized cluster endpoint (string) + /// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. /// [Input("fqdn")] public Input? Fqdn { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigLocalAuthEndpointGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigLocalAuthEndpointGetArgs.cs index 55f131ef8..8e0f1c9bb 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigLocalAuthEndpointGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigLocalAuthEndpointGetArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigLocalAuthEndpointGetArgs : global::Pulumi.ResourceArgs { /// - /// CA certs for the authorized cluster endpoint (string) + /// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. /// [Input("caCerts")] public Input? CaCerts { get; set; } /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// [Input("enabled")] public Input? Enabled { get; set; } /// - /// FQDN for the authorized cluster endpoint (string) + /// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. /// [Input("fqdn")] public Input? Fqdn { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolArgs.cs index eac84af61..c001dabb4 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2RkeConfigMachinePoolArgs : global::Pulumi.ResourceA private InputMap? _annotations; /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// public InputMap Annotations { @@ -25,25 +25,25 @@ public InputMap Annotations } /// - /// Cluster V2 cloud credential secret name (string) + /// Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. /// [Input("cloudCredentialSecretName")] public Input? CloudCredentialSecretName { get; set; } /// - /// Machine pool control plane role? (bool) + /// Machine pool control plane role? /// [Input("controlPlaneRole")] public Input? ControlPlaneRole { get; set; } /// - /// Machine Pool Drain Before Delete? (bool) + /// Machine Pool Drain Before Delete? /// [Input("drainBeforeDelete")] public Input? DrainBeforeDelete { get; set; } /// - /// Machine pool etcd role? (bool) + /// Machine pool etcd role? /// [Input("etcdRole")] public Input? EtcdRole { get; set; } @@ -58,7 +58,7 @@ public InputMap Annotations private InputMap? _labels; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// public InputMap Labels { @@ -67,7 +67,7 @@ public InputMap Labels } /// - /// Machine pool node config (list) + /// Machine pool node config. /// [Input("machineConfig", required: true)] public Input MachineConfig { get; set; } = null!; @@ -76,7 +76,7 @@ public InputMap Labels private InputMap? _machineLabels; /// - /// Labels for Machine pool nodes (map) + /// Labels for Machine pool nodes. /// public InputMap MachineLabels { @@ -85,43 +85,43 @@ public InputMap MachineLabels } /// - /// Max unhealthy nodes for automated replacement to be allowed (string) + /// Max unhealthy nodes for automated replacement to be allowed. /// [Input("maxUnhealthy")] public Input? MaxUnhealthy { get; set; } /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name", required: true)] public Input Name { get; set; } = null!; /// - /// Seconds a machine has to drain before deletion (int) + /// Seconds a machine has to drain before deletion. /// [Input("nodeDrainTimeout")] public Input? NodeDrainTimeout { get; set; } /// - /// Seconds a new node has to become active before it is replaced (int) + /// Seconds a new node has to become active before it is replaced. /// [Input("nodeStartupTimeoutSeconds")] public Input? NodeStartupTimeoutSeconds { get; set; } /// - /// Machine pool paused? (bool) + /// Machine pool paused? /// [Input("paused")] public Input? Paused { get; set; } /// - /// Machine pool quantity (int) + /// Machine pool quantity. /// [Input("quantity")] public Input? Quantity { get; set; } /// - /// Machine pool rolling update (List maxitems:1) + /// Machine pool rolling update. /// [Input("rollingUpdate")] public Input? RollingUpdate { get; set; } @@ -130,7 +130,7 @@ public InputMap MachineLabels private InputList? _taints; /// - /// Machine pool taints (list) + /// Machine pool taints. /// public InputList Taints { @@ -139,19 +139,19 @@ public InputList Taints } /// - /// Seconds an unhealthy node has to become active before it is replaced (int) + /// Seconds an unhealthy node has to become active before it is replaced. /// [Input("unhealthyNodeTimeoutSeconds")] public Input? UnhealthyNodeTimeoutSeconds { get; set; } /// - /// Range of unhealthy nodes for automated replacement to be allowed (string) + /// Range of unhealthy nodes for automated replacement to be allowed. /// [Input("unhealthyRange")] public Input? UnhealthyRange { get; set; } /// - /// Machine pool worker role? (bool) + /// Machine pool worker role? /// [Input("workerRole")] public Input? WorkerRole { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolGetArgs.cs index e2e5b7053..e9ee987ea 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolGetArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2RkeConfigMachinePoolGetArgs : global::Pulumi.Resour private InputMap? _annotations; /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// public InputMap Annotations { @@ -25,25 +25,25 @@ public InputMap Annotations } /// - /// Cluster V2 cloud credential secret name (string) + /// Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. /// [Input("cloudCredentialSecretName")] public Input? CloudCredentialSecretName { get; set; } /// - /// Machine pool control plane role? (bool) + /// Machine pool control plane role? /// [Input("controlPlaneRole")] public Input? ControlPlaneRole { get; set; } /// - /// Machine Pool Drain Before Delete? (bool) + /// Machine Pool Drain Before Delete? /// [Input("drainBeforeDelete")] public Input? DrainBeforeDelete { get; set; } /// - /// Machine pool etcd role? (bool) + /// Machine pool etcd role? /// [Input("etcdRole")] public Input? EtcdRole { get; set; } @@ -58,7 +58,7 @@ public InputMap Annotations private InputMap? _labels; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// public InputMap Labels { @@ -67,7 +67,7 @@ public InputMap Labels } /// - /// Machine pool node config (list) + /// Machine pool node config. /// [Input("machineConfig", required: true)] public Input MachineConfig { get; set; } = null!; @@ -76,7 +76,7 @@ public InputMap Labels private InputMap? _machineLabels; /// - /// Labels for Machine pool nodes (map) + /// Labels for Machine pool nodes. /// public InputMap MachineLabels { @@ -85,43 +85,43 @@ public InputMap MachineLabels } /// - /// Max unhealthy nodes for automated replacement to be allowed (string) + /// Max unhealthy nodes for automated replacement to be allowed. /// [Input("maxUnhealthy")] public Input? MaxUnhealthy { get; set; } /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name", required: true)] public Input Name { get; set; } = null!; /// - /// Seconds a machine has to drain before deletion (int) + /// Seconds a machine has to drain before deletion. /// [Input("nodeDrainTimeout")] public Input? NodeDrainTimeout { get; set; } /// - /// Seconds a new node has to become active before it is replaced (int) + /// Seconds a new node has to become active before it is replaced. /// [Input("nodeStartupTimeoutSeconds")] public Input? NodeStartupTimeoutSeconds { get; set; } /// - /// Machine pool paused? (bool) + /// Machine pool paused? /// [Input("paused")] public Input? Paused { get; set; } /// - /// Machine pool quantity (int) + /// Machine pool quantity. /// [Input("quantity")] public Input? Quantity { get; set; } /// - /// Machine pool rolling update (List maxitems:1) + /// Machine pool rolling update. /// [Input("rollingUpdate")] public Input? RollingUpdate { get; set; } @@ -130,7 +130,7 @@ public InputMap MachineLabels private InputList? _taints; /// - /// Machine pool taints (list) + /// Machine pool taints. /// public InputList Taints { @@ -139,19 +139,19 @@ public InputList Taints } /// - /// Seconds an unhealthy node has to become active before it is replaced (int) + /// Seconds an unhealthy node has to become active before it is replaced. /// [Input("unhealthyNodeTimeoutSeconds")] public Input? UnhealthyNodeTimeoutSeconds { get; set; } /// - /// Range of unhealthy nodes for automated replacement to be allowed (string) + /// Range of unhealthy nodes for automated replacement to be allowed. /// [Input("unhealthyRange")] public Input? UnhealthyRange { get; set; } /// - /// Machine pool worker role? (bool) + /// Machine pool worker role? /// [Input("workerRole")] public Input? WorkerRole { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.cs index 6f56d1097..77385afba 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.cs @@ -13,13 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachinePoolMachineConfigArgs : global::Pulumi.ResourceArgs { /// - /// Machine config kind (string) + /// Api version of the machine_config. + /// + [Input("apiVersion")] + public Input? ApiVersion { get; set; } + + /// + /// Machine config kind. /// [Input("kind", required: true)] public Input Kind { get; set; } = null!; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name", required: true)] public Input Name { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolMachineConfigGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolMachineConfigGetArgs.cs index 05fe8192f..c1dcb1ecb 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolMachineConfigGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolMachineConfigGetArgs.cs @@ -13,13 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachinePoolMachineConfigGetArgs : global::Pulumi.ResourceArgs { /// - /// Machine config kind (string) + /// Api version of the machine_config. + /// + [Input("apiVersion")] + public Input? ApiVersion { get; set; } + + /// + /// Machine config kind. /// [Input("kind", required: true)] public Input Kind { get; set; } = null!; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// [Input("name", required: true)] public Input Name { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolRollingUpdateArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolRollingUpdateArgs.cs index 0db5ce598..eed12a51e 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolRollingUpdateArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolRollingUpdateArgs.cs @@ -13,13 +13,13 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachinePoolRollingUpdateArgs : global::Pulumi.ResourceArgs { /// - /// Rolling update max surge (string) + /// Rolling update max surge. /// [Input("maxSurge")] public Input? MaxSurge { get; set; } /// - /// Rolling update max unavailable (string) + /// Rolling update max unavailable. /// [Input("maxUnavailable")] public Input? MaxUnavailable { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolRollingUpdateGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolRollingUpdateGetArgs.cs index 77ea45a7a..393c08975 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolRollingUpdateGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolRollingUpdateGetArgs.cs @@ -13,13 +13,13 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachinePoolRollingUpdateGetArgs : global::Pulumi.ResourceArgs { /// - /// Rolling update max surge (string) + /// Rolling update max surge. /// [Input("maxSurge")] public Input? MaxSurge { get; set; } /// - /// Rolling update max unavailable (string) + /// Rolling update max unavailable. /// [Input("maxUnavailable")] public Input? MaxUnavailable { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolTaintArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolTaintArgs.cs index aa05c8795..8e535463d 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolTaintArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolTaintArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachinePoolTaintArgs : global::Pulumi.ResourceArgs { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// [Input("effect")] public Input? Effect { get; set; } /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// [Input("key", required: true)] public Input Key { get; set; } = null!; /// - /// The taint value (string) + /// The taint value. /// [Input("value", required: true)] public Input Value { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolTaintGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolTaintGetArgs.cs index 4d88804cf..ea777dac2 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolTaintGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachinePoolTaintGetArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachinePoolTaintGetArgs : global::Pulumi.ResourceArgs { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// [Input("effect")] public Input? Effect { get; set; } /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// [Input("key", required: true)] public Input Key { get; set; } = null!; /// - /// The taint value (string) + /// The taint value. /// [Input("value", required: true)] public Input Value { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigArgs.cs index 995730cd7..c69930955 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigArgs.cs @@ -13,13 +13,13 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachineSelectorConfigArgs : global::Pulumi.ResourceArgs { /// - /// Machine selector config. Must be in YAML format (string) + /// Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) /// [Input("config")] public Input? Config { get; set; } /// - /// Machine selector label (list maxitems:1) + /// Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. /// [Input("machineLabelSelector")] public Input? MachineLabelSelector { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigGetArgs.cs index 600bf74cc..63957e006 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigGetArgs.cs @@ -13,13 +13,13 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachineSelectorConfigGetArgs : global::Pulumi.ResourceArgs { /// - /// Machine selector config. Must be in YAML format (string) + /// Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) /// [Input("config")] public Input? Config { get; set; } /// - /// Machine selector label (list maxitems:1) + /// Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. /// [Input("machineLabelSelector")] public Input? MachineLabelSelector { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs.cs index 7e2fabbff..a9cbd1690 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorA private InputList? _matchExpressions; /// - /// Machine selector label match expressions (list) + /// Match expressions is a list of label selector requirements. The requirements are ANDed. /// public InputList MatchExpressions { @@ -28,7 +28,7 @@ public InputList? _matchLabels; /// - /// Machine selector label match labels (map) + /// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. /// public InputMap MatchLabels { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorGetArgs.cs index dbe2071c9..1246399b1 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorGetArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorG private InputList? _matchExpressions; /// - /// Machine selector label match expressions (list) + /// Match expressions is a list of label selector requirements. The requirements are ANDed. /// public InputList MatchExpressions { @@ -28,7 +28,7 @@ public InputList? _matchLabels; /// - /// Machine selector label match labels (map) + /// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. /// public InputMap MatchLabels { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs.cs index cce80d2f5..c653fe9ed 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs.cs @@ -13,13 +13,13 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs : global::Pulumi.ResourceArgs { /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// [Input("key")] public Input? Key { get; set; } /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// [Input("operator")] public Input? Operator { get; set; } @@ -28,7 +28,7 @@ public sealed class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorM private InputList? _values; /// - /// Machine selector label match expressions values (List string) + /// Values is a list of string values. /// public InputList Values { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionGetArgs.cs index 57874dd1a..78c8aca20 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionGetArgs.cs @@ -13,13 +13,13 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionGetArgs : global::Pulumi.ResourceArgs { /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// [Input("key")] public Input? Key { get; set; } /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// [Input("operator")] public Input? Operator { get; set; } @@ -28,7 +28,7 @@ public sealed class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorM private InputList? _values; /// - /// Machine selector label match expressions values (List string) + /// Values is a list of string values. /// public InputList Values { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileArgs.cs new file mode 100644 index 000000000..b9e5a7d9a --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileArgs : global::Pulumi.ResourceArgs + { + [Input("fileSources")] + private InputList? _fileSources; + + /// + /// File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + /// + public InputList FileSources + { + get => _fileSources ?? (_fileSources = new InputList()); + set => _fileSources = value; + } + + /// + /// Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + /// + [Input("machineLabelSelector")] + public Input? MachineLabelSelector { get; set; } + + public ClusterV2RkeConfigMachineSelectorFileArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileArgs Empty => new ClusterV2RkeConfigMachineSelectorFileArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceArgs.cs new file mode 100644 index 000000000..0fbe425b2 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceArgs : global::Pulumi.ResourceArgs + { + /// + /// Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + /// + [Input("configmap")] + public Input? Configmap { get; set; } + + /// + /// Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + /// + [Input("secret")] + public Input? Secret { get; set; } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs.cs new file mode 100644 index 000000000..2f5f37ca0 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs : global::Pulumi.ResourceArgs + { + /// + /// The numeric representation of the default file permissions for all files defined under the items. + /// + [Input("defaultPermissions")] + public Input? DefaultPermissions { get; set; } + + [Input("items")] + private InputList? _items; + + /// + /// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + /// + public InputList Items + { + get => _items ?? (_items = new InputList()); + set => _items = value; + } + + /// + /// The name of the cluster. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapGetArgs.cs new file mode 100644 index 000000000..d519f3ced --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapGetArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The numeric representation of the default file permissions for all files defined under the items. + /// + [Input("defaultPermissions")] + public Input? DefaultPermissions { get; set; } + + [Input("items")] + private InputList? _items; + + /// + /// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + /// + public InputList Items + { + get => _items ?? (_items = new InputList()); + set => _items = value; + } + + /// + /// The name of the cluster. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapGetArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapGetArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs.cs new file mode 100644 index 000000000..5650a5de1 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs : global::Pulumi.ResourceArgs + { + /// + /// If true, the file is ignored when determining whether the node should be drained before updating the node plan. + /// + [Input("dynamic")] + public Input? Dynamic { get; set; } + + /// + /// Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + /// + [Input("hash")] + public Input? Hash { get; set; } + + /// + /// Key is the name of the key of the item to retrieve. + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + /// + /// Path is the absolute path to put the file in the target node. + /// + [Input("path", required: true)] + public Input Path { get; set; } = null!; + + /// + /// Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + /// + [Input("permissions")] + public Input? Permissions { get; set; } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemGetArgs.cs new file mode 100644 index 000000000..8815a1d31 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemGetArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemGetArgs : global::Pulumi.ResourceArgs + { + /// + /// If true, the file is ignored when determining whether the node should be drained before updating the node plan. + /// + [Input("dynamic")] + public Input? Dynamic { get; set; } + + /// + /// Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + /// + [Input("hash")] + public Input? Hash { get; set; } + + /// + /// Key is the name of the key of the item to retrieve. + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + /// + /// Path is the absolute path to put the file in the target node. + /// + [Input("path", required: true)] + public Input Path { get; set; } = null!; + + /// + /// Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + /// + [Input("permissions")] + public Input? Permissions { get; set; } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemGetArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemGetArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceGetArgs.cs new file mode 100644 index 000000000..7c2903d8b --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceGetArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + /// + [Input("configmap")] + public Input? Configmap { get; set; } + + /// + /// Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + /// + [Input("secret")] + public Input? Secret { get; set; } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceGetArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceGetArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs.cs new file mode 100644 index 000000000..7d390b05f --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs : global::Pulumi.ResourceArgs + { + /// + /// The numeric representation of the default file permissions for all files defined under the items. + /// + [Input("defaultPermissions")] + public Input? DefaultPermissions { get; set; } + + [Input("items")] + private InputList? _items; + + /// + /// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + /// + public InputList Items + { + get => _items ?? (_items = new InputList()); + set => _items = value; + } + + /// + /// The name of the cluster. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretGetArgs.cs new file mode 100644 index 000000000..a76bffb34 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretGetArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The numeric representation of the default file permissions for all files defined under the items. + /// + [Input("defaultPermissions")] + public Input? DefaultPermissions { get; set; } + + [Input("items")] + private InputList? _items; + + /// + /// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + /// + public InputList Items + { + get => _items ?? (_items = new InputList()); + set => _items = value; + } + + /// + /// The name of the cluster. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public ClusterV2RkeConfigMachineSelectorFileFileSourceSecretGetArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretGetArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs.cs new file mode 100644 index 000000000..35078e464 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs : global::Pulumi.ResourceArgs + { + /// + /// If true, the file is ignored when determining whether the node should be drained before updating the node plan. + /// + [Input("dynamic")] + public Input? Dynamic { get; set; } + + /// + /// Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + /// + [Input("hash")] + public Input? Hash { get; set; } + + /// + /// Key is the name of the key of the item to retrieve. + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + /// + /// Path is the absolute path to put the file in the target node. + /// + [Input("path", required: true)] + public Input Path { get; set; } = null!; + + /// + /// Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + /// + [Input("permissions")] + public Input? Permissions { get; set; } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemGetArgs.cs new file mode 100644 index 000000000..b60c90d68 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemGetArgs.cs @@ -0,0 +1,50 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemGetArgs : global::Pulumi.ResourceArgs + { + /// + /// If true, the file is ignored when determining whether the node should be drained before updating the node plan. + /// + [Input("dynamic")] + public Input? Dynamic { get; set; } + + /// + /// Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + /// + [Input("hash")] + public Input? Hash { get; set; } + + /// + /// Key is the name of the key of the item to retrieve. + /// + [Input("key", required: true)] + public Input Key { get; set; } = null!; + + /// + /// Path is the absolute path to put the file in the target node. + /// + [Input("path", required: true)] + public Input Path { get; set; } = null!; + + /// + /// Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + /// + [Input("permissions")] + public Input? Permissions { get; set; } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemGetArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemGetArgs Empty => new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileGetArgs.cs new file mode 100644 index 000000000..fdb9f3080 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileGetArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileGetArgs : global::Pulumi.ResourceArgs + { + [Input("fileSources")] + private InputList? _fileSources; + + /// + /// File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + /// + public InputList FileSources + { + get => _fileSources ?? (_fileSources = new InputList()); + set => _fileSources = value; + } + + /// + /// Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + /// + [Input("machineLabelSelector")] + public Input? MachineLabelSelector { get; set; } + + public ClusterV2RkeConfigMachineSelectorFileGetArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileGetArgs Empty => new ClusterV2RkeConfigMachineSelectorFileGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs.cs new file mode 100644 index 000000000..7c0f3f835 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs : global::Pulumi.ResourceArgs + { + [Input("matchExpressions")] + private InputList? _matchExpressions; + + /// + /// Match expressions is a list of label selector requirements. The requirements are ANDed. + /// + public InputList MatchExpressions + { + get => _matchExpressions ?? (_matchExpressions = new InputList()); + set => _matchExpressions = value; + } + + [Input("matchLabels")] + private InputMap? _matchLabels; + + /// + /// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + /// + public InputMap MatchLabels + { + get => _matchLabels ?? (_matchLabels = new InputMap()); + set => _matchLabels = value; + } + + public ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs Empty => new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorGetArgs.cs new file mode 100644 index 000000000..d00d12764 --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorGetArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorGetArgs : global::Pulumi.ResourceArgs + { + [Input("matchExpressions")] + private InputList? _matchExpressions; + + /// + /// Match expressions is a list of label selector requirements. The requirements are ANDed. + /// + public InputList MatchExpressions + { + get => _matchExpressions ?? (_matchExpressions = new InputList()); + set => _matchExpressions = value; + } + + [Input("matchLabels")] + private InputMap? _matchLabels; + + /// + /// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + /// + public InputMap MatchLabels + { + get => _matchLabels ?? (_matchLabels = new InputMap()); + set => _matchLabels = value; + } + + public ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorGetArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorGetArgs Empty => new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs.cs new file mode 100644 index 000000000..dc5ac5c2b --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs : global::Pulumi.ResourceArgs + { + /// + /// Key is the name of the key of the item to retrieve. + /// + [Input("key")] + public Input? Key { get; set; } + + /// + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + /// + [Input("operator")] + public Input? Operator { get; set; } + + [Input("values")] + private InputList? _values; + + /// + /// Values is a list of string values. + /// + public InputList Values + { + get => _values ?? (_values = new InputList()); + set => _values = value; + } + + public ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs Empty => new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionGetArgs.cs new file mode 100644 index 000000000..122dc177b --- /dev/null +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionGetArgs.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Inputs +{ + + public sealed class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Key is the name of the key of the item to retrieve. + /// + [Input("key")] + public Input? Key { get; set; } + + /// + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + /// + [Input("operator")] + public Input? Operator { get; set; } + + [Input("values")] + private InputList? _values; + + /// + /// Values is a list of string values. + /// + public InputList Values + { + get => _values ?? (_values = new InputList()); + set => _values = value; + } + + public ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionGetArgs() + { + } + public static new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionGetArgs Empty => new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesArgs.cs index e380414ad..fbea6c9a3 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2RkeConfigRegistriesArgs : global::Pulumi.ResourceAr private InputList? _configs; /// - /// Cluster V2 docker registries config (list) + /// Cluster V2 docker registries config. /// public InputList Configs { @@ -28,7 +28,7 @@ public InputList Configs private InputList? _mirrors; /// - /// Cluster V2 docker registries mirror (list) + /// Cluster V2 docker registries mirror. /// public InputList Mirrors { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesConfigArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesConfigArgs.cs index cb592504f..71a21d057 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesConfigArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesConfigArgs.cs @@ -13,31 +13,31 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigRegistriesConfigArgs : global::Pulumi.ResourceArgs { /// - /// Registry auth config secret name (string) + /// Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. /// [Input("authConfigSecretName")] public Input? AuthConfigSecretName { get; set; } /// - /// Registry CA bundle (string) + /// Registry CA bundle. /// [Input("caBundle")] public Input? CaBundle { get; set; } /// - /// Registry hostname (string) + /// Registry hostname. /// [Input("hostname", required: true)] public Input Hostname { get; set; } = null!; /// - /// Registry insecure connectivity (bool) + /// Registry insecure connectivity. /// [Input("insecure")] public Input? Insecure { get; set; } /// - /// Registry TLS secret name. TLS is a pair of Cert/Key (string) + /// Registry TLS secret name. TLS is a pair of Cert/Key. /// [Input("tlsSecretName")] public Input? TlsSecretName { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesConfigGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesConfigGetArgs.cs index c6a3fd3e0..17b275260 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesConfigGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesConfigGetArgs.cs @@ -13,31 +13,31 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigRegistriesConfigGetArgs : global::Pulumi.ResourceArgs { /// - /// Registry auth config secret name (string) + /// Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. /// [Input("authConfigSecretName")] public Input? AuthConfigSecretName { get; set; } /// - /// Registry CA bundle (string) + /// Registry CA bundle. /// [Input("caBundle")] public Input? CaBundle { get; set; } /// - /// Registry hostname (string) + /// Registry hostname. /// [Input("hostname", required: true)] public Input Hostname { get; set; } = null!; /// - /// Registry insecure connectivity (bool) + /// Registry insecure connectivity. /// [Input("insecure")] public Input? Insecure { get; set; } /// - /// Registry TLS secret name. TLS is a pair of Cert/Key (string) + /// Registry TLS secret name. TLS is a pair of Cert/Key. /// [Input("tlsSecretName")] public Input? TlsSecretName { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesGetArgs.cs index b4b4d1837..5ddc126dc 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesGetArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2RkeConfigRegistriesGetArgs : global::Pulumi.Resourc private InputList? _configs; /// - /// Cluster V2 docker registries config (list) + /// Cluster V2 docker registries config. /// public InputList Configs { @@ -28,7 +28,7 @@ public InputList Configs private InputList? _mirrors; /// - /// Cluster V2 docker registries mirror (list) + /// Cluster V2 docker registries mirror. /// public InputList Mirrors { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesMirrorArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesMirrorArgs.cs index ac79d3da0..9a00a4329 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesMirrorArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesMirrorArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2RkeConfigRegistriesMirrorArgs : global::Pulumi.Reso private InputList? _endpoints; /// - /// Registry mirror endpoints (List) + /// Registry mirror endpoints. /// public InputList Endpoints { @@ -25,7 +25,7 @@ public InputList Endpoints } /// - /// Registry hostname (string) + /// Registry hostname. /// [Input("hostname", required: true)] public Input Hostname { get; set; } = null!; @@ -34,7 +34,7 @@ public InputList Endpoints private InputMap? _rewrites; /// - /// Registry mirror rewrites (map) + /// Registry mirror rewrites. /// public InputMap Rewrites { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesMirrorGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesMirrorGetArgs.cs index 8bd531aa3..ef5dc093a 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesMirrorGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigRegistriesMirrorGetArgs.cs @@ -16,7 +16,7 @@ public sealed class ClusterV2RkeConfigRegistriesMirrorGetArgs : global::Pulumi.R private InputList? _endpoints; /// - /// Registry mirror endpoints (List) + /// Registry mirror endpoints. /// public InputList Endpoints { @@ -25,7 +25,7 @@ public InputList Endpoints } /// - /// Registry hostname (string) + /// Registry hostname. /// [Input("hostname", required: true)] public Input Hostname { get; set; } = null!; @@ -34,7 +34,7 @@ public InputList Endpoints private InputMap? _rewrites; /// - /// Registry mirror rewrites (map) + /// Registry mirror rewrites. /// public InputMap Rewrites { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigRotateCertificatesArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigRotateCertificatesArgs.cs index 42a08e25c..f81ed36d6 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigRotateCertificatesArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigRotateCertificatesArgs.cs @@ -13,7 +13,7 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigRotateCertificatesArgs : global::Pulumi.ResourceArgs { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// [Input("generation", required: true)] public Input Generation { get; set; } = null!; @@ -22,7 +22,7 @@ public sealed class ClusterV2RkeConfigRotateCertificatesArgs : global::Pulumi.Re private InputList? _services; /// - /// Service certificates to rotate with this generation (string) + /// Service certificates to rotate with this generation. /// public InputList Services { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigRotateCertificatesGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigRotateCertificatesGetArgs.cs index 144111ec4..692314fcb 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigRotateCertificatesGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigRotateCertificatesGetArgs.cs @@ -13,7 +13,7 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigRotateCertificatesGetArgs : global::Pulumi.ResourceArgs { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// [Input("generation", required: true)] public Input Generation { get; set; } = null!; @@ -22,7 +22,7 @@ public sealed class ClusterV2RkeConfigRotateCertificatesGetArgs : global::Pulumi private InputList? _services; /// - /// Service certificates to rotate with this generation (string) + /// Service certificates to rotate with this generation. /// public InputList Services { diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyArgs.cs index c84090d0f..22f3645e7 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyArgs.cs @@ -13,25 +13,25 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigUpgradeStrategyArgs : global::Pulumi.ResourceArgs { /// - /// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + /// How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. /// [Input("controlPlaneConcurrency")] public Input? ControlPlaneConcurrency { get; set; } /// - /// Controlplane nodes drain options (list maxitems:1) + /// Controlplane nodes drain options. /// [Input("controlPlaneDrainOptions")] public Input? ControlPlaneDrainOptions { get; set; } /// - /// How many worker nodes should be upgrade at time. Percentages are also accepted (string) + /// How many worker nodes should be upgraded at a time. Percentages are also accepted. /// [Input("workerConcurrency")] public Input? WorkerConcurrency { get; set; } /// - /// Worker nodes drain options (list maxitems:1) + /// Worker nodes drain options. /// [Input("workerDrainOptions")] public Input? WorkerDrainOptions { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs.cs index 0022054c8..1f2a0b70c 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs.cs @@ -13,55 +13,55 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs : global::Pulumi.ResourceArgs { /// - /// Drain options delete empty dir data. Default `false` (bool) + /// if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). /// [Input("deleteEmptyDirData")] public Input? DeleteEmptyDirData { get; set; } /// - /// Drain options disable eviction. Default `false` (bool) + /// If `disable_eviction` is set to true, force drain to use delete rather than evict. /// [Input("disableEviction")] public Input? DisableEviction { get; set; } /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// [Input("enabled")] public Input? Enabled { get; set; } /// - /// Drain options force. Default `false` (bool) + /// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. /// [Input("force")] public Input? Force { get; set; } /// - /// Drain options grace period (int) + /// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. /// [Input("gracePeriod")] public Input? GracePeriod { get; set; } /// - /// Drain options ignore daemon sets. Default `true` (bool) + /// If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. /// [Input("ignoreDaemonSets")] public Input? IgnoreDaemonSets { get; set; } /// - /// Drain options ignore errors. Default `false` (bool) + /// If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. /// [Input("ignoreErrors")] public Input? IgnoreErrors { get; set; } /// - /// Drain options skip wait for delete timeout seconds (int) + /// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. /// [Input("skipWaitForDeleteTimeoutSeconds")] public Input? SkipWaitForDeleteTimeoutSeconds { get; set; } /// - /// Drain options timeout (int) + /// Time to wait (in seconds) before giving up for one try. /// [Input("timeout")] public Input? Timeout { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsGetArgs.cs index 70354b502..18cacca95 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsGetArgs.cs @@ -13,55 +13,55 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsGetArgs : global::Pulumi.ResourceArgs { /// - /// Drain options delete empty dir data. Default `false` (bool) + /// if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). /// [Input("deleteEmptyDirData")] public Input? DeleteEmptyDirData { get; set; } /// - /// Drain options disable eviction. Default `false` (bool) + /// If `disable_eviction` is set to true, force drain to use delete rather than evict. /// [Input("disableEviction")] public Input? DisableEviction { get; set; } /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// [Input("enabled")] public Input? Enabled { get; set; } /// - /// Drain options force. Default `false` (bool) + /// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. /// [Input("force")] public Input? Force { get; set; } /// - /// Drain options grace period (int) + /// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. /// [Input("gracePeriod")] public Input? GracePeriod { get; set; } /// - /// Drain options ignore daemon sets. Default `true` (bool) + /// If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. /// [Input("ignoreDaemonSets")] public Input? IgnoreDaemonSets { get; set; } /// - /// Drain options ignore errors. Default `false` (bool) + /// If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. /// [Input("ignoreErrors")] public Input? IgnoreErrors { get; set; } /// - /// Drain options skip wait for delete timeout seconds (int) + /// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. /// [Input("skipWaitForDeleteTimeoutSeconds")] public Input? SkipWaitForDeleteTimeoutSeconds { get; set; } /// - /// Drain options timeout (int) + /// Time to wait (in seconds) before giving up for one try. /// [Input("timeout")] public Input? Timeout { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyGetArgs.cs index 4b823ba3b..b6d44ef6d 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyGetArgs.cs @@ -13,25 +13,25 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigUpgradeStrategyGetArgs : global::Pulumi.ResourceArgs { /// - /// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + /// How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. /// [Input("controlPlaneConcurrency")] public Input? ControlPlaneConcurrency { get; set; } /// - /// Controlplane nodes drain options (list maxitems:1) + /// Controlplane nodes drain options. /// [Input("controlPlaneDrainOptions")] public Input? ControlPlaneDrainOptions { get; set; } /// - /// How many worker nodes should be upgrade at time. Percentages are also accepted (string) + /// How many worker nodes should be upgraded at a time. Percentages are also accepted. /// [Input("workerConcurrency")] public Input? WorkerConcurrency { get; set; } /// - /// Worker nodes drain options (list maxitems:1) + /// Worker nodes drain options. /// [Input("workerDrainOptions")] public Input? WorkerDrainOptions { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs.cs index 057b0e73f..c56997577 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs.cs @@ -13,55 +13,55 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs : global::Pulumi.ResourceArgs { /// - /// Drain options delete empty dir data. Default `false` (bool) + /// if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). /// [Input("deleteEmptyDirData")] public Input? DeleteEmptyDirData { get; set; } /// - /// Drain options disable eviction. Default `false` (bool) + /// If `disable_eviction` is set to true, force drain to use delete rather than evict. /// [Input("disableEviction")] public Input? DisableEviction { get; set; } /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// [Input("enabled")] public Input? Enabled { get; set; } /// - /// Drain options force. Default `false` (bool) + /// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. /// [Input("force")] public Input? Force { get; set; } /// - /// Drain options grace period (int) + /// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. /// [Input("gracePeriod")] public Input? GracePeriod { get; set; } /// - /// Drain options ignore daemon sets. Default `true` (bool) + /// If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. /// [Input("ignoreDaemonSets")] public Input? IgnoreDaemonSets { get; set; } /// - /// Drain options ignore errors. Default `false` (bool) + /// If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. /// [Input("ignoreErrors")] public Input? IgnoreErrors { get; set; } /// - /// Drain options skip wait for delete timeout seconds (int) + /// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. /// [Input("skipWaitForDeleteTimeoutSeconds")] public Input? SkipWaitForDeleteTimeoutSeconds { get; set; } /// - /// Drain options timeout (int) + /// Time to wait (in seconds) before giving up for one try. /// [Input("timeout")] public Input? Timeout { get; set; } diff --git a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsGetArgs.cs b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsGetArgs.cs index 266fec76d..dcd2bbcb4 100644 --- a/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsGetArgs.cs +++ b/sdk/dotnet/Inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsGetArgs.cs @@ -13,55 +13,55 @@ namespace Pulumi.Rancher2.Inputs public sealed class ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsGetArgs : global::Pulumi.ResourceArgs { /// - /// Drain options delete empty dir data. Default `false` (bool) + /// if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). /// [Input("deleteEmptyDirData")] public Input? DeleteEmptyDirData { get; set; } /// - /// Drain options disable eviction. Default `false` (bool) + /// If `disable_eviction` is set to true, force drain to use delete rather than evict. /// [Input("disableEviction")] public Input? DisableEviction { get; set; } /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// [Input("enabled")] public Input? Enabled { get; set; } /// - /// Drain options force. Default `false` (bool) + /// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. /// [Input("force")] public Input? Force { get; set; } /// - /// Drain options grace period (int) + /// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. /// [Input("gracePeriod")] public Input? GracePeriod { get; set; } /// - /// Drain options ignore daemon sets. Default `true` (bool) + /// If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. /// [Input("ignoreDaemonSets")] public Input? IgnoreDaemonSets { get; set; } /// - /// Drain options ignore errors. Default `false` (bool) + /// If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. /// [Input("ignoreErrors")] public Input? IgnoreErrors { get; set; } /// - /// Drain options skip wait for delete timeout seconds (int) + /// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. /// [Input("skipWaitForDeleteTimeoutSeconds")] public Input? SkipWaitForDeleteTimeoutSeconds { get; set; } /// - /// Drain options timeout (int) + /// Time to wait (in seconds) before giving up for one try. /// [Input("timeout")] public Input? Timeout { get; set; } diff --git a/sdk/dotnet/Inputs/MachineConfigV2VsphereConfigArgs.cs b/sdk/dotnet/Inputs/MachineConfigV2VsphereConfigArgs.cs index d3e712a4a..8579cdffa 100644 --- a/sdk/dotnet/Inputs/MachineConfigV2VsphereConfigArgs.cs +++ b/sdk/dotnet/Inputs/MachineConfigV2VsphereConfigArgs.cs @@ -108,6 +108,12 @@ public InputList CustomAttributes [Input("folder")] public Input? Folder { get; set; } + /// + /// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + /// + [Input("gracefulShutdownTimeout")] + public Input? GracefulShutdownTimeout { get; set; } + /// /// vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) /// diff --git a/sdk/dotnet/Inputs/MachineConfigV2VsphereConfigGetArgs.cs b/sdk/dotnet/Inputs/MachineConfigV2VsphereConfigGetArgs.cs index 269722214..06f6d7478 100644 --- a/sdk/dotnet/Inputs/MachineConfigV2VsphereConfigGetArgs.cs +++ b/sdk/dotnet/Inputs/MachineConfigV2VsphereConfigGetArgs.cs @@ -108,6 +108,12 @@ public InputList CustomAttributes [Input("folder")] public Input? Folder { get; set; } + /// + /// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + /// + [Input("gracefulShutdownTimeout")] + public Input? GracefulShutdownTimeout { get; set; } + /// /// vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) /// diff --git a/sdk/dotnet/Inputs/NodeTemplateVsphereConfigArgs.cs b/sdk/dotnet/Inputs/NodeTemplateVsphereConfigArgs.cs index d1d1230cc..3f491de75 100644 --- a/sdk/dotnet/Inputs/NodeTemplateVsphereConfigArgs.cs +++ b/sdk/dotnet/Inputs/NodeTemplateVsphereConfigArgs.cs @@ -108,6 +108,12 @@ public InputList CustomAttributes [Input("folder")] public Input? Folder { get; set; } + /// + /// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + /// + [Input("gracefulShutdownTimeout")] + public Input? GracefulShutdownTimeout { get; set; } + /// /// vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) /// diff --git a/sdk/dotnet/Inputs/NodeTemplateVsphereConfigGetArgs.cs b/sdk/dotnet/Inputs/NodeTemplateVsphereConfigGetArgs.cs index 367e1411e..69992cd18 100644 --- a/sdk/dotnet/Inputs/NodeTemplateVsphereConfigGetArgs.cs +++ b/sdk/dotnet/Inputs/NodeTemplateVsphereConfigGetArgs.cs @@ -108,6 +108,12 @@ public InputList CustomAttributes [Input("folder")] public Input? Folder { get; set; } + /// + /// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + /// + [Input("gracefulShutdownTimeout")] + public Input? GracefulShutdownTimeout { get; set; } + /// /// vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) /// diff --git a/sdk/dotnet/Inputs/RoleTempalteRuleArgs.cs b/sdk/dotnet/Inputs/RoleTempalteRuleArgs.cs deleted file mode 100644 index 1f2928fef..000000000 --- a/sdk/dotnet/Inputs/RoleTempalteRuleArgs.cs +++ /dev/null @@ -1,80 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class RoleTempalteRuleArgs : global::Pulumi.ResourceArgs - { - [Input("apiGroups")] - private InputList? _apiGroups; - - /// - /// Policy rule api groups (list) - /// - public InputList ApiGroups - { - get => _apiGroups ?? (_apiGroups = new InputList()); - set => _apiGroups = value; - } - - [Input("nonResourceUrls")] - private InputList? _nonResourceUrls; - - /// - /// Policy rule non resource urls (list) - /// - public InputList NonResourceUrls - { - get => _nonResourceUrls ?? (_nonResourceUrls = new InputList()); - set => _nonResourceUrls = value; - } - - [Input("resourceNames")] - private InputList? _resourceNames; - - /// - /// Policy rule resource names (list) - /// - public InputList ResourceNames - { - get => _resourceNames ?? (_resourceNames = new InputList()); - set => _resourceNames = value; - } - - [Input("resources")] - private InputList? _resources; - - /// - /// Policy rule resources (list) - /// - public InputList Resources - { - get => _resources ?? (_resources = new InputList()); - set => _resources = value; - } - - [Input("verbs")] - private InputList? _verbs; - - /// - /// Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - /// - public InputList Verbs - { - get => _verbs ?? (_verbs = new InputList()); - set => _verbs = value; - } - - public RoleTempalteRuleArgs() - { - } - public static new RoleTempalteRuleArgs Empty => new RoleTempalteRuleArgs(); - } -} diff --git a/sdk/dotnet/Inputs/RoleTempalteRuleGetArgs.cs b/sdk/dotnet/Inputs/RoleTempalteRuleGetArgs.cs deleted file mode 100644 index e188176dc..000000000 --- a/sdk/dotnet/Inputs/RoleTempalteRuleGetArgs.cs +++ /dev/null @@ -1,80 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Inputs -{ - - public sealed class RoleTempalteRuleGetArgs : global::Pulumi.ResourceArgs - { - [Input("apiGroups")] - private InputList? _apiGroups; - - /// - /// Policy rule api groups (list) - /// - public InputList ApiGroups - { - get => _apiGroups ?? (_apiGroups = new InputList()); - set => _apiGroups = value; - } - - [Input("nonResourceUrls")] - private InputList? _nonResourceUrls; - - /// - /// Policy rule non resource urls (list) - /// - public InputList NonResourceUrls - { - get => _nonResourceUrls ?? (_nonResourceUrls = new InputList()); - set => _nonResourceUrls = value; - } - - [Input("resourceNames")] - private InputList? _resourceNames; - - /// - /// Policy rule resource names (list) - /// - public InputList ResourceNames - { - get => _resourceNames ?? (_resourceNames = new InputList()); - set => _resourceNames = value; - } - - [Input("resources")] - private InputList? _resources; - - /// - /// Policy rule resources (list) - /// - public InputList Resources - { - get => _resources ?? (_resources = new InputList()); - set => _resources = value; - } - - [Input("verbs")] - private InputList? _verbs; - - /// - /// Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - /// - public InputList Verbs - { - get => _verbs ?? (_verbs = new InputList()); - set => _verbs = value; - } - - public RoleTempalteRuleGetArgs() - { - } - public static new RoleTempalteRuleGetArgs Empty => new RoleTempalteRuleGetArgs(); - } -} diff --git a/sdk/dotnet/MachineConfigV2.cs b/sdk/dotnet/MachineConfigV2.cs index 327b3d2ae..0b6659661 100644 --- a/sdk/dotnet/MachineConfigV2.cs +++ b/sdk/dotnet/MachineConfigV2.cs @@ -12,9 +12,7 @@ namespace Pulumi.Rancher2 /// /// Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above. /// - /// `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere` cloud providers are supported for machine config V2 - /// - /// **Note:** This resource is used by + /// The supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`. /// /// ## Example Usage /// ### Using the Harvester Node Driver diff --git a/sdk/dotnet/Outputs/ClusterAlterGroupRecipient.cs b/sdk/dotnet/Outputs/ClusterAlterGroupRecipient.cs deleted file mode 100644 index 44fa202bb..000000000 --- a/sdk/dotnet/Outputs/ClusterAlterGroupRecipient.cs +++ /dev/null @@ -1,49 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Outputs -{ - - [OutputType] - public sealed class ClusterAlterGroupRecipient - { - /// - /// Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - /// - public readonly bool? DefaultRecipient; - /// - /// Recipient notifier ID (string) - /// - public readonly string NotifierId; - /// - /// Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - /// - public readonly string? NotifierType; - /// - /// Recipient (string) - /// - public readonly string? Recipient; - - [OutputConstructor] - private ClusterAlterGroupRecipient( - bool? defaultRecipient, - - string notifierId, - - string? notifierType, - - string? recipient) - { - DefaultRecipient = defaultRecipient; - NotifierId = notifierId; - NotifierType = notifierType; - Recipient = recipient; - } - } -} diff --git a/sdk/dotnet/Outputs/ClusterAlterRuleMetricRule.cs b/sdk/dotnet/Outputs/ClusterAlterRuleMetricRule.cs deleted file mode 100644 index 9e95b7f7b..000000000 --- a/sdk/dotnet/Outputs/ClusterAlterRuleMetricRule.cs +++ /dev/null @@ -1,56 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Outputs -{ - - [OutputType] - public sealed class ClusterAlterRuleMetricRule - { - /// - /// Metric rule comparison - /// - public readonly string? Comparison; - /// - /// The cluster alert group description (string) - /// - public readonly string? Description; - /// - /// Metric rule duration - /// - public readonly string Duration; - /// - /// Metric rule expression - /// - public readonly string Expression; - /// - /// Metric rule threshold value - /// - public readonly double ThresholdValue; - - [OutputConstructor] - private ClusterAlterRuleMetricRule( - string? comparison, - - string? description, - - string duration, - - string expression, - - double thresholdValue) - { - Comparison = comparison; - Description = description; - Duration = duration; - Expression = expression; - ThresholdValue = thresholdValue; - } - } -} diff --git a/sdk/dotnet/Outputs/ClusterAlterRuleNodeRule.cs b/sdk/dotnet/Outputs/ClusterAlterRuleNodeRule.cs deleted file mode 100644 index 9227ce2be..000000000 --- a/sdk/dotnet/Outputs/ClusterAlterRuleNodeRule.cs +++ /dev/null @@ -1,56 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Outputs -{ - - [OutputType] - public sealed class ClusterAlterRuleNodeRule - { - /// - /// Node rule condition - /// - public readonly string? Condition; - /// - /// Node rule cpu threshold - /// - public readonly int? CpuThreshold; - /// - /// Node rule mem threshold - /// - public readonly int? MemThreshold; - /// - /// Node ID - /// - public readonly string? NodeId; - /// - /// Node rule selector - /// - public readonly ImmutableDictionary? Selector; - - [OutputConstructor] - private ClusterAlterRuleNodeRule( - string? condition, - - int? cpuThreshold, - - int? memThreshold, - - string? nodeId, - - ImmutableDictionary? selector) - { - Condition = condition; - CpuThreshold = cpuThreshold; - MemThreshold = memThreshold; - NodeId = nodeId; - Selector = selector; - } - } -} diff --git a/sdk/dotnet/Outputs/ClusterAlterRuleSystemServiceRule.cs b/sdk/dotnet/Outputs/ClusterAlterRuleSystemServiceRule.cs deleted file mode 100644 index 550571046..000000000 --- a/sdk/dotnet/Outputs/ClusterAlterRuleSystemServiceRule.cs +++ /dev/null @@ -1,27 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Outputs -{ - - [OutputType] - public sealed class ClusterAlterRuleSystemServiceRule - { - /// - /// System service rule condition - /// - public readonly string? Condition; - - [OutputConstructor] - private ClusterAlterRuleSystemServiceRule(string? condition) - { - Condition = condition; - } - } -} diff --git a/sdk/dotnet/Outputs/ClusterEksConfigV2.cs b/sdk/dotnet/Outputs/ClusterEksConfigV2.cs index 5347e13df..a8e41d747 100644 --- a/sdk/dotnet/Outputs/ClusterEksConfigV2.cs +++ b/sdk/dotnet/Outputs/ClusterEksConfigV2.cs @@ -22,7 +22,7 @@ public sealed class ClusterEksConfigV2 /// public readonly bool? Imported; /// - /// The AWS kms key to use (string) + /// The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) /// public readonly string? KmsKey; /// diff --git a/sdk/dotnet/Outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.cs b/sdk/dotnet/Outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.cs index 3f923aef7..dfa7b7370 100644 --- a/sdk/dotnet/Outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.cs +++ b/sdk/dotnet/Outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.cs @@ -17,6 +17,7 @@ public sealed class ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal /// (string) /// public readonly string? Datacenters; + public readonly string? GracefulShutdownTimeout; /// /// (bool) /// @@ -42,6 +43,8 @@ public sealed class ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal private ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal( string? datacenters, + string? gracefulShutdownTimeout, + bool? insecureFlag, string? password, @@ -53,6 +56,7 @@ private ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal( string? user) { Datacenters = datacenters; + GracefulShutdownTimeout = gracefulShutdownTimeout; InsecureFlag = insecureFlag; Password = password; Port = port; diff --git a/sdk/dotnet/Outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.cs b/sdk/dotnet/Outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.cs index 08eb4568d..3e5ce4796 100644 --- a/sdk/dotnet/Outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.cs +++ b/sdk/dotnet/Outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.cs @@ -14,6 +14,7 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { public readonly string? Datacenters; + public readonly string? GracefulShutdownTimeout; public readonly bool? InsecureFlag; public readonly string? Password; public readonly string? Port; @@ -24,6 +25,8 @@ public sealed class ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudPr private ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal( string? datacenters, + string? gracefulShutdownTimeout, + bool? insecureFlag, string? password, @@ -35,6 +38,7 @@ private ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVspher string? user) { Datacenters = datacenters; + GracefulShutdownTimeout = gracefulShutdownTimeout; InsecureFlag = insecureFlag; Password = password; Port = port; diff --git a/sdk/dotnet/Outputs/ClusterV2AgentEnvVar.cs b/sdk/dotnet/Outputs/ClusterV2AgentEnvVar.cs index 7cd82dcef..999b7cbfa 100644 --- a/sdk/dotnet/Outputs/ClusterV2AgentEnvVar.cs +++ b/sdk/dotnet/Outputs/ClusterV2AgentEnvVar.cs @@ -14,11 +14,11 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2AgentEnvVar { /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// public readonly string Name; /// - /// The taint value (string) + /// The taint value. /// public readonly string Value; diff --git a/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomization.cs b/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomization.cs index 8d0e2d141..8e9265036 100644 --- a/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomization.cs +++ b/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomization.cs @@ -14,15 +14,15 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2ClusterAgentDeploymentCustomization { /// - /// User defined tolerations to append to agent (list) + /// A list of tolerations to be appended to the default tolerations. /// public readonly ImmutableArray AppendTolerations; /// - /// User defined affinity to override default agent affinity (string) + /// Override affinity overrides the global default affinity setting. /// public readonly string? OverrideAffinity; /// - /// User defined resource requirements to set on the agent (list) + /// Override resource requirements overrides the default value for requests and/or limits. /// public readonly ImmutableArray OverrideResourceRequirements; diff --git a/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.cs b/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.cs index a337e03ea..207ea01cd 100644 --- a/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.cs +++ b/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.cs @@ -14,23 +14,23 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2ClusterAgentDeploymentCustomizationAppendToleration { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// public readonly string? Effect; /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// public readonly string Key; /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// public readonly string? Operator; /// - /// The number of seconds a pod will stay bound to a node with a matching taint (int) + /// The number of seconds a pod will stay bound to a node with a matching taint. /// public readonly int? Seconds; /// - /// The taint value (string) + /// The taint value. /// public readonly string? Value; diff --git a/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.cs b/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.cs index 1a9f96d89..e7634da8a 100644 --- a/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.cs +++ b/sdk/dotnet/Outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.cs @@ -14,19 +14,19 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement { /// - /// The maximum CPU limit for agent (string) + /// The maximum CPU limit for agent. /// public readonly string? CpuLimit; /// - /// The minimum CPU required for agent (string) + /// The minimum CPU required for agent. /// public readonly string? CpuRequest; /// - /// The maximum memory limit for agent (string) + /// The maximum memory limit for agent. /// public readonly string? MemoryLimit; /// - /// The minimum memory required for agent (string) + /// The minimum memory required for agent. /// public readonly string? MemoryRequest; diff --git a/sdk/dotnet/Outputs/ClusterV2ClusterRegistrationToken.cs b/sdk/dotnet/Outputs/ClusterV2ClusterRegistrationToken.cs index c9f1f5ef8..636f2a33d 100644 --- a/sdk/dotnet/Outputs/ClusterV2ClusterRegistrationToken.cs +++ b/sdk/dotnet/Outputs/ClusterV2ClusterRegistrationToken.cs @@ -14,55 +14,55 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2ClusterRegistrationToken { /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// public readonly ImmutableDictionary? Annotations; /// - /// Cluster ID (string) + /// Cluster ID. /// public readonly string? ClusterId; /// - /// Command to execute in a imported k8s cluster (string) + /// Command to execute in an imported k8s cluster. /// public readonly string? Command; /// - /// (Computed) The ID of the resource (string) + /// (Computed, string) The ID of the resource. /// public readonly string? Id; /// - /// Insecure command to execute in a imported k8s cluster (string) + /// Insecure command to execute in an imported k8s cluster. /// public readonly string? InsecureCommand; /// - /// Insecure node command to execute in a imported k8s cluster (string) + /// Insecure node command to execute in an imported k8s cluster. /// public readonly string? InsecureNodeCommand; /// - /// Insecure windows command to execute in a imported k8s cluster (string) + /// Insecure windows command to execute in an imported k8s cluster. /// public readonly string? InsecureWindowsNodeCommand; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// public readonly ImmutableDictionary? Labels; /// - /// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + /// K8s manifest url to execute with `kubectl` to import an existing k8s cluster. /// public readonly string? ManifestUrl; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// public readonly string? Name; /// - /// Node command to execute in linux nodes for custom k8s cluster (string) + /// Node command to execute in Linux nodes for custom k8s cluster. /// public readonly string? NodeCommand; /// - /// Token for cluster registration token object (string) + /// Token for cluster registration token object. /// public readonly string? Token; /// - /// Node command to execute in windows nodes for custom k8s cluster (string) + /// Node command to execute in Windows nodes for custom k8s cluster. /// public readonly string? WindowsNodeCommand; diff --git a/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomization.cs b/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomization.cs index 64d5f3ad4..deb876381 100644 --- a/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomization.cs +++ b/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomization.cs @@ -14,15 +14,15 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2FleetAgentDeploymentCustomization { /// - /// User defined tolerations to append to agent (list) + /// A list of tolerations to be appended to the default tolerations. /// public readonly ImmutableArray AppendTolerations; /// - /// User defined affinity to override default agent affinity (string) + /// Override affinity overrides the global default affinity setting. /// public readonly string? OverrideAffinity; /// - /// User defined resource requirements to set on the agent (list) + /// Override resource requirements overrides the default value for requests and/or limits. /// public readonly ImmutableArray OverrideResourceRequirements; diff --git a/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.cs b/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.cs index 12ec6c1a4..38e500e26 100644 --- a/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.cs +++ b/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.cs @@ -14,23 +14,23 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2FleetAgentDeploymentCustomizationAppendToleration { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// public readonly string? Effect; /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// public readonly string Key; /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// public readonly string? Operator; /// - /// The number of seconds a pod will stay bound to a node with a matching taint (int) + /// The number of seconds a pod will stay bound to a node with a matching taint. /// public readonly int? Seconds; /// - /// The taint value (string) + /// The taint value. /// public readonly string? Value; diff --git a/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.cs b/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.cs index 2398cb95d..66dfbb19d 100644 --- a/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.cs +++ b/sdk/dotnet/Outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.cs @@ -14,19 +14,19 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement { /// - /// The maximum CPU limit for agent (string) + /// The maximum CPU limit for agent. /// public readonly string? CpuLimit; /// - /// The minimum CPU required for agent (string) + /// The minimum CPU required for agent. /// public readonly string? CpuRequest; /// - /// The maximum memory limit for agent (string) + /// The maximum memory limit for agent. /// public readonly string? MemoryLimit; /// - /// The minimum memory required for agent (string) + /// The minimum memory required for agent. /// public readonly string? MemoryRequest; diff --git a/sdk/dotnet/Outputs/ClusterV2LocalAuthEndpoint.cs b/sdk/dotnet/Outputs/ClusterV2LocalAuthEndpoint.cs index 77bc0eb7f..84a243713 100644 --- a/sdk/dotnet/Outputs/ClusterV2LocalAuthEndpoint.cs +++ b/sdk/dotnet/Outputs/ClusterV2LocalAuthEndpoint.cs @@ -14,15 +14,15 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2LocalAuthEndpoint { /// - /// CA certs for the authorized cluster endpoint (string) + /// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. /// public readonly string? CaCerts; /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// public readonly bool? Enabled; /// - /// FQDN for the authorized cluster endpoint (string) + /// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. /// public readonly string? Fqdn; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfig.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfig.cs index 5852d861e..1a4cd7ff2 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfig.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfig.cs @@ -14,31 +14,31 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfig { /// - /// Cluster V2 additional manifest (string) + /// The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. /// public readonly string? AdditionalManifest; /// - /// Cluster V2 chart values. Must be in YAML format (string) + /// The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). /// public readonly string? ChartValues; /// - /// Cluster V2 etcd (list maxitems:1) + /// Etcd configures the behavior of the automatic etcd snapshot feature. /// public readonly Outputs.ClusterV2RkeConfigEtcd? Etcd; /// - /// Cluster V2 etcd snapshot create (list maxitems:1) + /// Cluster V2 etcd snapshot create. /// public readonly Outputs.ClusterV2RkeConfigEtcdSnapshotCreate? EtcdSnapshotCreate; /// - /// Cluster V2 etcd snapshot restore (list maxitems:1) + /// Cluster V2 etcd snapshot restore. /// public readonly Outputs.ClusterV2RkeConfigEtcdSnapshotRestore? EtcdSnapshotRestore; /// - /// Cluster V2 local auth endpoint (list maxitems:1) + /// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). /// public readonly Outputs.ClusterV2RkeConfigLocalAuthEndpoint? LocalAuthEndpoint; /// - /// Cluster V2 machine global config. Must be in YAML format (string) + /// Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). /// public readonly string? MachineGlobalConfig; /// @@ -46,23 +46,27 @@ public sealed class ClusterV2RkeConfig /// public readonly ImmutableArray MachinePoolDefaults; /// - /// Cluster V2 machine pools (list) + /// Cluster V2 machine pools. /// public readonly ImmutableArray MachinePools; /// - /// Cluster V2 machine selector config (list) + /// Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. /// public readonly ImmutableArray MachineSelectorConfigs; /// - /// Cluster V2 docker registries (list maxitems:1) + /// Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + /// + public readonly ImmutableArray MachineSelectorFiles; + /// + /// Docker registries from which the cluster pulls images. /// public readonly Outputs.ClusterV2RkeConfigRegistries? Registries; /// - /// Cluster V2 certificate rotation (list maxitems:1) + /// Cluster V2 certificate rotation. /// public readonly Outputs.ClusterV2RkeConfigRotateCertificates? RotateCertificates; /// - /// Cluster V2 upgrade strategy (list maxitems:1) + /// Cluster upgrade strategy. /// public readonly Outputs.ClusterV2RkeConfigUpgradeStrategy? UpgradeStrategy; @@ -88,6 +92,8 @@ private ClusterV2RkeConfig( ImmutableArray machineSelectorConfigs, + ImmutableArray machineSelectorFiles, + Outputs.ClusterV2RkeConfigRegistries? registries, Outputs.ClusterV2RkeConfigRotateCertificates? rotateCertificates, @@ -104,6 +110,7 @@ private ClusterV2RkeConfig( MachinePoolDefaults = machinePoolDefaults; MachinePools = machinePools; MachineSelectorConfigs = machineSelectorConfigs; + MachineSelectorFiles = machineSelectorFiles; Registries = registries; RotateCertificates = rotateCertificates; UpgradeStrategy = upgradeStrategy; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcd.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcd.cs index 73247f2e8..bb424d64b 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcd.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcd.cs @@ -14,19 +14,19 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigEtcd { /// - /// Disable ETCD snapshots. Default: `false` (bool) + /// Disable ETCD snapshots. /// public readonly bool? DisableSnapshots; /// - /// Creation option for etcd service (list maxitems:1) + /// Creation option for etcd service. /// public readonly Outputs.ClusterV2RkeConfigEtcdS3Config? S3Config; /// - /// ETCD snapshot retention (int) + /// ETCD snapshot retention. /// public readonly int? SnapshotRetention; /// - /// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) + /// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). /// public readonly string? SnapshotScheduleCron; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdS3Config.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdS3Config.cs index 7bd95fa55..7bc4917b2 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdS3Config.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdS3Config.cs @@ -14,31 +14,31 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigEtcdS3Config { /// - /// Bucket name for S3 service (string) + /// Bucket name for S3 service. /// public readonly string Bucket; /// - /// ETCD snapshot S3 cloud credential name (string) + /// ETCD snapshot S3 cloud credential name. /// public readonly string? CloudCredentialName; /// - /// ETCD snapshot S3 endpoint (string) + /// ETCD snapshot S3 endpoint. /// public readonly string Endpoint; /// - /// ETCD snapshot S3 endpoint CA (string) + /// ETCD snapshot S3 endpoint CA. /// public readonly string? EndpointCa; /// - /// ETCD snapshot S3 folder (string) + /// ETCD snapshot S3 folder. /// public readonly string? Folder; /// - /// ETCD snapshot S3 region (string) + /// ETCD snapshot S3 region. /// public readonly string? Region; /// - /// Disable ETCD skip ssl verify. Default: `false` (bool) + /// Disable ETCD skip ssl verify. /// public readonly bool? SkipSslVerify; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdSnapshotCreate.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdSnapshotCreate.cs index 0c23956bc..10a7f68e9 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdSnapshotCreate.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdSnapshotCreate.cs @@ -14,7 +14,7 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigEtcdSnapshotCreate { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// public readonly int Generation; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdSnapshotRestore.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdSnapshotRestore.cs index e24a6a656..745a769e9 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdSnapshotRestore.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigEtcdSnapshotRestore.cs @@ -14,15 +14,15 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigEtcdSnapshotRestore { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// public readonly int Generation; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// public readonly string Name; /// - /// ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + /// ETCD restore RKE config (set to none, all, or kubernetesVersion). /// public readonly string? RestoreRkeConfig; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigLocalAuthEndpoint.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigLocalAuthEndpoint.cs index ff6bd7dc5..4d68c6b3a 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigLocalAuthEndpoint.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigLocalAuthEndpoint.cs @@ -14,15 +14,15 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigLocalAuthEndpoint { /// - /// CA certs for the authorized cluster endpoint (string) + /// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. /// public readonly string? CaCerts; /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// public readonly bool? Enabled; /// - /// FQDN for the authorized cluster endpoint (string) + /// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. /// public readonly string? Fqdn; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePool.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePool.cs index 39a4be9e8..8e8700701 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePool.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePool.cs @@ -14,23 +14,23 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigMachinePool { /// - /// Annotations for the Cluster V2 (map) + /// Annotations for the Cluster. /// public readonly ImmutableDictionary? Annotations; /// - /// Cluster V2 cloud credential secret name (string) + /// Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. /// public readonly string? CloudCredentialSecretName; /// - /// Machine pool control plane role? (bool) + /// Machine pool control plane role? /// public readonly bool? ControlPlaneRole; /// - /// Machine Pool Drain Before Delete? (bool) + /// Machine Pool Drain Before Delete? /// public readonly bool? DrainBeforeDelete; /// - /// Machine pool etcd role? (bool) + /// Machine pool etcd role? /// public readonly bool? EtcdRole; /// @@ -38,59 +38,59 @@ public sealed class ClusterV2RkeConfigMachinePool /// public readonly int? HostnameLengthLimit; /// - /// Labels for the Cluster V2 (map) + /// Labels for the Cluster. /// public readonly ImmutableDictionary? Labels; /// - /// Machine pool node config (list) + /// Machine pool node config. /// public readonly Outputs.ClusterV2RkeConfigMachinePoolMachineConfig MachineConfig; /// - /// Labels for Machine pool nodes (map) + /// Labels for Machine pool nodes. /// public readonly ImmutableDictionary? MachineLabels; /// - /// Max unhealthy nodes for automated replacement to be allowed (string) + /// Max unhealthy nodes for automated replacement to be allowed. /// public readonly string? MaxUnhealthy; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// public readonly string Name; /// - /// Seconds a machine has to drain before deletion (int) + /// Seconds a machine has to drain before deletion. /// public readonly int? NodeDrainTimeout; /// - /// Seconds a new node has to become active before it is replaced (int) + /// Seconds a new node has to become active before it is replaced. /// public readonly int? NodeStartupTimeoutSeconds; /// - /// Machine pool paused? (bool) + /// Machine pool paused? /// public readonly bool? Paused; /// - /// Machine pool quantity (int) + /// Machine pool quantity. /// public readonly int? Quantity; /// - /// Machine pool rolling update (List maxitems:1) + /// Machine pool rolling update. /// public readonly Outputs.ClusterV2RkeConfigMachinePoolRollingUpdate? RollingUpdate; /// - /// Machine pool taints (list) + /// Machine pool taints. /// public readonly ImmutableArray Taints; /// - /// Seconds an unhealthy node has to become active before it is replaced (int) + /// Seconds an unhealthy node has to become active before it is replaced. /// public readonly int? UnhealthyNodeTimeoutSeconds; /// - /// Range of unhealthy nodes for automated replacement to be allowed (string) + /// Range of unhealthy nodes for automated replacement to be allowed. /// public readonly string? UnhealthyRange; /// - /// Machine pool worker role? (bool) + /// Machine pool worker role? /// public readonly bool? WorkerRole; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolMachineConfig.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolMachineConfig.cs index f92ab9bfc..1c22f46ab 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolMachineConfig.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolMachineConfig.cs @@ -14,20 +14,27 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigMachinePoolMachineConfig { /// - /// Machine config kind (string) + /// Api version of the machine_config. + /// + public readonly string? ApiVersion; + /// + /// Machine config kind. /// public readonly string Kind; /// - /// The name of the Cluster v2 (string) + /// The name of the cluster. /// public readonly string Name; [OutputConstructor] private ClusterV2RkeConfigMachinePoolMachineConfig( + string? apiVersion, + string kind, string name) { + ApiVersion = apiVersion; Kind = kind; Name = name; } diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.cs index b381ca20a..0bd1b9a6c 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.cs @@ -14,11 +14,11 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigMachinePoolRollingUpdate { /// - /// Rolling update max surge (string) + /// Rolling update max surge. /// public readonly string? MaxSurge; /// - /// Rolling update max unavailable (string) + /// Rolling update max unavailable. /// public readonly string? MaxUnavailable; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolTaint.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolTaint.cs index 21b5aba87..b628fe961 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolTaint.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachinePoolTaint.cs @@ -14,15 +14,15 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigMachinePoolTaint { /// - /// The taint effect. Default: `\"NoExecute\"` (string) + /// The taint effect. Default: `\"NoExecute\"`. /// public readonly string? Effect; /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// public readonly string Key; /// - /// The taint value (string) + /// The taint value. /// public readonly string Value; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfig.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfig.cs index 0e4c3aca3..27e055648 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfig.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfig.cs @@ -14,11 +14,11 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigMachineSelectorConfig { /// - /// Machine selector config. Must be in YAML format (string) + /// Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) /// public readonly string? Config; /// - /// Machine selector label (list maxitems:1) + /// Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. /// public readonly Outputs.ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector? MachineLabelSelector; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.cs index 5163a26cb..e52b9a3ef 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.cs @@ -14,11 +14,11 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { /// - /// Machine selector label match expressions (list) + /// Match expressions is a list of label selector requirements. The requirements are ANDed. /// public readonly ImmutableArray MatchExpressions; /// - /// Machine selector label match labels (map) + /// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. /// public readonly ImmutableDictionary? MatchLabels; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.cs index a1e44f8cf..7a9396d5f 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.cs @@ -14,15 +14,15 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { /// - /// Machine selector label match expressions key (string) + /// Key is the name of the key of the item to retrieve. /// public readonly string? Key; /// - /// Machine selector label match expressions operator (string) + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. /// public readonly string? Operator; /// - /// Machine selector label match expressions values (List string) + /// Values is a list of string values. /// public readonly ImmutableArray Values; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFile.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFile.cs new file mode 100644 index 000000000..1f55b1185 --- /dev/null +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFile.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class ClusterV2RkeConfigMachineSelectorFile + { + /// + /// File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + /// + public readonly ImmutableArray FileSources; + /// + /// Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + /// + public readonly Outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector? MachineLabelSelector; + + [OutputConstructor] + private ClusterV2RkeConfigMachineSelectorFile( + ImmutableArray fileSources, + + Outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector? machineLabelSelector) + { + FileSources = fileSources; + MachineLabelSelector = machineLabelSelector; + } + } +} diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSource.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSource.cs new file mode 100644 index 000000000..5f1580906 --- /dev/null +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSource.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSource + { + /// + /// Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + /// + public readonly Outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap? Configmap; + /// + /// Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + /// + public readonly Outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecret? Secret; + + [OutputConstructor] + private ClusterV2RkeConfigMachineSelectorFileFileSource( + Outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap? configmap, + + Outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecret? secret) + { + Configmap = configmap; + Secret = secret; + } + } +} diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.cs new file mode 100644 index 000000000..5ed8d3e2c --- /dev/null +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap + { + /// + /// The numeric representation of the default file permissions for all files defined under the items. + /// + public readonly string? DefaultPermissions; + /// + /// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + /// + public readonly ImmutableArray Items; + /// + /// The name of the cluster. + /// + public readonly string Name; + + [OutputConstructor] + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap( + string? defaultPermissions, + + ImmutableArray items, + + string name) + { + DefaultPermissions = defaultPermissions; + Items = items; + Name = name; + } + } +} diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.cs new file mode 100644 index 000000000..4728dcd2c --- /dev/null +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem + { + /// + /// If true, the file is ignored when determining whether the node should be drained before updating the node plan. + /// + public readonly bool? Dynamic; + /// + /// Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + /// + public readonly string? Hash; + /// + /// Key is the name of the key of the item to retrieve. + /// + public readonly string Key; + /// + /// Path is the absolute path to put the file in the target node. + /// + public readonly string Path; + /// + /// Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + /// + public readonly string? Permissions; + + [OutputConstructor] + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem( + bool? dynamic, + + string? hash, + + string key, + + string path, + + string? permissions) + { + Dynamic = dynamic; + Hash = hash; + Key = key; + Path = path; + Permissions = permissions; + } + } +} diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret.cs new file mode 100644 index 000000000..7d8c603c8 --- /dev/null +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceSecret + { + /// + /// The numeric representation of the default file permissions for all files defined under the items. + /// + public readonly string? DefaultPermissions; + /// + /// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + /// + public readonly ImmutableArray Items; + /// + /// The name of the cluster. + /// + public readonly string Name; + + [OutputConstructor] + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecret( + string? defaultPermissions, + + ImmutableArray items, + + string name) + { + DefaultPermissions = defaultPermissions; + Items = items; + Name = name; + } + } +} diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.cs new file mode 100644 index 000000000..d88b24dd3 --- /dev/null +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem + { + /// + /// If true, the file is ignored when determining whether the node should be drained before updating the node plan. + /// + public readonly bool? Dynamic; + /// + /// Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + /// + public readonly string? Hash; + /// + /// Key is the name of the key of the item to retrieve. + /// + public readonly string Key; + /// + /// Path is the absolute path to put the file in the target node. + /// + public readonly string Path; + /// + /// Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + /// + public readonly string? Permissions; + + [OutputConstructor] + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem( + bool? dynamic, + + string? hash, + + string key, + + string path, + + string? permissions) + { + Dynamic = dynamic; + Hash = hash; + Key = key; + Path = path; + Permissions = permissions; + } + } +} diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.cs new file mode 100644 index 000000000..8f4b03262 --- /dev/null +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector + { + /// + /// Match expressions is a list of label selector requirements. The requirements are ANDed. + /// + public readonly ImmutableArray MatchExpressions; + /// + /// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + /// + public readonly ImmutableDictionary? MatchLabels; + + [OutputConstructor] + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector( + ImmutableArray matchExpressions, + + ImmutableDictionary? matchLabels) + { + MatchExpressions = matchExpressions; + MatchLabels = matchLabels; + } + } +} diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.cs new file mode 100644 index 000000000..027fe5049 --- /dev/null +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression + { + /// + /// Key is the name of the key of the item to retrieve. + /// + public readonly string? Key; + /// + /// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + /// + public readonly string? Operator; + /// + /// Values is a list of string values. + /// + public readonly ImmutableArray Values; + + [OutputConstructor] + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression( + string? key, + + string? @operator, + + ImmutableArray values) + { + Key = key; + Operator = @operator; + Values = values; + } + } +} diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistries.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistries.cs index 93e6d5922..69b05d728 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistries.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistries.cs @@ -14,11 +14,11 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigRegistries { /// - /// Cluster V2 docker registries config (list) + /// Cluster V2 docker registries config. /// public readonly ImmutableArray Configs; /// - /// Cluster V2 docker registries mirror (list) + /// Cluster V2 docker registries mirror. /// public readonly ImmutableArray Mirrors; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistriesConfig.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistriesConfig.cs index e19d55de7..eb98300ac 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistriesConfig.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistriesConfig.cs @@ -14,23 +14,23 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigRegistriesConfig { /// - /// Registry auth config secret name (string) + /// Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. /// public readonly string? AuthConfigSecretName; /// - /// Registry CA bundle (string) + /// Registry CA bundle. /// public readonly string? CaBundle; /// - /// Registry hostname (string) + /// Registry hostname. /// public readonly string Hostname; /// - /// Registry insecure connectivity (bool) + /// Registry insecure connectivity. /// public readonly bool? Insecure; /// - /// Registry TLS secret name. TLS is a pair of Cert/Key (string) + /// Registry TLS secret name. TLS is a pair of Cert/Key. /// public readonly string? TlsSecretName; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistriesMirror.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistriesMirror.cs index d997f247d..ba2f45c21 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistriesMirror.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigRegistriesMirror.cs @@ -14,15 +14,15 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigRegistriesMirror { /// - /// Registry mirror endpoints (List) + /// Registry mirror endpoints. /// public readonly ImmutableArray Endpoints; /// - /// Registry hostname (string) + /// Registry hostname. /// public readonly string Hostname; /// - /// Registry mirror rewrites (map) + /// Registry mirror rewrites. /// public readonly ImmutableDictionary? Rewrites; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigRotateCertificates.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigRotateCertificates.cs index da1c968f7..32e56d698 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigRotateCertificates.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigRotateCertificates.cs @@ -14,11 +14,11 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigRotateCertificates { /// - /// ETCD snapshot desired generation (int) + /// ETCD snapshot desired generation. /// public readonly int Generation; /// - /// Service certificates to rotate with this generation (string) + /// Service certificates to rotate with this generation. /// public readonly ImmutableArray Services; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategy.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategy.cs index ea19a9533..92b2ec5df 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategy.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategy.cs @@ -14,19 +14,19 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigUpgradeStrategy { /// - /// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + /// How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. /// public readonly string? ControlPlaneConcurrency; /// - /// Controlplane nodes drain options (list maxitems:1) + /// Controlplane nodes drain options. /// public readonly Outputs.ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions? ControlPlaneDrainOptions; /// - /// How many worker nodes should be upgrade at time. Percentages are also accepted (string) + /// How many worker nodes should be upgraded at a time. Percentages are also accepted. /// public readonly string? WorkerConcurrency; /// - /// Worker nodes drain options (list maxitems:1) + /// Worker nodes drain options. /// public readonly Outputs.ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions? WorkerDrainOptions; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.cs index 42ddb69a1..3a834cdf2 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.cs @@ -14,39 +14,39 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { /// - /// Drain options delete empty dir data. Default `false` (bool) + /// if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). /// public readonly bool? DeleteEmptyDirData; /// - /// Drain options disable eviction. Default `false` (bool) + /// If `disable_eviction` is set to true, force drain to use delete rather than evict. /// public readonly bool? DisableEviction; /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// public readonly bool? Enabled; /// - /// Drain options force. Default `false` (bool) + /// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. /// public readonly bool? Force; /// - /// Drain options grace period (int) + /// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. /// public readonly int? GracePeriod; /// - /// Drain options ignore daemon sets. Default `true` (bool) + /// If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. /// public readonly bool? IgnoreDaemonSets; /// - /// Drain options ignore errors. Default `false` (bool) + /// If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. /// public readonly bool? IgnoreErrors; /// - /// Drain options skip wait for delete timeout seconds (int) + /// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. /// public readonly int? SkipWaitForDeleteTimeoutSeconds; /// - /// Drain options timeout (int) + /// Time to wait (in seconds) before giving up for one try. /// public readonly int? Timeout; diff --git a/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.cs b/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.cs index be889393c..c71754290 100644 --- a/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.cs +++ b/sdk/dotnet/Outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.cs @@ -14,39 +14,39 @@ namespace Pulumi.Rancher2.Outputs public sealed class ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { /// - /// Drain options delete empty dir data. Default `false` (bool) + /// if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). /// public readonly bool? DeleteEmptyDirData; /// - /// Drain options disable eviction. Default `false` (bool) + /// If `disable_eviction` is set to true, force drain to use delete rather than evict. /// public readonly bool? DisableEviction; /// - /// Drain options enabled? Default `true` (bool) + /// If `enabled` is set to true, nodes will be drained before upgrade. /// public readonly bool? Enabled; /// - /// Drain options force. Default `false` (bool) + /// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. /// public readonly bool? Force; /// - /// Drain options grace period (int) + /// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. /// public readonly int? GracePeriod; /// - /// Drain options ignore daemon sets. Default `true` (bool) + /// If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. /// public readonly bool? IgnoreDaemonSets; /// - /// Drain options ignore errors. Default `false` (bool) + /// If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. /// public readonly bool? IgnoreErrors; /// - /// Drain options skip wait for delete timeout seconds (int) + /// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. /// public readonly int? SkipWaitForDeleteTimeoutSeconds; /// - /// Drain options timeout (int) + /// Time to wait (in seconds) before giving up for one try. /// public readonly int? Timeout; diff --git a/sdk/dotnet/Outputs/ClusterAlterRuleEventRule.cs b/sdk/dotnet/Outputs/GetClusterAlertRuleEventRuleResult.cs similarity index 87% rename from sdk/dotnet/Outputs/ClusterAlterRuleEventRule.cs rename to sdk/dotnet/Outputs/GetClusterAlertRuleEventRuleResult.cs index 0ca29ada9..99bfb3b78 100644 --- a/sdk/dotnet/Outputs/ClusterAlterRuleEventRule.cs +++ b/sdk/dotnet/Outputs/GetClusterAlertRuleEventRuleResult.cs @@ -11,7 +11,7 @@ namespace Pulumi.Rancher2.Outputs { [OutputType] - public sealed class ClusterAlterRuleEventRule + public sealed class GetClusterAlertRuleEventRuleResult { /// /// Event type @@ -23,7 +23,7 @@ public sealed class ClusterAlterRuleEventRule public readonly string ResourceKind; [OutputConstructor] - private ClusterAlterRuleEventRule( + private GetClusterAlertRuleEventRuleResult( string? eventType, string resourceKind) diff --git a/sdk/dotnet/Outputs/GetClusterAlterRuleMetricRuleResult.cs b/sdk/dotnet/Outputs/GetClusterAlertRuleMetricRuleResult.cs similarity index 92% rename from sdk/dotnet/Outputs/GetClusterAlterRuleMetricRuleResult.cs rename to sdk/dotnet/Outputs/GetClusterAlertRuleMetricRuleResult.cs index c31a6e6a0..2a5c4db7a 100644 --- a/sdk/dotnet/Outputs/GetClusterAlterRuleMetricRuleResult.cs +++ b/sdk/dotnet/Outputs/GetClusterAlertRuleMetricRuleResult.cs @@ -11,7 +11,7 @@ namespace Pulumi.Rancher2.Outputs { [OutputType] - public sealed class GetClusterAlterRuleMetricRuleResult + public sealed class GetClusterAlertRuleMetricRuleResult { /// /// Metric rule comparison @@ -35,7 +35,7 @@ public sealed class GetClusterAlterRuleMetricRuleResult public readonly double ThresholdValue; [OutputConstructor] - private GetClusterAlterRuleMetricRuleResult( + private GetClusterAlertRuleMetricRuleResult( string? comparison, string? description, diff --git a/sdk/dotnet/Outputs/GetClusterAlterRuleNodeRuleResult.cs b/sdk/dotnet/Outputs/GetClusterAlertRuleNodeRuleResult.cs similarity index 92% rename from sdk/dotnet/Outputs/GetClusterAlterRuleNodeRuleResult.cs rename to sdk/dotnet/Outputs/GetClusterAlertRuleNodeRuleResult.cs index 1c3ba56d5..7cf95e0bc 100644 --- a/sdk/dotnet/Outputs/GetClusterAlterRuleNodeRuleResult.cs +++ b/sdk/dotnet/Outputs/GetClusterAlertRuleNodeRuleResult.cs @@ -11,7 +11,7 @@ namespace Pulumi.Rancher2.Outputs { [OutputType] - public sealed class GetClusterAlterRuleNodeRuleResult + public sealed class GetClusterAlertRuleNodeRuleResult { /// /// Node rule condition @@ -35,7 +35,7 @@ public sealed class GetClusterAlterRuleNodeRuleResult public readonly ImmutableDictionary? Selector; [OutputConstructor] - private GetClusterAlterRuleNodeRuleResult( + private GetClusterAlertRuleNodeRuleResult( string? condition, int? cpuThreshold, diff --git a/sdk/dotnet/Outputs/GetClusterAlterRuleSystemServiceRuleResult.cs b/sdk/dotnet/Outputs/GetClusterAlertRuleSystemServiceRuleResult.cs similarity index 82% rename from sdk/dotnet/Outputs/GetClusterAlterRuleSystemServiceRuleResult.cs rename to sdk/dotnet/Outputs/GetClusterAlertRuleSystemServiceRuleResult.cs index f3680208f..1b12457e0 100644 --- a/sdk/dotnet/Outputs/GetClusterAlterRuleSystemServiceRuleResult.cs +++ b/sdk/dotnet/Outputs/GetClusterAlertRuleSystemServiceRuleResult.cs @@ -11,7 +11,7 @@ namespace Pulumi.Rancher2.Outputs { [OutputType] - public sealed class GetClusterAlterRuleSystemServiceRuleResult + public sealed class GetClusterAlertRuleSystemServiceRuleResult { /// /// System service rule condition @@ -19,7 +19,7 @@ public sealed class GetClusterAlterRuleSystemServiceRuleResult public readonly string? Condition; [OutputConstructor] - private GetClusterAlterRuleSystemServiceRuleResult(string? condition) + private GetClusterAlertRuleSystemServiceRuleResult(string? condition) { Condition = condition; } diff --git a/sdk/dotnet/Outputs/GetClusterAlterRuleEventRuleResult.cs b/sdk/dotnet/Outputs/GetClusterAlterRuleEventRuleResult.cs deleted file mode 100644 index 3763ec0e2..000000000 --- a/sdk/dotnet/Outputs/GetClusterAlterRuleEventRuleResult.cs +++ /dev/null @@ -1,35 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Outputs -{ - - [OutputType] - public sealed class GetClusterAlterRuleEventRuleResult - { - /// - /// Event type - /// - public readonly string? EventType; - /// - /// Resource kind - /// - public readonly string ResourceKind; - - [OutputConstructor] - private GetClusterAlterRuleEventRuleResult( - string? eventType, - - string resourceKind) - { - EventType = eventType; - ResourceKind = resourceKind; - } - } -} diff --git a/sdk/dotnet/Outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalResult.cs b/sdk/dotnet/Outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalResult.cs index 1016ab8c0..1cf9bb4b9 100644 --- a/sdk/dotnet/Outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalResult.cs +++ b/sdk/dotnet/Outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalResult.cs @@ -14,6 +14,7 @@ namespace Pulumi.Rancher2.Outputs public sealed class GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalResult { public readonly string Datacenters; + public readonly string? GracefulShutdownTimeout; public readonly bool InsecureFlag; public readonly string Password; public readonly string Port; @@ -24,6 +25,8 @@ public sealed class GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalRe private GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalResult( string datacenters, + string? gracefulShutdownTimeout, + bool insecureFlag, string password, @@ -35,6 +38,7 @@ private GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalResult( string user) { Datacenters = datacenters; + GracefulShutdownTimeout = gracefulShutdownTimeout; InsecureFlag = insecureFlag; Password = password; Port = port; diff --git a/sdk/dotnet/Outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalResult.cs b/sdk/dotnet/Outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalResult.cs index f633fa9e4..d3ce9a1e2 100644 --- a/sdk/dotnet/Outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalResult.cs +++ b/sdk/dotnet/Outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalResult.cs @@ -14,6 +14,7 @@ namespace Pulumi.Rancher2.Outputs public sealed class GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalResult { public readonly string Datacenters; + public readonly string? GracefulShutdownTimeout; public readonly bool InsecureFlag; public readonly string Password; public readonly string Port; @@ -24,6 +25,8 @@ public sealed class GetClusterTemplateTemplateRevisionClusterConfigRkeConfigClou private GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalResult( string datacenters, + string? gracefulShutdownTimeout, + bool insecureFlag, string password, @@ -35,6 +38,7 @@ private GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsp string user) { Datacenters = datacenters; + GracefulShutdownTimeout = gracefulShutdownTimeout; InsecureFlag = insecureFlag; Password = password; Port = port; diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachinePoolMachineConfigResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachinePoolMachineConfigResult.cs index ea8119640..588dc8bb6 100644 --- a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachinePoolMachineConfigResult.cs +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachinePoolMachineConfigResult.cs @@ -13,6 +13,10 @@ namespace Pulumi.Rancher2.Outputs [OutputType] public sealed class GetClusterV2RkeConfigMachinePoolMachineConfigResult { + /// + /// Machine config API version + /// + public readonly string? ApiVersion; /// /// Machine config kind /// @@ -24,10 +28,13 @@ public sealed class GetClusterV2RkeConfigMachinePoolMachineConfigResult [OutputConstructor] private GetClusterV2RkeConfigMachinePoolMachineConfigResult( + string? apiVersion, + string kind, string name) { + ApiVersion = apiVersion; Kind = kind; Name = name; } diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult.cs new file mode 100644 index 000000000..576dfde11 --- /dev/null +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult + { + /// + /// If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + /// + public readonly bool? Dynamic; + /// + /// The base64 encoded value of the SHA256 checksum of the file's content + /// + public readonly string? Hash; + /// + /// The key of the item(file) to retrieve + /// + public readonly string Key; + /// + /// The path to put the file in the target node + /// + public readonly string Path; + /// + /// The numeric representation of the file permissions + /// + public readonly string? Permissions; + + [OutputConstructor] + private GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult( + bool? dynamic, + + string? hash, + + string key, + + string path, + + string? permissions) + { + Dynamic = dynamic; + Hash = hash; + Key = key; + Path = path; + Permissions = permissions; + } + } +} diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult.cs new file mode 100644 index 000000000..6b4b19015 --- /dev/null +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult + { + /// + /// The default permissions to be applied when they are not set at the item level + /// + public readonly string? DefaultPermissions; + /// + /// Items(files) to retrieve from the K8s object + /// + public readonly ImmutableArray Items; + /// + /// The name of the Cluster v2 (string) + /// + public readonly string Name; + + [OutputConstructor] + private GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult( + string? defaultPermissions, + + ImmutableArray items, + + string name) + { + DefaultPermissions = defaultPermissions; + Items = items; + Name = name; + } + } +} diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceResult.cs new file mode 100644 index 000000000..eb847cf19 --- /dev/null +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceResult.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class GetClusterV2RkeConfigMachineSelectorFileFileSourceResult + { + /// + /// The configmap which is the source of files + /// + public readonly Outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult? Configmap; + /// + /// The secret which is the source of files + /// + public readonly Outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult? Secret; + + [OutputConstructor] + private GetClusterV2RkeConfigMachineSelectorFileFileSourceResult( + Outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult? configmap, + + Outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult? secret) + { + Configmap = configmap; + Secret = secret; + } + } +} diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult.cs new file mode 100644 index 000000000..645fdf951 --- /dev/null +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult + { + /// + /// If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + /// + public readonly bool? Dynamic; + /// + /// The base64 encoded value of the SHA256 checksum of the file's content + /// + public readonly string? Hash; + /// + /// The key of the item(file) to retrieve + /// + public readonly string Key; + /// + /// The path to put the file in the target node + /// + public readonly string Path; + /// + /// The numeric representation of the file permissions + /// + public readonly string? Permissions; + + [OutputConstructor] + private GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult( + bool? dynamic, + + string? hash, + + string key, + + string path, + + string? permissions) + { + Dynamic = dynamic; + Hash = hash; + Key = key; + Path = path; + Permissions = permissions; + } + } +} diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult.cs new file mode 100644 index 000000000..852879496 --- /dev/null +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult + { + /// + /// The default permissions to be applied when they are not set at the item level + /// + public readonly string? DefaultPermissions; + /// + /// Items(files) to retrieve from the K8s object + /// + public readonly ImmutableArray Items; + /// + /// The name of the Cluster v2 (string) + /// + public readonly string Name; + + [OutputConstructor] + private GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult( + string? defaultPermissions, + + ImmutableArray items, + + string name) + { + DefaultPermissions = defaultPermissions; + Items = items; + Name = name; + } + } +} diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult.cs new file mode 100644 index 000000000..3b6348e5e --- /dev/null +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult + { + /// + /// Label selector requirement key + /// + public readonly string? Key; + /// + /// Label selector operator + /// + public readonly string? Operator; + /// + /// Label selector requirement values + /// + public readonly ImmutableArray Values; + + [OutputConstructor] + private GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult( + string? key, + + string? @operator, + + ImmutableArray values) + { + Key = key; + Operator = @operator; + Values = values; + } + } +} diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult.cs new file mode 100644 index 000000000..0ce0cffca --- /dev/null +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult + { + /// + /// Label selector match expressions + /// + public readonly ImmutableArray MatchExpressions; + /// + /// Label selector match labels + /// + public readonly ImmutableDictionary? MatchLabels; + + [OutputConstructor] + private GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult( + ImmutableArray matchExpressions, + + ImmutableDictionary? matchLabels) + { + MatchExpressions = matchExpressions; + MatchLabels = matchLabels; + } + } +} diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileResult.cs new file mode 100644 index 000000000..555ffab6f --- /dev/null +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigMachineSelectorFileResult.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Rancher2.Outputs +{ + + [OutputType] + public sealed class GetClusterV2RkeConfigMachineSelectorFileResult + { + /// + /// File sources + /// + public readonly ImmutableArray FileSources; + /// + /// Machine label selector + /// + public readonly Outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult? MachineLabelSelector; + + [OutputConstructor] + private GetClusterV2RkeConfigMachineSelectorFileResult( + ImmutableArray fileSources, + + Outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult? machineLabelSelector) + { + FileSources = fileSources; + MachineLabelSelector = machineLabelSelector; + } + } +} diff --git a/sdk/dotnet/Outputs/GetClusterV2RkeConfigResult.cs b/sdk/dotnet/Outputs/GetClusterV2RkeConfigResult.cs index 5c0b139fb..7b0d6ed34 100644 --- a/sdk/dotnet/Outputs/GetClusterV2RkeConfigResult.cs +++ b/sdk/dotnet/Outputs/GetClusterV2RkeConfigResult.cs @@ -54,6 +54,10 @@ public sealed class GetClusterV2RkeConfigResult /// public readonly ImmutableArray MachineSelectorConfigs; /// + /// Cluster V2 machine selector files + /// + public readonly ImmutableArray MachineSelectorFiles; + /// /// Cluster V2 registries /// public readonly Outputs.GetClusterV2RkeConfigRegistriesResult? Registries; @@ -88,6 +92,8 @@ private GetClusterV2RkeConfigResult( ImmutableArray machineSelectorConfigs, + ImmutableArray machineSelectorFiles, + Outputs.GetClusterV2RkeConfigRegistriesResult? registries, Outputs.GetClusterV2RkeConfigRotateCertificatesResult? rotateCertificates, @@ -104,6 +110,7 @@ private GetClusterV2RkeConfigResult( MachinePoolDefaults = machinePoolDefaults; MachinePools = machinePools; MachineSelectorConfigs = machineSelectorConfigs; + MachineSelectorFiles = machineSelectorFiles; Registries = registries; RotateCertificates = rotateCertificates; UpgradeStrategy = upgradeStrategy; diff --git a/sdk/dotnet/Outputs/GetRoleTempalteRuleResult.cs b/sdk/dotnet/Outputs/GetRoleTempalteRuleResult.cs deleted file mode 100644 index e5b963b8f..000000000 --- a/sdk/dotnet/Outputs/GetRoleTempalteRuleResult.cs +++ /dev/null @@ -1,56 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Outputs -{ - - [OutputType] - public sealed class GetRoleTempalteRuleResult - { - /// - /// Policy rule api groups - /// - public readonly ImmutableArray ApiGroups; - /// - /// Policy rule non resource urls - /// - public readonly ImmutableArray NonResourceUrls; - /// - /// Policy rule resource names - /// - public readonly ImmutableArray ResourceNames; - /// - /// Policy rule resources - /// - public readonly ImmutableArray Resources; - /// - /// Policy rule verbs - /// - public readonly ImmutableArray Verbs; - - [OutputConstructor] - private GetRoleTempalteRuleResult( - ImmutableArray apiGroups, - - ImmutableArray nonResourceUrls, - - ImmutableArray resourceNames, - - ImmutableArray resources, - - ImmutableArray verbs) - { - ApiGroups = apiGroups; - NonResourceUrls = nonResourceUrls; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - } - } -} diff --git a/sdk/dotnet/Outputs/MachineConfigV2VsphereConfig.cs b/sdk/dotnet/Outputs/MachineConfigV2VsphereConfig.cs index 208d43e38..9f94a3d50 100644 --- a/sdk/dotnet/Outputs/MachineConfigV2VsphereConfig.cs +++ b/sdk/dotnet/Outputs/MachineConfigV2VsphereConfig.cs @@ -70,6 +70,10 @@ public sealed class MachineConfigV2VsphereConfig /// public readonly string? Folder; /// + /// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + /// + public readonly string? GracefulShutdownTimeout; + /// /// vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) /// public readonly string? Hostsystem; @@ -168,6 +172,8 @@ private MachineConfigV2VsphereConfig( string? folder, + string? gracefulShutdownTimeout, + string? hostsystem, string? memorySize, @@ -216,6 +222,7 @@ private MachineConfigV2VsphereConfig( DatastoreCluster = datastoreCluster; DiskSize = diskSize; Folder = folder; + GracefulShutdownTimeout = gracefulShutdownTimeout; Hostsystem = hostsystem; MemorySize = memorySize; Networks = networks; diff --git a/sdk/dotnet/Outputs/NodeTemplateVsphereConfig.cs b/sdk/dotnet/Outputs/NodeTemplateVsphereConfig.cs index 8f48afb57..8bd99ef82 100644 --- a/sdk/dotnet/Outputs/NodeTemplateVsphereConfig.cs +++ b/sdk/dotnet/Outputs/NodeTemplateVsphereConfig.cs @@ -70,6 +70,10 @@ public sealed class NodeTemplateVsphereConfig /// public readonly string? Folder; /// + /// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + /// + public readonly string? GracefulShutdownTimeout; + /// /// vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) /// public readonly string? Hostsystem; @@ -168,6 +172,8 @@ private NodeTemplateVsphereConfig( string? folder, + string? gracefulShutdownTimeout, + string? hostsystem, string? memorySize, @@ -216,6 +222,7 @@ private NodeTemplateVsphereConfig( DatastoreCluster = datastoreCluster; DiskSize = diskSize; Folder = folder; + GracefulShutdownTimeout = gracefulShutdownTimeout; Hostsystem = hostsystem; MemorySize = memorySize; Networks = networks; diff --git a/sdk/dotnet/Outputs/RoleTempalteRule.cs b/sdk/dotnet/Outputs/RoleTempalteRule.cs deleted file mode 100644 index 225f90b3a..000000000 --- a/sdk/dotnet/Outputs/RoleTempalteRule.cs +++ /dev/null @@ -1,56 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2.Outputs -{ - - [OutputType] - public sealed class RoleTempalteRule - { - /// - /// Policy rule api groups (list) - /// - public readonly ImmutableArray ApiGroups; - /// - /// Policy rule non resource urls (list) - /// - public readonly ImmutableArray NonResourceUrls; - /// - /// Policy rule resource names (list) - /// - public readonly ImmutableArray ResourceNames; - /// - /// Policy rule resources (list) - /// - public readonly ImmutableArray Resources; - /// - /// Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - /// - public readonly ImmutableArray Verbs; - - [OutputConstructor] - private RoleTempalteRule( - ImmutableArray apiGroups, - - ImmutableArray nonResourceUrls, - - ImmutableArray resourceNames, - - ImmutableArray resources, - - ImmutableArray verbs) - { - ApiGroups = apiGroups; - NonResourceUrls = nonResourceUrls; - ResourceNames = resourceNames; - Resources = resources; - Verbs = verbs; - } - } -} diff --git a/sdk/dotnet/ProjectRoleTemplateBinding.cs b/sdk/dotnet/ProjectRoleTemplateBinding.cs index aaf5be8b5..0f55e5c04 100644 --- a/sdk/dotnet/ProjectRoleTemplateBinding.cs +++ b/sdk/dotnet/ProjectRoleTemplateBinding.cs @@ -77,7 +77,7 @@ public partial class ProjectRoleTemplateBinding : global::Pulumi.CustomResource public Output Name { get; private set; } = null!; /// - /// The project id where bind project role template (string) + /// The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) /// [Output("projectId")] public Output ProjectId { get; private set; } = null!; @@ -191,7 +191,7 @@ public InputMap Labels public Input? Name { get; set; } /// - /// The project id where bind project role template (string) + /// The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) /// [Input("projectId", required: true)] public Input ProjectId { get; set; } = null!; @@ -267,7 +267,7 @@ public InputMap Labels public Input? Name { get; set; } /// - /// The project id where bind project role template (string) + /// The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) /// [Input("projectId")] public Input? ProjectId { get; set; } diff --git a/sdk/dotnet/RoleTempalte.cs b/sdk/dotnet/RoleTempalte.cs deleted file mode 100644 index a0862d7ea..000000000 --- a/sdk/dotnet/RoleTempalte.cs +++ /dev/null @@ -1,440 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Threading.Tasks; -using Pulumi.Serialization; - -namespace Pulumi.Rancher2 -{ - /// - /// Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. - /// - /// `cluster` and `project` scopes are supported for role templates. - /// - /// ## Example Usage - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Rancher2 = Pulumi.Rancher2; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create a new rancher2 cluster Role Template - /// var foo = new Rancher2.RoleTemplate("foo", new() - /// { - /// Context = "cluster", - /// DefaultRole = true, - /// Description = "Terraform role template acceptance test", - /// Rules = new[] - /// { - /// new Rancher2.Inputs.RoleTemplateRuleArgs - /// { - /// ApiGroups = new[] - /// { - /// "*", - /// }, - /// Resources = new[] - /// { - /// "secrets", - /// }, - /// Verbs = new[] - /// { - /// "create", - /// }, - /// }, - /// }, - /// }); - /// - /// }); - /// ``` - /// - /// ```csharp - /// using System.Collections.Generic; - /// using System.Linq; - /// using Pulumi; - /// using Rancher2 = Pulumi.Rancher2; - /// - /// return await Deployment.RunAsync(() => - /// { - /// // Create a new rancher2 project Role Template - /// var foo = new Rancher2.RoleTemplate("foo", new() - /// { - /// Context = "project", - /// DefaultRole = true, - /// Description = "Terraform role template acceptance test", - /// Rules = new[] - /// { - /// new Rancher2.Inputs.RoleTemplateRuleArgs - /// { - /// ApiGroups = new[] - /// { - /// "*", - /// }, - /// Resources = new[] - /// { - /// "secrets", - /// }, - /// Verbs = new[] - /// { - /// "create", - /// }, - /// }, - /// }, - /// }); - /// - /// }); - /// ``` - /// - /// ## Import - /// - /// Role Template can be imported using the Rancher Role Template ID - /// - /// ```sh - /// $ pulumi import rancher2:index/roleTempalte:RoleTempalte foo &lt;role_template_id&gt; - /// ``` - /// - [Obsolete(@"rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate")] - [Rancher2ResourceType("rancher2:index/roleTempalte:RoleTempalte")] - public partial class RoleTempalte : global::Pulumi.CustomResource - { - /// - /// Administrative role template. Default `false` (bool) - /// - [Output("administrative")] - public Output Administrative { get; private set; } = null!; - - /// - /// Annotations for role template object (map) - /// - [Output("annotations")] - public Output> Annotations { get; private set; } = null!; - - /// - /// (Computed) Builtin role template (string) - /// - [Output("builtin")] - public Output Builtin { get; private set; } = null!; - - /// - /// Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - /// - [Output("context")] - public Output Context { get; private set; } = null!; - - /// - /// Default role template for new created cluster or project. Default `false` (bool) - /// - [Output("defaultRole")] - public Output DefaultRole { get; private set; } = null!; - - /// - /// Role template description (string) - /// - [Output("description")] - public Output Description { get; private set; } = null!; - - /// - /// External role template. Default `false` (bool) - /// - [Output("external")] - public Output External { get; private set; } = null!; - - /// - /// Hidden role template. Default `false` (bool) - /// - [Output("hidden")] - public Output Hidden { get; private set; } = null!; - - /// - /// Labels for role template object (map) - /// - [Output("labels")] - public Output> Labels { get; private set; } = null!; - - /// - /// Locked role template. Default `false` (bool) - /// - [Output("locked")] - public Output Locked { get; private set; } = null!; - - /// - /// Role template name (string) - /// - [Output("name")] - public Output Name { get; private set; } = null!; - - /// - /// Inherit role template IDs (list) - /// - [Output("roleTemplateIds")] - public Output> RoleTemplateIds { get; private set; } = null!; - - /// - /// Role template policy rules (list) - /// - [Output("rules")] - public Output> Rules { get; private set; } = null!; - - - /// - /// Create a RoleTempalte resource with the given unique name, arguments, and options. - /// - /// - /// The unique name of the resource - /// The arguments used to populate this resource's properties - /// A bag of options that control this resource's behavior - public RoleTempalte(string name, RoleTempalteArgs? args = null, CustomResourceOptions? options = null) - : base("rancher2:index/roleTempalte:RoleTempalte", name, args ?? new RoleTempalteArgs(), MakeResourceOptions(options, "")) - { - } - - private RoleTempalte(string name, Input id, RoleTempalteState? state = null, CustomResourceOptions? options = null) - : base("rancher2:index/roleTempalte:RoleTempalte", name, state, MakeResourceOptions(options, id)) - { - } - - private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) - { - var defaultOptions = new CustomResourceOptions - { - Version = Utilities.Version, - }; - var merged = CustomResourceOptions.Merge(defaultOptions, options); - // Override the ID if one was specified for consistency with other language SDKs. - merged.Id = id ?? merged.Id; - return merged; - } - /// - /// Get an existing RoleTempalte resource's state with the given name, ID, and optional extra - /// properties used to qualify the lookup. - /// - /// - /// The unique name of the resulting resource. - /// The unique provider ID of the resource to lookup. - /// Any extra arguments used during the lookup. - /// A bag of options that control this resource's behavior - public static RoleTempalte Get(string name, Input id, RoleTempalteState? state = null, CustomResourceOptions? options = null) - { - return new RoleTempalte(name, id, state, options); - } - } - - public sealed class RoleTempalteArgs : global::Pulumi.ResourceArgs - { - /// - /// Administrative role template. Default `false` (bool) - /// - [Input("administrative")] - public Input? Administrative { get; set; } - - [Input("annotations")] - private InputMap? _annotations; - - /// - /// Annotations for role template object (map) - /// - public InputMap Annotations - { - get => _annotations ?? (_annotations = new InputMap()); - set => _annotations = value; - } - - /// - /// Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - /// - [Input("context")] - public Input? Context { get; set; } - - /// - /// Default role template for new created cluster or project. Default `false` (bool) - /// - [Input("defaultRole")] - public Input? DefaultRole { get; set; } - - /// - /// Role template description (string) - /// - [Input("description")] - public Input? Description { get; set; } - - /// - /// External role template. Default `false` (bool) - /// - [Input("external")] - public Input? External { get; set; } - - /// - /// Hidden role template. Default `false` (bool) - /// - [Input("hidden")] - public Input? Hidden { get; set; } - - [Input("labels")] - private InputMap? _labels; - - /// - /// Labels for role template object (map) - /// - public InputMap Labels - { - get => _labels ?? (_labels = new InputMap()); - set => _labels = value; - } - - /// - /// Locked role template. Default `false` (bool) - /// - [Input("locked")] - public Input? Locked { get; set; } - - /// - /// Role template name (string) - /// - [Input("name")] - public Input? Name { get; set; } - - [Input("roleTemplateIds")] - private InputList? _roleTemplateIds; - - /// - /// Inherit role template IDs (list) - /// - public InputList RoleTemplateIds - { - get => _roleTemplateIds ?? (_roleTemplateIds = new InputList()); - set => _roleTemplateIds = value; - } - - [Input("rules")] - private InputList? _rules; - - /// - /// Role template policy rules (list) - /// - public InputList Rules - { - get => _rules ?? (_rules = new InputList()); - set => _rules = value; - } - - public RoleTempalteArgs() - { - } - public static new RoleTempalteArgs Empty => new RoleTempalteArgs(); - } - - public sealed class RoleTempalteState : global::Pulumi.ResourceArgs - { - /// - /// Administrative role template. Default `false` (bool) - /// - [Input("administrative")] - public Input? Administrative { get; set; } - - [Input("annotations")] - private InputMap? _annotations; - - /// - /// Annotations for role template object (map) - /// - public InputMap Annotations - { - get => _annotations ?? (_annotations = new InputMap()); - set => _annotations = value; - } - - /// - /// (Computed) Builtin role template (string) - /// - [Input("builtin")] - public Input? Builtin { get; set; } - - /// - /// Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - /// - [Input("context")] - public Input? Context { get; set; } - - /// - /// Default role template for new created cluster or project. Default `false` (bool) - /// - [Input("defaultRole")] - public Input? DefaultRole { get; set; } - - /// - /// Role template description (string) - /// - [Input("description")] - public Input? Description { get; set; } - - /// - /// External role template. Default `false` (bool) - /// - [Input("external")] - public Input? External { get; set; } - - /// - /// Hidden role template. Default `false` (bool) - /// - [Input("hidden")] - public Input? Hidden { get; set; } - - [Input("labels")] - private InputMap? _labels; - - /// - /// Labels for role template object (map) - /// - public InputMap Labels - { - get => _labels ?? (_labels = new InputMap()); - set => _labels = value; - } - - /// - /// Locked role template. Default `false` (bool) - /// - [Input("locked")] - public Input? Locked { get; set; } - - /// - /// Role template name (string) - /// - [Input("name")] - public Input? Name { get; set; } - - [Input("roleTemplateIds")] - private InputList? _roleTemplateIds; - - /// - /// Inherit role template IDs (list) - /// - public InputList RoleTemplateIds - { - get => _roleTemplateIds ?? (_roleTemplateIds = new InputList()); - set => _roleTemplateIds = value; - } - - [Input("rules")] - private InputList? _rules; - - /// - /// Role template policy rules (list) - /// - public InputList Rules - { - get => _rules ?? (_rules = new InputList()); - set => _rules = value; - } - - public RoleTempalteState() - { - } - public static new RoleTempalteState Empty => new RoleTempalteState(); - } -} diff --git a/sdk/dotnet/RoleTemplate.cs b/sdk/dotnet/RoleTemplate.cs index b9d569cdb..21b64b6d4 100644 --- a/sdk/dotnet/RoleTemplate.cs +++ b/sdk/dotnet/RoleTemplate.cs @@ -202,10 +202,6 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - Aliases = - { - new global::Pulumi.Alias { Type = "rancher2:index/roleTempalte:RoleTempalte" }, - }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/go.mod b/sdk/go.mod index 055b5916e..9b118bdb4 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -1,4 +1,4 @@ -module github.com/pulumi/pulumi-rancher2/sdk/v5 +module github.com/pulumi/pulumi-rancher2/sdk/v6 go 1.21 @@ -66,7 +66,6 @@ require ( github.com/spf13/cast v1.4.1 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/stretchr/objx v0.5.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 6b1732e49..322400304 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -172,17 +172,13 @@ github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= diff --git a/sdk/go/rancher2/activeDirectory.go b/sdk/go/rancher2/activeDirectory.go deleted file mode 100644 index 8501c37ba..000000000 --- a/sdk/go/rancher2/activeDirectory.go +++ /dev/null @@ -1,759 +0,0 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. -// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** - -package rancher2 - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -// Provides a Rancher v2 Auth Config ActiveDirectory resource. This can be used to configure and enable Auth Config ActiveDirectory for Rancher v2 RKE clusters and retrieve their information. -// -// In addition to the built-in local auth, only one external auth config provider can be enabled at a time. -// -// Deprecated: rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory -type ActiveDirectory struct { - pulumi.CustomResourceState - - // Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - AccessMode pulumi.StringPtrOutput `pulumi:"accessMode"` - // Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) - AllowedPrincipalIds pulumi.StringArrayOutput `pulumi:"allowedPrincipalIds"` - // Annotations of the resource (map) - Annotations pulumi.MapOutput `pulumi:"annotations"` - // CA certificate for TLS if selfsigned (string) - Certificate pulumi.StringPtrOutput `pulumi:"certificate"` - // ActiveDirectory connection timeout. Default `5000` (int) - ConnectionTimeout pulumi.IntPtrOutput `pulumi:"connectionTimeout"` - // ActiveDirectory defult login domain (string) - DefaultLoginDomain pulumi.StringPtrOutput `pulumi:"defaultLoginDomain"` - // Enable auth config provider. Default `true` (bool) - Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` - // Group DN attribute. Default `distinguishedName` (string) - GroupDnAttribute pulumi.StringOutput `pulumi:"groupDnAttribute"` - // Group member mapping attribute. Default `member` (string) - GroupMemberMappingAttribute pulumi.StringOutput `pulumi:"groupMemberMappingAttribute"` - // Group member user attribute. Default `distinguishedName` (string) - GroupMemberUserAttribute pulumi.StringOutput `pulumi:"groupMemberUserAttribute"` - // Group name attribute. Default `name` (string) - GroupNameAttribute pulumi.StringOutput `pulumi:"groupNameAttribute"` - // Group object class. Default `group` (string) - GroupObjectClass pulumi.StringOutput `pulumi:"groupObjectClass"` - // Group search attribute. Default `sAMAccountName` (string) - GroupSearchAttribute pulumi.StringOutput `pulumi:"groupSearchAttribute"` - // Group search base (string) - GroupSearchBase pulumi.StringOutput `pulumi:"groupSearchBase"` - // Group search filter (string) - GroupSearchFilter pulumi.StringOutput `pulumi:"groupSearchFilter"` - // Labels of the resource (map) - Labels pulumi.MapOutput `pulumi:"labels"` - // (Computed) The name of the resource (string) - Name pulumi.StringOutput `pulumi:"name"` - // Nested group membership enable. Default `false` (bool) - NestedGroupMembershipEnabled pulumi.BoolOutput `pulumi:"nestedGroupMembershipEnabled"` - // ActiveDirectory port. Default `389` (int) - Port pulumi.IntPtrOutput `pulumi:"port"` - // ActiveDirectory servers list (list) - Servers pulumi.StringArrayOutput `pulumi:"servers"` - // Service account password for access ActiveDirectory service (string) - ServiceAccountPassword pulumi.StringOutput `pulumi:"serviceAccountPassword"` - // Service account DN for access ActiveDirectory service (string) - ServiceAccountUsername pulumi.StringOutput `pulumi:"serviceAccountUsername"` - // Enable start TLS connection (bool) - StartTls pulumi.BoolOutput `pulumi:"startTls"` - // Password for test access to ActiveDirectory service (string) - TestPassword pulumi.StringOutput `pulumi:"testPassword"` - // Username for test access to ActiveDirectory service (string) - TestUsername pulumi.StringOutput `pulumi:"testUsername"` - // Enable TLS connection (bool) - Tls pulumi.BoolOutput `pulumi:"tls"` - // (Computed) The type of the resource (string) - Type pulumi.StringOutput `pulumi:"type"` - // User disabled bit mask. Default `2` (int) - UserDisabledBitMask pulumi.IntPtrOutput `pulumi:"userDisabledBitMask"` - // User enable attribute (string) - UserEnabledAttribute pulumi.StringOutput `pulumi:"userEnabledAttribute"` - // User login attribute. Default `sAMAccountName` (string) - UserLoginAttribute pulumi.StringOutput `pulumi:"userLoginAttribute"` - // User name attribute. Default `name` (string) - UserNameAttribute pulumi.StringOutput `pulumi:"userNameAttribute"` - // User object class. Default `person` (string) - UserObjectClass pulumi.StringOutput `pulumi:"userObjectClass"` - // User search attribute. Default `sAMAccountName|sn|givenName` (string) - UserSearchAttribute pulumi.StringOutput `pulumi:"userSearchAttribute"` - // User search base DN (string) - UserSearchBase pulumi.StringOutput `pulumi:"userSearchBase"` - // User search filter (string) - UserSearchFilter pulumi.StringOutput `pulumi:"userSearchFilter"` -} - -// NewActiveDirectory registers a new resource with the given unique name, arguments, and options. -func NewActiveDirectory(ctx *pulumi.Context, - name string, args *ActiveDirectoryArgs, opts ...pulumi.ResourceOption) (*ActiveDirectory, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.Servers == nil { - return nil, errors.New("invalid value for required argument 'Servers'") - } - if args.ServiceAccountPassword == nil { - return nil, errors.New("invalid value for required argument 'ServiceAccountPassword'") - } - if args.ServiceAccountUsername == nil { - return nil, errors.New("invalid value for required argument 'ServiceAccountUsername'") - } - if args.TestPassword == nil { - return nil, errors.New("invalid value for required argument 'TestPassword'") - } - if args.TestUsername == nil { - return nil, errors.New("invalid value for required argument 'TestUsername'") - } - if args.UserSearchBase == nil { - return nil, errors.New("invalid value for required argument 'UserSearchBase'") - } - if args.Certificate != nil { - args.Certificate = pulumi.ToSecret(args.Certificate).(pulumi.StringPtrInput) - } - if args.ServiceAccountPassword != nil { - args.ServiceAccountPassword = pulumi.ToSecret(args.ServiceAccountPassword).(pulumi.StringInput) - } - if args.ServiceAccountUsername != nil { - args.ServiceAccountUsername = pulumi.ToSecret(args.ServiceAccountUsername).(pulumi.StringInput) - } - if args.TestPassword != nil { - args.TestPassword = pulumi.ToSecret(args.TestPassword).(pulumi.StringInput) - } - secrets := pulumi.AdditionalSecretOutputs([]string{ - "certificate", - "serviceAccountPassword", - "serviceAccountUsername", - "testPassword", - }) - opts = append(opts, secrets) - opts = internal.PkgResourceDefaultOpts(opts) - var resource ActiveDirectory - err := ctx.RegisterResource("rancher2:index/activeDirectory:ActiveDirectory", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetActiveDirectory gets an existing ActiveDirectory resource's state with the given name, ID, and optional -// state properties that are used to uniquely qualify the lookup (nil if not required). -func GetActiveDirectory(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *ActiveDirectoryState, opts ...pulumi.ResourceOption) (*ActiveDirectory, error) { - var resource ActiveDirectory - err := ctx.ReadResource("rancher2:index/activeDirectory:ActiveDirectory", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering ActiveDirectory resources. -type activeDirectoryState struct { - // Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - AccessMode *string `pulumi:"accessMode"` - // Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) - AllowedPrincipalIds []string `pulumi:"allowedPrincipalIds"` - // Annotations of the resource (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // CA certificate for TLS if selfsigned (string) - Certificate *string `pulumi:"certificate"` - // ActiveDirectory connection timeout. Default `5000` (int) - ConnectionTimeout *int `pulumi:"connectionTimeout"` - // ActiveDirectory defult login domain (string) - DefaultLoginDomain *string `pulumi:"defaultLoginDomain"` - // Enable auth config provider. Default `true` (bool) - Enabled *bool `pulumi:"enabled"` - // Group DN attribute. Default `distinguishedName` (string) - GroupDnAttribute *string `pulumi:"groupDnAttribute"` - // Group member mapping attribute. Default `member` (string) - GroupMemberMappingAttribute *string `pulumi:"groupMemberMappingAttribute"` - // Group member user attribute. Default `distinguishedName` (string) - GroupMemberUserAttribute *string `pulumi:"groupMemberUserAttribute"` - // Group name attribute. Default `name` (string) - GroupNameAttribute *string `pulumi:"groupNameAttribute"` - // Group object class. Default `group` (string) - GroupObjectClass *string `pulumi:"groupObjectClass"` - // Group search attribute. Default `sAMAccountName` (string) - GroupSearchAttribute *string `pulumi:"groupSearchAttribute"` - // Group search base (string) - GroupSearchBase *string `pulumi:"groupSearchBase"` - // Group search filter (string) - GroupSearchFilter *string `pulumi:"groupSearchFilter"` - // Labels of the resource (map) - Labels map[string]interface{} `pulumi:"labels"` - // (Computed) The name of the resource (string) - Name *string `pulumi:"name"` - // Nested group membership enable. Default `false` (bool) - NestedGroupMembershipEnabled *bool `pulumi:"nestedGroupMembershipEnabled"` - // ActiveDirectory port. Default `389` (int) - Port *int `pulumi:"port"` - // ActiveDirectory servers list (list) - Servers []string `pulumi:"servers"` - // Service account password for access ActiveDirectory service (string) - ServiceAccountPassword *string `pulumi:"serviceAccountPassword"` - // Service account DN for access ActiveDirectory service (string) - ServiceAccountUsername *string `pulumi:"serviceAccountUsername"` - // Enable start TLS connection (bool) - StartTls *bool `pulumi:"startTls"` - // Password for test access to ActiveDirectory service (string) - TestPassword *string `pulumi:"testPassword"` - // Username for test access to ActiveDirectory service (string) - TestUsername *string `pulumi:"testUsername"` - // Enable TLS connection (bool) - Tls *bool `pulumi:"tls"` - // (Computed) The type of the resource (string) - Type *string `pulumi:"type"` - // User disabled bit mask. Default `2` (int) - UserDisabledBitMask *int `pulumi:"userDisabledBitMask"` - // User enable attribute (string) - UserEnabledAttribute *string `pulumi:"userEnabledAttribute"` - // User login attribute. Default `sAMAccountName` (string) - UserLoginAttribute *string `pulumi:"userLoginAttribute"` - // User name attribute. Default `name` (string) - UserNameAttribute *string `pulumi:"userNameAttribute"` - // User object class. Default `person` (string) - UserObjectClass *string `pulumi:"userObjectClass"` - // User search attribute. Default `sAMAccountName|sn|givenName` (string) - UserSearchAttribute *string `pulumi:"userSearchAttribute"` - // User search base DN (string) - UserSearchBase *string `pulumi:"userSearchBase"` - // User search filter (string) - UserSearchFilter *string `pulumi:"userSearchFilter"` -} - -type ActiveDirectoryState struct { - // Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - AccessMode pulumi.StringPtrInput - // Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) - AllowedPrincipalIds pulumi.StringArrayInput - // Annotations of the resource (map) - Annotations pulumi.MapInput - // CA certificate for TLS if selfsigned (string) - Certificate pulumi.StringPtrInput - // ActiveDirectory connection timeout. Default `5000` (int) - ConnectionTimeout pulumi.IntPtrInput - // ActiveDirectory defult login domain (string) - DefaultLoginDomain pulumi.StringPtrInput - // Enable auth config provider. Default `true` (bool) - Enabled pulumi.BoolPtrInput - // Group DN attribute. Default `distinguishedName` (string) - GroupDnAttribute pulumi.StringPtrInput - // Group member mapping attribute. Default `member` (string) - GroupMemberMappingAttribute pulumi.StringPtrInput - // Group member user attribute. Default `distinguishedName` (string) - GroupMemberUserAttribute pulumi.StringPtrInput - // Group name attribute. Default `name` (string) - GroupNameAttribute pulumi.StringPtrInput - // Group object class. Default `group` (string) - GroupObjectClass pulumi.StringPtrInput - // Group search attribute. Default `sAMAccountName` (string) - GroupSearchAttribute pulumi.StringPtrInput - // Group search base (string) - GroupSearchBase pulumi.StringPtrInput - // Group search filter (string) - GroupSearchFilter pulumi.StringPtrInput - // Labels of the resource (map) - Labels pulumi.MapInput - // (Computed) The name of the resource (string) - Name pulumi.StringPtrInput - // Nested group membership enable. Default `false` (bool) - NestedGroupMembershipEnabled pulumi.BoolPtrInput - // ActiveDirectory port. Default `389` (int) - Port pulumi.IntPtrInput - // ActiveDirectory servers list (list) - Servers pulumi.StringArrayInput - // Service account password for access ActiveDirectory service (string) - ServiceAccountPassword pulumi.StringPtrInput - // Service account DN for access ActiveDirectory service (string) - ServiceAccountUsername pulumi.StringPtrInput - // Enable start TLS connection (bool) - StartTls pulumi.BoolPtrInput - // Password for test access to ActiveDirectory service (string) - TestPassword pulumi.StringPtrInput - // Username for test access to ActiveDirectory service (string) - TestUsername pulumi.StringPtrInput - // Enable TLS connection (bool) - Tls pulumi.BoolPtrInput - // (Computed) The type of the resource (string) - Type pulumi.StringPtrInput - // User disabled bit mask. Default `2` (int) - UserDisabledBitMask pulumi.IntPtrInput - // User enable attribute (string) - UserEnabledAttribute pulumi.StringPtrInput - // User login attribute. Default `sAMAccountName` (string) - UserLoginAttribute pulumi.StringPtrInput - // User name attribute. Default `name` (string) - UserNameAttribute pulumi.StringPtrInput - // User object class. Default `person` (string) - UserObjectClass pulumi.StringPtrInput - // User search attribute. Default `sAMAccountName|sn|givenName` (string) - UserSearchAttribute pulumi.StringPtrInput - // User search base DN (string) - UserSearchBase pulumi.StringPtrInput - // User search filter (string) - UserSearchFilter pulumi.StringPtrInput -} - -func (ActiveDirectoryState) ElementType() reflect.Type { - return reflect.TypeOf((*activeDirectoryState)(nil)).Elem() -} - -type activeDirectoryArgs struct { - // Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - AccessMode *string `pulumi:"accessMode"` - // Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) - AllowedPrincipalIds []string `pulumi:"allowedPrincipalIds"` - // Annotations of the resource (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // CA certificate for TLS if selfsigned (string) - Certificate *string `pulumi:"certificate"` - // ActiveDirectory connection timeout. Default `5000` (int) - ConnectionTimeout *int `pulumi:"connectionTimeout"` - // ActiveDirectory defult login domain (string) - DefaultLoginDomain *string `pulumi:"defaultLoginDomain"` - // Enable auth config provider. Default `true` (bool) - Enabled *bool `pulumi:"enabled"` - // Group DN attribute. Default `distinguishedName` (string) - GroupDnAttribute *string `pulumi:"groupDnAttribute"` - // Group member mapping attribute. Default `member` (string) - GroupMemberMappingAttribute *string `pulumi:"groupMemberMappingAttribute"` - // Group member user attribute. Default `distinguishedName` (string) - GroupMemberUserAttribute *string `pulumi:"groupMemberUserAttribute"` - // Group name attribute. Default `name` (string) - GroupNameAttribute *string `pulumi:"groupNameAttribute"` - // Group object class. Default `group` (string) - GroupObjectClass *string `pulumi:"groupObjectClass"` - // Group search attribute. Default `sAMAccountName` (string) - GroupSearchAttribute *string `pulumi:"groupSearchAttribute"` - // Group search base (string) - GroupSearchBase *string `pulumi:"groupSearchBase"` - // Group search filter (string) - GroupSearchFilter *string `pulumi:"groupSearchFilter"` - // Labels of the resource (map) - Labels map[string]interface{} `pulumi:"labels"` - // Nested group membership enable. Default `false` (bool) - NestedGroupMembershipEnabled *bool `pulumi:"nestedGroupMembershipEnabled"` - // ActiveDirectory port. Default `389` (int) - Port *int `pulumi:"port"` - // ActiveDirectory servers list (list) - Servers []string `pulumi:"servers"` - // Service account password for access ActiveDirectory service (string) - ServiceAccountPassword string `pulumi:"serviceAccountPassword"` - // Service account DN for access ActiveDirectory service (string) - ServiceAccountUsername string `pulumi:"serviceAccountUsername"` - // Enable start TLS connection (bool) - StartTls *bool `pulumi:"startTls"` - // Password for test access to ActiveDirectory service (string) - TestPassword string `pulumi:"testPassword"` - // Username for test access to ActiveDirectory service (string) - TestUsername string `pulumi:"testUsername"` - // Enable TLS connection (bool) - Tls *bool `pulumi:"tls"` - // User disabled bit mask. Default `2` (int) - UserDisabledBitMask *int `pulumi:"userDisabledBitMask"` - // User enable attribute (string) - UserEnabledAttribute *string `pulumi:"userEnabledAttribute"` - // User login attribute. Default `sAMAccountName` (string) - UserLoginAttribute *string `pulumi:"userLoginAttribute"` - // User name attribute. Default `name` (string) - UserNameAttribute *string `pulumi:"userNameAttribute"` - // User object class. Default `person` (string) - UserObjectClass *string `pulumi:"userObjectClass"` - // User search attribute. Default `sAMAccountName|sn|givenName` (string) - UserSearchAttribute *string `pulumi:"userSearchAttribute"` - // User search base DN (string) - UserSearchBase string `pulumi:"userSearchBase"` - // User search filter (string) - UserSearchFilter *string `pulumi:"userSearchFilter"` -} - -// The set of arguments for constructing a ActiveDirectory resource. -type ActiveDirectoryArgs struct { - // Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - AccessMode pulumi.StringPtrInput - // Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) - AllowedPrincipalIds pulumi.StringArrayInput - // Annotations of the resource (map) - Annotations pulumi.MapInput - // CA certificate for TLS if selfsigned (string) - Certificate pulumi.StringPtrInput - // ActiveDirectory connection timeout. Default `5000` (int) - ConnectionTimeout pulumi.IntPtrInput - // ActiveDirectory defult login domain (string) - DefaultLoginDomain pulumi.StringPtrInput - // Enable auth config provider. Default `true` (bool) - Enabled pulumi.BoolPtrInput - // Group DN attribute. Default `distinguishedName` (string) - GroupDnAttribute pulumi.StringPtrInput - // Group member mapping attribute. Default `member` (string) - GroupMemberMappingAttribute pulumi.StringPtrInput - // Group member user attribute. Default `distinguishedName` (string) - GroupMemberUserAttribute pulumi.StringPtrInput - // Group name attribute. Default `name` (string) - GroupNameAttribute pulumi.StringPtrInput - // Group object class. Default `group` (string) - GroupObjectClass pulumi.StringPtrInput - // Group search attribute. Default `sAMAccountName` (string) - GroupSearchAttribute pulumi.StringPtrInput - // Group search base (string) - GroupSearchBase pulumi.StringPtrInput - // Group search filter (string) - GroupSearchFilter pulumi.StringPtrInput - // Labels of the resource (map) - Labels pulumi.MapInput - // Nested group membership enable. Default `false` (bool) - NestedGroupMembershipEnabled pulumi.BoolPtrInput - // ActiveDirectory port. Default `389` (int) - Port pulumi.IntPtrInput - // ActiveDirectory servers list (list) - Servers pulumi.StringArrayInput - // Service account password for access ActiveDirectory service (string) - ServiceAccountPassword pulumi.StringInput - // Service account DN for access ActiveDirectory service (string) - ServiceAccountUsername pulumi.StringInput - // Enable start TLS connection (bool) - StartTls pulumi.BoolPtrInput - // Password for test access to ActiveDirectory service (string) - TestPassword pulumi.StringInput - // Username for test access to ActiveDirectory service (string) - TestUsername pulumi.StringInput - // Enable TLS connection (bool) - Tls pulumi.BoolPtrInput - // User disabled bit mask. Default `2` (int) - UserDisabledBitMask pulumi.IntPtrInput - // User enable attribute (string) - UserEnabledAttribute pulumi.StringPtrInput - // User login attribute. Default `sAMAccountName` (string) - UserLoginAttribute pulumi.StringPtrInput - // User name attribute. Default `name` (string) - UserNameAttribute pulumi.StringPtrInput - // User object class. Default `person` (string) - UserObjectClass pulumi.StringPtrInput - // User search attribute. Default `sAMAccountName|sn|givenName` (string) - UserSearchAttribute pulumi.StringPtrInput - // User search base DN (string) - UserSearchBase pulumi.StringInput - // User search filter (string) - UserSearchFilter pulumi.StringPtrInput -} - -func (ActiveDirectoryArgs) ElementType() reflect.Type { - return reflect.TypeOf((*activeDirectoryArgs)(nil)).Elem() -} - -type ActiveDirectoryInput interface { - pulumi.Input - - ToActiveDirectoryOutput() ActiveDirectoryOutput - ToActiveDirectoryOutputWithContext(ctx context.Context) ActiveDirectoryOutput -} - -func (*ActiveDirectory) ElementType() reflect.Type { - return reflect.TypeOf((**ActiveDirectory)(nil)).Elem() -} - -func (i *ActiveDirectory) ToActiveDirectoryOutput() ActiveDirectoryOutput { - return i.ToActiveDirectoryOutputWithContext(context.Background()) -} - -func (i *ActiveDirectory) ToActiveDirectoryOutputWithContext(ctx context.Context) ActiveDirectoryOutput { - return pulumi.ToOutputWithContext(ctx, i).(ActiveDirectoryOutput) -} - -// ActiveDirectoryArrayInput is an input type that accepts ActiveDirectoryArray and ActiveDirectoryArrayOutput values. -// You can construct a concrete instance of `ActiveDirectoryArrayInput` via: -// -// ActiveDirectoryArray{ ActiveDirectoryArgs{...} } -type ActiveDirectoryArrayInput interface { - pulumi.Input - - ToActiveDirectoryArrayOutput() ActiveDirectoryArrayOutput - ToActiveDirectoryArrayOutputWithContext(context.Context) ActiveDirectoryArrayOutput -} - -type ActiveDirectoryArray []ActiveDirectoryInput - -func (ActiveDirectoryArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*ActiveDirectory)(nil)).Elem() -} - -func (i ActiveDirectoryArray) ToActiveDirectoryArrayOutput() ActiveDirectoryArrayOutput { - return i.ToActiveDirectoryArrayOutputWithContext(context.Background()) -} - -func (i ActiveDirectoryArray) ToActiveDirectoryArrayOutputWithContext(ctx context.Context) ActiveDirectoryArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ActiveDirectoryArrayOutput) -} - -// ActiveDirectoryMapInput is an input type that accepts ActiveDirectoryMap and ActiveDirectoryMapOutput values. -// You can construct a concrete instance of `ActiveDirectoryMapInput` via: -// -// ActiveDirectoryMap{ "key": ActiveDirectoryArgs{...} } -type ActiveDirectoryMapInput interface { - pulumi.Input - - ToActiveDirectoryMapOutput() ActiveDirectoryMapOutput - ToActiveDirectoryMapOutputWithContext(context.Context) ActiveDirectoryMapOutput -} - -type ActiveDirectoryMap map[string]ActiveDirectoryInput - -func (ActiveDirectoryMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*ActiveDirectory)(nil)).Elem() -} - -func (i ActiveDirectoryMap) ToActiveDirectoryMapOutput() ActiveDirectoryMapOutput { - return i.ToActiveDirectoryMapOutputWithContext(context.Background()) -} - -func (i ActiveDirectoryMap) ToActiveDirectoryMapOutputWithContext(ctx context.Context) ActiveDirectoryMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(ActiveDirectoryMapOutput) -} - -type ActiveDirectoryOutput struct{ *pulumi.OutputState } - -func (ActiveDirectoryOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ActiveDirectory)(nil)).Elem() -} - -func (o ActiveDirectoryOutput) ToActiveDirectoryOutput() ActiveDirectoryOutput { - return o -} - -func (o ActiveDirectoryOutput) ToActiveDirectoryOutputWithContext(ctx context.Context) ActiveDirectoryOutput { - return o -} - -// Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) -func (o ActiveDirectoryOutput) AccessMode() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringPtrOutput { return v.AccessMode }).(pulumi.StringPtrOutput) -} - -// Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) -func (o ActiveDirectoryOutput) AllowedPrincipalIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringArrayOutput { return v.AllowedPrincipalIds }).(pulumi.StringArrayOutput) -} - -// Annotations of the resource (map) -func (o ActiveDirectoryOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.MapOutput { return v.Annotations }).(pulumi.MapOutput) -} - -// CA certificate for TLS if selfsigned (string) -func (o ActiveDirectoryOutput) Certificate() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringPtrOutput { return v.Certificate }).(pulumi.StringPtrOutput) -} - -// ActiveDirectory connection timeout. Default `5000` (int) -func (o ActiveDirectoryOutput) ConnectionTimeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.IntPtrOutput { return v.ConnectionTimeout }).(pulumi.IntPtrOutput) -} - -// ActiveDirectory defult login domain (string) -func (o ActiveDirectoryOutput) DefaultLoginDomain() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringPtrOutput { return v.DefaultLoginDomain }).(pulumi.StringPtrOutput) -} - -// Enable auth config provider. Default `true` (bool) -func (o ActiveDirectoryOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) -} - -// Group DN attribute. Default `distinguishedName` (string) -func (o ActiveDirectoryOutput) GroupDnAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.GroupDnAttribute }).(pulumi.StringOutput) -} - -// Group member mapping attribute. Default `member` (string) -func (o ActiveDirectoryOutput) GroupMemberMappingAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.GroupMemberMappingAttribute }).(pulumi.StringOutput) -} - -// Group member user attribute. Default `distinguishedName` (string) -func (o ActiveDirectoryOutput) GroupMemberUserAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.GroupMemberUserAttribute }).(pulumi.StringOutput) -} - -// Group name attribute. Default `name` (string) -func (o ActiveDirectoryOutput) GroupNameAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.GroupNameAttribute }).(pulumi.StringOutput) -} - -// Group object class. Default `group` (string) -func (o ActiveDirectoryOutput) GroupObjectClass() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.GroupObjectClass }).(pulumi.StringOutput) -} - -// Group search attribute. Default `sAMAccountName` (string) -func (o ActiveDirectoryOutput) GroupSearchAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.GroupSearchAttribute }).(pulumi.StringOutput) -} - -// Group search base (string) -func (o ActiveDirectoryOutput) GroupSearchBase() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.GroupSearchBase }).(pulumi.StringOutput) -} - -// Group search filter (string) -func (o ActiveDirectoryOutput) GroupSearchFilter() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.GroupSearchFilter }).(pulumi.StringOutput) -} - -// Labels of the resource (map) -func (o ActiveDirectoryOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.MapOutput { return v.Labels }).(pulumi.MapOutput) -} - -// (Computed) The name of the resource (string) -func (o ActiveDirectoryOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// Nested group membership enable. Default `false` (bool) -func (o ActiveDirectoryOutput) NestedGroupMembershipEnabled() pulumi.BoolOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.BoolOutput { return v.NestedGroupMembershipEnabled }).(pulumi.BoolOutput) -} - -// ActiveDirectory port. Default `389` (int) -func (o ActiveDirectoryOutput) Port() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.IntPtrOutput { return v.Port }).(pulumi.IntPtrOutput) -} - -// ActiveDirectory servers list (list) -func (o ActiveDirectoryOutput) Servers() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringArrayOutput { return v.Servers }).(pulumi.StringArrayOutput) -} - -// Service account password for access ActiveDirectory service (string) -func (o ActiveDirectoryOutput) ServiceAccountPassword() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.ServiceAccountPassword }).(pulumi.StringOutput) -} - -// Service account DN for access ActiveDirectory service (string) -func (o ActiveDirectoryOutput) ServiceAccountUsername() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.ServiceAccountUsername }).(pulumi.StringOutput) -} - -// Enable start TLS connection (bool) -func (o ActiveDirectoryOutput) StartTls() pulumi.BoolOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.BoolOutput { return v.StartTls }).(pulumi.BoolOutput) -} - -// Password for test access to ActiveDirectory service (string) -func (o ActiveDirectoryOutput) TestPassword() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.TestPassword }).(pulumi.StringOutput) -} - -// Username for test access to ActiveDirectory service (string) -func (o ActiveDirectoryOutput) TestUsername() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.TestUsername }).(pulumi.StringOutput) -} - -// Enable TLS connection (bool) -func (o ActiveDirectoryOutput) Tls() pulumi.BoolOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.BoolOutput { return v.Tls }).(pulumi.BoolOutput) -} - -// (Computed) The type of the resource (string) -func (o ActiveDirectoryOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput) -} - -// User disabled bit mask. Default `2` (int) -func (o ActiveDirectoryOutput) UserDisabledBitMask() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.IntPtrOutput { return v.UserDisabledBitMask }).(pulumi.IntPtrOutput) -} - -// User enable attribute (string) -func (o ActiveDirectoryOutput) UserEnabledAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.UserEnabledAttribute }).(pulumi.StringOutput) -} - -// User login attribute. Default `sAMAccountName` (string) -func (o ActiveDirectoryOutput) UserLoginAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.UserLoginAttribute }).(pulumi.StringOutput) -} - -// User name attribute. Default `name` (string) -func (o ActiveDirectoryOutput) UserNameAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.UserNameAttribute }).(pulumi.StringOutput) -} - -// User object class. Default `person` (string) -func (o ActiveDirectoryOutput) UserObjectClass() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.UserObjectClass }).(pulumi.StringOutput) -} - -// User search attribute. Default `sAMAccountName|sn|givenName` (string) -func (o ActiveDirectoryOutput) UserSearchAttribute() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.UserSearchAttribute }).(pulumi.StringOutput) -} - -// User search base DN (string) -func (o ActiveDirectoryOutput) UserSearchBase() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.UserSearchBase }).(pulumi.StringOutput) -} - -// User search filter (string) -func (o ActiveDirectoryOutput) UserSearchFilter() pulumi.StringOutput { - return o.ApplyT(func(v *ActiveDirectory) pulumi.StringOutput { return v.UserSearchFilter }).(pulumi.StringOutput) -} - -type ActiveDirectoryArrayOutput struct{ *pulumi.OutputState } - -func (ActiveDirectoryArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*ActiveDirectory)(nil)).Elem() -} - -func (o ActiveDirectoryArrayOutput) ToActiveDirectoryArrayOutput() ActiveDirectoryArrayOutput { - return o -} - -func (o ActiveDirectoryArrayOutput) ToActiveDirectoryArrayOutputWithContext(ctx context.Context) ActiveDirectoryArrayOutput { - return o -} - -func (o ActiveDirectoryArrayOutput) Index(i pulumi.IntInput) ActiveDirectoryOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ActiveDirectory { - return vs[0].([]*ActiveDirectory)[vs[1].(int)] - }).(ActiveDirectoryOutput) -} - -type ActiveDirectoryMapOutput struct{ *pulumi.OutputState } - -func (ActiveDirectoryMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*ActiveDirectory)(nil)).Elem() -} - -func (o ActiveDirectoryMapOutput) ToActiveDirectoryMapOutput() ActiveDirectoryMapOutput { - return o -} - -func (o ActiveDirectoryMapOutput) ToActiveDirectoryMapOutputWithContext(ctx context.Context) ActiveDirectoryMapOutput { - return o -} - -func (o ActiveDirectoryMapOutput) MapIndex(k pulumi.StringInput) ActiveDirectoryOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ActiveDirectory { - return vs[0].(map[string]*ActiveDirectory)[vs[1].(string)] - }).(ActiveDirectoryOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*ActiveDirectoryInput)(nil)).Elem(), &ActiveDirectory{}) - pulumi.RegisterInputType(reflect.TypeOf((*ActiveDirectoryArrayInput)(nil)).Elem(), ActiveDirectoryArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*ActiveDirectoryMapInput)(nil)).Elem(), ActiveDirectoryMap{}) - pulumi.RegisterOutputType(ActiveDirectoryOutput{}) - pulumi.RegisterOutputType(ActiveDirectoryArrayOutput{}) - pulumi.RegisterOutputType(ActiveDirectoryMapOutput{}) -} diff --git a/sdk/go/rancher2/app.go b/sdk/go/rancher2/app.go index e6c8b802b..e58122253 100644 --- a/sdk/go/rancher2/app.go +++ b/sdk/go/rancher2/app.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -28,7 +28,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -62,7 +62,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/appV2.go b/sdk/go/rancher2/appV2.go index a86698d1d..9a77f1e1d 100644 --- a/sdk/go/rancher2/appV2.go +++ b/sdk/go/rancher2/appV2.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -23,7 +23,7 @@ import ( // // "os" // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -54,6 +54,37 @@ import ( // } // // ``` +// ### Create an App from a Helm Chart using a different registry +// +// The `systemDefaultRegistry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead. +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := rancher2.NewAppV2(ctx, "cisBenchmark", &rancher2.AppV2Args{ +// ChartName: pulumi.String("rancher-cis-benchmark"), +// ClusterId: pulumi.String(""), +// Namespace: pulumi.String("cis-operator-system"), +// RepoName: pulumi.String("rancher-charts"), +// SystemDefaultRegistry: pulumi.String(":"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` // // ## Import // @@ -99,7 +130,7 @@ type AppV2 struct { ProjectId pulumi.StringPtrOutput `pulumi:"projectId"` // Repo name (string) RepoName pulumi.StringOutput `pulumi:"repoName"` - // (Computed) The system default registry of the app (string) + // System default registry providing images for app deployment (string) SystemDefaultRegistry pulumi.StringOutput `pulumi:"systemDefaultRegistry"` // The app v2 values yaml. Yaml format is required (string) Values pulumi.StringPtrOutput `pulumi:"values"` @@ -181,7 +212,7 @@ type appV2State struct { ProjectId *string `pulumi:"projectId"` // Repo name (string) RepoName *string `pulumi:"repoName"` - // (Computed) The system default registry of the app (string) + // System default registry providing images for app deployment (string) SystemDefaultRegistry *string `pulumi:"systemDefaultRegistry"` // The app v2 values yaml. Yaml format is required (string) Values *string `pulumi:"values"` @@ -222,7 +253,7 @@ type AppV2State struct { ProjectId pulumi.StringPtrInput // Repo name (string) RepoName pulumi.StringPtrInput - // (Computed) The system default registry of the app (string) + // System default registry providing images for app deployment (string) SystemDefaultRegistry pulumi.StringPtrInput // The app v2 values yaml. Yaml format is required (string) Values pulumi.StringPtrInput @@ -261,6 +292,8 @@ type appV2Args struct { ProjectId *string `pulumi:"projectId"` // Repo name (string) RepoName string `pulumi:"repoName"` + // System default registry providing images for app deployment (string) + SystemDefaultRegistry *string `pulumi:"systemDefaultRegistry"` // The app v2 values yaml. Yaml format is required (string) Values *string `pulumi:"values"` // Wait until app is deployed. Default: `true` (bool) @@ -295,6 +328,8 @@ type AppV2Args struct { ProjectId pulumi.StringPtrInput // Repo name (string) RepoName pulumi.StringInput + // System default registry providing images for app deployment (string) + SystemDefaultRegistry pulumi.StringPtrInput // The app v2 values yaml. Yaml format is required (string) Values pulumi.StringPtrInput // Wait until app is deployed. Default: `true` (bool) @@ -465,7 +500,7 @@ func (o AppV2Output) RepoName() pulumi.StringOutput { return o.ApplyT(func(v *AppV2) pulumi.StringOutput { return v.RepoName }).(pulumi.StringOutput) } -// (Computed) The system default registry of the app (string) +// System default registry providing images for app deployment (string) func (o AppV2Output) SystemDefaultRegistry() pulumi.StringOutput { return o.ApplyT(func(v *AppV2) pulumi.StringOutput { return v.SystemDefaultRegistry }).(pulumi.StringOutput) } diff --git a/sdk/go/rancher2/authConfigActiveDirectory.go b/sdk/go/rancher2/authConfigActiveDirectory.go index 178dfb4a7..2e337d10b 100644 --- a/sdk/go/rancher2/authConfigActiveDirectory.go +++ b/sdk/go/rancher2/authConfigActiveDirectory.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -115,12 +115,6 @@ func NewAuthConfigActiveDirectory(ctx *pulumi.Context, if args.UserSearchBase == nil { return nil, errors.New("invalid value for required argument 'UserSearchBase'") } - aliases := pulumi.Aliases([]pulumi.Alias{ - { - Type: pulumi.String("rancher2:index/activeDirectory:ActiveDirectory"), - }, - }) - opts = append(opts, aliases) if args.Certificate != nil { args.Certificate = pulumi.ToSecret(args.Certificate).(pulumi.StringPtrInput) } diff --git a/sdk/go/rancher2/authConfigAdfs.go b/sdk/go/rancher2/authConfigAdfs.go index 7a589592c..fe1a17934 100644 --- a/sdk/go/rancher2/authConfigAdfs.go +++ b/sdk/go/rancher2/authConfigAdfs.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -23,7 +23,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/authConfigAzureAd.go b/sdk/go/rancher2/authConfigAzureAd.go index 7023aef5a..e76d29b3c 100644 --- a/sdk/go/rancher2/authConfigAzureAd.go +++ b/sdk/go/rancher2/authConfigAzureAd.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -19,7 +19,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/authConfigFreeIpa.go b/sdk/go/rancher2/authConfigFreeIpa.go index be2806278..748eab826 100644 --- a/sdk/go/rancher2/authConfigFreeIpa.go +++ b/sdk/go/rancher2/authConfigFreeIpa.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/authConfigGithub.go b/sdk/go/rancher2/authConfigGithub.go index 2dafd16eb..62d0b0cf7 100644 --- a/sdk/go/rancher2/authConfigGithub.go +++ b/sdk/go/rancher2/authConfigGithub.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -23,7 +23,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/authConfigKeycloak.go b/sdk/go/rancher2/authConfigKeycloak.go index 1016ed675..2af039fe6 100644 --- a/sdk/go/rancher2/authConfigKeycloak.go +++ b/sdk/go/rancher2/authConfigKeycloak.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -23,7 +23,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/authConfigOkta.go b/sdk/go/rancher2/authConfigOkta.go index 255d24539..27d6c44ec 100644 --- a/sdk/go/rancher2/authConfigOkta.go +++ b/sdk/go/rancher2/authConfigOkta.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -23,7 +23,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/authConfigOpenLdap.go b/sdk/go/rancher2/authConfigOpenLdap.go index 343b55935..9603e8947 100644 --- a/sdk/go/rancher2/authConfigOpenLdap.go +++ b/sdk/go/rancher2/authConfigOpenLdap.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/authConfigPing.go b/sdk/go/rancher2/authConfigPing.go index 9a2c2fb68..0d4e9427a 100644 --- a/sdk/go/rancher2/authConfigPing.go +++ b/sdk/go/rancher2/authConfigPing.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -23,7 +23,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/bootstrap.go b/sdk/go/rancher2/bootstrap.go index cdaf452c2..feb28af3c 100644 --- a/sdk/go/rancher2/bootstrap.go +++ b/sdk/go/rancher2/bootstrap.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -18,7 +18,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -43,7 +43,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -69,7 +69,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/catalog.go b/sdk/go/rancher2/catalog.go index e9f747bc8..337a46e90 100644 --- a/sdk/go/rancher2/catalog.go +++ b/sdk/go/rancher2/catalog.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/catalogV2.go b/sdk/go/rancher2/catalogV2.go index 40b495b8d..34ad7c18c 100644 --- a/sdk/go/rancher2/catalogV2.go +++ b/sdk/go/rancher2/catalogV2.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -28,7 +28,7 @@ type CatalogV2 struct { // Annotations for the catalog v2 (map) Annotations pulumi.MapOutput `pulumi:"annotations"` - // PEM encoded CA bundle which will be used to validate the repo's certificate (string) + // CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) CaBundle pulumi.StringPtrOutput `pulumi:"caBundle"` // The cluster id of the catalog V2 (string) ClusterId pulumi.StringOutput `pulumi:"clusterId"` @@ -93,7 +93,7 @@ func GetCatalogV2(ctx *pulumi.Context, type catalogV2State struct { // Annotations for the catalog v2 (map) Annotations map[string]interface{} `pulumi:"annotations"` - // PEM encoded CA bundle which will be used to validate the repo's certificate (string) + // CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) CaBundle *string `pulumi:"caBundle"` // The cluster id of the catalog V2 (string) ClusterId *string `pulumi:"clusterId"` @@ -126,7 +126,7 @@ type catalogV2State struct { type CatalogV2State struct { // Annotations for the catalog v2 (map) Annotations pulumi.MapInput - // PEM encoded CA bundle which will be used to validate the repo's certificate (string) + // CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) CaBundle pulumi.StringPtrInput // The cluster id of the catalog V2 (string) ClusterId pulumi.StringPtrInput @@ -163,7 +163,7 @@ func (CatalogV2State) ElementType() reflect.Type { type catalogV2Args struct { // Annotations for the catalog v2 (map) Annotations map[string]interface{} `pulumi:"annotations"` - // PEM encoded CA bundle which will be used to validate the repo's certificate (string) + // CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) CaBundle *string `pulumi:"caBundle"` // The cluster id of the catalog V2 (string) ClusterId string `pulumi:"clusterId"` @@ -195,7 +195,7 @@ type catalogV2Args struct { type CatalogV2Args struct { // Annotations for the catalog v2 (map) Annotations pulumi.MapInput - // PEM encoded CA bundle which will be used to validate the repo's certificate (string) + // CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) CaBundle pulumi.StringPtrInput // The cluster id of the catalog V2 (string) ClusterId pulumi.StringInput @@ -315,7 +315,7 @@ func (o CatalogV2Output) Annotations() pulumi.MapOutput { return o.ApplyT(func(v *CatalogV2) pulumi.MapOutput { return v.Annotations }).(pulumi.MapOutput) } -// PEM encoded CA bundle which will be used to validate the repo's certificate (string) +// CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) func (o CatalogV2Output) CaBundle() pulumi.StringPtrOutput { return o.ApplyT(func(v *CatalogV2) pulumi.StringPtrOutput { return v.CaBundle }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/rancher2/certificate.go b/sdk/go/rancher2/certificate.go index 0999471c6..4e7a69bf2 100644 --- a/sdk/go/rancher2/certificate.go +++ b/sdk/go/rancher2/certificate.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/cloudCredential.go b/sdk/go/rancher2/cloudCredential.go index 4eebc7350..cff02d4a4 100644 --- a/sdk/go/rancher2/cloudCredential.go +++ b/sdk/go/rancher2/cloudCredential.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -22,7 +22,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -50,7 +50,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/cluster.go b/sdk/go/rancher2/cluster.go index 7e6bc10e2..f4acdb669 100644 --- a/sdk/go/rancher2/cluster.go +++ b/sdk/go/rancher2/cluster.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -25,7 +25,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -79,7 +79,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -199,7 +199,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -259,7 +259,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -318,7 +318,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -387,7 +387,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -454,7 +454,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -495,7 +495,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -556,7 +556,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -615,7 +615,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/clusterAlertGroup.go b/sdk/go/rancher2/clusterAlertGroup.go index 9d728f68e..51d4bf70f 100644 --- a/sdk/go/rancher2/clusterAlertGroup.go +++ b/sdk/go/rancher2/clusterAlertGroup.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -85,12 +85,6 @@ func NewClusterAlertGroup(ctx *pulumi.Context, if args.ClusterId == nil { return nil, errors.New("invalid value for required argument 'ClusterId'") } - aliases := pulumi.Aliases([]pulumi.Alias{ - { - Type: pulumi.String("rancher2:index/clusterAlterGroup:ClusterAlterGroup"), - }, - }) - opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource ClusterAlertGroup err := ctx.RegisterResource("rancher2:index/clusterAlertGroup:ClusterAlertGroup", name, args, &resource, opts...) diff --git a/sdk/go/rancher2/clusterAlertRule.go b/sdk/go/rancher2/clusterAlertRule.go index 130af0196..f090fefb9 100644 --- a/sdk/go/rancher2/clusterAlertRule.go +++ b/sdk/go/rancher2/clusterAlertRule.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -107,12 +107,6 @@ func NewClusterAlertRule(ctx *pulumi.Context, if args.GroupId == nil { return nil, errors.New("invalid value for required argument 'GroupId'") } - aliases := pulumi.Aliases([]pulumi.Alias{ - { - Type: pulumi.String("rancher2:index/clusterAlterRule:ClusterAlterRule"), - }, - }) - opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource ClusterAlertRule err := ctx.RegisterResource("rancher2:index/clusterAlertRule:ClusterAlertRule", name, args, &resource, opts...) diff --git a/sdk/go/rancher2/clusterAlterGroup.go b/sdk/go/rancher2/clusterAlterGroup.go deleted file mode 100644 index bd0e1c977..000000000 --- a/sdk/go/rancher2/clusterAlterGroup.go +++ /dev/null @@ -1,380 +0,0 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. -// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** - -package rancher2 - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -// Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := rancher2.NewClusterAlertGroup(ctx, "foo", &rancher2.ClusterAlertGroupArgs{ -// ClusterId: pulumi.String(""), -// Description: pulumi.String("Terraform cluster alert group"), -// GroupIntervalSeconds: pulumi.Int(300), -// RepeatIntervalSeconds: pulumi.Int(3600), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// -// ## Import -// -// # Cluster Alert Group can be imported using the Rancher cluster alert group ID -// -// ```sh -// -// $ pulumi import rancher2:index/clusterAlterGroup:ClusterAlterGroup foo <CLUSTER_ALERT_GROUP_ID> -// -// ``` -// -// Deprecated: rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup -type ClusterAlterGroup struct { - pulumi.CustomResourceState - - // The cluster alert group annotations (map) - Annotations pulumi.MapOutput `pulumi:"annotations"` - // The cluster id where create cluster alert group (string) - ClusterId pulumi.StringOutput `pulumi:"clusterId"` - // The cluster alert group description (string) - Description pulumi.StringPtrOutput `pulumi:"description"` - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds pulumi.IntPtrOutput `pulumi:"groupIntervalSeconds"` - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds pulumi.IntPtrOutput `pulumi:"groupWaitSeconds"` - // The cluster alert group labels (map) - Labels pulumi.MapOutput `pulumi:"labels"` - // The cluster alert group name (string) - Name pulumi.StringOutput `pulumi:"name"` - // The cluster alert group recipients (list) - Recipients ClusterAlterGroupRecipientArrayOutput `pulumi:"recipients"` - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds pulumi.IntPtrOutput `pulumi:"repeatIntervalSeconds"` -} - -// NewClusterAlterGroup registers a new resource with the given unique name, arguments, and options. -func NewClusterAlterGroup(ctx *pulumi.Context, - name string, args *ClusterAlterGroupArgs, opts ...pulumi.ResourceOption) (*ClusterAlterGroup, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.ClusterId == nil { - return nil, errors.New("invalid value for required argument 'ClusterId'") - } - opts = internal.PkgResourceDefaultOpts(opts) - var resource ClusterAlterGroup - err := ctx.RegisterResource("rancher2:index/clusterAlterGroup:ClusterAlterGroup", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetClusterAlterGroup gets an existing ClusterAlterGroup resource's state with the given name, ID, and optional -// state properties that are used to uniquely qualify the lookup (nil if not required). -func GetClusterAlterGroup(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *ClusterAlterGroupState, opts ...pulumi.ResourceOption) (*ClusterAlterGroup, error) { - var resource ClusterAlterGroup - err := ctx.ReadResource("rancher2:index/clusterAlterGroup:ClusterAlterGroup", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering ClusterAlterGroup resources. -type clusterAlterGroupState struct { - // The cluster alert group annotations (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // The cluster id where create cluster alert group (string) - ClusterId *string `pulumi:"clusterId"` - // The cluster alert group description (string) - Description *string `pulumi:"description"` - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds *int `pulumi:"groupIntervalSeconds"` - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds *int `pulumi:"groupWaitSeconds"` - // The cluster alert group labels (map) - Labels map[string]interface{} `pulumi:"labels"` - // The cluster alert group name (string) - Name *string `pulumi:"name"` - // The cluster alert group recipients (list) - Recipients []ClusterAlterGroupRecipient `pulumi:"recipients"` - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds *int `pulumi:"repeatIntervalSeconds"` -} - -type ClusterAlterGroupState struct { - // The cluster alert group annotations (map) - Annotations pulumi.MapInput - // The cluster id where create cluster alert group (string) - ClusterId pulumi.StringPtrInput - // The cluster alert group description (string) - Description pulumi.StringPtrInput - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds pulumi.IntPtrInput - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds pulumi.IntPtrInput - // The cluster alert group labels (map) - Labels pulumi.MapInput - // The cluster alert group name (string) - Name pulumi.StringPtrInput - // The cluster alert group recipients (list) - Recipients ClusterAlterGroupRecipientArrayInput - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds pulumi.IntPtrInput -} - -func (ClusterAlterGroupState) ElementType() reflect.Type { - return reflect.TypeOf((*clusterAlterGroupState)(nil)).Elem() -} - -type clusterAlterGroupArgs struct { - // The cluster alert group annotations (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // The cluster id where create cluster alert group (string) - ClusterId string `pulumi:"clusterId"` - // The cluster alert group description (string) - Description *string `pulumi:"description"` - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds *int `pulumi:"groupIntervalSeconds"` - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds *int `pulumi:"groupWaitSeconds"` - // The cluster alert group labels (map) - Labels map[string]interface{} `pulumi:"labels"` - // The cluster alert group name (string) - Name *string `pulumi:"name"` - // The cluster alert group recipients (list) - Recipients []ClusterAlterGroupRecipient `pulumi:"recipients"` - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds *int `pulumi:"repeatIntervalSeconds"` -} - -// The set of arguments for constructing a ClusterAlterGroup resource. -type ClusterAlterGroupArgs struct { - // The cluster alert group annotations (map) - Annotations pulumi.MapInput - // The cluster id where create cluster alert group (string) - ClusterId pulumi.StringInput - // The cluster alert group description (string) - Description pulumi.StringPtrInput - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds pulumi.IntPtrInput - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds pulumi.IntPtrInput - // The cluster alert group labels (map) - Labels pulumi.MapInput - // The cluster alert group name (string) - Name pulumi.StringPtrInput - // The cluster alert group recipients (list) - Recipients ClusterAlterGroupRecipientArrayInput - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds pulumi.IntPtrInput -} - -func (ClusterAlterGroupArgs) ElementType() reflect.Type { - return reflect.TypeOf((*clusterAlterGroupArgs)(nil)).Elem() -} - -type ClusterAlterGroupInput interface { - pulumi.Input - - ToClusterAlterGroupOutput() ClusterAlterGroupOutput - ToClusterAlterGroupOutputWithContext(ctx context.Context) ClusterAlterGroupOutput -} - -func (*ClusterAlterGroup) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterGroup)(nil)).Elem() -} - -func (i *ClusterAlterGroup) ToClusterAlterGroupOutput() ClusterAlterGroupOutput { - return i.ToClusterAlterGroupOutputWithContext(context.Background()) -} - -func (i *ClusterAlterGroup) ToClusterAlterGroupOutputWithContext(ctx context.Context) ClusterAlterGroupOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterGroupOutput) -} - -// ClusterAlterGroupArrayInput is an input type that accepts ClusterAlterGroupArray and ClusterAlterGroupArrayOutput values. -// You can construct a concrete instance of `ClusterAlterGroupArrayInput` via: -// -// ClusterAlterGroupArray{ ClusterAlterGroupArgs{...} } -type ClusterAlterGroupArrayInput interface { - pulumi.Input - - ToClusterAlterGroupArrayOutput() ClusterAlterGroupArrayOutput - ToClusterAlterGroupArrayOutputWithContext(context.Context) ClusterAlterGroupArrayOutput -} - -type ClusterAlterGroupArray []ClusterAlterGroupInput - -func (ClusterAlterGroupArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*ClusterAlterGroup)(nil)).Elem() -} - -func (i ClusterAlterGroupArray) ToClusterAlterGroupArrayOutput() ClusterAlterGroupArrayOutput { - return i.ToClusterAlterGroupArrayOutputWithContext(context.Background()) -} - -func (i ClusterAlterGroupArray) ToClusterAlterGroupArrayOutputWithContext(ctx context.Context) ClusterAlterGroupArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterGroupArrayOutput) -} - -// ClusterAlterGroupMapInput is an input type that accepts ClusterAlterGroupMap and ClusterAlterGroupMapOutput values. -// You can construct a concrete instance of `ClusterAlterGroupMapInput` via: -// -// ClusterAlterGroupMap{ "key": ClusterAlterGroupArgs{...} } -type ClusterAlterGroupMapInput interface { - pulumi.Input - - ToClusterAlterGroupMapOutput() ClusterAlterGroupMapOutput - ToClusterAlterGroupMapOutputWithContext(context.Context) ClusterAlterGroupMapOutput -} - -type ClusterAlterGroupMap map[string]ClusterAlterGroupInput - -func (ClusterAlterGroupMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*ClusterAlterGroup)(nil)).Elem() -} - -func (i ClusterAlterGroupMap) ToClusterAlterGroupMapOutput() ClusterAlterGroupMapOutput { - return i.ToClusterAlterGroupMapOutputWithContext(context.Background()) -} - -func (i ClusterAlterGroupMap) ToClusterAlterGroupMapOutputWithContext(ctx context.Context) ClusterAlterGroupMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterGroupMapOutput) -} - -type ClusterAlterGroupOutput struct{ *pulumi.OutputState } - -func (ClusterAlterGroupOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterGroup)(nil)).Elem() -} - -func (o ClusterAlterGroupOutput) ToClusterAlterGroupOutput() ClusterAlterGroupOutput { - return o -} - -func (o ClusterAlterGroupOutput) ToClusterAlterGroupOutputWithContext(ctx context.Context) ClusterAlterGroupOutput { - return o -} - -// The cluster alert group annotations (map) -func (o ClusterAlterGroupOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterAlterGroup) pulumi.MapOutput { return v.Annotations }).(pulumi.MapOutput) -} - -// The cluster id where create cluster alert group (string) -func (o ClusterAlterGroupOutput) ClusterId() pulumi.StringOutput { - return o.ApplyT(func(v *ClusterAlterGroup) pulumi.StringOutput { return v.ClusterId }).(pulumi.StringOutput) -} - -// The cluster alert group description (string) -func (o ClusterAlterGroupOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterGroup) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) -} - -// The cluster alert group interval seconds. Default: `180` (int) -func (o ClusterAlterGroupOutput) GroupIntervalSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterAlterGroup) pulumi.IntPtrOutput { return v.GroupIntervalSeconds }).(pulumi.IntPtrOutput) -} - -// The cluster alert group wait seconds. Default: `180` (int) -func (o ClusterAlterGroupOutput) GroupWaitSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterAlterGroup) pulumi.IntPtrOutput { return v.GroupWaitSeconds }).(pulumi.IntPtrOutput) -} - -// The cluster alert group labels (map) -func (o ClusterAlterGroupOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterAlterGroup) pulumi.MapOutput { return v.Labels }).(pulumi.MapOutput) -} - -// The cluster alert group name (string) -func (o ClusterAlterGroupOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *ClusterAlterGroup) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// The cluster alert group recipients (list) -func (o ClusterAlterGroupOutput) Recipients() ClusterAlterGroupRecipientArrayOutput { - return o.ApplyT(func(v *ClusterAlterGroup) ClusterAlterGroupRecipientArrayOutput { return v.Recipients }).(ClusterAlterGroupRecipientArrayOutput) -} - -// The cluster alert group wait seconds. Default: `3600` (int) -func (o ClusterAlterGroupOutput) RepeatIntervalSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterAlterGroup) pulumi.IntPtrOutput { return v.RepeatIntervalSeconds }).(pulumi.IntPtrOutput) -} - -type ClusterAlterGroupArrayOutput struct{ *pulumi.OutputState } - -func (ClusterAlterGroupArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*ClusterAlterGroup)(nil)).Elem() -} - -func (o ClusterAlterGroupArrayOutput) ToClusterAlterGroupArrayOutput() ClusterAlterGroupArrayOutput { - return o -} - -func (o ClusterAlterGroupArrayOutput) ToClusterAlterGroupArrayOutputWithContext(ctx context.Context) ClusterAlterGroupArrayOutput { - return o -} - -func (o ClusterAlterGroupArrayOutput) Index(i pulumi.IntInput) ClusterAlterGroupOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClusterAlterGroup { - return vs[0].([]*ClusterAlterGroup)[vs[1].(int)] - }).(ClusterAlterGroupOutput) -} - -type ClusterAlterGroupMapOutput struct{ *pulumi.OutputState } - -func (ClusterAlterGroupMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*ClusterAlterGroup)(nil)).Elem() -} - -func (o ClusterAlterGroupMapOutput) ToClusterAlterGroupMapOutput() ClusterAlterGroupMapOutput { - return o -} - -func (o ClusterAlterGroupMapOutput) ToClusterAlterGroupMapOutputWithContext(ctx context.Context) ClusterAlterGroupMapOutput { - return o -} - -func (o ClusterAlterGroupMapOutput) MapIndex(k pulumi.StringInput) ClusterAlterGroupOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClusterAlterGroup { - return vs[0].(map[string]*ClusterAlterGroup)[vs[1].(string)] - }).(ClusterAlterGroupOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterGroupInput)(nil)).Elem(), &ClusterAlterGroup{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterGroupArrayInput)(nil)).Elem(), ClusterAlterGroupArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterGroupMapInput)(nil)).Elem(), ClusterAlterGroupMap{}) - pulumi.RegisterOutputType(ClusterAlterGroupOutput{}) - pulumi.RegisterOutputType(ClusterAlterGroupArrayOutput{}) - pulumi.RegisterOutputType(ClusterAlterGroupMapOutput{}) -} diff --git a/sdk/go/rancher2/clusterAlterRule.go b/sdk/go/rancher2/clusterAlterRule.go deleted file mode 100644 index 3f57c504d..000000000 --- a/sdk/go/rancher2/clusterAlterRule.go +++ /dev/null @@ -1,458 +0,0 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. -// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** - -package rancher2 - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -// Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := rancher2.NewClusterAlertGroup(ctx, "foo", &rancher2.ClusterAlertGroupArgs{ -// ClusterId: pulumi.String(""), -// Description: pulumi.String("Terraform cluster alert group"), -// GroupIntervalSeconds: pulumi.Int(300), -// RepeatIntervalSeconds: pulumi.Int(3600), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// -// ## Import -// -// # Cluster Alert Group can be imported using the Rancher cluster alert group ID -// -// ```sh -// -// $ pulumi import rancher2:index/clusterAlterRule:ClusterAlterRule foo <CLUSTER_ALERT_GROUP_ID> -// -// ``` -// -// Deprecated: rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule -type ClusterAlterRule struct { - pulumi.CustomResourceState - - // The cluster alert group annotations (map) - Annotations pulumi.MapOutput `pulumi:"annotations"` - // The cluster id where create cluster alert group (string) - ClusterId pulumi.StringOutput `pulumi:"clusterId"` - // Alert event rule - EventRule ClusterAlterRuleEventRulePtrOutput `pulumi:"eventRule"` - // Alert rule group ID - GroupId pulumi.StringOutput `pulumi:"groupId"` - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds pulumi.IntPtrOutput `pulumi:"groupIntervalSeconds"` - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds pulumi.IntPtrOutput `pulumi:"groupWaitSeconds"` - // Alert rule inherited - Inherited pulumi.BoolPtrOutput `pulumi:"inherited"` - // The cluster alert group labels (map) - Labels pulumi.MapOutput `pulumi:"labels"` - // Alert metric rule - MetricRule ClusterAlterRuleMetricRulePtrOutput `pulumi:"metricRule"` - // The cluster alert group name (string) - Name pulumi.StringOutput `pulumi:"name"` - // Alert node rule - NodeRule ClusterAlterRuleNodeRulePtrOutput `pulumi:"nodeRule"` - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds pulumi.IntPtrOutput `pulumi:"repeatIntervalSeconds"` - // Alert rule severity - Severity pulumi.StringPtrOutput `pulumi:"severity"` - // Alert system service rule - SystemServiceRule ClusterAlterRuleSystemServiceRulePtrOutput `pulumi:"systemServiceRule"` -} - -// NewClusterAlterRule registers a new resource with the given unique name, arguments, and options. -func NewClusterAlterRule(ctx *pulumi.Context, - name string, args *ClusterAlterRuleArgs, opts ...pulumi.ResourceOption) (*ClusterAlterRule, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.ClusterId == nil { - return nil, errors.New("invalid value for required argument 'ClusterId'") - } - if args.GroupId == nil { - return nil, errors.New("invalid value for required argument 'GroupId'") - } - opts = internal.PkgResourceDefaultOpts(opts) - var resource ClusterAlterRule - err := ctx.RegisterResource("rancher2:index/clusterAlterRule:ClusterAlterRule", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetClusterAlterRule gets an existing ClusterAlterRule resource's state with the given name, ID, and optional -// state properties that are used to uniquely qualify the lookup (nil if not required). -func GetClusterAlterRule(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *ClusterAlterRuleState, opts ...pulumi.ResourceOption) (*ClusterAlterRule, error) { - var resource ClusterAlterRule - err := ctx.ReadResource("rancher2:index/clusterAlterRule:ClusterAlterRule", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering ClusterAlterRule resources. -type clusterAlterRuleState struct { - // The cluster alert group annotations (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // The cluster id where create cluster alert group (string) - ClusterId *string `pulumi:"clusterId"` - // Alert event rule - EventRule *ClusterAlterRuleEventRule `pulumi:"eventRule"` - // Alert rule group ID - GroupId *string `pulumi:"groupId"` - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds *int `pulumi:"groupIntervalSeconds"` - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds *int `pulumi:"groupWaitSeconds"` - // Alert rule inherited - Inherited *bool `pulumi:"inherited"` - // The cluster alert group labels (map) - Labels map[string]interface{} `pulumi:"labels"` - // Alert metric rule - MetricRule *ClusterAlterRuleMetricRule `pulumi:"metricRule"` - // The cluster alert group name (string) - Name *string `pulumi:"name"` - // Alert node rule - NodeRule *ClusterAlterRuleNodeRule `pulumi:"nodeRule"` - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds *int `pulumi:"repeatIntervalSeconds"` - // Alert rule severity - Severity *string `pulumi:"severity"` - // Alert system service rule - SystemServiceRule *ClusterAlterRuleSystemServiceRule `pulumi:"systemServiceRule"` -} - -type ClusterAlterRuleState struct { - // The cluster alert group annotations (map) - Annotations pulumi.MapInput - // The cluster id where create cluster alert group (string) - ClusterId pulumi.StringPtrInput - // Alert event rule - EventRule ClusterAlterRuleEventRulePtrInput - // Alert rule group ID - GroupId pulumi.StringPtrInput - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds pulumi.IntPtrInput - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds pulumi.IntPtrInput - // Alert rule inherited - Inherited pulumi.BoolPtrInput - // The cluster alert group labels (map) - Labels pulumi.MapInput - // Alert metric rule - MetricRule ClusterAlterRuleMetricRulePtrInput - // The cluster alert group name (string) - Name pulumi.StringPtrInput - // Alert node rule - NodeRule ClusterAlterRuleNodeRulePtrInput - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds pulumi.IntPtrInput - // Alert rule severity - Severity pulumi.StringPtrInput - // Alert system service rule - SystemServiceRule ClusterAlterRuleSystemServiceRulePtrInput -} - -func (ClusterAlterRuleState) ElementType() reflect.Type { - return reflect.TypeOf((*clusterAlterRuleState)(nil)).Elem() -} - -type clusterAlterRuleArgs struct { - // The cluster alert group annotations (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // The cluster id where create cluster alert group (string) - ClusterId string `pulumi:"clusterId"` - // Alert event rule - EventRule *ClusterAlterRuleEventRule `pulumi:"eventRule"` - // Alert rule group ID - GroupId string `pulumi:"groupId"` - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds *int `pulumi:"groupIntervalSeconds"` - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds *int `pulumi:"groupWaitSeconds"` - // Alert rule inherited - Inherited *bool `pulumi:"inherited"` - // The cluster alert group labels (map) - Labels map[string]interface{} `pulumi:"labels"` - // Alert metric rule - MetricRule *ClusterAlterRuleMetricRule `pulumi:"metricRule"` - // The cluster alert group name (string) - Name *string `pulumi:"name"` - // Alert node rule - NodeRule *ClusterAlterRuleNodeRule `pulumi:"nodeRule"` - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds *int `pulumi:"repeatIntervalSeconds"` - // Alert rule severity - Severity *string `pulumi:"severity"` - // Alert system service rule - SystemServiceRule *ClusterAlterRuleSystemServiceRule `pulumi:"systemServiceRule"` -} - -// The set of arguments for constructing a ClusterAlterRule resource. -type ClusterAlterRuleArgs struct { - // The cluster alert group annotations (map) - Annotations pulumi.MapInput - // The cluster id where create cluster alert group (string) - ClusterId pulumi.StringInput - // Alert event rule - EventRule ClusterAlterRuleEventRulePtrInput - // Alert rule group ID - GroupId pulumi.StringInput - // The cluster alert group interval seconds. Default: `180` (int) - GroupIntervalSeconds pulumi.IntPtrInput - // The cluster alert group wait seconds. Default: `180` (int) - GroupWaitSeconds pulumi.IntPtrInput - // Alert rule inherited - Inherited pulumi.BoolPtrInput - // The cluster alert group labels (map) - Labels pulumi.MapInput - // Alert metric rule - MetricRule ClusterAlterRuleMetricRulePtrInput - // The cluster alert group name (string) - Name pulumi.StringPtrInput - // Alert node rule - NodeRule ClusterAlterRuleNodeRulePtrInput - // The cluster alert group wait seconds. Default: `3600` (int) - RepeatIntervalSeconds pulumi.IntPtrInput - // Alert rule severity - Severity pulumi.StringPtrInput - // Alert system service rule - SystemServiceRule ClusterAlterRuleSystemServiceRulePtrInput -} - -func (ClusterAlterRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*clusterAlterRuleArgs)(nil)).Elem() -} - -type ClusterAlterRuleInput interface { - pulumi.Input - - ToClusterAlterRuleOutput() ClusterAlterRuleOutput - ToClusterAlterRuleOutputWithContext(ctx context.Context) ClusterAlterRuleOutput -} - -func (*ClusterAlterRule) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRule)(nil)).Elem() -} - -func (i *ClusterAlterRule) ToClusterAlterRuleOutput() ClusterAlterRuleOutput { - return i.ToClusterAlterRuleOutputWithContext(context.Background()) -} - -func (i *ClusterAlterRule) ToClusterAlterRuleOutputWithContext(ctx context.Context) ClusterAlterRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleOutput) -} - -// ClusterAlterRuleArrayInput is an input type that accepts ClusterAlterRuleArray and ClusterAlterRuleArrayOutput values. -// You can construct a concrete instance of `ClusterAlterRuleArrayInput` via: -// -// ClusterAlterRuleArray{ ClusterAlterRuleArgs{...} } -type ClusterAlterRuleArrayInput interface { - pulumi.Input - - ToClusterAlterRuleArrayOutput() ClusterAlterRuleArrayOutput - ToClusterAlterRuleArrayOutputWithContext(context.Context) ClusterAlterRuleArrayOutput -} - -type ClusterAlterRuleArray []ClusterAlterRuleInput - -func (ClusterAlterRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*ClusterAlterRule)(nil)).Elem() -} - -func (i ClusterAlterRuleArray) ToClusterAlterRuleArrayOutput() ClusterAlterRuleArrayOutput { - return i.ToClusterAlterRuleArrayOutputWithContext(context.Background()) -} - -func (i ClusterAlterRuleArray) ToClusterAlterRuleArrayOutputWithContext(ctx context.Context) ClusterAlterRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleArrayOutput) -} - -// ClusterAlterRuleMapInput is an input type that accepts ClusterAlterRuleMap and ClusterAlterRuleMapOutput values. -// You can construct a concrete instance of `ClusterAlterRuleMapInput` via: -// -// ClusterAlterRuleMap{ "key": ClusterAlterRuleArgs{...} } -type ClusterAlterRuleMapInput interface { - pulumi.Input - - ToClusterAlterRuleMapOutput() ClusterAlterRuleMapOutput - ToClusterAlterRuleMapOutputWithContext(context.Context) ClusterAlterRuleMapOutput -} - -type ClusterAlterRuleMap map[string]ClusterAlterRuleInput - -func (ClusterAlterRuleMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*ClusterAlterRule)(nil)).Elem() -} - -func (i ClusterAlterRuleMap) ToClusterAlterRuleMapOutput() ClusterAlterRuleMapOutput { - return i.ToClusterAlterRuleMapOutputWithContext(context.Background()) -} - -func (i ClusterAlterRuleMap) ToClusterAlterRuleMapOutputWithContext(ctx context.Context) ClusterAlterRuleMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleMapOutput) -} - -type ClusterAlterRuleOutput struct{ *pulumi.OutputState } - -func (ClusterAlterRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRule)(nil)).Elem() -} - -func (o ClusterAlterRuleOutput) ToClusterAlterRuleOutput() ClusterAlterRuleOutput { - return o -} - -func (o ClusterAlterRuleOutput) ToClusterAlterRuleOutputWithContext(ctx context.Context) ClusterAlterRuleOutput { - return o -} - -// The cluster alert group annotations (map) -func (o ClusterAlterRuleOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.MapOutput { return v.Annotations }).(pulumi.MapOutput) -} - -// The cluster id where create cluster alert group (string) -func (o ClusterAlterRuleOutput) ClusterId() pulumi.StringOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.StringOutput { return v.ClusterId }).(pulumi.StringOutput) -} - -// Alert event rule -func (o ClusterAlterRuleOutput) EventRule() ClusterAlterRuleEventRulePtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) ClusterAlterRuleEventRulePtrOutput { return v.EventRule }).(ClusterAlterRuleEventRulePtrOutput) -} - -// Alert rule group ID -func (o ClusterAlterRuleOutput) GroupId() pulumi.StringOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.StringOutput { return v.GroupId }).(pulumi.StringOutput) -} - -// The cluster alert group interval seconds. Default: `180` (int) -func (o ClusterAlterRuleOutput) GroupIntervalSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.IntPtrOutput { return v.GroupIntervalSeconds }).(pulumi.IntPtrOutput) -} - -// The cluster alert group wait seconds. Default: `180` (int) -func (o ClusterAlterRuleOutput) GroupWaitSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.IntPtrOutput { return v.GroupWaitSeconds }).(pulumi.IntPtrOutput) -} - -// Alert rule inherited -func (o ClusterAlterRuleOutput) Inherited() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.BoolPtrOutput { return v.Inherited }).(pulumi.BoolPtrOutput) -} - -// The cluster alert group labels (map) -func (o ClusterAlterRuleOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.MapOutput { return v.Labels }).(pulumi.MapOutput) -} - -// Alert metric rule -func (o ClusterAlterRuleOutput) MetricRule() ClusterAlterRuleMetricRulePtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) ClusterAlterRuleMetricRulePtrOutput { return v.MetricRule }).(ClusterAlterRuleMetricRulePtrOutput) -} - -// The cluster alert group name (string) -func (o ClusterAlterRuleOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// Alert node rule -func (o ClusterAlterRuleOutput) NodeRule() ClusterAlterRuleNodeRulePtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) ClusterAlterRuleNodeRulePtrOutput { return v.NodeRule }).(ClusterAlterRuleNodeRulePtrOutput) -} - -// The cluster alert group wait seconds. Default: `3600` (int) -func (o ClusterAlterRuleOutput) RepeatIntervalSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.IntPtrOutput { return v.RepeatIntervalSeconds }).(pulumi.IntPtrOutput) -} - -// Alert rule severity -func (o ClusterAlterRuleOutput) Severity() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) pulumi.StringPtrOutput { return v.Severity }).(pulumi.StringPtrOutput) -} - -// Alert system service rule -func (o ClusterAlterRuleOutput) SystemServiceRule() ClusterAlterRuleSystemServiceRulePtrOutput { - return o.ApplyT(func(v *ClusterAlterRule) ClusterAlterRuleSystemServiceRulePtrOutput { return v.SystemServiceRule }).(ClusterAlterRuleSystemServiceRulePtrOutput) -} - -type ClusterAlterRuleArrayOutput struct{ *pulumi.OutputState } - -func (ClusterAlterRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*ClusterAlterRule)(nil)).Elem() -} - -func (o ClusterAlterRuleArrayOutput) ToClusterAlterRuleArrayOutput() ClusterAlterRuleArrayOutput { - return o -} - -func (o ClusterAlterRuleArrayOutput) ToClusterAlterRuleArrayOutputWithContext(ctx context.Context) ClusterAlterRuleArrayOutput { - return o -} - -func (o ClusterAlterRuleArrayOutput) Index(i pulumi.IntInput) ClusterAlterRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClusterAlterRule { - return vs[0].([]*ClusterAlterRule)[vs[1].(int)] - }).(ClusterAlterRuleOutput) -} - -type ClusterAlterRuleMapOutput struct{ *pulumi.OutputState } - -func (ClusterAlterRuleMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*ClusterAlterRule)(nil)).Elem() -} - -func (o ClusterAlterRuleMapOutput) ToClusterAlterRuleMapOutput() ClusterAlterRuleMapOutput { - return o -} - -func (o ClusterAlterRuleMapOutput) ToClusterAlterRuleMapOutputWithContext(ctx context.Context) ClusterAlterRuleMapOutput { - return o -} - -func (o ClusterAlterRuleMapOutput) MapIndex(k pulumi.StringInput) ClusterAlterRuleOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClusterAlterRule { - return vs[0].(map[string]*ClusterAlterRule)[vs[1].(string)] - }).(ClusterAlterRuleOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleInput)(nil)).Elem(), &ClusterAlterRule{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleArrayInput)(nil)).Elem(), ClusterAlterRuleArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleMapInput)(nil)).Elem(), ClusterAlterRuleMap{}) - pulumi.RegisterOutputType(ClusterAlterRuleOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleArrayOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleMapOutput{}) -} diff --git a/sdk/go/rancher2/clusterDriver.go b/sdk/go/rancher2/clusterDriver.go index be8f99a76..b2e42e4ff 100644 --- a/sdk/go/rancher2/clusterDriver.go +++ b/sdk/go/rancher2/clusterDriver.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/clusterRoleTemplateBinding.go b/sdk/go/rancher2/clusterRoleTemplateBinding.go index f88f2a8fb..271382915 100644 --- a/sdk/go/rancher2/clusterRoleTemplateBinding.go +++ b/sdk/go/rancher2/clusterRoleTemplateBinding.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/clusterSync.go b/sdk/go/rancher2/clusterSync.go index 00051c7ef..08325e39e 100644 --- a/sdk/go/rancher2/clusterSync.go +++ b/sdk/go/rancher2/clusterSync.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -19,7 +19,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/clusterTemplate.go b/sdk/go/rancher2/clusterTemplate.go index 1a3f6ded5..650b86510 100644 --- a/sdk/go/rancher2/clusterTemplate.go +++ b/sdk/go/rancher2/clusterTemplate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -22,7 +22,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -73,7 +73,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/clusterV2.go b/sdk/go/rancher2/clusterV2.go index ea2cc2018..26f70354f 100644 --- a/sdk/go/rancher2/clusterV2.go +++ b/sdk/go/rancher2/clusterV2.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -18,49 +18,49 @@ import ( // // ```sh // -// $ pulumi import rancher2:index/clusterV2:ClusterV2 foo <FLEET_NAMESPACE>/<CLUSTER_NAME> +// $ pulumi import rancher2:index/clusterV2:ClusterV2 foo / // // ``` type ClusterV2 struct { pulumi.CustomResourceState - // Optional Agent Env Vars for Rancher agent (list) + // Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. AgentEnvVars ClusterV2AgentEnvVarArrayOutput `pulumi:"agentEnvVars"` - // Annotations for the Cluster V2 (map) + // Annotations for the Cluster. Annotations pulumi.MapOutput `pulumi:"annotations"` - // Cluster V2 cloud credential secret name (string) + // Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. CloudCredentialSecretName pulumi.StringPtrOutput `pulumi:"cloudCredentialSecretName"` - // Optional customization for cluster agent (list) + // Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. ClusterAgentDeploymentCustomizations ClusterV2ClusterAgentDeploymentCustomizationArrayOutput `pulumi:"clusterAgentDeploymentCustomizations"` - // (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + // (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. ClusterRegistrationToken ClusterV2ClusterRegistrationTokenOutput `pulumi:"clusterRegistrationToken"` - // (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2Sync`) (string) + // (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2Sync`). ClusterV1Id pulumi.StringOutput `pulumi:"clusterV1Id"` - // Cluster V2 default cluster role for project members (string) + // Default cluster role for project members. DefaultClusterRoleForProjectMembers pulumi.StringPtrOutput `pulumi:"defaultClusterRoleForProjectMembers"` - // Cluster V2 default pod security admission configuration template name (string) + // The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. DefaultPodSecurityAdmissionConfigurationTemplateName pulumi.StringPtrOutput `pulumi:"defaultPodSecurityAdmissionConfigurationTemplateName"` - // Cluster V2 default pod security policy template name (string) + // Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). DefaultPodSecurityPolicyTemplateName pulumi.StringPtrOutput `pulumi:"defaultPodSecurityPolicyTemplateName"` - // Enable k8s network policy at Cluster V2 (bool) + // Enable k8s network policy on the cluster. EnableNetworkPolicy pulumi.BoolOutput `pulumi:"enableNetworkPolicy"` - // Optional customization for fleet agent (list) + // Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. FleetAgentDeploymentCustomizations ClusterV2FleetAgentDeploymentCustomizationArrayOutput `pulumi:"fleetAgentDeploymentCustomizations"` - // The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + // Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. FleetNamespace pulumi.StringPtrOutput `pulumi:"fleetNamespace"` - // (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected` (string) + // (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected`. KubeConfig pulumi.StringOutput `pulumi:"kubeConfig"` - // The kubernetes version of the Cluster v2 (list maxitems:1) + // The RKE2 or K3s version for the cluster. KubernetesVersion pulumi.StringOutput `pulumi:"kubernetesVersion"` - // Labels for the Cluster V2 (map) + // Labels for the Cluster. Labels pulumi.MapOutput `pulumi:"labels"` - // Cluster V2 local auth endpoint (list maxitems:1) + // Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). LocalAuthEndpoint ClusterV2LocalAuthEndpointPtrOutput `pulumi:"localAuthEndpoint"` - // The name of the Cluster v2 (string) + // The name of the cluster. Name pulumi.StringOutput `pulumi:"name"` - // (Computed) Cluster v2 k8s resource version (string) + // (Computed, string) Cluster's k8s resource version. ResourceVersion pulumi.StringOutput `pulumi:"resourceVersion"` - // The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + // The RKE configuration for the cluster. RkeConfig ClusterV2RkeConfigOutput `pulumi:"rkeConfig"` } @@ -102,84 +102,84 @@ func GetClusterV2(ctx *pulumi.Context, // Input properties used for looking up and filtering ClusterV2 resources. type clusterV2State struct { - // Optional Agent Env Vars for Rancher agent (list) + // Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. AgentEnvVars []ClusterV2AgentEnvVar `pulumi:"agentEnvVars"` - // Annotations for the Cluster V2 (map) + // Annotations for the Cluster. Annotations map[string]interface{} `pulumi:"annotations"` - // Cluster V2 cloud credential secret name (string) + // Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. CloudCredentialSecretName *string `pulumi:"cloudCredentialSecretName"` - // Optional customization for cluster agent (list) + // Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. ClusterAgentDeploymentCustomizations []ClusterV2ClusterAgentDeploymentCustomization `pulumi:"clusterAgentDeploymentCustomizations"` - // (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + // (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. ClusterRegistrationToken *ClusterV2ClusterRegistrationToken `pulumi:"clusterRegistrationToken"` - // (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2Sync`) (string) + // (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2Sync`). ClusterV1Id *string `pulumi:"clusterV1Id"` - // Cluster V2 default cluster role for project members (string) + // Default cluster role for project members. DefaultClusterRoleForProjectMembers *string `pulumi:"defaultClusterRoleForProjectMembers"` - // Cluster V2 default pod security admission configuration template name (string) + // The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. DefaultPodSecurityAdmissionConfigurationTemplateName *string `pulumi:"defaultPodSecurityAdmissionConfigurationTemplateName"` - // Cluster V2 default pod security policy template name (string) + // Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). DefaultPodSecurityPolicyTemplateName *string `pulumi:"defaultPodSecurityPolicyTemplateName"` - // Enable k8s network policy at Cluster V2 (bool) + // Enable k8s network policy on the cluster. EnableNetworkPolicy *bool `pulumi:"enableNetworkPolicy"` - // Optional customization for fleet agent (list) + // Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. FleetAgentDeploymentCustomizations []ClusterV2FleetAgentDeploymentCustomization `pulumi:"fleetAgentDeploymentCustomizations"` - // The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + // Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. FleetNamespace *string `pulumi:"fleetNamespace"` - // (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected` (string) + // (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected`. KubeConfig *string `pulumi:"kubeConfig"` - // The kubernetes version of the Cluster v2 (list maxitems:1) + // The RKE2 or K3s version for the cluster. KubernetesVersion *string `pulumi:"kubernetesVersion"` - // Labels for the Cluster V2 (map) + // Labels for the Cluster. Labels map[string]interface{} `pulumi:"labels"` - // Cluster V2 local auth endpoint (list maxitems:1) + // Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). LocalAuthEndpoint *ClusterV2LocalAuthEndpoint `pulumi:"localAuthEndpoint"` - // The name of the Cluster v2 (string) + // The name of the cluster. Name *string `pulumi:"name"` - // (Computed) Cluster v2 k8s resource version (string) + // (Computed, string) Cluster's k8s resource version. ResourceVersion *string `pulumi:"resourceVersion"` - // The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + // The RKE configuration for the cluster. RkeConfig *ClusterV2RkeConfig `pulumi:"rkeConfig"` } type ClusterV2State struct { - // Optional Agent Env Vars for Rancher agent (list) + // Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. AgentEnvVars ClusterV2AgentEnvVarArrayInput - // Annotations for the Cluster V2 (map) + // Annotations for the Cluster. Annotations pulumi.MapInput - // Cluster V2 cloud credential secret name (string) + // Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. CloudCredentialSecretName pulumi.StringPtrInput - // Optional customization for cluster agent (list) + // Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. ClusterAgentDeploymentCustomizations ClusterV2ClusterAgentDeploymentCustomizationArrayInput - // (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + // (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. ClusterRegistrationToken ClusterV2ClusterRegistrationTokenPtrInput - // (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2Sync`) (string) + // (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2Sync`). ClusterV1Id pulumi.StringPtrInput - // Cluster V2 default cluster role for project members (string) + // Default cluster role for project members. DefaultClusterRoleForProjectMembers pulumi.StringPtrInput - // Cluster V2 default pod security admission configuration template name (string) + // The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. DefaultPodSecurityAdmissionConfigurationTemplateName pulumi.StringPtrInput - // Cluster V2 default pod security policy template name (string) + // Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). DefaultPodSecurityPolicyTemplateName pulumi.StringPtrInput - // Enable k8s network policy at Cluster V2 (bool) + // Enable k8s network policy on the cluster. EnableNetworkPolicy pulumi.BoolPtrInput - // Optional customization for fleet agent (list) + // Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. FleetAgentDeploymentCustomizations ClusterV2FleetAgentDeploymentCustomizationArrayInput - // The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + // Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. FleetNamespace pulumi.StringPtrInput - // (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected` (string) + // (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected`. KubeConfig pulumi.StringPtrInput - // The kubernetes version of the Cluster v2 (list maxitems:1) + // The RKE2 or K3s version for the cluster. KubernetesVersion pulumi.StringPtrInput - // Labels for the Cluster V2 (map) + // Labels for the Cluster. Labels pulumi.MapInput - // Cluster V2 local auth endpoint (list maxitems:1) + // Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). LocalAuthEndpoint ClusterV2LocalAuthEndpointPtrInput - // The name of the Cluster v2 (string) + // The name of the cluster. Name pulumi.StringPtrInput - // (Computed) Cluster v2 k8s resource version (string) + // (Computed, string) Cluster's k8s resource version. ResourceVersion pulumi.StringPtrInput - // The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + // The RKE configuration for the cluster. RkeConfig ClusterV2RkeConfigPtrInput } @@ -188,69 +188,69 @@ func (ClusterV2State) ElementType() reflect.Type { } type clusterV2Args struct { - // Optional Agent Env Vars for Rancher agent (list) + // Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. AgentEnvVars []ClusterV2AgentEnvVar `pulumi:"agentEnvVars"` - // Annotations for the Cluster V2 (map) + // Annotations for the Cluster. Annotations map[string]interface{} `pulumi:"annotations"` - // Cluster V2 cloud credential secret name (string) + // Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. CloudCredentialSecretName *string `pulumi:"cloudCredentialSecretName"` - // Optional customization for cluster agent (list) + // Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. ClusterAgentDeploymentCustomizations []ClusterV2ClusterAgentDeploymentCustomization `pulumi:"clusterAgentDeploymentCustomizations"` - // Cluster V2 default cluster role for project members (string) + // Default cluster role for project members. DefaultClusterRoleForProjectMembers *string `pulumi:"defaultClusterRoleForProjectMembers"` - // Cluster V2 default pod security admission configuration template name (string) + // The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. DefaultPodSecurityAdmissionConfigurationTemplateName *string `pulumi:"defaultPodSecurityAdmissionConfigurationTemplateName"` - // Cluster V2 default pod security policy template name (string) + // Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). DefaultPodSecurityPolicyTemplateName *string `pulumi:"defaultPodSecurityPolicyTemplateName"` - // Enable k8s network policy at Cluster V2 (bool) + // Enable k8s network policy on the cluster. EnableNetworkPolicy *bool `pulumi:"enableNetworkPolicy"` - // Optional customization for fleet agent (list) + // Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. FleetAgentDeploymentCustomizations []ClusterV2FleetAgentDeploymentCustomization `pulumi:"fleetAgentDeploymentCustomizations"` - // The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + // Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. FleetNamespace *string `pulumi:"fleetNamespace"` - // The kubernetes version of the Cluster v2 (list maxitems:1) + // The RKE2 or K3s version for the cluster. KubernetesVersion string `pulumi:"kubernetesVersion"` - // Labels for the Cluster V2 (map) + // Labels for the Cluster. Labels map[string]interface{} `pulumi:"labels"` - // Cluster V2 local auth endpoint (list maxitems:1) + // Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). LocalAuthEndpoint *ClusterV2LocalAuthEndpoint `pulumi:"localAuthEndpoint"` - // The name of the Cluster v2 (string) + // The name of the cluster. Name *string `pulumi:"name"` - // The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + // The RKE configuration for the cluster. RkeConfig *ClusterV2RkeConfig `pulumi:"rkeConfig"` } // The set of arguments for constructing a ClusterV2 resource. type ClusterV2Args struct { - // Optional Agent Env Vars for Rancher agent (list) + // Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. AgentEnvVars ClusterV2AgentEnvVarArrayInput - // Annotations for the Cluster V2 (map) + // Annotations for the Cluster. Annotations pulumi.MapInput - // Cluster V2 cloud credential secret name (string) + // Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. CloudCredentialSecretName pulumi.StringPtrInput - // Optional customization for cluster agent (list) + // Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. ClusterAgentDeploymentCustomizations ClusterV2ClusterAgentDeploymentCustomizationArrayInput - // Cluster V2 default cluster role for project members (string) + // Default cluster role for project members. DefaultClusterRoleForProjectMembers pulumi.StringPtrInput - // Cluster V2 default pod security admission configuration template name (string) + // The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. DefaultPodSecurityAdmissionConfigurationTemplateName pulumi.StringPtrInput - // Cluster V2 default pod security policy template name (string) + // Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). DefaultPodSecurityPolicyTemplateName pulumi.StringPtrInput - // Enable k8s network policy at Cluster V2 (bool) + // Enable k8s network policy on the cluster. EnableNetworkPolicy pulumi.BoolPtrInput - // Optional customization for fleet agent (list) + // Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. FleetAgentDeploymentCustomizations ClusterV2FleetAgentDeploymentCustomizationArrayInput - // The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + // Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. FleetNamespace pulumi.StringPtrInput - // The kubernetes version of the Cluster v2 (list maxitems:1) + // The RKE2 or K3s version for the cluster. KubernetesVersion pulumi.StringInput - // Labels for the Cluster V2 (map) + // Labels for the Cluster. Labels pulumi.MapInput - // Cluster V2 local auth endpoint (list maxitems:1) + // Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). LocalAuthEndpoint ClusterV2LocalAuthEndpointPtrInput - // The name of the Cluster v2 (string) + // The name of the cluster. Name pulumi.StringPtrInput - // The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + // The RKE configuration for the cluster. RkeConfig ClusterV2RkeConfigPtrInput } @@ -341,103 +341,103 @@ func (o ClusterV2Output) ToClusterV2OutputWithContext(ctx context.Context) Clust return o } -// Optional Agent Env Vars for Rancher agent (list) +// Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. func (o ClusterV2Output) AgentEnvVars() ClusterV2AgentEnvVarArrayOutput { return o.ApplyT(func(v *ClusterV2) ClusterV2AgentEnvVarArrayOutput { return v.AgentEnvVars }).(ClusterV2AgentEnvVarArrayOutput) } -// Annotations for the Cluster V2 (map) +// Annotations for the Cluster. func (o ClusterV2Output) Annotations() pulumi.MapOutput { return o.ApplyT(func(v *ClusterV2) pulumi.MapOutput { return v.Annotations }).(pulumi.MapOutput) } -// Cluster V2 cloud credential secret name (string) +// Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. func (o ClusterV2Output) CloudCredentialSecretName() pulumi.StringPtrOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringPtrOutput { return v.CloudCredentialSecretName }).(pulumi.StringPtrOutput) } -// Optional customization for cluster agent (list) +// Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. func (o ClusterV2Output) ClusterAgentDeploymentCustomizations() ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { return o.ApplyT(func(v *ClusterV2) ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { return v.ClusterAgentDeploymentCustomizations }).(ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) } -// (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) +// (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. func (o ClusterV2Output) ClusterRegistrationToken() ClusterV2ClusterRegistrationTokenOutput { return o.ApplyT(func(v *ClusterV2) ClusterV2ClusterRegistrationTokenOutput { return v.ClusterRegistrationToken }).(ClusterV2ClusterRegistrationTokenOutput) } -// (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2Sync`) (string) +// (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2Sync`). func (o ClusterV2Output) ClusterV1Id() pulumi.StringOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringOutput { return v.ClusterV1Id }).(pulumi.StringOutput) } -// Cluster V2 default cluster role for project members (string) +// Default cluster role for project members. func (o ClusterV2Output) DefaultClusterRoleForProjectMembers() pulumi.StringPtrOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringPtrOutput { return v.DefaultClusterRoleForProjectMembers }).(pulumi.StringPtrOutput) } -// Cluster V2 default pod security admission configuration template name (string) +// The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. func (o ClusterV2Output) DefaultPodSecurityAdmissionConfigurationTemplateName() pulumi.StringPtrOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringPtrOutput { return v.DefaultPodSecurityAdmissionConfigurationTemplateName }).(pulumi.StringPtrOutput) } -// Cluster V2 default pod security policy template name (string) +// Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). func (o ClusterV2Output) DefaultPodSecurityPolicyTemplateName() pulumi.StringPtrOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringPtrOutput { return v.DefaultPodSecurityPolicyTemplateName }).(pulumi.StringPtrOutput) } -// Enable k8s network policy at Cluster V2 (bool) +// Enable k8s network policy on the cluster. func (o ClusterV2Output) EnableNetworkPolicy() pulumi.BoolOutput { return o.ApplyT(func(v *ClusterV2) pulumi.BoolOutput { return v.EnableNetworkPolicy }).(pulumi.BoolOutput) } -// Optional customization for fleet agent (list) +// Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. func (o ClusterV2Output) FleetAgentDeploymentCustomizations() ClusterV2FleetAgentDeploymentCustomizationArrayOutput { return o.ApplyT(func(v *ClusterV2) ClusterV2FleetAgentDeploymentCustomizationArrayOutput { return v.FleetAgentDeploymentCustomizations }).(ClusterV2FleetAgentDeploymentCustomizationArrayOutput) } -// The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) +// Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. func (o ClusterV2Output) FleetNamespace() pulumi.StringPtrOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringPtrOutput { return v.FleetNamespace }).(pulumi.StringPtrOutput) } -// (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected` (string) +// (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected`. func (o ClusterV2Output) KubeConfig() pulumi.StringOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringOutput { return v.KubeConfig }).(pulumi.StringOutput) } -// The kubernetes version of the Cluster v2 (list maxitems:1) +// The RKE2 or K3s version for the cluster. func (o ClusterV2Output) KubernetesVersion() pulumi.StringOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringOutput { return v.KubernetesVersion }).(pulumi.StringOutput) } -// Labels for the Cluster V2 (map) +// Labels for the Cluster. func (o ClusterV2Output) Labels() pulumi.MapOutput { return o.ApplyT(func(v *ClusterV2) pulumi.MapOutput { return v.Labels }).(pulumi.MapOutput) } -// Cluster V2 local auth endpoint (list maxitems:1) +// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). func (o ClusterV2Output) LocalAuthEndpoint() ClusterV2LocalAuthEndpointPtrOutput { return o.ApplyT(func(v *ClusterV2) ClusterV2LocalAuthEndpointPtrOutput { return v.LocalAuthEndpoint }).(ClusterV2LocalAuthEndpointPtrOutput) } -// The name of the Cluster v2 (string) +// The name of the cluster. func (o ClusterV2Output) Name() pulumi.StringOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } -// (Computed) Cluster v2 k8s resource version (string) +// (Computed, string) Cluster's k8s resource version. func (o ClusterV2Output) ResourceVersion() pulumi.StringOutput { return o.ApplyT(func(v *ClusterV2) pulumi.StringOutput { return v.ResourceVersion }).(pulumi.StringOutput) } -// The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) +// The RKE configuration for the cluster. func (o ClusterV2Output) RkeConfig() ClusterV2RkeConfigOutput { return o.ApplyT(func(v *ClusterV2) ClusterV2RkeConfigOutput { return v.RkeConfig }).(ClusterV2RkeConfigOutput) } diff --git a/sdk/go/rancher2/config/config.go b/sdk/go/rancher2/config/config.go index 2d49e164a..80e57e1ba 100644 --- a/sdk/go/rancher2/config/config.go +++ b/sdk/go/rancher2/config/config.go @@ -4,7 +4,7 @@ package config import ( - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" ) diff --git a/sdk/go/rancher2/configMapV2.go b/sdk/go/rancher2/configMapV2.go index 341152b51..c41acf669 100644 --- a/sdk/go/rancher2/configMapV2.go +++ b/sdk/go/rancher2/configMapV2.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/customUserToken.go b/sdk/go/rancher2/customUserToken.go index cc387601b..7109beee4 100644 --- a/sdk/go/rancher2/customUserToken.go +++ b/sdk/go/rancher2/customUserToken.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -29,7 +29,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/etcdBackup.go b/sdk/go/rancher2/etcdBackup.go index ddc1d9102..e37897b50 100644 --- a/sdk/go/rancher2/etcdBackup.go +++ b/sdk/go/rancher2/etcdBackup.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -23,7 +23,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/feature.go b/sdk/go/rancher2/feature.go index 63c98f365..ee619f8f7 100644 --- a/sdk/go/rancher2/feature.go +++ b/sdk/go/rancher2/feature.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -26,7 +26,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getApp.go b/sdk/go/rancher2/getApp.go index 8c0debb63..c786c67dd 100644 --- a/sdk/go/rancher2/getApp.go +++ b/sdk/go/rancher2/getApp.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getCatalog.go b/sdk/go/rancher2/getCatalog.go index 40c6a1680..82443e246 100644 --- a/sdk/go/rancher2/getCatalog.go +++ b/sdk/go/rancher2/getCatalog.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getCatalogV2.go b/sdk/go/rancher2/getCatalogV2.go index 36b7a38a8..39dd1e7d1 100644 --- a/sdk/go/rancher2/getCatalogV2.go +++ b/sdk/go/rancher2/getCatalogV2.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/getCertificate.go b/sdk/go/rancher2/getCertificate.go index b7f1cb290..fcd6fa68c 100644 --- a/sdk/go/rancher2/getCertificate.go +++ b/sdk/go/rancher2/getCertificate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -24,7 +24,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -49,7 +49,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getCloudCredential.go b/sdk/go/rancher2/getCloudCredential.go index d16b5f974..775083142 100644 --- a/sdk/go/rancher2/getCloudCredential.go +++ b/sdk/go/rancher2/getCloudCredential.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getCluster.go b/sdk/go/rancher2/getCluster.go index 41cff7bf6..1216113d4 100644 --- a/sdk/go/rancher2/getCluster.go +++ b/sdk/go/rancher2/getCluster.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getClusterAlertGroup.go b/sdk/go/rancher2/getClusterAlertGroup.go index 52523cb9d..98f13262c 100644 --- a/sdk/go/rancher2/getClusterAlertGroup.go +++ b/sdk/go/rancher2/getClusterAlertGroup.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getClusterAlterRule.go b/sdk/go/rancher2/getClusterAlertRule.go similarity index 54% rename from sdk/go/rancher2/getClusterAlterRule.go rename to sdk/go/rancher2/getClusterAlertRule.go index f94396d40..1b902c057 100644 --- a/sdk/go/rancher2/getClusterAlterRule.go +++ b/sdk/go/rancher2/getClusterAlertRule.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,14 +20,14 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) // // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := rancher2.LookupClusterAlterRule(ctx, &rancher2.LookupClusterAlterRuleArgs{ +// _, err := rancher2.LookupClusterAlertRule(ctx, &rancher2.LookupClusterAlertRuleArgs{ // ClusterId: "", // Name: "", // }, nil) @@ -39,18 +39,18 @@ import ( // } // // ``` -func LookupClusterAlterRule(ctx *pulumi.Context, args *LookupClusterAlterRuleArgs, opts ...pulumi.InvokeOption) (*LookupClusterAlterRuleResult, error) { +func LookupClusterAlertRule(ctx *pulumi.Context, args *LookupClusterAlertRuleArgs, opts ...pulumi.InvokeOption) (*LookupClusterAlertRuleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupClusterAlterRuleResult - err := ctx.Invoke("rancher2:index/getClusterAlterRule:getClusterAlterRule", args, &rv, opts...) + var rv LookupClusterAlertRuleResult + err := ctx.Invoke("rancher2:index/getClusterAlertRule:getClusterAlertRule", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil } -// A collection of arguments for invoking getClusterAlterRule. -type LookupClusterAlterRuleArgs struct { +// A collection of arguments for invoking getClusterAlertRule. +type LookupClusterAlertRuleArgs struct { // The cluster id where create cluster alert rule (string) ClusterId string `pulumi:"clusterId"` // (Computed) The cluster alert rule labels (map) @@ -59,13 +59,13 @@ type LookupClusterAlterRuleArgs struct { Name string `pulumi:"name"` } -// A collection of values returned by getClusterAlterRule. -type LookupClusterAlterRuleResult struct { +// A collection of values returned by getClusterAlertRule. +type LookupClusterAlertRuleResult struct { // (Computed) The cluster alert rule annotations (map) Annotations map[string]interface{} `pulumi:"annotations"` ClusterId string `pulumi:"clusterId"` // (Computed) The cluster alert rule event rule. ConflictsWith: `"metricRule", "nodeRule", "systemServiceRule"` (list Maxitems:1) - EventRule GetClusterAlterRuleEventRule `pulumi:"eventRule"` + EventRule GetClusterAlertRuleEventRule `pulumi:"eventRule"` // (Computed) The cluster alert rule alert group ID (string) GroupId string `pulumi:"groupId"` // (Computed) The cluster alert rule group interval seconds. Default: `180` (int) @@ -79,33 +79,33 @@ type LookupClusterAlterRuleResult struct { // (Computed) The cluster alert rule labels (map) Labels map[string]interface{} `pulumi:"labels"` // (Computed) The cluster alert rule metric rule. ConflictsWith: `"eventRule", "nodeRule", "systemServiceRule"`` (list Maxitems:1) - MetricRule GetClusterAlterRuleMetricRule `pulumi:"metricRule"` + MetricRule GetClusterAlertRuleMetricRule `pulumi:"metricRule"` Name string `pulumi:"name"` // (Computed) The cluster alert rule node rule. ConflictsWith: `"eventRule", "metricRule", "systemServiceRule"`` (list Maxitems:1) - NodeRule GetClusterAlterRuleNodeRule `pulumi:"nodeRule"` + NodeRule GetClusterAlertRuleNodeRule `pulumi:"nodeRule"` // (Optional) The cluster alert rule wait seconds. Default: `3600` (int) RepeatIntervalSeconds int `pulumi:"repeatIntervalSeconds"` // (Computed) The cluster alert rule severity. Supported values : `"critical" | "info" | "warning"`. Default: `critical` (string) Severity string `pulumi:"severity"` // (Computed) The cluster alert rule system service rule. ConflictsWith: `"eventRule", "metricRule", "nodeRule"`` (list Maxitems:1) - SystemServiceRule GetClusterAlterRuleSystemServiceRule `pulumi:"systemServiceRule"` + SystemServiceRule GetClusterAlertRuleSystemServiceRule `pulumi:"systemServiceRule"` } -func LookupClusterAlterRuleOutput(ctx *pulumi.Context, args LookupClusterAlterRuleOutputArgs, opts ...pulumi.InvokeOption) LookupClusterAlterRuleResultOutput { +func LookupClusterAlertRuleOutput(ctx *pulumi.Context, args LookupClusterAlertRuleOutputArgs, opts ...pulumi.InvokeOption) LookupClusterAlertRuleResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupClusterAlterRuleResult, error) { - args := v.(LookupClusterAlterRuleArgs) - r, err := LookupClusterAlterRule(ctx, &args, opts...) - var s LookupClusterAlterRuleResult + ApplyT(func(v interface{}) (LookupClusterAlertRuleResult, error) { + args := v.(LookupClusterAlertRuleArgs) + r, err := LookupClusterAlertRule(ctx, &args, opts...) + var s LookupClusterAlertRuleResult if r != nil { s = *r } return s, err - }).(LookupClusterAlterRuleResultOutput) + }).(LookupClusterAlertRuleResultOutput) } -// A collection of arguments for invoking getClusterAlterRule. -type LookupClusterAlterRuleOutputArgs struct { +// A collection of arguments for invoking getClusterAlertRule. +type LookupClusterAlertRuleOutputArgs struct { // The cluster id where create cluster alert rule (string) ClusterId pulumi.StringInput `pulumi:"clusterId"` // (Computed) The cluster alert rule labels (map) @@ -114,98 +114,98 @@ type LookupClusterAlterRuleOutputArgs struct { Name pulumi.StringInput `pulumi:"name"` } -func (LookupClusterAlterRuleOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupClusterAlterRuleArgs)(nil)).Elem() +func (LookupClusterAlertRuleOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupClusterAlertRuleArgs)(nil)).Elem() } -// A collection of values returned by getClusterAlterRule. -type LookupClusterAlterRuleResultOutput struct{ *pulumi.OutputState } +// A collection of values returned by getClusterAlertRule. +type LookupClusterAlertRuleResultOutput struct{ *pulumi.OutputState } -func (LookupClusterAlterRuleResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupClusterAlterRuleResult)(nil)).Elem() +func (LookupClusterAlertRuleResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupClusterAlertRuleResult)(nil)).Elem() } -func (o LookupClusterAlterRuleResultOutput) ToLookupClusterAlterRuleResultOutput() LookupClusterAlterRuleResultOutput { +func (o LookupClusterAlertRuleResultOutput) ToLookupClusterAlertRuleResultOutput() LookupClusterAlertRuleResultOutput { return o } -func (o LookupClusterAlterRuleResultOutput) ToLookupClusterAlterRuleResultOutputWithContext(ctx context.Context) LookupClusterAlterRuleResultOutput { +func (o LookupClusterAlertRuleResultOutput) ToLookupClusterAlertRuleResultOutputWithContext(ctx context.Context) LookupClusterAlertRuleResultOutput { return o } // (Computed) The cluster alert rule annotations (map) -func (o LookupClusterAlterRuleResultOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) +func (o LookupClusterAlertRuleResultOutput) Annotations() pulumi.MapOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) } -func (o LookupClusterAlterRuleResultOutput) ClusterId() pulumi.StringOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) string { return v.ClusterId }).(pulumi.StringOutput) +func (o LookupClusterAlertRuleResultOutput) ClusterId() pulumi.StringOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) string { return v.ClusterId }).(pulumi.StringOutput) } // (Computed) The cluster alert rule event rule. ConflictsWith: `"metricRule", "nodeRule", "systemServiceRule"` (list Maxitems:1) -func (o LookupClusterAlterRuleResultOutput) EventRule() GetClusterAlterRuleEventRuleOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) GetClusterAlterRuleEventRule { return v.EventRule }).(GetClusterAlterRuleEventRuleOutput) +func (o LookupClusterAlertRuleResultOutput) EventRule() GetClusterAlertRuleEventRuleOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) GetClusterAlertRuleEventRule { return v.EventRule }).(GetClusterAlertRuleEventRuleOutput) } // (Computed) The cluster alert rule alert group ID (string) -func (o LookupClusterAlterRuleResultOutput) GroupId() pulumi.StringOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) string { return v.GroupId }).(pulumi.StringOutput) +func (o LookupClusterAlertRuleResultOutput) GroupId() pulumi.StringOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) string { return v.GroupId }).(pulumi.StringOutput) } // (Computed) The cluster alert rule group interval seconds. Default: `180` (int) -func (o LookupClusterAlterRuleResultOutput) GroupIntervalSeconds() pulumi.IntOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) int { return v.GroupIntervalSeconds }).(pulumi.IntOutput) +func (o LookupClusterAlertRuleResultOutput) GroupIntervalSeconds() pulumi.IntOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) int { return v.GroupIntervalSeconds }).(pulumi.IntOutput) } // (Computed) The cluster alert rule group wait seconds. Default: `180` (int) -func (o LookupClusterAlterRuleResultOutput) GroupWaitSeconds() pulumi.IntOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) int { return v.GroupWaitSeconds }).(pulumi.IntOutput) +func (o LookupClusterAlertRuleResultOutput) GroupWaitSeconds() pulumi.IntOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) int { return v.GroupWaitSeconds }).(pulumi.IntOutput) } // The provider-assigned unique ID for this managed resource. -func (o LookupClusterAlterRuleResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) string { return v.Id }).(pulumi.StringOutput) +func (o LookupClusterAlertRuleResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) string { return v.Id }).(pulumi.StringOutput) } // (Computed) The cluster alert rule inherited. Default: `true` (bool) -func (o LookupClusterAlterRuleResultOutput) Inherited() pulumi.BoolOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) bool { return v.Inherited }).(pulumi.BoolOutput) +func (o LookupClusterAlertRuleResultOutput) Inherited() pulumi.BoolOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) bool { return v.Inherited }).(pulumi.BoolOutput) } // (Computed) The cluster alert rule labels (map) -func (o LookupClusterAlterRuleResultOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) +func (o LookupClusterAlertRuleResultOutput) Labels() pulumi.MapOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) } // (Computed) The cluster alert rule metric rule. ConflictsWith: `"eventRule", "nodeRule", "systemServiceRule"“ (list Maxitems:1) -func (o LookupClusterAlterRuleResultOutput) MetricRule() GetClusterAlterRuleMetricRuleOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) GetClusterAlterRuleMetricRule { return v.MetricRule }).(GetClusterAlterRuleMetricRuleOutput) +func (o LookupClusterAlertRuleResultOutput) MetricRule() GetClusterAlertRuleMetricRuleOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) GetClusterAlertRuleMetricRule { return v.MetricRule }).(GetClusterAlertRuleMetricRuleOutput) } -func (o LookupClusterAlterRuleResultOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) string { return v.Name }).(pulumi.StringOutput) +func (o LookupClusterAlertRuleResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) string { return v.Name }).(pulumi.StringOutput) } // (Computed) The cluster alert rule node rule. ConflictsWith: `"eventRule", "metricRule", "systemServiceRule"“ (list Maxitems:1) -func (o LookupClusterAlterRuleResultOutput) NodeRule() GetClusterAlterRuleNodeRuleOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) GetClusterAlterRuleNodeRule { return v.NodeRule }).(GetClusterAlterRuleNodeRuleOutput) +func (o LookupClusterAlertRuleResultOutput) NodeRule() GetClusterAlertRuleNodeRuleOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) GetClusterAlertRuleNodeRule { return v.NodeRule }).(GetClusterAlertRuleNodeRuleOutput) } // (Optional) The cluster alert rule wait seconds. Default: `3600` (int) -func (o LookupClusterAlterRuleResultOutput) RepeatIntervalSeconds() pulumi.IntOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) int { return v.RepeatIntervalSeconds }).(pulumi.IntOutput) +func (o LookupClusterAlertRuleResultOutput) RepeatIntervalSeconds() pulumi.IntOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) int { return v.RepeatIntervalSeconds }).(pulumi.IntOutput) } // (Computed) The cluster alert rule severity. Supported values : `"critical" | "info" | "warning"`. Default: `critical` (string) -func (o LookupClusterAlterRuleResultOutput) Severity() pulumi.StringOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) string { return v.Severity }).(pulumi.StringOutput) +func (o LookupClusterAlertRuleResultOutput) Severity() pulumi.StringOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) string { return v.Severity }).(pulumi.StringOutput) } // (Computed) The cluster alert rule system service rule. ConflictsWith: `"eventRule", "metricRule", "nodeRule"“ (list Maxitems:1) -func (o LookupClusterAlterRuleResultOutput) SystemServiceRule() GetClusterAlterRuleSystemServiceRuleOutput { - return o.ApplyT(func(v LookupClusterAlterRuleResult) GetClusterAlterRuleSystemServiceRule { return v.SystemServiceRule }).(GetClusterAlterRuleSystemServiceRuleOutput) +func (o LookupClusterAlertRuleResultOutput) SystemServiceRule() GetClusterAlertRuleSystemServiceRuleOutput { + return o.ApplyT(func(v LookupClusterAlertRuleResult) GetClusterAlertRuleSystemServiceRule { return v.SystemServiceRule }).(GetClusterAlertRuleSystemServiceRuleOutput) } func init() { - pulumi.RegisterOutputType(LookupClusterAlterRuleResultOutput{}) + pulumi.RegisterOutputType(LookupClusterAlertRuleResultOutput{}) } diff --git a/sdk/go/rancher2/getClusterDriver.go b/sdk/go/rancher2/getClusterDriver.go index b0100976e..506afc0b9 100644 --- a/sdk/go/rancher2/getClusterDriver.go +++ b/sdk/go/rancher2/getClusterDriver.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getClusterRoleTemplateBinding.go b/sdk/go/rancher2/getClusterRoleTemplateBinding.go index 3b5949353..ca39169fe 100644 --- a/sdk/go/rancher2/getClusterRoleTemplateBinding.go +++ b/sdk/go/rancher2/getClusterRoleTemplateBinding.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getClusterTemplate.go b/sdk/go/rancher2/getClusterTemplate.go index 86bbc54b2..f11daea54 100644 --- a/sdk/go/rancher2/getClusterTemplate.go +++ b/sdk/go/rancher2/getClusterTemplate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -22,7 +22,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getClusterV2.go b/sdk/go/rancher2/getClusterV2.go index 2671ae9e7..e39f1c6b6 100644 --- a/sdk/go/rancher2/getClusterV2.go +++ b/sdk/go/rancher2/getClusterV2.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getConfigMapV2.go b/sdk/go/rancher2/getConfigMapV2.go index fab5ba2a9..c6e4b8c19 100644 --- a/sdk/go/rancher2/getConfigMapV2.go +++ b/sdk/go/rancher2/getConfigMapV2.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/getEtcdBackup.go b/sdk/go/rancher2/getEtcdBackup.go index 140626a6d..8a2d1def6 100644 --- a/sdk/go/rancher2/getEtcdBackup.go +++ b/sdk/go/rancher2/getEtcdBackup.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getGlobalDnsProvider.go b/sdk/go/rancher2/getGlobalDnsProvider.go index 4b5cfce1f..58477e408 100644 --- a/sdk/go/rancher2/getGlobalDnsProvider.go +++ b/sdk/go/rancher2/getGlobalDnsProvider.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getGlobalRole.go b/sdk/go/rancher2/getGlobalRole.go index 80424faaf..26aedde6d 100644 --- a/sdk/go/rancher2/getGlobalRole.go +++ b/sdk/go/rancher2/getGlobalRole.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -50,6 +50,8 @@ func LookupGlobalRole(ctx *pulumi.Context, args *LookupGlobalRoleArgs, opts ...p // A collection of arguments for invoking getGlobalRole. type LookupGlobalRoleArgs struct { + // (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + InheritedClusterRoles []string `pulumi:"inheritedClusterRoles"` // The name of the Global Role (string) Name string `pulumi:"name"` } @@ -64,6 +66,8 @@ type LookupGlobalRoleResult struct { Description string `pulumi:"description"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` + // (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + InheritedClusterRoles []string `pulumi:"inheritedClusterRoles"` // (Computed) Labels for global role object (map) Labels map[string]interface{} `pulumi:"labels"` Name string `pulumi:"name"` @@ -88,6 +92,8 @@ func LookupGlobalRoleOutput(ctx *pulumi.Context, args LookupGlobalRoleOutputArgs // A collection of arguments for invoking getGlobalRole. type LookupGlobalRoleOutputArgs struct { + // (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + InheritedClusterRoles pulumi.StringArrayInput `pulumi:"inheritedClusterRoles"` // The name of the Global Role (string) Name pulumi.StringInput `pulumi:"name"` } @@ -131,6 +137,11 @@ func (o LookupGlobalRoleResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupGlobalRoleResult) string { return v.Id }).(pulumi.StringOutput) } +// (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) +func (o LookupGlobalRoleResultOutput) InheritedClusterRoles() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupGlobalRoleResult) []string { return v.InheritedClusterRoles }).(pulumi.StringArrayOutput) +} + // (Computed) Labels for global role object (map) func (o LookupGlobalRoleResultOutput) Labels() pulumi.MapOutput { return o.ApplyT(func(v LookupGlobalRoleResult) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) diff --git a/sdk/go/rancher2/getGlobalRoleBinding.go b/sdk/go/rancher2/getGlobalRoleBinding.go index b8b7bf287..4a78e00e6 100644 --- a/sdk/go/rancher2/getGlobalRoleBinding.go +++ b/sdk/go/rancher2/getGlobalRoleBinding.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getMultiClusterApp.go b/sdk/go/rancher2/getMultiClusterApp.go index b4e6561e3..23c771b19 100644 --- a/sdk/go/rancher2/getMultiClusterApp.go +++ b/sdk/go/rancher2/getMultiClusterApp.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getNamespace.go b/sdk/go/rancher2/getNamespace.go index a8ed5ee4e..b61ca5fce 100644 --- a/sdk/go/rancher2/getNamespace.go +++ b/sdk/go/rancher2/getNamespace.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getNodeDriver.go b/sdk/go/rancher2/getNodeDriver.go index ff74f5146..2d288a83b 100644 --- a/sdk/go/rancher2/getNodeDriver.go +++ b/sdk/go/rancher2/getNodeDriver.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getNodePool.go b/sdk/go/rancher2/getNodePool.go index 18982cd4d..008d7e4d4 100644 --- a/sdk/go/rancher2/getNodePool.go +++ b/sdk/go/rancher2/getNodePool.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getNodeTemplate.go b/sdk/go/rancher2/getNodeTemplate.go index 3717336ff..4cd25ce45 100644 --- a/sdk/go/rancher2/getNodeTemplate.go +++ b/sdk/go/rancher2/getNodeTemplate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getNotifier.go b/sdk/go/rancher2/getNotifier.go index ec90b83cb..7d4e6a267 100644 --- a/sdk/go/rancher2/getNotifier.go +++ b/sdk/go/rancher2/getNotifier.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getPodSecurityPolicyTemplate.go b/sdk/go/rancher2/getPodSecurityPolicyTemplate.go index 88f4fd0bb..16251625c 100644 --- a/sdk/go/rancher2/getPodSecurityPolicyTemplate.go +++ b/sdk/go/rancher2/getPodSecurityPolicyTemplate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getPrincipal.go b/sdk/go/rancher2/getPrincipal.go index 689fa1da8..b01272ddd 100644 --- a/sdk/go/rancher2/getPrincipal.go +++ b/sdk/go/rancher2/getPrincipal.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getProject.go b/sdk/go/rancher2/getProject.go index 30164b8bf..b580bf77d 100644 --- a/sdk/go/rancher2/getProject.go +++ b/sdk/go/rancher2/getProject.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/getProjectAlertGroup.go b/sdk/go/rancher2/getProjectAlertGroup.go index 8bbe5dde3..f230fe3b7 100644 --- a/sdk/go/rancher2/getProjectAlertGroup.go +++ b/sdk/go/rancher2/getProjectAlertGroup.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getProjectAlertRule.go b/sdk/go/rancher2/getProjectAlertRule.go index 15ca7807c..c9d3d2a4b 100644 --- a/sdk/go/rancher2/getProjectAlertRule.go +++ b/sdk/go/rancher2/getProjectAlertRule.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getProjectRoleTemplateBinding.go b/sdk/go/rancher2/getProjectRoleTemplateBinding.go index c7b906802..ba7f01ea9 100644 --- a/sdk/go/rancher2/getProjectRoleTemplateBinding.go +++ b/sdk/go/rancher2/getProjectRoleTemplateBinding.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getRegistry.go b/sdk/go/rancher2/getRegistry.go index 26f467f33..261f5c64f 100644 --- a/sdk/go/rancher2/getRegistry.go +++ b/sdk/go/rancher2/getRegistry.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -24,7 +24,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -49,7 +49,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getRoleTempalte.go b/sdk/go/rancher2/getRoleTempalte.go deleted file mode 100644 index eefbd19ad..000000000 --- a/sdk/go/rancher2/getRoleTempalte.go +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. -// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** - -package rancher2 - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -// Use this data source to retrieve information about a Rancher v2 role template resource. -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := rancher2.LookupRoleTemplate(ctx, &rancher2.LookupRoleTemplateArgs{ -// Name: "foo", -// }, nil) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// -// Deprecated: rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate -func LookupRoleTempalte(ctx *pulumi.Context, args *LookupRoleTempalteArgs, opts ...pulumi.InvokeOption) (*LookupRoleTempalteResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRoleTempalteResult - err := ctx.Invoke("rancher2:index/getRoleTempalte:getRoleTempalte", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getRoleTempalte. -type LookupRoleTempalteArgs struct { - // Role template context. `cluster` and `project` values are supported (string) - Context *string `pulumi:"context"` - // The name of the Role Template (string) - Name string `pulumi:"name"` -} - -// A collection of values returned by getRoleTempalte. -type LookupRoleTempalteResult struct { - // (Computed) Administrative role template (bool) - Administrative bool `pulumi:"administrative"` - // (Computed) Annotations for role template object (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // (Computed) Builtin role template (string) - Builtin bool `pulumi:"builtin"` - Context string `pulumi:"context"` - // (Computed) Default role template for new created cluster or project (bool) - DefaultRole bool `pulumi:"defaultRole"` - // (Computed) Role template description (string) - Description string `pulumi:"description"` - // (Computed) External role template (bool) - External bool `pulumi:"external"` - // (Computed) Hidden role template (bool) - Hidden bool `pulumi:"hidden"` - // The provider-assigned unique ID for this managed resource. - Id string `pulumi:"id"` - // (Computed) Labels for role template object (map) - Labels map[string]interface{} `pulumi:"labels"` - // (Computed) Locked role template (bool) - Locked bool `pulumi:"locked"` - Name string `pulumi:"name"` - // (Computed) Inherit role template IDs (list) - RoleTemplateIds []string `pulumi:"roleTemplateIds"` - // (Computed) Role template policy rules (list) - Rules []GetRoleTempalteRule `pulumi:"rules"` -} - -func LookupRoleTempalteOutput(ctx *pulumi.Context, args LookupRoleTempalteOutputArgs, opts ...pulumi.InvokeOption) LookupRoleTempalteResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupRoleTempalteResult, error) { - args := v.(LookupRoleTempalteArgs) - r, err := LookupRoleTempalte(ctx, &args, opts...) - var s LookupRoleTempalteResult - if r != nil { - s = *r - } - return s, err - }).(LookupRoleTempalteResultOutput) -} - -// A collection of arguments for invoking getRoleTempalte. -type LookupRoleTempalteOutputArgs struct { - // Role template context. `cluster` and `project` values are supported (string) - Context pulumi.StringPtrInput `pulumi:"context"` - // The name of the Role Template (string) - Name pulumi.StringInput `pulumi:"name"` -} - -func (LookupRoleTempalteOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*LookupRoleTempalteArgs)(nil)).Elem() -} - -// A collection of values returned by getRoleTempalte. -type LookupRoleTempalteResultOutput struct{ *pulumi.OutputState } - -func (LookupRoleTempalteResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*LookupRoleTempalteResult)(nil)).Elem() -} - -func (o LookupRoleTempalteResultOutput) ToLookupRoleTempalteResultOutput() LookupRoleTempalteResultOutput { - return o -} - -func (o LookupRoleTempalteResultOutput) ToLookupRoleTempalteResultOutputWithContext(ctx context.Context) LookupRoleTempalteResultOutput { - return o -} - -// (Computed) Administrative role template (bool) -func (o LookupRoleTempalteResultOutput) Administrative() pulumi.BoolOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) bool { return v.Administrative }).(pulumi.BoolOutput) -} - -// (Computed) Annotations for role template object (map) -func (o LookupRoleTempalteResultOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) -} - -// (Computed) Builtin role template (string) -func (o LookupRoleTempalteResultOutput) Builtin() pulumi.BoolOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) bool { return v.Builtin }).(pulumi.BoolOutput) -} - -func (o LookupRoleTempalteResultOutput) Context() pulumi.StringOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) string { return v.Context }).(pulumi.StringOutput) -} - -// (Computed) Default role template for new created cluster or project (bool) -func (o LookupRoleTempalteResultOutput) DefaultRole() pulumi.BoolOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) bool { return v.DefaultRole }).(pulumi.BoolOutput) -} - -// (Computed) Role template description (string) -func (o LookupRoleTempalteResultOutput) Description() pulumi.StringOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) string { return v.Description }).(pulumi.StringOutput) -} - -// (Computed) External role template (bool) -func (o LookupRoleTempalteResultOutput) External() pulumi.BoolOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) bool { return v.External }).(pulumi.BoolOutput) -} - -// (Computed) Hidden role template (bool) -func (o LookupRoleTempalteResultOutput) Hidden() pulumi.BoolOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) bool { return v.Hidden }).(pulumi.BoolOutput) -} - -// The provider-assigned unique ID for this managed resource. -func (o LookupRoleTempalteResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) string { return v.Id }).(pulumi.StringOutput) -} - -// (Computed) Labels for role template object (map) -func (o LookupRoleTempalteResultOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) -} - -// (Computed) Locked role template (bool) -func (o LookupRoleTempalteResultOutput) Locked() pulumi.BoolOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) bool { return v.Locked }).(pulumi.BoolOutput) -} - -func (o LookupRoleTempalteResultOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) string { return v.Name }).(pulumi.StringOutput) -} - -// (Computed) Inherit role template IDs (list) -func (o LookupRoleTempalteResultOutput) RoleTemplateIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) []string { return v.RoleTemplateIds }).(pulumi.StringArrayOutput) -} - -// (Computed) Role template policy rules (list) -func (o LookupRoleTempalteResultOutput) Rules() GetRoleTempalteRuleArrayOutput { - return o.ApplyT(func(v LookupRoleTempalteResult) []GetRoleTempalteRule { return v.Rules }).(GetRoleTempalteRuleArrayOutput) -} - -func init() { - pulumi.RegisterOutputType(LookupRoleTempalteResultOutput{}) -} diff --git a/sdk/go/rancher2/getRoleTemplate.go b/sdk/go/rancher2/getRoleTemplate.go index a9f65a814..373580616 100644 --- a/sdk/go/rancher2/getRoleTemplate.go +++ b/sdk/go/rancher2/getRoleTemplate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getSecret.go b/sdk/go/rancher2/getSecret.go index 627677462..8a474a82f 100644 --- a/sdk/go/rancher2/getSecret.go +++ b/sdk/go/rancher2/getSecret.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -24,7 +24,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -49,7 +49,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getSecretV2.go b/sdk/go/rancher2/getSecretV2.go index b2b08d62b..26792936b 100644 --- a/sdk/go/rancher2/getSecretV2.go +++ b/sdk/go/rancher2/getSecretV2.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/getSetting.go b/sdk/go/rancher2/getSetting.go index 68fd39ab8..cc4dc3021 100644 --- a/sdk/go/rancher2/getSetting.go +++ b/sdk/go/rancher2/getSetting.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/getStorageClassV2.go b/sdk/go/rancher2/getStorageClassV2.go index 679a65f51..c1c0999a6 100644 --- a/sdk/go/rancher2/getStorageClassV2.go +++ b/sdk/go/rancher2/getStorageClassV2.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/getUser.go b/sdk/go/rancher2/getUser.go index f14ed7003..afbfc4fbe 100644 --- a/sdk/go/rancher2/getUser.go +++ b/sdk/go/rancher2/getUser.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/globalDns.go b/sdk/go/rancher2/globalDns.go index 935639d17..6c6eaf5e4 100644 --- a/sdk/go/rancher2/globalDns.go +++ b/sdk/go/rancher2/globalDns.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -62,7 +62,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/globalDnsProvider.go b/sdk/go/rancher2/globalDnsProvider.go index edff78f19..1e24f47bf 100644 --- a/sdk/go/rancher2/globalDnsProvider.go +++ b/sdk/go/rancher2/globalDnsProvider.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -49,7 +49,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -78,7 +78,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/globalRole.go b/sdk/go/rancher2/globalRole.go index 5bb40226e..4f7c74f68 100644 --- a/sdk/go/rancher2/globalRole.go +++ b/sdk/go/rancher2/globalRole.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -71,6 +71,8 @@ type GlobalRole struct { Builtin pulumi.BoolOutput `pulumi:"builtin"` // Global role description (string) Description pulumi.StringOutput `pulumi:"description"` + // Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + InheritedClusterRoles pulumi.StringArrayOutput `pulumi:"inheritedClusterRoles"` // Labels for global role object (map) Labels pulumi.MapOutput `pulumi:"labels"` // Global role name (string) @@ -117,6 +119,8 @@ type globalRoleState struct { Builtin *bool `pulumi:"builtin"` // Global role description (string) Description *string `pulumi:"description"` + // Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + InheritedClusterRoles []string `pulumi:"inheritedClusterRoles"` // Labels for global role object (map) Labels map[string]interface{} `pulumi:"labels"` // Global role name (string) @@ -134,6 +138,8 @@ type GlobalRoleState struct { Builtin pulumi.BoolPtrInput // Global role description (string) Description pulumi.StringPtrInput + // Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + InheritedClusterRoles pulumi.StringArrayInput // Labels for global role object (map) Labels pulumi.MapInput // Global role name (string) @@ -153,6 +159,8 @@ type globalRoleArgs struct { Annotations map[string]interface{} `pulumi:"annotations"` // Global role description (string) Description *string `pulumi:"description"` + // Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + InheritedClusterRoles []string `pulumi:"inheritedClusterRoles"` // Labels for global role object (map) Labels map[string]interface{} `pulumi:"labels"` // Global role name (string) @@ -169,6 +177,8 @@ type GlobalRoleArgs struct { Annotations pulumi.MapInput // Global role description (string) Description pulumi.StringPtrInput + // Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + InheritedClusterRoles pulumi.StringArrayInput // Labels for global role object (map) Labels pulumi.MapInput // Global role name (string) @@ -281,6 +291,11 @@ func (o GlobalRoleOutput) Description() pulumi.StringOutput { return o.ApplyT(func(v *GlobalRole) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) } +// Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster +func (o GlobalRoleOutput) InheritedClusterRoles() pulumi.StringArrayOutput { + return o.ApplyT(func(v *GlobalRole) pulumi.StringArrayOutput { return v.InheritedClusterRoles }).(pulumi.StringArrayOutput) +} + // Labels for global role object (map) func (o GlobalRoleOutput) Labels() pulumi.MapOutput { return o.ApplyT(func(v *GlobalRole) pulumi.MapOutput { return v.Labels }).(pulumi.MapOutput) diff --git a/sdk/go/rancher2/globalRoleBinding.go b/sdk/go/rancher2/globalRoleBinding.go index 0af000597..2cc0b9a79 100644 --- a/sdk/go/rancher2/globalRoleBinding.go +++ b/sdk/go/rancher2/globalRoleBinding.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/init.go b/sdk/go/rancher2/init.go index efc79d962..34df5284f 100644 --- a/sdk/go/rancher2/init.go +++ b/sdk/go/rancher2/init.go @@ -7,7 +7,7 @@ import ( "fmt" "github.com/blang/semver" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,8 +21,6 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { - case "rancher2:index/activeDirectory:ActiveDirectory": - r = &ActiveDirectory{} case "rancher2:index/app:App": r = &App{} case "rancher2:index/appV2:AppV2": @@ -61,10 +59,6 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &ClusterAlertGroup{} case "rancher2:index/clusterAlertRule:ClusterAlertRule": r = &ClusterAlertRule{} - case "rancher2:index/clusterAlterGroup:ClusterAlterGroup": - r = &ClusterAlterGroup{} - case "rancher2:index/clusterAlterRule:ClusterAlterRule": - r = &ClusterAlterRule{} case "rancher2:index/clusterDriver:ClusterDriver": r = &ClusterDriver{} case "rancher2:index/clusterRoleTemplateBinding:ClusterRoleTemplateBinding": @@ -117,8 +111,6 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &ProjectRoleTemplateBinding{} case "rancher2:index/registry:Registry": r = &Registry{} - case "rancher2:index/roleTempalte:RoleTempalte": - r = &RoleTempalte{} case "rancher2:index/roleTemplate:RoleTemplate": r = &RoleTemplate{} case "rancher2:index/secret:Secret": @@ -164,11 +156,6 @@ func init() { if err != nil { version = semver.Version{Major: 1} } - pulumi.RegisterResourceModule( - "rancher2", - "index/activeDirectory", - &module{version}, - ) pulumi.RegisterResourceModule( "rancher2", "index/app", @@ -264,16 +251,6 @@ func init() { "index/clusterAlertRule", &module{version}, ) - pulumi.RegisterResourceModule( - "rancher2", - "index/clusterAlterGroup", - &module{version}, - ) - pulumi.RegisterResourceModule( - "rancher2", - "index/clusterAlterRule", - &module{version}, - ) pulumi.RegisterResourceModule( "rancher2", "index/clusterDriver", @@ -404,11 +381,6 @@ func init() { "index/registry", &module{version}, ) - pulumi.RegisterResourceModule( - "rancher2", - "index/roleTempalte", - &module{version}, - ) pulumi.RegisterResourceModule( "rancher2", "index/roleTemplate", diff --git a/sdk/go/rancher2/machineConfigV2.go b/sdk/go/rancher2/machineConfigV2.go index 51a764adf..b6284ef08 100644 --- a/sdk/go/rancher2/machineConfigV2.go +++ b/sdk/go/rancher2/machineConfigV2.go @@ -8,15 +8,13 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above. // -// `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere` cloud providers are supported for machine config V2 -// -// **Note:** This resource is used by +// The supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`. // // ## Example Usage // ### Using the Harvester Node Driver @@ -26,7 +24,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/multiClusterApp.go b/sdk/go/rancher2/multiClusterApp.go index 97cb5b976..454e7ff72 100644 --- a/sdk/go/rancher2/multiClusterApp.go +++ b/sdk/go/rancher2/multiClusterApp.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -28,7 +28,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -69,7 +69,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/namespace.go b/sdk/go/rancher2/namespace.go index 4bd94c818..681e0bc57 100644 --- a/sdk/go/rancher2/namespace.go +++ b/sdk/go/rancher2/namespace.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -59,7 +59,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/nodeDriver.go b/sdk/go/rancher2/nodeDriver.go index dfec40d2a..18566f479 100644 --- a/sdk/go/rancher2/nodeDriver.go +++ b/sdk/go/rancher2/nodeDriver.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/nodePool.go b/sdk/go/rancher2/nodePool.go index 174d77cc3..bfc2abe2f 100644 --- a/sdk/go/rancher2/nodePool.go +++ b/sdk/go/rancher2/nodePool.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/nodeTemplate.go b/sdk/go/rancher2/nodeTemplate.go index 05c700073..6fc669a41 100644 --- a/sdk/go/rancher2/nodeTemplate.go +++ b/sdk/go/rancher2/nodeTemplate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -24,7 +24,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -60,7 +60,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -106,7 +106,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -182,7 +182,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/notifier.go b/sdk/go/rancher2/notifier.go index 098ddf9a7..5f959947a 100644 --- a/sdk/go/rancher2/notifier.go +++ b/sdk/go/rancher2/notifier.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/podSecurityPolicyTemplate.go b/sdk/go/rancher2/podSecurityPolicyTemplate.go index 7bdddb0d7..6b8c4345d 100644 --- a/sdk/go/rancher2/podSecurityPolicyTemplate.go +++ b/sdk/go/rancher2/podSecurityPolicyTemplate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -20,7 +20,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/project.go b/sdk/go/rancher2/project.go index d49c29680..65dedd517 100644 --- a/sdk/go/rancher2/project.go +++ b/sdk/go/rancher2/project.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -63,7 +63,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/projectAlertGroup.go b/sdk/go/rancher2/projectAlertGroup.go index 1ef207f68..13c8e448f 100644 --- a/sdk/go/rancher2/projectAlertGroup.go +++ b/sdk/go/rancher2/projectAlertGroup.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/projectAlertRule.go b/sdk/go/rancher2/projectAlertRule.go index 8e13bc669..daed4b08f 100644 --- a/sdk/go/rancher2/projectAlertRule.go +++ b/sdk/go/rancher2/projectAlertRule.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/projectRoleTemplateBinding.go b/sdk/go/rancher2/projectRoleTemplateBinding.go index fc313106e..31eb7daf5 100644 --- a/sdk/go/rancher2/projectRoleTemplateBinding.go +++ b/sdk/go/rancher2/projectRoleTemplateBinding.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -21,7 +21,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -66,7 +66,7 @@ type ProjectRoleTemplateBinding struct { Labels pulumi.MapOutput `pulumi:"labels"` // The name of the project role template binding (string) Name pulumi.StringOutput `pulumi:"name"` - // The project id where bind project role template (string) + // The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) ProjectId pulumi.StringOutput `pulumi:"projectId"` // The role template id from create project role template binding (string) RoleTemplateId pulumi.StringOutput `pulumi:"roleTemplateId"` @@ -124,7 +124,7 @@ type projectRoleTemplateBindingState struct { Labels map[string]interface{} `pulumi:"labels"` // The name of the project role template binding (string) Name *string `pulumi:"name"` - // The project id where bind project role template (string) + // The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) ProjectId *string `pulumi:"projectId"` // The role template id from create project role template binding (string) RoleTemplateId *string `pulumi:"roleTemplateId"` @@ -147,7 +147,7 @@ type ProjectRoleTemplateBindingState struct { Labels pulumi.MapInput // The name of the project role template binding (string) Name pulumi.StringPtrInput - // The project id where bind project role template (string) + // The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) ProjectId pulumi.StringPtrInput // The role template id from create project role template binding (string) RoleTemplateId pulumi.StringPtrInput @@ -174,7 +174,7 @@ type projectRoleTemplateBindingArgs struct { Labels map[string]interface{} `pulumi:"labels"` // The name of the project role template binding (string) Name *string `pulumi:"name"` - // The project id where bind project role template (string) + // The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) ProjectId string `pulumi:"projectId"` // The role template id from create project role template binding (string) RoleTemplateId string `pulumi:"roleTemplateId"` @@ -198,7 +198,7 @@ type ProjectRoleTemplateBindingArgs struct { Labels pulumi.MapInput // The name of the project role template binding (string) Name pulumi.StringPtrInput - // The project id where bind project role template (string) + // The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) ProjectId pulumi.StringInput // The role template id from create project role template binding (string) RoleTemplateId pulumi.StringInput @@ -322,7 +322,7 @@ func (o ProjectRoleTemplateBindingOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ProjectRoleTemplateBinding) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } -// The project id where bind project role template (string) +// The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) func (o ProjectRoleTemplateBindingOutput) ProjectId() pulumi.StringOutput { return o.ApplyT(func(v *ProjectRoleTemplateBinding) pulumi.StringOutput { return v.ProjectId }).(pulumi.StringOutput) } diff --git a/sdk/go/rancher2/provider.go b/sdk/go/rancher2/provider.go index 7c1a498a9..a77fe05d8 100644 --- a/sdk/go/rancher2/provider.go +++ b/sdk/go/rancher2/provider.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/pulumiTypes.go b/sdk/go/rancher2/pulumiTypes.go index 28b48dbb5..1e68be99a 100644 --- a/sdk/go/rancher2/pulumiTypes.go +++ b/sdk/go/rancher2/pulumiTypes.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -4305,3777 +4305,2934 @@ func (o ClusterAlertRuleSystemServiceRulePtrOutput) Condition() pulumi.StringPtr }).(pulumi.StringPtrOutput) } -type ClusterAlterGroupRecipient struct { - // Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - DefaultRecipient *bool `pulumi:"defaultRecipient"` - // Recipient notifier ID (string) - NotifierId string `pulumi:"notifierId"` - // Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - NotifierType *string `pulumi:"notifierType"` - // Recipient (string) - Recipient *string `pulumi:"recipient"` +type ClusterClusterAgentDeploymentCustomization struct { + // User defined tolerations to append to agent (list) + AppendTolerations []ClusterClusterAgentDeploymentCustomizationAppendToleration `pulumi:"appendTolerations"` + // User defined affinity to override default agent affinity (string) + OverrideAffinity *string `pulumi:"overrideAffinity"` + // User defined resource requirements to set on the agent (list) + OverrideResourceRequirements []ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement `pulumi:"overrideResourceRequirements"` } -// ClusterAlterGroupRecipientInput is an input type that accepts ClusterAlterGroupRecipientArgs and ClusterAlterGroupRecipientOutput values. -// You can construct a concrete instance of `ClusterAlterGroupRecipientInput` via: +// ClusterClusterAgentDeploymentCustomizationInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationArgs and ClusterClusterAgentDeploymentCustomizationOutput values. +// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationInput` via: // -// ClusterAlterGroupRecipientArgs{...} -type ClusterAlterGroupRecipientInput interface { +// ClusterClusterAgentDeploymentCustomizationArgs{...} +type ClusterClusterAgentDeploymentCustomizationInput interface { pulumi.Input - ToClusterAlterGroupRecipientOutput() ClusterAlterGroupRecipientOutput - ToClusterAlterGroupRecipientOutputWithContext(context.Context) ClusterAlterGroupRecipientOutput + ToClusterClusterAgentDeploymentCustomizationOutput() ClusterClusterAgentDeploymentCustomizationOutput + ToClusterClusterAgentDeploymentCustomizationOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationOutput } -type ClusterAlterGroupRecipientArgs struct { - // Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - DefaultRecipient pulumi.BoolPtrInput `pulumi:"defaultRecipient"` - // Recipient notifier ID (string) - NotifierId pulumi.StringInput `pulumi:"notifierId"` - // Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - NotifierType pulumi.StringPtrInput `pulumi:"notifierType"` - // Recipient (string) - Recipient pulumi.StringPtrInput `pulumi:"recipient"` +type ClusterClusterAgentDeploymentCustomizationArgs struct { + // User defined tolerations to append to agent (list) + AppendTolerations ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayInput `pulumi:"appendTolerations"` + // User defined affinity to override default agent affinity (string) + OverrideAffinity pulumi.StringPtrInput `pulumi:"overrideAffinity"` + // User defined resource requirements to set on the agent (list) + OverrideResourceRequirements ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput `pulumi:"overrideResourceRequirements"` } -func (ClusterAlterGroupRecipientArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterGroupRecipient)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomization)(nil)).Elem() } -func (i ClusterAlterGroupRecipientArgs) ToClusterAlterGroupRecipientOutput() ClusterAlterGroupRecipientOutput { - return i.ToClusterAlterGroupRecipientOutputWithContext(context.Background()) +func (i ClusterClusterAgentDeploymentCustomizationArgs) ToClusterClusterAgentDeploymentCustomizationOutput() ClusterClusterAgentDeploymentCustomizationOutput { + return i.ToClusterClusterAgentDeploymentCustomizationOutputWithContext(context.Background()) } -func (i ClusterAlterGroupRecipientArgs) ToClusterAlterGroupRecipientOutputWithContext(ctx context.Context) ClusterAlterGroupRecipientOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterGroupRecipientOutput) +func (i ClusterClusterAgentDeploymentCustomizationArgs) ToClusterClusterAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationOutput) } -// ClusterAlterGroupRecipientArrayInput is an input type that accepts ClusterAlterGroupRecipientArray and ClusterAlterGroupRecipientArrayOutput values. -// You can construct a concrete instance of `ClusterAlterGroupRecipientArrayInput` via: +// ClusterClusterAgentDeploymentCustomizationArrayInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationArray and ClusterClusterAgentDeploymentCustomizationArrayOutput values. +// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationArrayInput` via: // -// ClusterAlterGroupRecipientArray{ ClusterAlterGroupRecipientArgs{...} } -type ClusterAlterGroupRecipientArrayInput interface { +// ClusterClusterAgentDeploymentCustomizationArray{ ClusterClusterAgentDeploymentCustomizationArgs{...} } +type ClusterClusterAgentDeploymentCustomizationArrayInput interface { pulumi.Input - ToClusterAlterGroupRecipientArrayOutput() ClusterAlterGroupRecipientArrayOutput - ToClusterAlterGroupRecipientArrayOutputWithContext(context.Context) ClusterAlterGroupRecipientArrayOutput + ToClusterClusterAgentDeploymentCustomizationArrayOutput() ClusterClusterAgentDeploymentCustomizationArrayOutput + ToClusterClusterAgentDeploymentCustomizationArrayOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationArrayOutput } -type ClusterAlterGroupRecipientArray []ClusterAlterGroupRecipientInput +type ClusterClusterAgentDeploymentCustomizationArray []ClusterClusterAgentDeploymentCustomizationInput -func (ClusterAlterGroupRecipientArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterAlterGroupRecipient)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomization)(nil)).Elem() } -func (i ClusterAlterGroupRecipientArray) ToClusterAlterGroupRecipientArrayOutput() ClusterAlterGroupRecipientArrayOutput { - return i.ToClusterAlterGroupRecipientArrayOutputWithContext(context.Background()) +func (i ClusterClusterAgentDeploymentCustomizationArray) ToClusterClusterAgentDeploymentCustomizationArrayOutput() ClusterClusterAgentDeploymentCustomizationArrayOutput { + return i.ToClusterClusterAgentDeploymentCustomizationArrayOutputWithContext(context.Background()) } -func (i ClusterAlterGroupRecipientArray) ToClusterAlterGroupRecipientArrayOutputWithContext(ctx context.Context) ClusterAlterGroupRecipientArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterGroupRecipientArrayOutput) +func (i ClusterClusterAgentDeploymentCustomizationArray) ToClusterClusterAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationArrayOutput) } -type ClusterAlterGroupRecipientOutput struct{ *pulumi.OutputState } +type ClusterClusterAgentDeploymentCustomizationOutput struct{ *pulumi.OutputState } -func (ClusterAlterGroupRecipientOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterGroupRecipient)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomization)(nil)).Elem() } -func (o ClusterAlterGroupRecipientOutput) ToClusterAlterGroupRecipientOutput() ClusterAlterGroupRecipientOutput { +func (o ClusterClusterAgentDeploymentCustomizationOutput) ToClusterClusterAgentDeploymentCustomizationOutput() ClusterClusterAgentDeploymentCustomizationOutput { return o } -func (o ClusterAlterGroupRecipientOutput) ToClusterAlterGroupRecipientOutputWithContext(ctx context.Context) ClusterAlterGroupRecipientOutput { +func (o ClusterClusterAgentDeploymentCustomizationOutput) ToClusterClusterAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOutput { return o } -// Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) -func (o ClusterAlterGroupRecipientOutput) DefaultRecipient() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterAlterGroupRecipient) *bool { return v.DefaultRecipient }).(pulumi.BoolPtrOutput) -} - -// Recipient notifier ID (string) -func (o ClusterAlterGroupRecipientOutput) NotifierId() pulumi.StringOutput { - return o.ApplyT(func(v ClusterAlterGroupRecipient) string { return v.NotifierId }).(pulumi.StringOutput) +// User defined tolerations to append to agent (list) +func (o ClusterClusterAgentDeploymentCustomizationOutput) AppendTolerations() ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomization) []ClusterClusterAgentDeploymentCustomizationAppendToleration { + return v.AppendTolerations + }).(ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) } -// Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) -func (o ClusterAlterGroupRecipientOutput) NotifierType() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterAlterGroupRecipient) *string { return v.NotifierType }).(pulumi.StringPtrOutput) +// User defined affinity to override default agent affinity (string) +func (o ClusterClusterAgentDeploymentCustomizationOutput) OverrideAffinity() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomization) *string { return v.OverrideAffinity }).(pulumi.StringPtrOutput) } -// Recipient (string) -func (o ClusterAlterGroupRecipientOutput) Recipient() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterAlterGroupRecipient) *string { return v.Recipient }).(pulumi.StringPtrOutput) +// User defined resource requirements to set on the agent (list) +func (o ClusterClusterAgentDeploymentCustomizationOutput) OverrideResourceRequirements() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomization) []ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement { + return v.OverrideResourceRequirements + }).(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) } -type ClusterAlterGroupRecipientArrayOutput struct{ *pulumi.OutputState } +type ClusterClusterAgentDeploymentCustomizationArrayOutput struct{ *pulumi.OutputState } -func (ClusterAlterGroupRecipientArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterAlterGroupRecipient)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomization)(nil)).Elem() } -func (o ClusterAlterGroupRecipientArrayOutput) ToClusterAlterGroupRecipientArrayOutput() ClusterAlterGroupRecipientArrayOutput { +func (o ClusterClusterAgentDeploymentCustomizationArrayOutput) ToClusterClusterAgentDeploymentCustomizationArrayOutput() ClusterClusterAgentDeploymentCustomizationArrayOutput { return o } -func (o ClusterAlterGroupRecipientArrayOutput) ToClusterAlterGroupRecipientArrayOutputWithContext(ctx context.Context) ClusterAlterGroupRecipientArrayOutput { +func (o ClusterClusterAgentDeploymentCustomizationArrayOutput) ToClusterClusterAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationArrayOutput { return o } -func (o ClusterAlterGroupRecipientArrayOutput) Index(i pulumi.IntInput) ClusterAlterGroupRecipientOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterAlterGroupRecipient { - return vs[0].([]ClusterAlterGroupRecipient)[vs[1].(int)] - }).(ClusterAlterGroupRecipientOutput) +func (o ClusterClusterAgentDeploymentCustomizationArrayOutput) Index(i pulumi.IntInput) ClusterClusterAgentDeploymentCustomizationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterAgentDeploymentCustomization { + return vs[0].([]ClusterClusterAgentDeploymentCustomization)[vs[1].(int)] + }).(ClusterClusterAgentDeploymentCustomizationOutput) } -type ClusterAlterRuleEventRule struct { - // Event type - EventType *string `pulumi:"eventType"` - // Resource kind - ResourceKind string `pulumi:"resourceKind"` +type ClusterClusterAgentDeploymentCustomizationAppendToleration struct { + // The GKE taint effect (string) + Effect *string `pulumi:"effect"` + // The GKE taint key (string) + Key string `pulumi:"key"` + // The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) + Operator *string `pulumi:"operator"` + // The toleration seconds (int) + Seconds *int `pulumi:"seconds"` + // The GKE taint value (string) + Value *string `pulumi:"value"` } -// ClusterAlterRuleEventRuleInput is an input type that accepts ClusterAlterRuleEventRuleArgs and ClusterAlterRuleEventRuleOutput values. -// You can construct a concrete instance of `ClusterAlterRuleEventRuleInput` via: +// ClusterClusterAgentDeploymentCustomizationAppendTolerationInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs and ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput values. +// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationAppendTolerationInput` via: // -// ClusterAlterRuleEventRuleArgs{...} -type ClusterAlterRuleEventRuleInput interface { +// ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs{...} +type ClusterClusterAgentDeploymentCustomizationAppendTolerationInput interface { pulumi.Input - ToClusterAlterRuleEventRuleOutput() ClusterAlterRuleEventRuleOutput - ToClusterAlterRuleEventRuleOutputWithContext(context.Context) ClusterAlterRuleEventRuleOutput -} - -type ClusterAlterRuleEventRuleArgs struct { - // Event type - EventType pulumi.StringPtrInput `pulumi:"eventType"` - // Resource kind - ResourceKind pulumi.StringInput `pulumi:"resourceKind"` -} - -func (ClusterAlterRuleEventRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterRuleEventRule)(nil)).Elem() + ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput + ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput } -func (i ClusterAlterRuleEventRuleArgs) ToClusterAlterRuleEventRuleOutput() ClusterAlterRuleEventRuleOutput { - return i.ToClusterAlterRuleEventRuleOutputWithContext(context.Background()) +type ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs struct { + // The GKE taint effect (string) + Effect pulumi.StringPtrInput `pulumi:"effect"` + // The GKE taint key (string) + Key pulumi.StringInput `pulumi:"key"` + // The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) + Operator pulumi.StringPtrInput `pulumi:"operator"` + // The toleration seconds (int) + Seconds pulumi.IntPtrInput `pulumi:"seconds"` + // The GKE taint value (string) + Value pulumi.StringPtrInput `pulumi:"value"` } -func (i ClusterAlterRuleEventRuleArgs) ToClusterAlterRuleEventRuleOutputWithContext(ctx context.Context) ClusterAlterRuleEventRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleEventRuleOutput) +func (ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (i ClusterAlterRuleEventRuleArgs) ToClusterAlterRuleEventRulePtrOutput() ClusterAlterRuleEventRulePtrOutput { - return i.ToClusterAlterRuleEventRulePtrOutputWithContext(context.Background()) +func (i ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs) ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { + return i.ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Background()) } -func (i ClusterAlterRuleEventRuleArgs) ToClusterAlterRuleEventRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleEventRulePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleEventRuleOutput).ToClusterAlterRuleEventRulePtrOutputWithContext(ctx) +func (i ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs) ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) } -// ClusterAlterRuleEventRulePtrInput is an input type that accepts ClusterAlterRuleEventRuleArgs, ClusterAlterRuleEventRulePtr and ClusterAlterRuleEventRulePtrOutput values. -// You can construct a concrete instance of `ClusterAlterRuleEventRulePtrInput` via: -// -// ClusterAlterRuleEventRuleArgs{...} -// -// or: +// ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationAppendTolerationArray and ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput values. +// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayInput` via: // -// nil -type ClusterAlterRuleEventRulePtrInput interface { +// ClusterClusterAgentDeploymentCustomizationAppendTolerationArray{ ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs{...} } +type ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayInput interface { pulumi.Input - ToClusterAlterRuleEventRulePtrOutput() ClusterAlterRuleEventRulePtrOutput - ToClusterAlterRuleEventRulePtrOutputWithContext(context.Context) ClusterAlterRuleEventRulePtrOutput + ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput + ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput } -type clusterAlterRuleEventRulePtrType ClusterAlterRuleEventRuleArgs - -func ClusterAlterRuleEventRulePtr(v *ClusterAlterRuleEventRuleArgs) ClusterAlterRuleEventRulePtrInput { - return (*clusterAlterRuleEventRulePtrType)(v) -} +type ClusterClusterAgentDeploymentCustomizationAppendTolerationArray []ClusterClusterAgentDeploymentCustomizationAppendTolerationInput -func (*clusterAlterRuleEventRulePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRuleEventRule)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationAppendTolerationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (i *clusterAlterRuleEventRulePtrType) ToClusterAlterRuleEventRulePtrOutput() ClusterAlterRuleEventRulePtrOutput { - return i.ToClusterAlterRuleEventRulePtrOutputWithContext(context.Background()) +func (i ClusterClusterAgentDeploymentCustomizationAppendTolerationArray) ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return i.ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Background()) } -func (i *clusterAlterRuleEventRulePtrType) ToClusterAlterRuleEventRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleEventRulePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleEventRulePtrOutput) +func (i ClusterClusterAgentDeploymentCustomizationAppendTolerationArray) ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) } -type ClusterAlterRuleEventRuleOutput struct{ *pulumi.OutputState } +type ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput struct{ *pulumi.OutputState } -func (ClusterAlterRuleEventRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterRuleEventRule)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (o ClusterAlterRuleEventRuleOutput) ToClusterAlterRuleEventRuleOutput() ClusterAlterRuleEventRuleOutput { +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { return o } -func (o ClusterAlterRuleEventRuleOutput) ToClusterAlterRuleEventRuleOutputWithContext(ctx context.Context) ClusterAlterRuleEventRuleOutput { +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { return o } -func (o ClusterAlterRuleEventRuleOutput) ToClusterAlterRuleEventRulePtrOutput() ClusterAlterRuleEventRulePtrOutput { - return o.ToClusterAlterRuleEventRulePtrOutputWithContext(context.Background()) +// The GKE taint effect (string) +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) } -func (o ClusterAlterRuleEventRuleOutput) ToClusterAlterRuleEventRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleEventRulePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterAlterRuleEventRule) *ClusterAlterRuleEventRule { - return &v - }).(ClusterAlterRuleEventRulePtrOutput) +// The GKE taint key (string) +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) string { return v.Key }).(pulumi.StringOutput) } -// Event type -func (o ClusterAlterRuleEventRuleOutput) EventType() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterAlterRuleEventRule) *string { return v.EventType }).(pulumi.StringPtrOutput) +// The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) } -// Resource kind -func (o ClusterAlterRuleEventRuleOutput) ResourceKind() pulumi.StringOutput { - return o.ApplyT(func(v ClusterAlterRuleEventRule) string { return v.ResourceKind }).(pulumi.StringOutput) +// The toleration seconds (int) +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Seconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) } -type ClusterAlterRuleEventRulePtrOutput struct{ *pulumi.OutputState } - -func (ClusterAlterRuleEventRulePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRuleEventRule)(nil)).Elem() +// The GKE taint value (string) +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Value() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Value }).(pulumi.StringPtrOutput) } -func (o ClusterAlterRuleEventRulePtrOutput) ToClusterAlterRuleEventRulePtrOutput() ClusterAlterRuleEventRulePtrOutput { - return o -} +type ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput struct{ *pulumi.OutputState } -func (o ClusterAlterRuleEventRulePtrOutput) ToClusterAlterRuleEventRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleEventRulePtrOutput { - return o +func (ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (o ClusterAlterRuleEventRulePtrOutput) Elem() ClusterAlterRuleEventRuleOutput { - return o.ApplyT(func(v *ClusterAlterRuleEventRule) ClusterAlterRuleEventRule { - if v != nil { - return *v - } - var ret ClusterAlterRuleEventRule - return ret - }).(ClusterAlterRuleEventRuleOutput) +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o } -// Event type -func (o ClusterAlterRuleEventRulePtrOutput) EventType() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleEventRule) *string { - if v == nil { - return nil - } - return v.EventType - }).(pulumi.StringPtrOutput) +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o } -// Resource kind -func (o ClusterAlterRuleEventRulePtrOutput) ResourceKind() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleEventRule) *string { - if v == nil { - return nil - } - return &v.ResourceKind - }).(pulumi.StringPtrOutput) +func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) Index(i pulumi.IntInput) ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterAgentDeploymentCustomizationAppendToleration { + return vs[0].([]ClusterClusterAgentDeploymentCustomizationAppendToleration)[vs[1].(int)] + }).(ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) } -type ClusterAlterRuleMetricRule struct { - // Metric rule comparison - Comparison *string `pulumi:"comparison"` - // The cluster alert group description (string) - Description *string `pulumi:"description"` - // Metric rule duration - Duration string `pulumi:"duration"` - // Metric rule expression - Expression string `pulumi:"expression"` - // Metric rule threshold value - ThresholdValue float64 `pulumi:"thresholdValue"` +type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement struct { + // The maximum CPU limit for agent (string) + CpuLimit *string `pulumi:"cpuLimit"` + // The minimum CPU required for agent (string) + CpuRequest *string `pulumi:"cpuRequest"` + // The maximum memory limit for agent (string) + MemoryLimit *string `pulumi:"memoryLimit"` + // The minimum memory required for agent (string) + MemoryRequest *string `pulumi:"memoryRequest"` } -// ClusterAlterRuleMetricRuleInput is an input type that accepts ClusterAlterRuleMetricRuleArgs and ClusterAlterRuleMetricRuleOutput values. -// You can construct a concrete instance of `ClusterAlterRuleMetricRuleInput` via: +// ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs and ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput values. +// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementInput` via: // -// ClusterAlterRuleMetricRuleArgs{...} -type ClusterAlterRuleMetricRuleInput interface { +// ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} +type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementInput interface { pulumi.Input - ToClusterAlterRuleMetricRuleOutput() ClusterAlterRuleMetricRuleOutput - ToClusterAlterRuleMetricRuleOutputWithContext(context.Context) ClusterAlterRuleMetricRuleOutput -} - -type ClusterAlterRuleMetricRuleArgs struct { - // Metric rule comparison - Comparison pulumi.StringPtrInput `pulumi:"comparison"` - // The cluster alert group description (string) - Description pulumi.StringPtrInput `pulumi:"description"` - // Metric rule duration - Duration pulumi.StringInput `pulumi:"duration"` - // Metric rule expression - Expression pulumi.StringInput `pulumi:"expression"` - // Metric rule threshold value - ThresholdValue pulumi.Float64Input `pulumi:"thresholdValue"` -} - -func (ClusterAlterRuleMetricRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterRuleMetricRule)(nil)).Elem() + ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput + ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput } -func (i ClusterAlterRuleMetricRuleArgs) ToClusterAlterRuleMetricRuleOutput() ClusterAlterRuleMetricRuleOutput { - return i.ToClusterAlterRuleMetricRuleOutputWithContext(context.Background()) +type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs struct { + // The maximum CPU limit for agent (string) + CpuLimit pulumi.StringPtrInput `pulumi:"cpuLimit"` + // The minimum CPU required for agent (string) + CpuRequest pulumi.StringPtrInput `pulumi:"cpuRequest"` + // The maximum memory limit for agent (string) + MemoryLimit pulumi.StringPtrInput `pulumi:"memoryLimit"` + // The minimum memory required for agent (string) + MemoryRequest pulumi.StringPtrInput `pulumi:"memoryRequest"` } -func (i ClusterAlterRuleMetricRuleArgs) ToClusterAlterRuleMetricRuleOutputWithContext(ctx context.Context) ClusterAlterRuleMetricRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleMetricRuleOutput) +func (ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (i ClusterAlterRuleMetricRuleArgs) ToClusterAlterRuleMetricRulePtrOutput() ClusterAlterRuleMetricRulePtrOutput { - return i.ToClusterAlterRuleMetricRulePtrOutputWithContext(context.Background()) +func (i ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return i.ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Background()) } -func (i ClusterAlterRuleMetricRuleArgs) ToClusterAlterRuleMetricRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleMetricRulePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleMetricRuleOutput).ToClusterAlterRuleMetricRulePtrOutputWithContext(ctx) +func (i ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) } -// ClusterAlterRuleMetricRulePtrInput is an input type that accepts ClusterAlterRuleMetricRuleArgs, ClusterAlterRuleMetricRulePtr and ClusterAlterRuleMetricRulePtrOutput values. -// You can construct a concrete instance of `ClusterAlterRuleMetricRulePtrInput` via: -// -// ClusterAlterRuleMetricRuleArgs{...} -// -// or: +// ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray and ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput values. +// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput` via: // -// nil -type ClusterAlterRuleMetricRulePtrInput interface { +// ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray{ ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} } +type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput interface { pulumi.Input - ToClusterAlterRuleMetricRulePtrOutput() ClusterAlterRuleMetricRulePtrOutput - ToClusterAlterRuleMetricRulePtrOutputWithContext(context.Context) ClusterAlterRuleMetricRulePtrOutput + ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput + ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput } -type clusterAlterRuleMetricRulePtrType ClusterAlterRuleMetricRuleArgs - -func ClusterAlterRuleMetricRulePtr(v *ClusterAlterRuleMetricRuleArgs) ClusterAlterRuleMetricRulePtrInput { - return (*clusterAlterRuleMetricRulePtrType)(v) -} +type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray []ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementInput -func (*clusterAlterRuleMetricRulePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRuleMetricRule)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (i *clusterAlterRuleMetricRulePtrType) ToClusterAlterRuleMetricRulePtrOutput() ClusterAlterRuleMetricRulePtrOutput { - return i.ToClusterAlterRuleMetricRulePtrOutputWithContext(context.Background()) +func (i ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return i.ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Background()) } -func (i *clusterAlterRuleMetricRulePtrType) ToClusterAlterRuleMetricRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleMetricRulePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleMetricRulePtrOutput) +func (i ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) } -type ClusterAlterRuleMetricRuleOutput struct{ *pulumi.OutputState } +type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput struct{ *pulumi.OutputState } -func (ClusterAlterRuleMetricRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterRuleMetricRule)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (o ClusterAlterRuleMetricRuleOutput) ToClusterAlterRuleMetricRuleOutput() ClusterAlterRuleMetricRuleOutput { +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { return o } -func (o ClusterAlterRuleMetricRuleOutput) ToClusterAlterRuleMetricRuleOutputWithContext(ctx context.Context) ClusterAlterRuleMetricRuleOutput { +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { return o } -func (o ClusterAlterRuleMetricRuleOutput) ToClusterAlterRuleMetricRulePtrOutput() ClusterAlterRuleMetricRulePtrOutput { - return o.ToClusterAlterRuleMetricRulePtrOutputWithContext(context.Background()) -} - -func (o ClusterAlterRuleMetricRuleOutput) ToClusterAlterRuleMetricRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleMetricRulePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterAlterRuleMetricRule) *ClusterAlterRuleMetricRule { - return &v - }).(ClusterAlterRuleMetricRulePtrOutput) -} - -// Metric rule comparison -func (o ClusterAlterRuleMetricRuleOutput) Comparison() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterAlterRuleMetricRule) *string { return v.Comparison }).(pulumi.StringPtrOutput) -} - -// The cluster alert group description (string) -func (o ClusterAlterRuleMetricRuleOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterAlterRuleMetricRule) *string { return v.Description }).(pulumi.StringPtrOutput) +// The maximum CPU limit for agent (string) +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuLimit() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.CpuLimit + }).(pulumi.StringPtrOutput) } -// Metric rule duration -func (o ClusterAlterRuleMetricRuleOutput) Duration() pulumi.StringOutput { - return o.ApplyT(func(v ClusterAlterRuleMetricRule) string { return v.Duration }).(pulumi.StringOutput) +// The minimum CPU required for agent (string) +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuRequest() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.CpuRequest + }).(pulumi.StringPtrOutput) } -// Metric rule expression -func (o ClusterAlterRuleMetricRuleOutput) Expression() pulumi.StringOutput { - return o.ApplyT(func(v ClusterAlterRuleMetricRule) string { return v.Expression }).(pulumi.StringOutput) +// The maximum memory limit for agent (string) +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryLimit() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.MemoryLimit + }).(pulumi.StringPtrOutput) } -// Metric rule threshold value -func (o ClusterAlterRuleMetricRuleOutput) ThresholdValue() pulumi.Float64Output { - return o.ApplyT(func(v ClusterAlterRuleMetricRule) float64 { return v.ThresholdValue }).(pulumi.Float64Output) +// The minimum memory required for agent (string) +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryRequest() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.MemoryRequest + }).(pulumi.StringPtrOutput) } -type ClusterAlterRuleMetricRulePtrOutput struct{ *pulumi.OutputState } +type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput struct{ *pulumi.OutputState } -func (ClusterAlterRuleMetricRulePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRuleMetricRule)(nil)).Elem() +func (ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (o ClusterAlterRuleMetricRulePtrOutput) ToClusterAlterRuleMetricRulePtrOutput() ClusterAlterRuleMetricRulePtrOutput { +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { return o } -func (o ClusterAlterRuleMetricRulePtrOutput) ToClusterAlterRuleMetricRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleMetricRulePtrOutput { +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { return o } -func (o ClusterAlterRuleMetricRulePtrOutput) Elem() ClusterAlterRuleMetricRuleOutput { - return o.ApplyT(func(v *ClusterAlterRuleMetricRule) ClusterAlterRuleMetricRule { - if v != nil { - return *v - } - var ret ClusterAlterRuleMetricRule - return ret - }).(ClusterAlterRuleMetricRuleOutput) -} - -// Metric rule comparison -func (o ClusterAlterRuleMetricRulePtrOutput) Comparison() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleMetricRule) *string { - if v == nil { - return nil - } - return v.Comparison - }).(pulumi.StringPtrOutput) -} - -// The cluster alert group description (string) -func (o ClusterAlterRuleMetricRulePtrOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleMetricRule) *string { - if v == nil { - return nil - } - return v.Description - }).(pulumi.StringPtrOutput) -} - -// Metric rule duration -func (o ClusterAlterRuleMetricRulePtrOutput) Duration() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleMetricRule) *string { - if v == nil { - return nil - } - return &v.Duration - }).(pulumi.StringPtrOutput) -} - -// Metric rule expression -func (o ClusterAlterRuleMetricRulePtrOutput) Expression() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleMetricRule) *string { - if v == nil { - return nil - } - return &v.Expression - }).(pulumi.StringPtrOutput) -} - -// Metric rule threshold value -func (o ClusterAlterRuleMetricRulePtrOutput) ThresholdValue() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleMetricRule) *float64 { - if v == nil { - return nil - } - return &v.ThresholdValue - }).(pulumi.Float64PtrOutput) +func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) Index(i pulumi.IntInput) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement { + return vs[0].([]ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)[vs[1].(int)] + }).(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) } -type ClusterAlterRuleNodeRule struct { - // Node rule condition - Condition *string `pulumi:"condition"` - // Node rule cpu threshold - CpuThreshold *int `pulumi:"cpuThreshold"` - // Node rule mem threshold - MemThreshold *int `pulumi:"memThreshold"` - // Node ID - NodeId *string `pulumi:"nodeId"` - // Node rule selector - Selector map[string]interface{} `pulumi:"selector"` +type ClusterClusterAuthEndpoint struct { + // CA certs for the authorized cluster endpoint (string) + CaCerts *string `pulumi:"caCerts"` + // Enable the authorized cluster endpoint. Default `true` (bool) + Enabled *bool `pulumi:"enabled"` + // FQDN for the authorized cluster endpoint (string) + Fqdn *string `pulumi:"fqdn"` } -// ClusterAlterRuleNodeRuleInput is an input type that accepts ClusterAlterRuleNodeRuleArgs and ClusterAlterRuleNodeRuleOutput values. -// You can construct a concrete instance of `ClusterAlterRuleNodeRuleInput` via: +// ClusterClusterAuthEndpointInput is an input type that accepts ClusterClusterAuthEndpointArgs and ClusterClusterAuthEndpointOutput values. +// You can construct a concrete instance of `ClusterClusterAuthEndpointInput` via: // -// ClusterAlterRuleNodeRuleArgs{...} -type ClusterAlterRuleNodeRuleInput interface { +// ClusterClusterAuthEndpointArgs{...} +type ClusterClusterAuthEndpointInput interface { pulumi.Input - ToClusterAlterRuleNodeRuleOutput() ClusterAlterRuleNodeRuleOutput - ToClusterAlterRuleNodeRuleOutputWithContext(context.Context) ClusterAlterRuleNodeRuleOutput + ToClusterClusterAuthEndpointOutput() ClusterClusterAuthEndpointOutput + ToClusterClusterAuthEndpointOutputWithContext(context.Context) ClusterClusterAuthEndpointOutput } -type ClusterAlterRuleNodeRuleArgs struct { - // Node rule condition - Condition pulumi.StringPtrInput `pulumi:"condition"` - // Node rule cpu threshold - CpuThreshold pulumi.IntPtrInput `pulumi:"cpuThreshold"` - // Node rule mem threshold - MemThreshold pulumi.IntPtrInput `pulumi:"memThreshold"` - // Node ID - NodeId pulumi.StringPtrInput `pulumi:"nodeId"` - // Node rule selector - Selector pulumi.MapInput `pulumi:"selector"` +type ClusterClusterAuthEndpointArgs struct { + // CA certs for the authorized cluster endpoint (string) + CaCerts pulumi.StringPtrInput `pulumi:"caCerts"` + // Enable the authorized cluster endpoint. Default `true` (bool) + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` + // FQDN for the authorized cluster endpoint (string) + Fqdn pulumi.StringPtrInput `pulumi:"fqdn"` } -func (ClusterAlterRuleNodeRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterRuleNodeRule)(nil)).Elem() +func (ClusterClusterAuthEndpointArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterAuthEndpoint)(nil)).Elem() } -func (i ClusterAlterRuleNodeRuleArgs) ToClusterAlterRuleNodeRuleOutput() ClusterAlterRuleNodeRuleOutput { - return i.ToClusterAlterRuleNodeRuleOutputWithContext(context.Background()) +func (i ClusterClusterAuthEndpointArgs) ToClusterClusterAuthEndpointOutput() ClusterClusterAuthEndpointOutput { + return i.ToClusterClusterAuthEndpointOutputWithContext(context.Background()) } -func (i ClusterAlterRuleNodeRuleArgs) ToClusterAlterRuleNodeRuleOutputWithContext(ctx context.Context) ClusterAlterRuleNodeRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleNodeRuleOutput) +func (i ClusterClusterAuthEndpointArgs) ToClusterClusterAuthEndpointOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAuthEndpointOutput) } -func (i ClusterAlterRuleNodeRuleArgs) ToClusterAlterRuleNodeRulePtrOutput() ClusterAlterRuleNodeRulePtrOutput { - return i.ToClusterAlterRuleNodeRulePtrOutputWithContext(context.Background()) +func (i ClusterClusterAuthEndpointArgs) ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput { + return i.ToClusterClusterAuthEndpointPtrOutputWithContext(context.Background()) } -func (i ClusterAlterRuleNodeRuleArgs) ToClusterAlterRuleNodeRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleNodeRulePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleNodeRuleOutput).ToClusterAlterRuleNodeRulePtrOutputWithContext(ctx) +func (i ClusterClusterAuthEndpointArgs) ToClusterClusterAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAuthEndpointOutput).ToClusterClusterAuthEndpointPtrOutputWithContext(ctx) } -// ClusterAlterRuleNodeRulePtrInput is an input type that accepts ClusterAlterRuleNodeRuleArgs, ClusterAlterRuleNodeRulePtr and ClusterAlterRuleNodeRulePtrOutput values. -// You can construct a concrete instance of `ClusterAlterRuleNodeRulePtrInput` via: +// ClusterClusterAuthEndpointPtrInput is an input type that accepts ClusterClusterAuthEndpointArgs, ClusterClusterAuthEndpointPtr and ClusterClusterAuthEndpointPtrOutput values. +// You can construct a concrete instance of `ClusterClusterAuthEndpointPtrInput` via: // -// ClusterAlterRuleNodeRuleArgs{...} +// ClusterClusterAuthEndpointArgs{...} // // or: // // nil -type ClusterAlterRuleNodeRulePtrInput interface { +type ClusterClusterAuthEndpointPtrInput interface { pulumi.Input - ToClusterAlterRuleNodeRulePtrOutput() ClusterAlterRuleNodeRulePtrOutput - ToClusterAlterRuleNodeRulePtrOutputWithContext(context.Context) ClusterAlterRuleNodeRulePtrOutput + ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput + ToClusterClusterAuthEndpointPtrOutputWithContext(context.Context) ClusterClusterAuthEndpointPtrOutput } -type clusterAlterRuleNodeRulePtrType ClusterAlterRuleNodeRuleArgs +type clusterClusterAuthEndpointPtrType ClusterClusterAuthEndpointArgs -func ClusterAlterRuleNodeRulePtr(v *ClusterAlterRuleNodeRuleArgs) ClusterAlterRuleNodeRulePtrInput { - return (*clusterAlterRuleNodeRulePtrType)(v) +func ClusterClusterAuthEndpointPtr(v *ClusterClusterAuthEndpointArgs) ClusterClusterAuthEndpointPtrInput { + return (*clusterClusterAuthEndpointPtrType)(v) } -func (*clusterAlterRuleNodeRulePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRuleNodeRule)(nil)).Elem() +func (*clusterClusterAuthEndpointPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterClusterAuthEndpoint)(nil)).Elem() } -func (i *clusterAlterRuleNodeRulePtrType) ToClusterAlterRuleNodeRulePtrOutput() ClusterAlterRuleNodeRulePtrOutput { - return i.ToClusterAlterRuleNodeRulePtrOutputWithContext(context.Background()) +func (i *clusterClusterAuthEndpointPtrType) ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput { + return i.ToClusterClusterAuthEndpointPtrOutputWithContext(context.Background()) } -func (i *clusterAlterRuleNodeRulePtrType) ToClusterAlterRuleNodeRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleNodeRulePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleNodeRulePtrOutput) +func (i *clusterClusterAuthEndpointPtrType) ToClusterClusterAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAuthEndpointPtrOutput) } -type ClusterAlterRuleNodeRuleOutput struct{ *pulumi.OutputState } +type ClusterClusterAuthEndpointOutput struct{ *pulumi.OutputState } -func (ClusterAlterRuleNodeRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterRuleNodeRule)(nil)).Elem() +func (ClusterClusterAuthEndpointOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterAuthEndpoint)(nil)).Elem() } -func (o ClusterAlterRuleNodeRuleOutput) ToClusterAlterRuleNodeRuleOutput() ClusterAlterRuleNodeRuleOutput { +func (o ClusterClusterAuthEndpointOutput) ToClusterClusterAuthEndpointOutput() ClusterClusterAuthEndpointOutput { return o } -func (o ClusterAlterRuleNodeRuleOutput) ToClusterAlterRuleNodeRuleOutputWithContext(ctx context.Context) ClusterAlterRuleNodeRuleOutput { +func (o ClusterClusterAuthEndpointOutput) ToClusterClusterAuthEndpointOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointOutput { return o } -func (o ClusterAlterRuleNodeRuleOutput) ToClusterAlterRuleNodeRulePtrOutput() ClusterAlterRuleNodeRulePtrOutput { - return o.ToClusterAlterRuleNodeRulePtrOutputWithContext(context.Background()) +func (o ClusterClusterAuthEndpointOutput) ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput { + return o.ToClusterClusterAuthEndpointPtrOutputWithContext(context.Background()) } -func (o ClusterAlterRuleNodeRuleOutput) ToClusterAlterRuleNodeRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleNodeRulePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterAlterRuleNodeRule) *ClusterAlterRuleNodeRule { +func (o ClusterClusterAuthEndpointOutput) ToClusterClusterAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterClusterAuthEndpoint) *ClusterClusterAuthEndpoint { return &v - }).(ClusterAlterRuleNodeRulePtrOutput) -} - -// Node rule condition -func (o ClusterAlterRuleNodeRuleOutput) Condition() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterAlterRuleNodeRule) *string { return v.Condition }).(pulumi.StringPtrOutput) -} - -// Node rule cpu threshold -func (o ClusterAlterRuleNodeRuleOutput) CpuThreshold() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterAlterRuleNodeRule) *int { return v.CpuThreshold }).(pulumi.IntPtrOutput) + }).(ClusterClusterAuthEndpointPtrOutput) } -// Node rule mem threshold -func (o ClusterAlterRuleNodeRuleOutput) MemThreshold() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterAlterRuleNodeRule) *int { return v.MemThreshold }).(pulumi.IntPtrOutput) +// CA certs for the authorized cluster endpoint (string) +func (o ClusterClusterAuthEndpointOutput) CaCerts() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAuthEndpoint) *string { return v.CaCerts }).(pulumi.StringPtrOutput) } -// Node ID -func (o ClusterAlterRuleNodeRuleOutput) NodeId() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterAlterRuleNodeRule) *string { return v.NodeId }).(pulumi.StringPtrOutput) +// Enable the authorized cluster endpoint. Default `true` (bool) +func (o ClusterClusterAuthEndpointOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterClusterAuthEndpoint) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } -// Node rule selector -func (o ClusterAlterRuleNodeRuleOutput) Selector() pulumi.MapOutput { - return o.ApplyT(func(v ClusterAlterRuleNodeRule) map[string]interface{} { return v.Selector }).(pulumi.MapOutput) +// FQDN for the authorized cluster endpoint (string) +func (o ClusterClusterAuthEndpointOutput) Fqdn() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterAuthEndpoint) *string { return v.Fqdn }).(pulumi.StringPtrOutput) } -type ClusterAlterRuleNodeRulePtrOutput struct{ *pulumi.OutputState } +type ClusterClusterAuthEndpointPtrOutput struct{ *pulumi.OutputState } -func (ClusterAlterRuleNodeRulePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRuleNodeRule)(nil)).Elem() +func (ClusterClusterAuthEndpointPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterClusterAuthEndpoint)(nil)).Elem() } -func (o ClusterAlterRuleNodeRulePtrOutput) ToClusterAlterRuleNodeRulePtrOutput() ClusterAlterRuleNodeRulePtrOutput { +func (o ClusterClusterAuthEndpointPtrOutput) ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput { return o } -func (o ClusterAlterRuleNodeRulePtrOutput) ToClusterAlterRuleNodeRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleNodeRulePtrOutput { +func (o ClusterClusterAuthEndpointPtrOutput) ToClusterClusterAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointPtrOutput { return o } -func (o ClusterAlterRuleNodeRulePtrOutput) Elem() ClusterAlterRuleNodeRuleOutput { - return o.ApplyT(func(v *ClusterAlterRuleNodeRule) ClusterAlterRuleNodeRule { +func (o ClusterClusterAuthEndpointPtrOutput) Elem() ClusterClusterAuthEndpointOutput { + return o.ApplyT(func(v *ClusterClusterAuthEndpoint) ClusterClusterAuthEndpoint { if v != nil { return *v } - var ret ClusterAlterRuleNodeRule + var ret ClusterClusterAuthEndpoint return ret - }).(ClusterAlterRuleNodeRuleOutput) + }).(ClusterClusterAuthEndpointOutput) } -// Node rule condition -func (o ClusterAlterRuleNodeRulePtrOutput) Condition() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleNodeRule) *string { +// CA certs for the authorized cluster endpoint (string) +func (o ClusterClusterAuthEndpointPtrOutput) CaCerts() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterAuthEndpoint) *string { if v == nil { return nil } - return v.Condition + return v.CaCerts }).(pulumi.StringPtrOutput) } -// Node rule cpu threshold -func (o ClusterAlterRuleNodeRulePtrOutput) CpuThreshold() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleNodeRule) *int { - if v == nil { - return nil - } - return v.CpuThreshold - }).(pulumi.IntPtrOutput) -} - -// Node rule mem threshold -func (o ClusterAlterRuleNodeRulePtrOutput) MemThreshold() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleNodeRule) *int { +// Enable the authorized cluster endpoint. Default `true` (bool) +func (o ClusterClusterAuthEndpointPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterClusterAuthEndpoint) *bool { if v == nil { return nil } - return v.MemThreshold - }).(pulumi.IntPtrOutput) + return v.Enabled + }).(pulumi.BoolPtrOutput) } -// Node ID -func (o ClusterAlterRuleNodeRulePtrOutput) NodeId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleNodeRule) *string { +// FQDN for the authorized cluster endpoint (string) +func (o ClusterClusterAuthEndpointPtrOutput) Fqdn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterAuthEndpoint) *string { if v == nil { return nil } - return v.NodeId + return v.Fqdn }).(pulumi.StringPtrOutput) } -// Node rule selector -func (o ClusterAlterRuleNodeRulePtrOutput) Selector() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterAlterRuleNodeRule) map[string]interface{} { - if v == nil { - return nil - } - return v.Selector - }).(pulumi.MapOutput) -} - -type ClusterAlterRuleSystemServiceRule struct { - // System service rule condition - Condition *string `pulumi:"condition"` +type ClusterClusterMonitoringInput struct { + // Key/value answers for monitor input (map) + Answers map[string]interface{} `pulumi:"answers"` + // rancher-monitoring chart version (string) + Version *string `pulumi:"version"` } -// ClusterAlterRuleSystemServiceRuleInput is an input type that accepts ClusterAlterRuleSystemServiceRuleArgs and ClusterAlterRuleSystemServiceRuleOutput values. -// You can construct a concrete instance of `ClusterAlterRuleSystemServiceRuleInput` via: -// -// ClusterAlterRuleSystemServiceRuleArgs{...} -type ClusterAlterRuleSystemServiceRuleInput interface { +// ClusterClusterMonitoringInputInput is an input type that accepts ClusterClusterMonitoringInputArgs and ClusterClusterMonitoringInputOutput values. +// You can construct a concrete instance of `ClusterClusterMonitoringInputInput` via: +// +// ClusterClusterMonitoringInputArgs{...} +type ClusterClusterMonitoringInputInput interface { pulumi.Input - ToClusterAlterRuleSystemServiceRuleOutput() ClusterAlterRuleSystemServiceRuleOutput - ToClusterAlterRuleSystemServiceRuleOutputWithContext(context.Context) ClusterAlterRuleSystemServiceRuleOutput + ToClusterClusterMonitoringInputOutput() ClusterClusterMonitoringInputOutput + ToClusterClusterMonitoringInputOutputWithContext(context.Context) ClusterClusterMonitoringInputOutput } -type ClusterAlterRuleSystemServiceRuleArgs struct { - // System service rule condition - Condition pulumi.StringPtrInput `pulumi:"condition"` +type ClusterClusterMonitoringInputArgs struct { + // Key/value answers for monitor input (map) + Answers pulumi.MapInput `pulumi:"answers"` + // rancher-monitoring chart version (string) + Version pulumi.StringPtrInput `pulumi:"version"` } -func (ClusterAlterRuleSystemServiceRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterRuleSystemServiceRule)(nil)).Elem() +func (ClusterClusterMonitoringInputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterMonitoringInput)(nil)).Elem() } -func (i ClusterAlterRuleSystemServiceRuleArgs) ToClusterAlterRuleSystemServiceRuleOutput() ClusterAlterRuleSystemServiceRuleOutput { - return i.ToClusterAlterRuleSystemServiceRuleOutputWithContext(context.Background()) +func (i ClusterClusterMonitoringInputArgs) ToClusterClusterMonitoringInputOutput() ClusterClusterMonitoringInputOutput { + return i.ToClusterClusterMonitoringInputOutputWithContext(context.Background()) } -func (i ClusterAlterRuleSystemServiceRuleArgs) ToClusterAlterRuleSystemServiceRuleOutputWithContext(ctx context.Context) ClusterAlterRuleSystemServiceRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleSystemServiceRuleOutput) +func (i ClusterClusterMonitoringInputArgs) ToClusterClusterMonitoringInputOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterMonitoringInputOutput) } -func (i ClusterAlterRuleSystemServiceRuleArgs) ToClusterAlterRuleSystemServiceRulePtrOutput() ClusterAlterRuleSystemServiceRulePtrOutput { - return i.ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(context.Background()) +func (i ClusterClusterMonitoringInputArgs) ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput { + return i.ToClusterClusterMonitoringInputPtrOutputWithContext(context.Background()) } -func (i ClusterAlterRuleSystemServiceRuleArgs) ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleSystemServiceRulePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleSystemServiceRuleOutput).ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(ctx) +func (i ClusterClusterMonitoringInputArgs) ToClusterClusterMonitoringInputPtrOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterMonitoringInputOutput).ToClusterClusterMonitoringInputPtrOutputWithContext(ctx) } -// ClusterAlterRuleSystemServiceRulePtrInput is an input type that accepts ClusterAlterRuleSystemServiceRuleArgs, ClusterAlterRuleSystemServiceRulePtr and ClusterAlterRuleSystemServiceRulePtrOutput values. -// You can construct a concrete instance of `ClusterAlterRuleSystemServiceRulePtrInput` via: +// ClusterClusterMonitoringInputPtrInput is an input type that accepts ClusterClusterMonitoringInputArgs, ClusterClusterMonitoringInputPtr and ClusterClusterMonitoringInputPtrOutput values. +// You can construct a concrete instance of `ClusterClusterMonitoringInputPtrInput` via: // -// ClusterAlterRuleSystemServiceRuleArgs{...} +// ClusterClusterMonitoringInputArgs{...} // // or: // // nil -type ClusterAlterRuleSystemServiceRulePtrInput interface { +type ClusterClusterMonitoringInputPtrInput interface { pulumi.Input - ToClusterAlterRuleSystemServiceRulePtrOutput() ClusterAlterRuleSystemServiceRulePtrOutput - ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(context.Context) ClusterAlterRuleSystemServiceRulePtrOutput + ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput + ToClusterClusterMonitoringInputPtrOutputWithContext(context.Context) ClusterClusterMonitoringInputPtrOutput } -type clusterAlterRuleSystemServiceRulePtrType ClusterAlterRuleSystemServiceRuleArgs +type clusterClusterMonitoringInputPtrType ClusterClusterMonitoringInputArgs -func ClusterAlterRuleSystemServiceRulePtr(v *ClusterAlterRuleSystemServiceRuleArgs) ClusterAlterRuleSystemServiceRulePtrInput { - return (*clusterAlterRuleSystemServiceRulePtrType)(v) +func ClusterClusterMonitoringInputPtr(v *ClusterClusterMonitoringInputArgs) ClusterClusterMonitoringInputPtrInput { + return (*clusterClusterMonitoringInputPtrType)(v) } -func (*clusterAlterRuleSystemServiceRulePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRuleSystemServiceRule)(nil)).Elem() +func (*clusterClusterMonitoringInputPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterClusterMonitoringInput)(nil)).Elem() } -func (i *clusterAlterRuleSystemServiceRulePtrType) ToClusterAlterRuleSystemServiceRulePtrOutput() ClusterAlterRuleSystemServiceRulePtrOutput { - return i.ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(context.Background()) +func (i *clusterClusterMonitoringInputPtrType) ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput { + return i.ToClusterClusterMonitoringInputPtrOutputWithContext(context.Background()) } -func (i *clusterAlterRuleSystemServiceRulePtrType) ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleSystemServiceRulePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterAlterRuleSystemServiceRulePtrOutput) +func (i *clusterClusterMonitoringInputPtrType) ToClusterClusterMonitoringInputPtrOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterMonitoringInputPtrOutput) } -type ClusterAlterRuleSystemServiceRuleOutput struct{ *pulumi.OutputState } +type ClusterClusterMonitoringInputOutput struct{ *pulumi.OutputState } -func (ClusterAlterRuleSystemServiceRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterAlterRuleSystemServiceRule)(nil)).Elem() +func (ClusterClusterMonitoringInputOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterMonitoringInput)(nil)).Elem() } -func (o ClusterAlterRuleSystemServiceRuleOutput) ToClusterAlterRuleSystemServiceRuleOutput() ClusterAlterRuleSystemServiceRuleOutput { +func (o ClusterClusterMonitoringInputOutput) ToClusterClusterMonitoringInputOutput() ClusterClusterMonitoringInputOutput { return o } -func (o ClusterAlterRuleSystemServiceRuleOutput) ToClusterAlterRuleSystemServiceRuleOutputWithContext(ctx context.Context) ClusterAlterRuleSystemServiceRuleOutput { +func (o ClusterClusterMonitoringInputOutput) ToClusterClusterMonitoringInputOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputOutput { return o } -func (o ClusterAlterRuleSystemServiceRuleOutput) ToClusterAlterRuleSystemServiceRulePtrOutput() ClusterAlterRuleSystemServiceRulePtrOutput { - return o.ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(context.Background()) +func (o ClusterClusterMonitoringInputOutput) ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput { + return o.ToClusterClusterMonitoringInputPtrOutputWithContext(context.Background()) } -func (o ClusterAlterRuleSystemServiceRuleOutput) ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleSystemServiceRulePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterAlterRuleSystemServiceRule) *ClusterAlterRuleSystemServiceRule { +func (o ClusterClusterMonitoringInputOutput) ToClusterClusterMonitoringInputPtrOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterClusterMonitoringInput) *ClusterClusterMonitoringInput { return &v - }).(ClusterAlterRuleSystemServiceRulePtrOutput) + }).(ClusterClusterMonitoringInputPtrOutput) } -// System service rule condition -func (o ClusterAlterRuleSystemServiceRuleOutput) Condition() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterAlterRuleSystemServiceRule) *string { return v.Condition }).(pulumi.StringPtrOutput) +// Key/value answers for monitor input (map) +func (o ClusterClusterMonitoringInputOutput) Answers() pulumi.MapOutput { + return o.ApplyT(func(v ClusterClusterMonitoringInput) map[string]interface{} { return v.Answers }).(pulumi.MapOutput) +} + +// rancher-monitoring chart version (string) +func (o ClusterClusterMonitoringInputOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterMonitoringInput) *string { return v.Version }).(pulumi.StringPtrOutput) } -type ClusterAlterRuleSystemServiceRulePtrOutput struct{ *pulumi.OutputState } +type ClusterClusterMonitoringInputPtrOutput struct{ *pulumi.OutputState } -func (ClusterAlterRuleSystemServiceRulePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterAlterRuleSystemServiceRule)(nil)).Elem() +func (ClusterClusterMonitoringInputPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterClusterMonitoringInput)(nil)).Elem() } -func (o ClusterAlterRuleSystemServiceRulePtrOutput) ToClusterAlterRuleSystemServiceRulePtrOutput() ClusterAlterRuleSystemServiceRulePtrOutput { +func (o ClusterClusterMonitoringInputPtrOutput) ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput { return o } -func (o ClusterAlterRuleSystemServiceRulePtrOutput) ToClusterAlterRuleSystemServiceRulePtrOutputWithContext(ctx context.Context) ClusterAlterRuleSystemServiceRulePtrOutput { +func (o ClusterClusterMonitoringInputPtrOutput) ToClusterClusterMonitoringInputPtrOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputPtrOutput { return o } -func (o ClusterAlterRuleSystemServiceRulePtrOutput) Elem() ClusterAlterRuleSystemServiceRuleOutput { - return o.ApplyT(func(v *ClusterAlterRuleSystemServiceRule) ClusterAlterRuleSystemServiceRule { +func (o ClusterClusterMonitoringInputPtrOutput) Elem() ClusterClusterMonitoringInputOutput { + return o.ApplyT(func(v *ClusterClusterMonitoringInput) ClusterClusterMonitoringInput { if v != nil { return *v } - var ret ClusterAlterRuleSystemServiceRule + var ret ClusterClusterMonitoringInput return ret - }).(ClusterAlterRuleSystemServiceRuleOutput) + }).(ClusterClusterMonitoringInputOutput) } -// System service rule condition -func (o ClusterAlterRuleSystemServiceRulePtrOutput) Condition() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterAlterRuleSystemServiceRule) *string { +// Key/value answers for monitor input (map) +func (o ClusterClusterMonitoringInputPtrOutput) Answers() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterClusterMonitoringInput) map[string]interface{} { if v == nil { return nil } - return v.Condition + return v.Answers + }).(pulumi.MapOutput) +} + +// rancher-monitoring chart version (string) +func (o ClusterClusterMonitoringInputPtrOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterMonitoringInput) *string { + if v == nil { + return nil + } + return v.Version }).(pulumi.StringPtrOutput) } -type ClusterClusterAgentDeploymentCustomization struct { - // User defined tolerations to append to agent (list) - AppendTolerations []ClusterClusterAgentDeploymentCustomizationAppendToleration `pulumi:"appendTolerations"` - // User defined affinity to override default agent affinity (string) - OverrideAffinity *string `pulumi:"overrideAffinity"` - // User defined resource requirements to set on the agent (list) - OverrideResourceRequirements []ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement `pulumi:"overrideResourceRequirements"` +type ClusterClusterRegistrationToken struct { + // Annotations for the Cluster (map) + Annotations map[string]interface{} `pulumi:"annotations"` + // Cluster ID to apply answer (string) + ClusterId *string `pulumi:"clusterId"` + // Command to execute in a imported k8s cluster (string) + Command *string `pulumi:"command"` + // The EKS node group launch template ID (string) + Id *string `pulumi:"id"` + // Insecure command to execute in a imported k8s cluster (string) + InsecureCommand *string `pulumi:"insecureCommand"` + // Insecure node command to execute in a imported k8s cluster (string) + InsecureNodeCommand *string `pulumi:"insecureNodeCommand"` + // Insecure windows command to execute in a imported k8s cluster (string) + InsecureWindowsNodeCommand *string `pulumi:"insecureWindowsNodeCommand"` + // Labels for the Cluster (map) + Labels map[string]interface{} `pulumi:"labels"` + // K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + ManifestUrl *string `pulumi:"manifestUrl"` + // The name of the Cluster (string) + Name *string `pulumi:"name"` + // Node command to execute in linux nodes for custom k8s cluster (string) + NodeCommand *string `pulumi:"nodeCommand"` + // ACI token (string) + Token *string `pulumi:"token"` + // Node command to execute in windows nodes for custom k8s cluster (string) + WindowsNodeCommand *string `pulumi:"windowsNodeCommand"` } -// ClusterClusterAgentDeploymentCustomizationInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationArgs and ClusterClusterAgentDeploymentCustomizationOutput values. -// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationInput` via: +// ClusterClusterRegistrationTokenInput is an input type that accepts ClusterClusterRegistrationTokenArgs and ClusterClusterRegistrationTokenOutput values. +// You can construct a concrete instance of `ClusterClusterRegistrationTokenInput` via: // -// ClusterClusterAgentDeploymentCustomizationArgs{...} -type ClusterClusterAgentDeploymentCustomizationInput interface { +// ClusterClusterRegistrationTokenArgs{...} +type ClusterClusterRegistrationTokenInput interface { pulumi.Input - ToClusterClusterAgentDeploymentCustomizationOutput() ClusterClusterAgentDeploymentCustomizationOutput - ToClusterClusterAgentDeploymentCustomizationOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationOutput + ToClusterClusterRegistrationTokenOutput() ClusterClusterRegistrationTokenOutput + ToClusterClusterRegistrationTokenOutputWithContext(context.Context) ClusterClusterRegistrationTokenOutput } -type ClusterClusterAgentDeploymentCustomizationArgs struct { - // User defined tolerations to append to agent (list) - AppendTolerations ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayInput `pulumi:"appendTolerations"` - // User defined affinity to override default agent affinity (string) - OverrideAffinity pulumi.StringPtrInput `pulumi:"overrideAffinity"` - // User defined resource requirements to set on the agent (list) - OverrideResourceRequirements ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput `pulumi:"overrideResourceRequirements"` +type ClusterClusterRegistrationTokenArgs struct { + // Annotations for the Cluster (map) + Annotations pulumi.MapInput `pulumi:"annotations"` + // Cluster ID to apply answer (string) + ClusterId pulumi.StringPtrInput `pulumi:"clusterId"` + // Command to execute in a imported k8s cluster (string) + Command pulumi.StringPtrInput `pulumi:"command"` + // The EKS node group launch template ID (string) + Id pulumi.StringPtrInput `pulumi:"id"` + // Insecure command to execute in a imported k8s cluster (string) + InsecureCommand pulumi.StringPtrInput `pulumi:"insecureCommand"` + // Insecure node command to execute in a imported k8s cluster (string) + InsecureNodeCommand pulumi.StringPtrInput `pulumi:"insecureNodeCommand"` + // Insecure windows command to execute in a imported k8s cluster (string) + InsecureWindowsNodeCommand pulumi.StringPtrInput `pulumi:"insecureWindowsNodeCommand"` + // Labels for the Cluster (map) + Labels pulumi.MapInput `pulumi:"labels"` + // K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + ManifestUrl pulumi.StringPtrInput `pulumi:"manifestUrl"` + // The name of the Cluster (string) + Name pulumi.StringPtrInput `pulumi:"name"` + // Node command to execute in linux nodes for custom k8s cluster (string) + NodeCommand pulumi.StringPtrInput `pulumi:"nodeCommand"` + // ACI token (string) + Token pulumi.StringPtrInput `pulumi:"token"` + // Node command to execute in windows nodes for custom k8s cluster (string) + WindowsNodeCommand pulumi.StringPtrInput `pulumi:"windowsNodeCommand"` } -func (ClusterClusterAgentDeploymentCustomizationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomization)(nil)).Elem() +func (ClusterClusterRegistrationTokenArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterRegistrationToken)(nil)).Elem() } -func (i ClusterClusterAgentDeploymentCustomizationArgs) ToClusterClusterAgentDeploymentCustomizationOutput() ClusterClusterAgentDeploymentCustomizationOutput { - return i.ToClusterClusterAgentDeploymentCustomizationOutputWithContext(context.Background()) +func (i ClusterClusterRegistrationTokenArgs) ToClusterClusterRegistrationTokenOutput() ClusterClusterRegistrationTokenOutput { + return i.ToClusterClusterRegistrationTokenOutputWithContext(context.Background()) } -func (i ClusterClusterAgentDeploymentCustomizationArgs) ToClusterClusterAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationOutput) +func (i ClusterClusterRegistrationTokenArgs) ToClusterClusterRegistrationTokenOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterRegistrationTokenOutput) } -// ClusterClusterAgentDeploymentCustomizationArrayInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationArray and ClusterClusterAgentDeploymentCustomizationArrayOutput values. -// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationArrayInput` via: +func (i ClusterClusterRegistrationTokenArgs) ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput { + return i.ToClusterClusterRegistrationTokenPtrOutputWithContext(context.Background()) +} + +func (i ClusterClusterRegistrationTokenArgs) ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterRegistrationTokenOutput).ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx) +} + +// ClusterClusterRegistrationTokenPtrInput is an input type that accepts ClusterClusterRegistrationTokenArgs, ClusterClusterRegistrationTokenPtr and ClusterClusterRegistrationTokenPtrOutput values. +// You can construct a concrete instance of `ClusterClusterRegistrationTokenPtrInput` via: // -// ClusterClusterAgentDeploymentCustomizationArray{ ClusterClusterAgentDeploymentCustomizationArgs{...} } -type ClusterClusterAgentDeploymentCustomizationArrayInput interface { +// ClusterClusterRegistrationTokenArgs{...} +// +// or: +// +// nil +type ClusterClusterRegistrationTokenPtrInput interface { pulumi.Input - ToClusterClusterAgentDeploymentCustomizationArrayOutput() ClusterClusterAgentDeploymentCustomizationArrayOutput - ToClusterClusterAgentDeploymentCustomizationArrayOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationArrayOutput + ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput + ToClusterClusterRegistrationTokenPtrOutputWithContext(context.Context) ClusterClusterRegistrationTokenPtrOutput } -type ClusterClusterAgentDeploymentCustomizationArray []ClusterClusterAgentDeploymentCustomizationInput +type clusterClusterRegistrationTokenPtrType ClusterClusterRegistrationTokenArgs -func (ClusterClusterAgentDeploymentCustomizationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomization)(nil)).Elem() +func ClusterClusterRegistrationTokenPtr(v *ClusterClusterRegistrationTokenArgs) ClusterClusterRegistrationTokenPtrInput { + return (*clusterClusterRegistrationTokenPtrType)(v) } -func (i ClusterClusterAgentDeploymentCustomizationArray) ToClusterClusterAgentDeploymentCustomizationArrayOutput() ClusterClusterAgentDeploymentCustomizationArrayOutput { - return i.ToClusterClusterAgentDeploymentCustomizationArrayOutputWithContext(context.Background()) +func (*clusterClusterRegistrationTokenPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterClusterRegistrationToken)(nil)).Elem() } -func (i ClusterClusterAgentDeploymentCustomizationArray) ToClusterClusterAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationArrayOutput) +func (i *clusterClusterRegistrationTokenPtrType) ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput { + return i.ToClusterClusterRegistrationTokenPtrOutputWithContext(context.Background()) } -type ClusterClusterAgentDeploymentCustomizationOutput struct{ *pulumi.OutputState } +func (i *clusterClusterRegistrationTokenPtrType) ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterRegistrationTokenPtrOutput) +} -func (ClusterClusterAgentDeploymentCustomizationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomization)(nil)).Elem() +type ClusterClusterRegistrationTokenOutput struct{ *pulumi.OutputState } + +func (ClusterClusterRegistrationTokenOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterRegistrationToken)(nil)).Elem() } -func (o ClusterClusterAgentDeploymentCustomizationOutput) ToClusterClusterAgentDeploymentCustomizationOutput() ClusterClusterAgentDeploymentCustomizationOutput { +func (o ClusterClusterRegistrationTokenOutput) ToClusterClusterRegistrationTokenOutput() ClusterClusterRegistrationTokenOutput { return o } -func (o ClusterClusterAgentDeploymentCustomizationOutput) ToClusterClusterAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOutput { +func (o ClusterClusterRegistrationTokenOutput) ToClusterClusterRegistrationTokenOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenOutput { return o } -// User defined tolerations to append to agent (list) -func (o ClusterClusterAgentDeploymentCustomizationOutput) AppendTolerations() ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomization) []ClusterClusterAgentDeploymentCustomizationAppendToleration { - return v.AppendTolerations - }).(ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) +func (o ClusterClusterRegistrationTokenOutput) ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput { + return o.ToClusterClusterRegistrationTokenPtrOutputWithContext(context.Background()) } -// User defined affinity to override default agent affinity (string) -func (o ClusterClusterAgentDeploymentCustomizationOutput) OverrideAffinity() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomization) *string { return v.OverrideAffinity }).(pulumi.StringPtrOutput) +func (o ClusterClusterRegistrationTokenOutput) ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterClusterRegistrationToken) *ClusterClusterRegistrationToken { + return &v + }).(ClusterClusterRegistrationTokenPtrOutput) } -// User defined resource requirements to set on the agent (list) -func (o ClusterClusterAgentDeploymentCustomizationOutput) OverrideResourceRequirements() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomization) []ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement { - return v.OverrideResourceRequirements - }).(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) +// Annotations for the Cluster (map) +func (o ClusterClusterRegistrationTokenOutput) Annotations() pulumi.MapOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) } -type ClusterClusterAgentDeploymentCustomizationArrayOutput struct{ *pulumi.OutputState } +// Cluster ID to apply answer (string) +func (o ClusterClusterRegistrationTokenOutput) ClusterId() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.ClusterId }).(pulumi.StringPtrOutput) +} -func (ClusterClusterAgentDeploymentCustomizationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomization)(nil)).Elem() +// Command to execute in a imported k8s cluster (string) +func (o ClusterClusterRegistrationTokenOutput) Command() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.Command }).(pulumi.StringPtrOutput) } -func (o ClusterClusterAgentDeploymentCustomizationArrayOutput) ToClusterClusterAgentDeploymentCustomizationArrayOutput() ClusterClusterAgentDeploymentCustomizationArrayOutput { - return o +// The EKS node group launch template ID (string) +func (o ClusterClusterRegistrationTokenOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.Id }).(pulumi.StringPtrOutput) } -func (o ClusterClusterAgentDeploymentCustomizationArrayOutput) ToClusterClusterAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationArrayOutput { - return o +// Insecure command to execute in a imported k8s cluster (string) +func (o ClusterClusterRegistrationTokenOutput) InsecureCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.InsecureCommand }).(pulumi.StringPtrOutput) } -func (o ClusterClusterAgentDeploymentCustomizationArrayOutput) Index(i pulumi.IntInput) ClusterClusterAgentDeploymentCustomizationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterAgentDeploymentCustomization { - return vs[0].([]ClusterClusterAgentDeploymentCustomization)[vs[1].(int)] - }).(ClusterClusterAgentDeploymentCustomizationOutput) +// Insecure node command to execute in a imported k8s cluster (string) +func (o ClusterClusterRegistrationTokenOutput) InsecureNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.InsecureNodeCommand }).(pulumi.StringPtrOutput) } -type ClusterClusterAgentDeploymentCustomizationAppendToleration struct { - // The GKE taint effect (string) - Effect *string `pulumi:"effect"` - // The GKE taint key (string) - Key string `pulumi:"key"` - // The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) - Operator *string `pulumi:"operator"` - // The toleration seconds (int) - Seconds *int `pulumi:"seconds"` - // The GKE taint value (string) - Value *string `pulumi:"value"` +// Insecure windows command to execute in a imported k8s cluster (string) +func (o ClusterClusterRegistrationTokenOutput) InsecureWindowsNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.InsecureWindowsNodeCommand }).(pulumi.StringPtrOutput) } -// ClusterClusterAgentDeploymentCustomizationAppendTolerationInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs and ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput values. -// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationAppendTolerationInput` via: -// -// ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs{...} -type ClusterClusterAgentDeploymentCustomizationAppendTolerationInput interface { - pulumi.Input +// Labels for the Cluster (map) +func (o ClusterClusterRegistrationTokenOutput) Labels() pulumi.MapOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) +} - ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput - ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput +// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) +func (o ClusterClusterRegistrationTokenOutput) ManifestUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.ManifestUrl }).(pulumi.StringPtrOutput) } -type ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs struct { - // The GKE taint effect (string) - Effect pulumi.StringPtrInput `pulumi:"effect"` - // The GKE taint key (string) - Key pulumi.StringInput `pulumi:"key"` - // The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) - Operator pulumi.StringPtrInput `pulumi:"operator"` - // The toleration seconds (int) - Seconds pulumi.IntPtrInput `pulumi:"seconds"` - // The GKE taint value (string) - Value pulumi.StringPtrInput `pulumi:"value"` +// The name of the Cluster (string) +func (o ClusterClusterRegistrationTokenOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.Name }).(pulumi.StringPtrOutput) } -func (ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +// Node command to execute in linux nodes for custom k8s cluster (string) +func (o ClusterClusterRegistrationTokenOutput) NodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.NodeCommand }).(pulumi.StringPtrOutput) } -func (i ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs) ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { - return i.ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Background()) +// ACI token (string) +func (o ClusterClusterRegistrationTokenOutput) Token() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.Token }).(pulumi.StringPtrOutput) } -func (i ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs) ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) +// Node command to execute in windows nodes for custom k8s cluster (string) +func (o ClusterClusterRegistrationTokenOutput) WindowsNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.WindowsNodeCommand }).(pulumi.StringPtrOutput) } -// ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationAppendTolerationArray and ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput values. -// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayInput` via: -// -// ClusterClusterAgentDeploymentCustomizationAppendTolerationArray{ ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs{...} } -type ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayInput interface { - pulumi.Input +type ClusterClusterRegistrationTokenPtrOutput struct{ *pulumi.OutputState } - ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput - ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput +func (ClusterClusterRegistrationTokenPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterClusterRegistrationToken)(nil)).Elem() } -type ClusterClusterAgentDeploymentCustomizationAppendTolerationArray []ClusterClusterAgentDeploymentCustomizationAppendTolerationInput - -func (ClusterClusterAgentDeploymentCustomizationAppendTolerationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +func (o ClusterClusterRegistrationTokenPtrOutput) ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput { + return o } -func (i ClusterClusterAgentDeploymentCustomizationAppendTolerationArray) ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return i.ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Background()) +func (o ClusterClusterRegistrationTokenPtrOutput) ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenPtrOutput { + return o } -func (i ClusterClusterAgentDeploymentCustomizationAppendTolerationArray) ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) +func (o ClusterClusterRegistrationTokenPtrOutput) Elem() ClusterClusterRegistrationTokenOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) ClusterClusterRegistrationToken { + if v != nil { + return *v + } + var ret ClusterClusterRegistrationToken + return ret + }).(ClusterClusterRegistrationTokenOutput) } -type ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput struct{ *pulumi.OutputState } +// Annotations for the Cluster (map) +func (o ClusterClusterRegistrationTokenPtrOutput) Annotations() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) map[string]interface{} { + if v == nil { + return nil + } + return v.Annotations + }).(pulumi.MapOutput) +} -func (ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +// Cluster ID to apply answer (string) +func (o ClusterClusterRegistrationTokenPtrOutput) ClusterId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.ClusterId + }).(pulumi.StringPtrOutput) } -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { - return o +// Command to execute in a imported k8s cluster (string) +func (o ClusterClusterRegistrationTokenPtrOutput) Command() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.Command + }).(pulumi.StringPtrOutput) } -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) ToClusterClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { - return o +// The EKS node group launch template ID (string) +func (o ClusterClusterRegistrationTokenPtrOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.Id + }).(pulumi.StringPtrOutput) } -// The GKE taint effect (string) -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) +// Insecure command to execute in a imported k8s cluster (string) +func (o ClusterClusterRegistrationTokenPtrOutput) InsecureCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.InsecureCommand + }).(pulumi.StringPtrOutput) } -// The GKE taint key (string) -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) string { return v.Key }).(pulumi.StringOutput) +// Insecure node command to execute in a imported k8s cluster (string) +func (o ClusterClusterRegistrationTokenPtrOutput) InsecureNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.InsecureNodeCommand + }).(pulumi.StringPtrOutput) } -// The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) +// Insecure windows command to execute in a imported k8s cluster (string) +func (o ClusterClusterRegistrationTokenPtrOutput) InsecureWindowsNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.InsecureWindowsNodeCommand + }).(pulumi.StringPtrOutput) } -// The toleration seconds (int) -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Seconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) +// Labels for the Cluster (map) +func (o ClusterClusterRegistrationTokenPtrOutput) Labels() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) map[string]interface{} { + if v == nil { + return nil + } + return v.Labels + }).(pulumi.MapOutput) } -// The GKE taint value (string) -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) Value() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Value }).(pulumi.StringPtrOutput) +// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) +func (o ClusterClusterRegistrationTokenPtrOutput) ManifestUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.ManifestUrl + }).(pulumi.StringPtrOutput) } -type ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput struct{ *pulumi.OutputState } +// The name of the Cluster (string) +func (o ClusterClusterRegistrationTokenPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.Name + }).(pulumi.StringPtrOutput) +} -func (ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +// Node command to execute in linux nodes for custom k8s cluster (string) +func (o ClusterClusterRegistrationTokenPtrOutput) NodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.NodeCommand + }).(pulumi.StringPtrOutput) } -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o +// ACI token (string) +func (o ClusterClusterRegistrationTokenPtrOutput) Token() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.Token + }).(pulumi.StringPtrOutput) } -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o +// Node command to execute in windows nodes for custom k8s cluster (string) +func (o ClusterClusterRegistrationTokenPtrOutput) WindowsNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.WindowsNodeCommand + }).(pulumi.StringPtrOutput) } -func (o ClusterClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) Index(i pulumi.IntInput) ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterAgentDeploymentCustomizationAppendToleration { - return vs[0].([]ClusterClusterAgentDeploymentCustomizationAppendToleration)[vs[1].(int)] - }).(ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput) +type ClusterClusterTemplateAnswers struct { + // Cluster ID to apply answer (string) + ClusterId *string `pulumi:"clusterId"` + // Project ID to apply answer (string) + ProjectId *string `pulumi:"projectId"` + // Key/values for answer (map) + Values map[string]interface{} `pulumi:"values"` } -type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement struct { - // The maximum CPU limit for agent (string) - CpuLimit *string `pulumi:"cpuLimit"` - // The minimum CPU required for agent (string) - CpuRequest *string `pulumi:"cpuRequest"` - // The maximum memory limit for agent (string) - MemoryLimit *string `pulumi:"memoryLimit"` - // The minimum memory required for agent (string) - MemoryRequest *string `pulumi:"memoryRequest"` -} - -// ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs and ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput values. -// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementInput` via: -// -// ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} -type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementInput interface { - pulumi.Input - - ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput - ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput -} - -type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs struct { - // The maximum CPU limit for agent (string) - CpuLimit pulumi.StringPtrInput `pulumi:"cpuLimit"` - // The minimum CPU required for agent (string) - CpuRequest pulumi.StringPtrInput `pulumi:"cpuRequest"` - // The maximum memory limit for agent (string) - MemoryLimit pulumi.StringPtrInput `pulumi:"memoryLimit"` - // The minimum memory required for agent (string) - MemoryRequest pulumi.StringPtrInput `pulumi:"memoryRequest"` -} - -func (ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() -} - -func (i ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return i.ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Background()) -} - -func (i ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) -} - -// ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput is an input type that accepts ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray and ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput values. -// You can construct a concrete instance of `ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput` via: -// -// ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray{ ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} } -type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput interface { - pulumi.Input - - ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput - ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput -} - -type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray []ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementInput - -func (ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() -} - -func (i ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return i.ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Background()) -} - -func (i ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) -} - -type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput struct{ *pulumi.OutputState } - -func (ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() -} - -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return o -} - -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return o -} - -// The maximum CPU limit for agent (string) -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuLimit() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.CpuLimit - }).(pulumi.StringPtrOutput) -} - -// The minimum CPU required for agent (string) -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuRequest() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.CpuRequest - }).(pulumi.StringPtrOutput) -} - -// The maximum memory limit for agent (string) -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryLimit() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.MemoryLimit - }).(pulumi.StringPtrOutput) -} - -// The minimum memory required for agent (string) -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryRequest() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.MemoryRequest - }).(pulumi.StringPtrOutput) -} - -type ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput struct{ *pulumi.OutputState } - -func (ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() -} - -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return o -} - -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return o -} - -func (o ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) Index(i pulumi.IntInput) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement { - return vs[0].([]ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement)[vs[1].(int)] - }).(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) -} - -type ClusterClusterAuthEndpoint struct { - // CA certs for the authorized cluster endpoint (string) - CaCerts *string `pulumi:"caCerts"` - // Enable the authorized cluster endpoint. Default `true` (bool) - Enabled *bool `pulumi:"enabled"` - // FQDN for the authorized cluster endpoint (string) - Fqdn *string `pulumi:"fqdn"` -} - -// ClusterClusterAuthEndpointInput is an input type that accepts ClusterClusterAuthEndpointArgs and ClusterClusterAuthEndpointOutput values. -// You can construct a concrete instance of `ClusterClusterAuthEndpointInput` via: +// ClusterClusterTemplateAnswersInput is an input type that accepts ClusterClusterTemplateAnswersArgs and ClusterClusterTemplateAnswersOutput values. +// You can construct a concrete instance of `ClusterClusterTemplateAnswersInput` via: // -// ClusterClusterAuthEndpointArgs{...} -type ClusterClusterAuthEndpointInput interface { +// ClusterClusterTemplateAnswersArgs{...} +type ClusterClusterTemplateAnswersInput interface { pulumi.Input - ToClusterClusterAuthEndpointOutput() ClusterClusterAuthEndpointOutput - ToClusterClusterAuthEndpointOutputWithContext(context.Context) ClusterClusterAuthEndpointOutput + ToClusterClusterTemplateAnswersOutput() ClusterClusterTemplateAnswersOutput + ToClusterClusterTemplateAnswersOutputWithContext(context.Context) ClusterClusterTemplateAnswersOutput } -type ClusterClusterAuthEndpointArgs struct { - // CA certs for the authorized cluster endpoint (string) - CaCerts pulumi.StringPtrInput `pulumi:"caCerts"` - // Enable the authorized cluster endpoint. Default `true` (bool) - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - // FQDN for the authorized cluster endpoint (string) - Fqdn pulumi.StringPtrInput `pulumi:"fqdn"` +type ClusterClusterTemplateAnswersArgs struct { + // Cluster ID to apply answer (string) + ClusterId pulumi.StringPtrInput `pulumi:"clusterId"` + // Project ID to apply answer (string) + ProjectId pulumi.StringPtrInput `pulumi:"projectId"` + // Key/values for answer (map) + Values pulumi.MapInput `pulumi:"values"` } -func (ClusterClusterAuthEndpointArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterAuthEndpoint)(nil)).Elem() +func (ClusterClusterTemplateAnswersArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterTemplateAnswers)(nil)).Elem() } -func (i ClusterClusterAuthEndpointArgs) ToClusterClusterAuthEndpointOutput() ClusterClusterAuthEndpointOutput { - return i.ToClusterClusterAuthEndpointOutputWithContext(context.Background()) +func (i ClusterClusterTemplateAnswersArgs) ToClusterClusterTemplateAnswersOutput() ClusterClusterTemplateAnswersOutput { + return i.ToClusterClusterTemplateAnswersOutputWithContext(context.Background()) } -func (i ClusterClusterAuthEndpointArgs) ToClusterClusterAuthEndpointOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAuthEndpointOutput) +func (i ClusterClusterTemplateAnswersArgs) ToClusterClusterTemplateAnswersOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateAnswersOutput) } -func (i ClusterClusterAuthEndpointArgs) ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput { - return i.ToClusterClusterAuthEndpointPtrOutputWithContext(context.Background()) +func (i ClusterClusterTemplateAnswersArgs) ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput { + return i.ToClusterClusterTemplateAnswersPtrOutputWithContext(context.Background()) } -func (i ClusterClusterAuthEndpointArgs) ToClusterClusterAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAuthEndpointOutput).ToClusterClusterAuthEndpointPtrOutputWithContext(ctx) +func (i ClusterClusterTemplateAnswersArgs) ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateAnswersOutput).ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx) } -// ClusterClusterAuthEndpointPtrInput is an input type that accepts ClusterClusterAuthEndpointArgs, ClusterClusterAuthEndpointPtr and ClusterClusterAuthEndpointPtrOutput values. -// You can construct a concrete instance of `ClusterClusterAuthEndpointPtrInput` via: +// ClusterClusterTemplateAnswersPtrInput is an input type that accepts ClusterClusterTemplateAnswersArgs, ClusterClusterTemplateAnswersPtr and ClusterClusterTemplateAnswersPtrOutput values. +// You can construct a concrete instance of `ClusterClusterTemplateAnswersPtrInput` via: // -// ClusterClusterAuthEndpointArgs{...} +// ClusterClusterTemplateAnswersArgs{...} // // or: // // nil -type ClusterClusterAuthEndpointPtrInput interface { +type ClusterClusterTemplateAnswersPtrInput interface { pulumi.Input - ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput - ToClusterClusterAuthEndpointPtrOutputWithContext(context.Context) ClusterClusterAuthEndpointPtrOutput + ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput + ToClusterClusterTemplateAnswersPtrOutputWithContext(context.Context) ClusterClusterTemplateAnswersPtrOutput } -type clusterClusterAuthEndpointPtrType ClusterClusterAuthEndpointArgs +type clusterClusterTemplateAnswersPtrType ClusterClusterTemplateAnswersArgs -func ClusterClusterAuthEndpointPtr(v *ClusterClusterAuthEndpointArgs) ClusterClusterAuthEndpointPtrInput { - return (*clusterClusterAuthEndpointPtrType)(v) +func ClusterClusterTemplateAnswersPtr(v *ClusterClusterTemplateAnswersArgs) ClusterClusterTemplateAnswersPtrInput { + return (*clusterClusterTemplateAnswersPtrType)(v) } -func (*clusterClusterAuthEndpointPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterClusterAuthEndpoint)(nil)).Elem() +func (*clusterClusterTemplateAnswersPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterClusterTemplateAnswers)(nil)).Elem() } -func (i *clusterClusterAuthEndpointPtrType) ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput { - return i.ToClusterClusterAuthEndpointPtrOutputWithContext(context.Background()) +func (i *clusterClusterTemplateAnswersPtrType) ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput { + return i.ToClusterClusterTemplateAnswersPtrOutputWithContext(context.Background()) } -func (i *clusterClusterAuthEndpointPtrType) ToClusterClusterAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterAuthEndpointPtrOutput) +func (i *clusterClusterTemplateAnswersPtrType) ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateAnswersPtrOutput) } -type ClusterClusterAuthEndpointOutput struct{ *pulumi.OutputState } +type ClusterClusterTemplateAnswersOutput struct{ *pulumi.OutputState } -func (ClusterClusterAuthEndpointOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterAuthEndpoint)(nil)).Elem() +func (ClusterClusterTemplateAnswersOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterTemplateAnswers)(nil)).Elem() } -func (o ClusterClusterAuthEndpointOutput) ToClusterClusterAuthEndpointOutput() ClusterClusterAuthEndpointOutput { +func (o ClusterClusterTemplateAnswersOutput) ToClusterClusterTemplateAnswersOutput() ClusterClusterTemplateAnswersOutput { return o } -func (o ClusterClusterAuthEndpointOutput) ToClusterClusterAuthEndpointOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointOutput { +func (o ClusterClusterTemplateAnswersOutput) ToClusterClusterTemplateAnswersOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersOutput { return o } -func (o ClusterClusterAuthEndpointOutput) ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput { - return o.ToClusterClusterAuthEndpointPtrOutputWithContext(context.Background()) +func (o ClusterClusterTemplateAnswersOutput) ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput { + return o.ToClusterClusterTemplateAnswersPtrOutputWithContext(context.Background()) } -func (o ClusterClusterAuthEndpointOutput) ToClusterClusterAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterClusterAuthEndpoint) *ClusterClusterAuthEndpoint { +func (o ClusterClusterTemplateAnswersOutput) ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterClusterTemplateAnswers) *ClusterClusterTemplateAnswers { return &v - }).(ClusterClusterAuthEndpointPtrOutput) + }).(ClusterClusterTemplateAnswersPtrOutput) } -// CA certs for the authorized cluster endpoint (string) -func (o ClusterClusterAuthEndpointOutput) CaCerts() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAuthEndpoint) *string { return v.CaCerts }).(pulumi.StringPtrOutput) +// Cluster ID to apply answer (string) +func (o ClusterClusterTemplateAnswersOutput) ClusterId() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterTemplateAnswers) *string { return v.ClusterId }).(pulumi.StringPtrOutput) } -// Enable the authorized cluster endpoint. Default `true` (bool) -func (o ClusterClusterAuthEndpointOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterClusterAuthEndpoint) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) +// Project ID to apply answer (string) +func (o ClusterClusterTemplateAnswersOutput) ProjectId() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterTemplateAnswers) *string { return v.ProjectId }).(pulumi.StringPtrOutput) } -// FQDN for the authorized cluster endpoint (string) -func (o ClusterClusterAuthEndpointOutput) Fqdn() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterAuthEndpoint) *string { return v.Fqdn }).(pulumi.StringPtrOutput) +// Key/values for answer (map) +func (o ClusterClusterTemplateAnswersOutput) Values() pulumi.MapOutput { + return o.ApplyT(func(v ClusterClusterTemplateAnswers) map[string]interface{} { return v.Values }).(pulumi.MapOutput) } -type ClusterClusterAuthEndpointPtrOutput struct{ *pulumi.OutputState } +type ClusterClusterTemplateAnswersPtrOutput struct{ *pulumi.OutputState } -func (ClusterClusterAuthEndpointPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterClusterAuthEndpoint)(nil)).Elem() +func (ClusterClusterTemplateAnswersPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterClusterTemplateAnswers)(nil)).Elem() } -func (o ClusterClusterAuthEndpointPtrOutput) ToClusterClusterAuthEndpointPtrOutput() ClusterClusterAuthEndpointPtrOutput { +func (o ClusterClusterTemplateAnswersPtrOutput) ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput { return o } -func (o ClusterClusterAuthEndpointPtrOutput) ToClusterClusterAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterClusterAuthEndpointPtrOutput { +func (o ClusterClusterTemplateAnswersPtrOutput) ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersPtrOutput { return o } -func (o ClusterClusterAuthEndpointPtrOutput) Elem() ClusterClusterAuthEndpointOutput { - return o.ApplyT(func(v *ClusterClusterAuthEndpoint) ClusterClusterAuthEndpoint { +func (o ClusterClusterTemplateAnswersPtrOutput) Elem() ClusterClusterTemplateAnswersOutput { + return o.ApplyT(func(v *ClusterClusterTemplateAnswers) ClusterClusterTemplateAnswers { if v != nil { return *v } - var ret ClusterClusterAuthEndpoint + var ret ClusterClusterTemplateAnswers return ret - }).(ClusterClusterAuthEndpointOutput) + }).(ClusterClusterTemplateAnswersOutput) } -// CA certs for the authorized cluster endpoint (string) -func (o ClusterClusterAuthEndpointPtrOutput) CaCerts() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterAuthEndpoint) *string { +// Cluster ID to apply answer (string) +func (o ClusterClusterTemplateAnswersPtrOutput) ClusterId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterTemplateAnswers) *string { if v == nil { return nil } - return v.CaCerts + return v.ClusterId }).(pulumi.StringPtrOutput) } -// Enable the authorized cluster endpoint. Default `true` (bool) -func (o ClusterClusterAuthEndpointPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterClusterAuthEndpoint) *bool { +// Project ID to apply answer (string) +func (o ClusterClusterTemplateAnswersPtrOutput) ProjectId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterClusterTemplateAnswers) *string { if v == nil { return nil } - return v.Enabled - }).(pulumi.BoolPtrOutput) + return v.ProjectId + }).(pulumi.StringPtrOutput) } -// FQDN for the authorized cluster endpoint (string) -func (o ClusterClusterAuthEndpointPtrOutput) Fqdn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterAuthEndpoint) *string { +// Key/values for answer (map) +func (o ClusterClusterTemplateAnswersPtrOutput) Values() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterClusterTemplateAnswers) map[string]interface{} { if v == nil { return nil } - return v.Fqdn - }).(pulumi.StringPtrOutput) + return v.Values + }).(pulumi.MapOutput) } -type ClusterClusterMonitoringInput struct { - // Key/value answers for monitor input (map) - Answers map[string]interface{} `pulumi:"answers"` - // rancher-monitoring chart version (string) - Version *string `pulumi:"version"` +type ClusterClusterTemplateQuestion struct { + // Default variable value (string) + Default string `pulumi:"default"` + // Required variable. Default `false` (bool) + Required *bool `pulumi:"required"` + // Variable type. `boolean`, `int`, `password`, and `string` are allowed. Default `string` (string) + Type *string `pulumi:"type"` + // Variable name (string) + Variable string `pulumi:"variable"` } -// ClusterClusterMonitoringInputInput is an input type that accepts ClusterClusterMonitoringInputArgs and ClusterClusterMonitoringInputOutput values. -// You can construct a concrete instance of `ClusterClusterMonitoringInputInput` via: +// ClusterClusterTemplateQuestionInput is an input type that accepts ClusterClusterTemplateQuestionArgs and ClusterClusterTemplateQuestionOutput values. +// You can construct a concrete instance of `ClusterClusterTemplateQuestionInput` via: // -// ClusterClusterMonitoringInputArgs{...} -type ClusterClusterMonitoringInputInput interface { +// ClusterClusterTemplateQuestionArgs{...} +type ClusterClusterTemplateQuestionInput interface { pulumi.Input - ToClusterClusterMonitoringInputOutput() ClusterClusterMonitoringInputOutput - ToClusterClusterMonitoringInputOutputWithContext(context.Context) ClusterClusterMonitoringInputOutput -} - -type ClusterClusterMonitoringInputArgs struct { - // Key/value answers for monitor input (map) - Answers pulumi.MapInput `pulumi:"answers"` - // rancher-monitoring chart version (string) - Version pulumi.StringPtrInput `pulumi:"version"` -} - -func (ClusterClusterMonitoringInputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterMonitoringInput)(nil)).Elem() + ToClusterClusterTemplateQuestionOutput() ClusterClusterTemplateQuestionOutput + ToClusterClusterTemplateQuestionOutputWithContext(context.Context) ClusterClusterTemplateQuestionOutput } -func (i ClusterClusterMonitoringInputArgs) ToClusterClusterMonitoringInputOutput() ClusterClusterMonitoringInputOutput { - return i.ToClusterClusterMonitoringInputOutputWithContext(context.Background()) +type ClusterClusterTemplateQuestionArgs struct { + // Default variable value (string) + Default pulumi.StringInput `pulumi:"default"` + // Required variable. Default `false` (bool) + Required pulumi.BoolPtrInput `pulumi:"required"` + // Variable type. `boolean`, `int`, `password`, and `string` are allowed. Default `string` (string) + Type pulumi.StringPtrInput `pulumi:"type"` + // Variable name (string) + Variable pulumi.StringInput `pulumi:"variable"` } -func (i ClusterClusterMonitoringInputArgs) ToClusterClusterMonitoringInputOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterMonitoringInputOutput) +func (ClusterClusterTemplateQuestionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterTemplateQuestion)(nil)).Elem() } -func (i ClusterClusterMonitoringInputArgs) ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput { - return i.ToClusterClusterMonitoringInputPtrOutputWithContext(context.Background()) +func (i ClusterClusterTemplateQuestionArgs) ToClusterClusterTemplateQuestionOutput() ClusterClusterTemplateQuestionOutput { + return i.ToClusterClusterTemplateQuestionOutputWithContext(context.Background()) } -func (i ClusterClusterMonitoringInputArgs) ToClusterClusterMonitoringInputPtrOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterMonitoringInputOutput).ToClusterClusterMonitoringInputPtrOutputWithContext(ctx) +func (i ClusterClusterTemplateQuestionArgs) ToClusterClusterTemplateQuestionOutputWithContext(ctx context.Context) ClusterClusterTemplateQuestionOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateQuestionOutput) } -// ClusterClusterMonitoringInputPtrInput is an input type that accepts ClusterClusterMonitoringInputArgs, ClusterClusterMonitoringInputPtr and ClusterClusterMonitoringInputPtrOutput values. -// You can construct a concrete instance of `ClusterClusterMonitoringInputPtrInput` via: -// -// ClusterClusterMonitoringInputArgs{...} -// -// or: +// ClusterClusterTemplateQuestionArrayInput is an input type that accepts ClusterClusterTemplateQuestionArray and ClusterClusterTemplateQuestionArrayOutput values. +// You can construct a concrete instance of `ClusterClusterTemplateQuestionArrayInput` via: // -// nil -type ClusterClusterMonitoringInputPtrInput interface { +// ClusterClusterTemplateQuestionArray{ ClusterClusterTemplateQuestionArgs{...} } +type ClusterClusterTemplateQuestionArrayInput interface { pulumi.Input - ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput - ToClusterClusterMonitoringInputPtrOutputWithContext(context.Context) ClusterClusterMonitoringInputPtrOutput + ToClusterClusterTemplateQuestionArrayOutput() ClusterClusterTemplateQuestionArrayOutput + ToClusterClusterTemplateQuestionArrayOutputWithContext(context.Context) ClusterClusterTemplateQuestionArrayOutput } -type clusterClusterMonitoringInputPtrType ClusterClusterMonitoringInputArgs - -func ClusterClusterMonitoringInputPtr(v *ClusterClusterMonitoringInputArgs) ClusterClusterMonitoringInputPtrInput { - return (*clusterClusterMonitoringInputPtrType)(v) -} +type ClusterClusterTemplateQuestionArray []ClusterClusterTemplateQuestionInput -func (*clusterClusterMonitoringInputPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterClusterMonitoringInput)(nil)).Elem() +func (ClusterClusterTemplateQuestionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterClusterTemplateQuestion)(nil)).Elem() } -func (i *clusterClusterMonitoringInputPtrType) ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput { - return i.ToClusterClusterMonitoringInputPtrOutputWithContext(context.Background()) +func (i ClusterClusterTemplateQuestionArray) ToClusterClusterTemplateQuestionArrayOutput() ClusterClusterTemplateQuestionArrayOutput { + return i.ToClusterClusterTemplateQuestionArrayOutputWithContext(context.Background()) } -func (i *clusterClusterMonitoringInputPtrType) ToClusterClusterMonitoringInputPtrOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterMonitoringInputPtrOutput) +func (i ClusterClusterTemplateQuestionArray) ToClusterClusterTemplateQuestionArrayOutputWithContext(ctx context.Context) ClusterClusterTemplateQuestionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateQuestionArrayOutput) } -type ClusterClusterMonitoringInputOutput struct{ *pulumi.OutputState } +type ClusterClusterTemplateQuestionOutput struct{ *pulumi.OutputState } -func (ClusterClusterMonitoringInputOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterMonitoringInput)(nil)).Elem() +func (ClusterClusterTemplateQuestionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterClusterTemplateQuestion)(nil)).Elem() } -func (o ClusterClusterMonitoringInputOutput) ToClusterClusterMonitoringInputOutput() ClusterClusterMonitoringInputOutput { +func (o ClusterClusterTemplateQuestionOutput) ToClusterClusterTemplateQuestionOutput() ClusterClusterTemplateQuestionOutput { return o } -func (o ClusterClusterMonitoringInputOutput) ToClusterClusterMonitoringInputOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputOutput { +func (o ClusterClusterTemplateQuestionOutput) ToClusterClusterTemplateQuestionOutputWithContext(ctx context.Context) ClusterClusterTemplateQuestionOutput { return o } -func (o ClusterClusterMonitoringInputOutput) ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput { - return o.ToClusterClusterMonitoringInputPtrOutputWithContext(context.Background()) +// Default variable value (string) +func (o ClusterClusterTemplateQuestionOutput) Default() pulumi.StringOutput { + return o.ApplyT(func(v ClusterClusterTemplateQuestion) string { return v.Default }).(pulumi.StringOutput) } -func (o ClusterClusterMonitoringInputOutput) ToClusterClusterMonitoringInputPtrOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterClusterMonitoringInput) *ClusterClusterMonitoringInput { - return &v - }).(ClusterClusterMonitoringInputPtrOutput) +// Required variable. Default `false` (bool) +func (o ClusterClusterTemplateQuestionOutput) Required() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterClusterTemplateQuestion) *bool { return v.Required }).(pulumi.BoolPtrOutput) } -// Key/value answers for monitor input (map) -func (o ClusterClusterMonitoringInputOutput) Answers() pulumi.MapOutput { - return o.ApplyT(func(v ClusterClusterMonitoringInput) map[string]interface{} { return v.Answers }).(pulumi.MapOutput) +// Variable type. `boolean`, `int`, `password`, and `string` are allowed. Default `string` (string) +func (o ClusterClusterTemplateQuestionOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterClusterTemplateQuestion) *string { return v.Type }).(pulumi.StringPtrOutput) } -// rancher-monitoring chart version (string) -func (o ClusterClusterMonitoringInputOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterMonitoringInput) *string { return v.Version }).(pulumi.StringPtrOutput) +// Variable name (string) +func (o ClusterClusterTemplateQuestionOutput) Variable() pulumi.StringOutput { + return o.ApplyT(func(v ClusterClusterTemplateQuestion) string { return v.Variable }).(pulumi.StringOutput) } -type ClusterClusterMonitoringInputPtrOutput struct{ *pulumi.OutputState } +type ClusterClusterTemplateQuestionArrayOutput struct{ *pulumi.OutputState } -func (ClusterClusterMonitoringInputPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterClusterMonitoringInput)(nil)).Elem() +func (ClusterClusterTemplateQuestionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterClusterTemplateQuestion)(nil)).Elem() } -func (o ClusterClusterMonitoringInputPtrOutput) ToClusterClusterMonitoringInputPtrOutput() ClusterClusterMonitoringInputPtrOutput { +func (o ClusterClusterTemplateQuestionArrayOutput) ToClusterClusterTemplateQuestionArrayOutput() ClusterClusterTemplateQuestionArrayOutput { return o } -func (o ClusterClusterMonitoringInputPtrOutput) ToClusterClusterMonitoringInputPtrOutputWithContext(ctx context.Context) ClusterClusterMonitoringInputPtrOutput { +func (o ClusterClusterTemplateQuestionArrayOutput) ToClusterClusterTemplateQuestionArrayOutputWithContext(ctx context.Context) ClusterClusterTemplateQuestionArrayOutput { return o } -func (o ClusterClusterMonitoringInputPtrOutput) Elem() ClusterClusterMonitoringInputOutput { - return o.ApplyT(func(v *ClusterClusterMonitoringInput) ClusterClusterMonitoringInput { - if v != nil { - return *v - } - var ret ClusterClusterMonitoringInput - return ret - }).(ClusterClusterMonitoringInputOutput) +func (o ClusterClusterTemplateQuestionArrayOutput) Index(i pulumi.IntInput) ClusterClusterTemplateQuestionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterTemplateQuestion { + return vs[0].([]ClusterClusterTemplateQuestion)[vs[1].(int)] + }).(ClusterClusterTemplateQuestionOutput) } -// Key/value answers for monitor input (map) -func (o ClusterClusterMonitoringInputPtrOutput) Answers() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterClusterMonitoringInput) map[string]interface{} { - if v == nil { - return nil - } - return v.Answers - }).(pulumi.MapOutput) +type ClusterEksConfig struct { + // The AWS Client ID to use (string) + AccessKey string `pulumi:"accessKey"` + // AMI ID to use for the worker nodes instead of the default (string) + Ami *string `pulumi:"ami"` + // Associate public ip EKS worker nodes. Default `true` (bool) + AssociateWorkerNodePublicIp *bool `pulumi:"associateWorkerNodePublicIp"` + // The desired number of worker nodes. For Rancher v2.3.x and above. Default `3` (int) + DesiredNodes *int `pulumi:"desiredNodes"` + // Enables EBS encryption of worker nodes + EbsEncryption *bool `pulumi:"ebsEncryption"` + // The EKS node group instance type. Default: `t3.medium` (string) + InstanceType *string `pulumi:"instanceType"` + // Allow user to specify key name to use. For Rancher v2.2.7 and above (string) + KeyPairName *string `pulumi:"keyPairName"` + // The Kubernetes version that will be used for your master *and* OKE worker nodes (string) + KubernetesVersion string `pulumi:"kubernetesVersion"` + // The maximum number of worker nodes. Default `3` (int) + MaximumNodes *int `pulumi:"maximumNodes"` + // The minimum number of worker nodes. Default `1` (int) + MinimumNodes *int `pulumi:"minimumNodes"` + // The volume size for each node. Default `20` (int) + NodeVolumeSize *int `pulumi:"nodeVolumeSize"` + // The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) + Region *string `pulumi:"region"` + // The AWS Client Secret associated with the Client ID (string) + SecretKey string `pulumi:"secretKey"` + // List of security groups to use for the cluster (list) + SecurityGroups []string `pulumi:"securityGroups"` + // The AWS service role to use (string) + ServiceRole *string `pulumi:"serviceRole"` + // A session token to use with the client key and secret if applicable (string) + SessionToken *string `pulumi:"sessionToken"` + // The EKS node group subnets (list string) + Subnets []string `pulumi:"subnets"` + // The EKS node group user data (string) + UserData *string `pulumi:"userData"` + // The name of the virtual network to use. If it's not specified Rancher will create a new VPC (string) + VirtualNetwork *string `pulumi:"virtualNetwork"` } -// rancher-monitoring chart version (string) -func (o ClusterClusterMonitoringInputPtrOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterMonitoringInput) *string { - if v == nil { - return nil - } - return v.Version - }).(pulumi.StringPtrOutput) -} +// ClusterEksConfigInput is an input type that accepts ClusterEksConfigArgs and ClusterEksConfigOutput values. +// You can construct a concrete instance of `ClusterEksConfigInput` via: +// +// ClusterEksConfigArgs{...} +type ClusterEksConfigInput interface { + pulumi.Input -type ClusterClusterRegistrationToken struct { - // Annotations for the Cluster (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // Cluster ID to apply answer (string) - ClusterId *string `pulumi:"clusterId"` - // Command to execute in a imported k8s cluster (string) - Command *string `pulumi:"command"` - // The EKS node group launch template ID (string) - Id *string `pulumi:"id"` - // Insecure command to execute in a imported k8s cluster (string) - InsecureCommand *string `pulumi:"insecureCommand"` - // Insecure node command to execute in a imported k8s cluster (string) - InsecureNodeCommand *string `pulumi:"insecureNodeCommand"` - // Insecure windows command to execute in a imported k8s cluster (string) - InsecureWindowsNodeCommand *string `pulumi:"insecureWindowsNodeCommand"` - // Labels for the Cluster (map) - Labels map[string]interface{} `pulumi:"labels"` - // K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) - ManifestUrl *string `pulumi:"manifestUrl"` - // The name of the Cluster (string) - Name *string `pulumi:"name"` - // Node command to execute in linux nodes for custom k8s cluster (string) - NodeCommand *string `pulumi:"nodeCommand"` - // ACI token (string) - Token *string `pulumi:"token"` - // Node command to execute in windows nodes for custom k8s cluster (string) - WindowsNodeCommand *string `pulumi:"windowsNodeCommand"` -} - -// ClusterClusterRegistrationTokenInput is an input type that accepts ClusterClusterRegistrationTokenArgs and ClusterClusterRegistrationTokenOutput values. -// You can construct a concrete instance of `ClusterClusterRegistrationTokenInput` via: -// -// ClusterClusterRegistrationTokenArgs{...} -type ClusterClusterRegistrationTokenInput interface { - pulumi.Input - - ToClusterClusterRegistrationTokenOutput() ClusterClusterRegistrationTokenOutput - ToClusterClusterRegistrationTokenOutputWithContext(context.Context) ClusterClusterRegistrationTokenOutput + ToClusterEksConfigOutput() ClusterEksConfigOutput + ToClusterEksConfigOutputWithContext(context.Context) ClusterEksConfigOutput } -type ClusterClusterRegistrationTokenArgs struct { - // Annotations for the Cluster (map) - Annotations pulumi.MapInput `pulumi:"annotations"` - // Cluster ID to apply answer (string) - ClusterId pulumi.StringPtrInput `pulumi:"clusterId"` - // Command to execute in a imported k8s cluster (string) - Command pulumi.StringPtrInput `pulumi:"command"` - // The EKS node group launch template ID (string) - Id pulumi.StringPtrInput `pulumi:"id"` - // Insecure command to execute in a imported k8s cluster (string) - InsecureCommand pulumi.StringPtrInput `pulumi:"insecureCommand"` - // Insecure node command to execute in a imported k8s cluster (string) - InsecureNodeCommand pulumi.StringPtrInput `pulumi:"insecureNodeCommand"` - // Insecure windows command to execute in a imported k8s cluster (string) - InsecureWindowsNodeCommand pulumi.StringPtrInput `pulumi:"insecureWindowsNodeCommand"` - // Labels for the Cluster (map) - Labels pulumi.MapInput `pulumi:"labels"` - // K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) - ManifestUrl pulumi.StringPtrInput `pulumi:"manifestUrl"` - // The name of the Cluster (string) - Name pulumi.StringPtrInput `pulumi:"name"` - // Node command to execute in linux nodes for custom k8s cluster (string) - NodeCommand pulumi.StringPtrInput `pulumi:"nodeCommand"` - // ACI token (string) - Token pulumi.StringPtrInput `pulumi:"token"` - // Node command to execute in windows nodes for custom k8s cluster (string) - WindowsNodeCommand pulumi.StringPtrInput `pulumi:"windowsNodeCommand"` +type ClusterEksConfigArgs struct { + // The AWS Client ID to use (string) + AccessKey pulumi.StringInput `pulumi:"accessKey"` + // AMI ID to use for the worker nodes instead of the default (string) + Ami pulumi.StringPtrInput `pulumi:"ami"` + // Associate public ip EKS worker nodes. Default `true` (bool) + AssociateWorkerNodePublicIp pulumi.BoolPtrInput `pulumi:"associateWorkerNodePublicIp"` + // The desired number of worker nodes. For Rancher v2.3.x and above. Default `3` (int) + DesiredNodes pulumi.IntPtrInput `pulumi:"desiredNodes"` + // Enables EBS encryption of worker nodes + EbsEncryption pulumi.BoolPtrInput `pulumi:"ebsEncryption"` + // The EKS node group instance type. Default: `t3.medium` (string) + InstanceType pulumi.StringPtrInput `pulumi:"instanceType"` + // Allow user to specify key name to use. For Rancher v2.2.7 and above (string) + KeyPairName pulumi.StringPtrInput `pulumi:"keyPairName"` + // The Kubernetes version that will be used for your master *and* OKE worker nodes (string) + KubernetesVersion pulumi.StringInput `pulumi:"kubernetesVersion"` + // The maximum number of worker nodes. Default `3` (int) + MaximumNodes pulumi.IntPtrInput `pulumi:"maximumNodes"` + // The minimum number of worker nodes. Default `1` (int) + MinimumNodes pulumi.IntPtrInput `pulumi:"minimumNodes"` + // The volume size for each node. Default `20` (int) + NodeVolumeSize pulumi.IntPtrInput `pulumi:"nodeVolumeSize"` + // The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) + Region pulumi.StringPtrInput `pulumi:"region"` + // The AWS Client Secret associated with the Client ID (string) + SecretKey pulumi.StringInput `pulumi:"secretKey"` + // List of security groups to use for the cluster (list) + SecurityGroups pulumi.StringArrayInput `pulumi:"securityGroups"` + // The AWS service role to use (string) + ServiceRole pulumi.StringPtrInput `pulumi:"serviceRole"` + // A session token to use with the client key and secret if applicable (string) + SessionToken pulumi.StringPtrInput `pulumi:"sessionToken"` + // The EKS node group subnets (list string) + Subnets pulumi.StringArrayInput `pulumi:"subnets"` + // The EKS node group user data (string) + UserData pulumi.StringPtrInput `pulumi:"userData"` + // The name of the virtual network to use. If it's not specified Rancher will create a new VPC (string) + VirtualNetwork pulumi.StringPtrInput `pulumi:"virtualNetwork"` } -func (ClusterClusterRegistrationTokenArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterRegistrationToken)(nil)).Elem() +func (ClusterEksConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterEksConfig)(nil)).Elem() } -func (i ClusterClusterRegistrationTokenArgs) ToClusterClusterRegistrationTokenOutput() ClusterClusterRegistrationTokenOutput { - return i.ToClusterClusterRegistrationTokenOutputWithContext(context.Background()) +func (i ClusterEksConfigArgs) ToClusterEksConfigOutput() ClusterEksConfigOutput { + return i.ToClusterEksConfigOutputWithContext(context.Background()) } -func (i ClusterClusterRegistrationTokenArgs) ToClusterClusterRegistrationTokenOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterRegistrationTokenOutput) +func (i ClusterEksConfigArgs) ToClusterEksConfigOutputWithContext(ctx context.Context) ClusterEksConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigOutput) } -func (i ClusterClusterRegistrationTokenArgs) ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput { - return i.ToClusterClusterRegistrationTokenPtrOutputWithContext(context.Background()) +func (i ClusterEksConfigArgs) ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput { + return i.ToClusterEksConfigPtrOutputWithContext(context.Background()) } -func (i ClusterClusterRegistrationTokenArgs) ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterRegistrationTokenOutput).ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx) +func (i ClusterEksConfigArgs) ToClusterEksConfigPtrOutputWithContext(ctx context.Context) ClusterEksConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigOutput).ToClusterEksConfigPtrOutputWithContext(ctx) } -// ClusterClusterRegistrationTokenPtrInput is an input type that accepts ClusterClusterRegistrationTokenArgs, ClusterClusterRegistrationTokenPtr and ClusterClusterRegistrationTokenPtrOutput values. -// You can construct a concrete instance of `ClusterClusterRegistrationTokenPtrInput` via: +// ClusterEksConfigPtrInput is an input type that accepts ClusterEksConfigArgs, ClusterEksConfigPtr and ClusterEksConfigPtrOutput values. +// You can construct a concrete instance of `ClusterEksConfigPtrInput` via: // -// ClusterClusterRegistrationTokenArgs{...} +// ClusterEksConfigArgs{...} // // or: // // nil -type ClusterClusterRegistrationTokenPtrInput interface { +type ClusterEksConfigPtrInput interface { pulumi.Input - ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput - ToClusterClusterRegistrationTokenPtrOutputWithContext(context.Context) ClusterClusterRegistrationTokenPtrOutput + ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput + ToClusterEksConfigPtrOutputWithContext(context.Context) ClusterEksConfigPtrOutput } -type clusterClusterRegistrationTokenPtrType ClusterClusterRegistrationTokenArgs +type clusterEksConfigPtrType ClusterEksConfigArgs -func ClusterClusterRegistrationTokenPtr(v *ClusterClusterRegistrationTokenArgs) ClusterClusterRegistrationTokenPtrInput { - return (*clusterClusterRegistrationTokenPtrType)(v) +func ClusterEksConfigPtr(v *ClusterEksConfigArgs) ClusterEksConfigPtrInput { + return (*clusterEksConfigPtrType)(v) } -func (*clusterClusterRegistrationTokenPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterClusterRegistrationToken)(nil)).Elem() +func (*clusterEksConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterEksConfig)(nil)).Elem() } -func (i *clusterClusterRegistrationTokenPtrType) ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput { - return i.ToClusterClusterRegistrationTokenPtrOutputWithContext(context.Background()) +func (i *clusterEksConfigPtrType) ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput { + return i.ToClusterEksConfigPtrOutputWithContext(context.Background()) } -func (i *clusterClusterRegistrationTokenPtrType) ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterRegistrationTokenPtrOutput) +func (i *clusterEksConfigPtrType) ToClusterEksConfigPtrOutputWithContext(ctx context.Context) ClusterEksConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigPtrOutput) } -type ClusterClusterRegistrationTokenOutput struct{ *pulumi.OutputState } +type ClusterEksConfigOutput struct{ *pulumi.OutputState } -func (ClusterClusterRegistrationTokenOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterRegistrationToken)(nil)).Elem() +func (ClusterEksConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterEksConfig)(nil)).Elem() } -func (o ClusterClusterRegistrationTokenOutput) ToClusterClusterRegistrationTokenOutput() ClusterClusterRegistrationTokenOutput { +func (o ClusterEksConfigOutput) ToClusterEksConfigOutput() ClusterEksConfigOutput { return o } -func (o ClusterClusterRegistrationTokenOutput) ToClusterClusterRegistrationTokenOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenOutput { +func (o ClusterEksConfigOutput) ToClusterEksConfigOutputWithContext(ctx context.Context) ClusterEksConfigOutput { return o } -func (o ClusterClusterRegistrationTokenOutput) ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput { - return o.ToClusterClusterRegistrationTokenPtrOutputWithContext(context.Background()) +func (o ClusterEksConfigOutput) ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput { + return o.ToClusterEksConfigPtrOutputWithContext(context.Background()) } -func (o ClusterClusterRegistrationTokenOutput) ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterClusterRegistrationToken) *ClusterClusterRegistrationToken { +func (o ClusterEksConfigOutput) ToClusterEksConfigPtrOutputWithContext(ctx context.Context) ClusterEksConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterEksConfig) *ClusterEksConfig { return &v - }).(ClusterClusterRegistrationTokenPtrOutput) + }).(ClusterEksConfigPtrOutput) } -// Annotations for the Cluster (map) -func (o ClusterClusterRegistrationTokenOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) +// The AWS Client ID to use (string) +func (o ClusterEksConfigOutput) AccessKey() pulumi.StringOutput { + return o.ApplyT(func(v ClusterEksConfig) string { return v.AccessKey }).(pulumi.StringOutput) } -// Cluster ID to apply answer (string) -func (o ClusterClusterRegistrationTokenOutput) ClusterId() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.ClusterId }).(pulumi.StringPtrOutput) +// AMI ID to use for the worker nodes instead of the default (string) +func (o ClusterEksConfigOutput) Ami() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *string { return v.Ami }).(pulumi.StringPtrOutput) } -// Command to execute in a imported k8s cluster (string) -func (o ClusterClusterRegistrationTokenOutput) Command() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.Command }).(pulumi.StringPtrOutput) +// Associate public ip EKS worker nodes. Default `true` (bool) +func (o ClusterEksConfigOutput) AssociateWorkerNodePublicIp() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *bool { return v.AssociateWorkerNodePublicIp }).(pulumi.BoolPtrOutput) } -// The EKS node group launch template ID (string) -func (o ClusterClusterRegistrationTokenOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.Id }).(pulumi.StringPtrOutput) +// The desired number of worker nodes. For Rancher v2.3.x and above. Default `3` (int) +func (o ClusterEksConfigOutput) DesiredNodes() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *int { return v.DesiredNodes }).(pulumi.IntPtrOutput) } -// Insecure command to execute in a imported k8s cluster (string) -func (o ClusterClusterRegistrationTokenOutput) InsecureCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.InsecureCommand }).(pulumi.StringPtrOutput) +// Enables EBS encryption of worker nodes +func (o ClusterEksConfigOutput) EbsEncryption() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *bool { return v.EbsEncryption }).(pulumi.BoolPtrOutput) } -// Insecure node command to execute in a imported k8s cluster (string) -func (o ClusterClusterRegistrationTokenOutput) InsecureNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.InsecureNodeCommand }).(pulumi.StringPtrOutput) +// The EKS node group instance type. Default: `t3.medium` (string) +func (o ClusterEksConfigOutput) InstanceType() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *string { return v.InstanceType }).(pulumi.StringPtrOutput) } -// Insecure windows command to execute in a imported k8s cluster (string) -func (o ClusterClusterRegistrationTokenOutput) InsecureWindowsNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.InsecureWindowsNodeCommand }).(pulumi.StringPtrOutput) +// Allow user to specify key name to use. For Rancher v2.2.7 and above (string) +func (o ClusterEksConfigOutput) KeyPairName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *string { return v.KeyPairName }).(pulumi.StringPtrOutput) } -// Labels for the Cluster (map) -func (o ClusterClusterRegistrationTokenOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) +// The Kubernetes version that will be used for your master *and* OKE worker nodes (string) +func (o ClusterEksConfigOutput) KubernetesVersion() pulumi.StringOutput { + return o.ApplyT(func(v ClusterEksConfig) string { return v.KubernetesVersion }).(pulumi.StringOutput) } -// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) -func (o ClusterClusterRegistrationTokenOutput) ManifestUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.ManifestUrl }).(pulumi.StringPtrOutput) +// The maximum number of worker nodes. Default `3` (int) +func (o ClusterEksConfigOutput) MaximumNodes() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *int { return v.MaximumNodes }).(pulumi.IntPtrOutput) } -// The name of the Cluster (string) -func (o ClusterClusterRegistrationTokenOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.Name }).(pulumi.StringPtrOutput) +// The minimum number of worker nodes. Default `1` (int) +func (o ClusterEksConfigOutput) MinimumNodes() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *int { return v.MinimumNodes }).(pulumi.IntPtrOutput) } -// Node command to execute in linux nodes for custom k8s cluster (string) -func (o ClusterClusterRegistrationTokenOutput) NodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.NodeCommand }).(pulumi.StringPtrOutput) +// The volume size for each node. Default `20` (int) +func (o ClusterEksConfigOutput) NodeVolumeSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *int { return v.NodeVolumeSize }).(pulumi.IntPtrOutput) } -// ACI token (string) -func (o ClusterClusterRegistrationTokenOutput) Token() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.Token }).(pulumi.StringPtrOutput) +// The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) +func (o ClusterEksConfigOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *string { return v.Region }).(pulumi.StringPtrOutput) } -// Node command to execute in windows nodes for custom k8s cluster (string) -func (o ClusterClusterRegistrationTokenOutput) WindowsNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterRegistrationToken) *string { return v.WindowsNodeCommand }).(pulumi.StringPtrOutput) +// The AWS Client Secret associated with the Client ID (string) +func (o ClusterEksConfigOutput) SecretKey() pulumi.StringOutput { + return o.ApplyT(func(v ClusterEksConfig) string { return v.SecretKey }).(pulumi.StringOutput) } -type ClusterClusterRegistrationTokenPtrOutput struct{ *pulumi.OutputState } +// List of security groups to use for the cluster (list) +func (o ClusterEksConfigOutput) SecurityGroups() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterEksConfig) []string { return v.SecurityGroups }).(pulumi.StringArrayOutput) +} -func (ClusterClusterRegistrationTokenPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterClusterRegistrationToken)(nil)).Elem() +// The AWS service role to use (string) +func (o ClusterEksConfigOutput) ServiceRole() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *string { return v.ServiceRole }).(pulumi.StringPtrOutput) } -func (o ClusterClusterRegistrationTokenPtrOutput) ToClusterClusterRegistrationTokenPtrOutput() ClusterClusterRegistrationTokenPtrOutput { +// A session token to use with the client key and secret if applicable (string) +func (o ClusterEksConfigOutput) SessionToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *string { return v.SessionToken }).(pulumi.StringPtrOutput) +} + +// The EKS node group subnets (list string) +func (o ClusterEksConfigOutput) Subnets() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterEksConfig) []string { return v.Subnets }).(pulumi.StringArrayOutput) +} + +// The EKS node group user data (string) +func (o ClusterEksConfigOutput) UserData() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *string { return v.UserData }).(pulumi.StringPtrOutput) +} + +// The name of the virtual network to use. If it's not specified Rancher will create a new VPC (string) +func (o ClusterEksConfigOutput) VirtualNetwork() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfig) *string { return v.VirtualNetwork }).(pulumi.StringPtrOutput) +} + +type ClusterEksConfigPtrOutput struct{ *pulumi.OutputState } + +func (ClusterEksConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterEksConfig)(nil)).Elem() +} + +func (o ClusterEksConfigPtrOutput) ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput { return o } -func (o ClusterClusterRegistrationTokenPtrOutput) ToClusterClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterClusterRegistrationTokenPtrOutput { +func (o ClusterEksConfigPtrOutput) ToClusterEksConfigPtrOutputWithContext(ctx context.Context) ClusterEksConfigPtrOutput { return o } -func (o ClusterClusterRegistrationTokenPtrOutput) Elem() ClusterClusterRegistrationTokenOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) ClusterClusterRegistrationToken { +func (o ClusterEksConfigPtrOutput) Elem() ClusterEksConfigOutput { + return o.ApplyT(func(v *ClusterEksConfig) ClusterEksConfig { if v != nil { return *v } - var ret ClusterClusterRegistrationToken + var ret ClusterEksConfig return ret - }).(ClusterClusterRegistrationTokenOutput) + }).(ClusterEksConfigOutput) } -// Annotations for the Cluster (map) -func (o ClusterClusterRegistrationTokenPtrOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) map[string]interface{} { +// The AWS Client ID to use (string) +func (o ClusterEksConfigPtrOutput) AccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { if v == nil { return nil } - return v.Annotations - }).(pulumi.MapOutput) + return &v.AccessKey + }).(pulumi.StringPtrOutput) } -// Cluster ID to apply answer (string) -func (o ClusterClusterRegistrationTokenPtrOutput) ClusterId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// AMI ID to use for the worker nodes instead of the default (string) +func (o ClusterEksConfigPtrOutput) Ami() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { if v == nil { return nil } - return v.ClusterId + return v.Ami }).(pulumi.StringPtrOutput) } -// Command to execute in a imported k8s cluster (string) -func (o ClusterClusterRegistrationTokenPtrOutput) Command() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// Associate public ip EKS worker nodes. Default `true` (bool) +func (o ClusterEksConfigPtrOutput) AssociateWorkerNodePublicIp() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *bool { if v == nil { return nil } - return v.Command - }).(pulumi.StringPtrOutput) + return v.AssociateWorkerNodePublicIp + }).(pulumi.BoolPtrOutput) } -// The EKS node group launch template ID (string) -func (o ClusterClusterRegistrationTokenPtrOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// The desired number of worker nodes. For Rancher v2.3.x and above. Default `3` (int) +func (o ClusterEksConfigPtrOutput) DesiredNodes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *int { if v == nil { return nil } - return v.Id - }).(pulumi.StringPtrOutput) + return v.DesiredNodes + }).(pulumi.IntPtrOutput) } -// Insecure command to execute in a imported k8s cluster (string) -func (o ClusterClusterRegistrationTokenPtrOutput) InsecureCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// Enables EBS encryption of worker nodes +func (o ClusterEksConfigPtrOutput) EbsEncryption() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *bool { if v == nil { return nil } - return v.InsecureCommand - }).(pulumi.StringPtrOutput) + return v.EbsEncryption + }).(pulumi.BoolPtrOutput) } -// Insecure node command to execute in a imported k8s cluster (string) -func (o ClusterClusterRegistrationTokenPtrOutput) InsecureNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// The EKS node group instance type. Default: `t3.medium` (string) +func (o ClusterEksConfigPtrOutput) InstanceType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { if v == nil { return nil } - return v.InsecureNodeCommand + return v.InstanceType }).(pulumi.StringPtrOutput) } -// Insecure windows command to execute in a imported k8s cluster (string) -func (o ClusterClusterRegistrationTokenPtrOutput) InsecureWindowsNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// Allow user to specify key name to use. For Rancher v2.2.7 and above (string) +func (o ClusterEksConfigPtrOutput) KeyPairName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { if v == nil { return nil } - return v.InsecureWindowsNodeCommand + return v.KeyPairName }).(pulumi.StringPtrOutput) } -// Labels for the Cluster (map) -func (o ClusterClusterRegistrationTokenPtrOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) map[string]interface{} { +// The Kubernetes version that will be used for your master *and* OKE worker nodes (string) +func (o ClusterEksConfigPtrOutput) KubernetesVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { if v == nil { return nil } - return v.Labels - }).(pulumi.MapOutput) + return &v.KubernetesVersion + }).(pulumi.StringPtrOutput) } -// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) -func (o ClusterClusterRegistrationTokenPtrOutput) ManifestUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// The maximum number of worker nodes. Default `3` (int) +func (o ClusterEksConfigPtrOutput) MaximumNodes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *int { if v == nil { return nil } - return v.ManifestUrl - }).(pulumi.StringPtrOutput) + return v.MaximumNodes + }).(pulumi.IntPtrOutput) } -// The name of the Cluster (string) -func (o ClusterClusterRegistrationTokenPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// The minimum number of worker nodes. Default `1` (int) +func (o ClusterEksConfigPtrOutput) MinimumNodes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *int { if v == nil { return nil } - return v.Name - }).(pulumi.StringPtrOutput) + return v.MinimumNodes + }).(pulumi.IntPtrOutput) } -// Node command to execute in linux nodes for custom k8s cluster (string) -func (o ClusterClusterRegistrationTokenPtrOutput) NodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// The volume size for each node. Default `20` (int) +func (o ClusterEksConfigPtrOutput) NodeVolumeSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *int { if v == nil { return nil } - return v.NodeCommand - }).(pulumi.StringPtrOutput) + return v.NodeVolumeSize + }).(pulumi.IntPtrOutput) } -// ACI token (string) -func (o ClusterClusterRegistrationTokenPtrOutput) Token() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) +func (o ClusterEksConfigPtrOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { if v == nil { return nil } - return v.Token + return v.Region }).(pulumi.StringPtrOutput) } -// Node command to execute in windows nodes for custom k8s cluster (string) -func (o ClusterClusterRegistrationTokenPtrOutput) WindowsNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterRegistrationToken) *string { +// The AWS Client Secret associated with the Client ID (string) +func (o ClusterEksConfigPtrOutput) SecretKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { if v == nil { return nil } - return v.WindowsNodeCommand + return &v.SecretKey }).(pulumi.StringPtrOutput) } -type ClusterClusterTemplateAnswers struct { - // Cluster ID to apply answer (string) - ClusterId *string `pulumi:"clusterId"` - // Project ID to apply answer (string) - ProjectId *string `pulumi:"projectId"` - // Key/values for answer (map) - Values map[string]interface{} `pulumi:"values"` -} - -// ClusterClusterTemplateAnswersInput is an input type that accepts ClusterClusterTemplateAnswersArgs and ClusterClusterTemplateAnswersOutput values. -// You can construct a concrete instance of `ClusterClusterTemplateAnswersInput` via: -// -// ClusterClusterTemplateAnswersArgs{...} -type ClusterClusterTemplateAnswersInput interface { - pulumi.Input - - ToClusterClusterTemplateAnswersOutput() ClusterClusterTemplateAnswersOutput - ToClusterClusterTemplateAnswersOutputWithContext(context.Context) ClusterClusterTemplateAnswersOutput -} - -type ClusterClusterTemplateAnswersArgs struct { - // Cluster ID to apply answer (string) - ClusterId pulumi.StringPtrInput `pulumi:"clusterId"` - // Project ID to apply answer (string) - ProjectId pulumi.StringPtrInput `pulumi:"projectId"` - // Key/values for answer (map) - Values pulumi.MapInput `pulumi:"values"` +// List of security groups to use for the cluster (list) +func (o ClusterEksConfigPtrOutput) SecurityGroups() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterEksConfig) []string { + if v == nil { + return nil + } + return v.SecurityGroups + }).(pulumi.StringArrayOutput) } -func (ClusterClusterTemplateAnswersArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterTemplateAnswers)(nil)).Elem() +// The AWS service role to use (string) +func (o ClusterEksConfigPtrOutput) ServiceRole() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { + if v == nil { + return nil + } + return v.ServiceRole + }).(pulumi.StringPtrOutput) } -func (i ClusterClusterTemplateAnswersArgs) ToClusterClusterTemplateAnswersOutput() ClusterClusterTemplateAnswersOutput { - return i.ToClusterClusterTemplateAnswersOutputWithContext(context.Background()) +// A session token to use with the client key and secret if applicable (string) +func (o ClusterEksConfigPtrOutput) SessionToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { + if v == nil { + return nil + } + return v.SessionToken + }).(pulumi.StringPtrOutput) } -func (i ClusterClusterTemplateAnswersArgs) ToClusterClusterTemplateAnswersOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateAnswersOutput) +// The EKS node group subnets (list string) +func (o ClusterEksConfigPtrOutput) Subnets() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterEksConfig) []string { + if v == nil { + return nil + } + return v.Subnets + }).(pulumi.StringArrayOutput) } -func (i ClusterClusterTemplateAnswersArgs) ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput { - return i.ToClusterClusterTemplateAnswersPtrOutputWithContext(context.Background()) +// The EKS node group user data (string) +func (o ClusterEksConfigPtrOutput) UserData() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { + if v == nil { + return nil + } + return v.UserData + }).(pulumi.StringPtrOutput) } -func (i ClusterClusterTemplateAnswersArgs) ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateAnswersOutput).ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx) +// The name of the virtual network to use. If it's not specified Rancher will create a new VPC (string) +func (o ClusterEksConfigPtrOutput) VirtualNetwork() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfig) *string { + if v == nil { + return nil + } + return v.VirtualNetwork + }).(pulumi.StringPtrOutput) } -// ClusterClusterTemplateAnswersPtrInput is an input type that accepts ClusterClusterTemplateAnswersArgs, ClusterClusterTemplateAnswersPtr and ClusterClusterTemplateAnswersPtrOutput values. -// You can construct a concrete instance of `ClusterClusterTemplateAnswersPtrInput` via: -// -// ClusterClusterTemplateAnswersArgs{...} -// -// or: +type ClusterEksConfigV2 struct { + // The EKS cloudCredential id (string) + CloudCredentialId string `pulumi:"cloudCredentialId"` + // Is GKE cluster imported? Default: `false` (bool) + Imported *bool `pulumi:"imported"` + // The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) + KmsKey *string `pulumi:"kmsKey"` + // The Kubernetes version that will be used for your master *and* OKE worker nodes (string) + KubernetesVersion *string `pulumi:"kubernetesVersion"` + // The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) + LoggingTypes []string `pulumi:"loggingTypes"` + // The name of the Cluster (string) + Name *string `pulumi:"name"` + // The EKS cluster name to import. Required to create a new cluster (list) + NodeGroups []ClusterEksConfigV2NodeGroup `pulumi:"nodeGroups"` + // The EKS cluster has private access (bool) + PrivateAccess *bool `pulumi:"privateAccess"` + // The EKS cluster has public access (bool) + PublicAccess *bool `pulumi:"publicAccess"` + // The EKS cluster public access sources (map) + PublicAccessSources []string `pulumi:"publicAccessSources"` + // The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) + Region *string `pulumi:"region"` + // Enable EKS cluster secret encryption (bool) + SecretsEncryption *bool `pulumi:"secretsEncryption"` + // List of security groups to use for the cluster (list) + SecurityGroups []string `pulumi:"securityGroups"` + // The AWS service role to use (string) + ServiceRole *string `pulumi:"serviceRole"` + // The EKS node group subnets (list string) + Subnets []string `pulumi:"subnets"` + // The GKE node config tags (List) + Tags map[string]interface{} `pulumi:"tags"` +} + +// ClusterEksConfigV2Input is an input type that accepts ClusterEksConfigV2Args and ClusterEksConfigV2Output values. +// You can construct a concrete instance of `ClusterEksConfigV2Input` via: // -// nil -type ClusterClusterTemplateAnswersPtrInput interface { +// ClusterEksConfigV2Args{...} +type ClusterEksConfigV2Input interface { pulumi.Input - ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput - ToClusterClusterTemplateAnswersPtrOutputWithContext(context.Context) ClusterClusterTemplateAnswersPtrOutput + ToClusterEksConfigV2Output() ClusterEksConfigV2Output + ToClusterEksConfigV2OutputWithContext(context.Context) ClusterEksConfigV2Output } -type clusterClusterTemplateAnswersPtrType ClusterClusterTemplateAnswersArgs - -func ClusterClusterTemplateAnswersPtr(v *ClusterClusterTemplateAnswersArgs) ClusterClusterTemplateAnswersPtrInput { - return (*clusterClusterTemplateAnswersPtrType)(v) +type ClusterEksConfigV2Args struct { + // The EKS cloudCredential id (string) + CloudCredentialId pulumi.StringInput `pulumi:"cloudCredentialId"` + // Is GKE cluster imported? Default: `false` (bool) + Imported pulumi.BoolPtrInput `pulumi:"imported"` + // The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) + KmsKey pulumi.StringPtrInput `pulumi:"kmsKey"` + // The Kubernetes version that will be used for your master *and* OKE worker nodes (string) + KubernetesVersion pulumi.StringPtrInput `pulumi:"kubernetesVersion"` + // The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) + LoggingTypes pulumi.StringArrayInput `pulumi:"loggingTypes"` + // The name of the Cluster (string) + Name pulumi.StringPtrInput `pulumi:"name"` + // The EKS cluster name to import. Required to create a new cluster (list) + NodeGroups ClusterEksConfigV2NodeGroupArrayInput `pulumi:"nodeGroups"` + // The EKS cluster has private access (bool) + PrivateAccess pulumi.BoolPtrInput `pulumi:"privateAccess"` + // The EKS cluster has public access (bool) + PublicAccess pulumi.BoolPtrInput `pulumi:"publicAccess"` + // The EKS cluster public access sources (map) + PublicAccessSources pulumi.StringArrayInput `pulumi:"publicAccessSources"` + // The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) + Region pulumi.StringPtrInput `pulumi:"region"` + // Enable EKS cluster secret encryption (bool) + SecretsEncryption pulumi.BoolPtrInput `pulumi:"secretsEncryption"` + // List of security groups to use for the cluster (list) + SecurityGroups pulumi.StringArrayInput `pulumi:"securityGroups"` + // The AWS service role to use (string) + ServiceRole pulumi.StringPtrInput `pulumi:"serviceRole"` + // The EKS node group subnets (list string) + Subnets pulumi.StringArrayInput `pulumi:"subnets"` + // The GKE node config tags (List) + Tags pulumi.MapInput `pulumi:"tags"` } -func (*clusterClusterTemplateAnswersPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterClusterTemplateAnswers)(nil)).Elem() +func (ClusterEksConfigV2Args) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterEksConfigV2)(nil)).Elem() } -func (i *clusterClusterTemplateAnswersPtrType) ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput { - return i.ToClusterClusterTemplateAnswersPtrOutputWithContext(context.Background()) +func (i ClusterEksConfigV2Args) ToClusterEksConfigV2Output() ClusterEksConfigV2Output { + return i.ToClusterEksConfigV2OutputWithContext(context.Background()) } -func (i *clusterClusterTemplateAnswersPtrType) ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateAnswersPtrOutput) +func (i ClusterEksConfigV2Args) ToClusterEksConfigV2OutputWithContext(ctx context.Context) ClusterEksConfigV2Output { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2Output) } -type ClusterClusterTemplateAnswersOutput struct{ *pulumi.OutputState } - -func (ClusterClusterTemplateAnswersOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterTemplateAnswers)(nil)).Elem() +func (i ClusterEksConfigV2Args) ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput { + return i.ToClusterEksConfigV2PtrOutputWithContext(context.Background()) } -func (o ClusterClusterTemplateAnswersOutput) ToClusterClusterTemplateAnswersOutput() ClusterClusterTemplateAnswersOutput { - return o +func (i ClusterEksConfigV2Args) ToClusterEksConfigV2PtrOutputWithContext(ctx context.Context) ClusterEksConfigV2PtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2Output).ToClusterEksConfigV2PtrOutputWithContext(ctx) } -func (o ClusterClusterTemplateAnswersOutput) ToClusterClusterTemplateAnswersOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersOutput { - return o -} +// ClusterEksConfigV2PtrInput is an input type that accepts ClusterEksConfigV2Args, ClusterEksConfigV2Ptr and ClusterEksConfigV2PtrOutput values. +// You can construct a concrete instance of `ClusterEksConfigV2PtrInput` via: +// +// ClusterEksConfigV2Args{...} +// +// or: +// +// nil +type ClusterEksConfigV2PtrInput interface { + pulumi.Input -func (o ClusterClusterTemplateAnswersOutput) ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput { - return o.ToClusterClusterTemplateAnswersPtrOutputWithContext(context.Background()) + ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput + ToClusterEksConfigV2PtrOutputWithContext(context.Context) ClusterEksConfigV2PtrOutput } -func (o ClusterClusterTemplateAnswersOutput) ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterClusterTemplateAnswers) *ClusterClusterTemplateAnswers { - return &v - }).(ClusterClusterTemplateAnswersPtrOutput) +type clusterEksConfigV2PtrType ClusterEksConfigV2Args + +func ClusterEksConfigV2Ptr(v *ClusterEksConfigV2Args) ClusterEksConfigV2PtrInput { + return (*clusterEksConfigV2PtrType)(v) } -// Cluster ID to apply answer (string) -func (o ClusterClusterTemplateAnswersOutput) ClusterId() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterTemplateAnswers) *string { return v.ClusterId }).(pulumi.StringPtrOutput) +func (*clusterEksConfigV2PtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterEksConfigV2)(nil)).Elem() } -// Project ID to apply answer (string) -func (o ClusterClusterTemplateAnswersOutput) ProjectId() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterTemplateAnswers) *string { return v.ProjectId }).(pulumi.StringPtrOutput) +func (i *clusterEksConfigV2PtrType) ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput { + return i.ToClusterEksConfigV2PtrOutputWithContext(context.Background()) } -// Key/values for answer (map) -func (o ClusterClusterTemplateAnswersOutput) Values() pulumi.MapOutput { - return o.ApplyT(func(v ClusterClusterTemplateAnswers) map[string]interface{} { return v.Values }).(pulumi.MapOutput) +func (i *clusterEksConfigV2PtrType) ToClusterEksConfigV2PtrOutputWithContext(ctx context.Context) ClusterEksConfigV2PtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2PtrOutput) } -type ClusterClusterTemplateAnswersPtrOutput struct{ *pulumi.OutputState } +type ClusterEksConfigV2Output struct{ *pulumi.OutputState } -func (ClusterClusterTemplateAnswersPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterClusterTemplateAnswers)(nil)).Elem() +func (ClusterEksConfigV2Output) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterEksConfigV2)(nil)).Elem() } -func (o ClusterClusterTemplateAnswersPtrOutput) ToClusterClusterTemplateAnswersPtrOutput() ClusterClusterTemplateAnswersPtrOutput { +func (o ClusterEksConfigV2Output) ToClusterEksConfigV2Output() ClusterEksConfigV2Output { return o } -func (o ClusterClusterTemplateAnswersPtrOutput) ToClusterClusterTemplateAnswersPtrOutputWithContext(ctx context.Context) ClusterClusterTemplateAnswersPtrOutput { +func (o ClusterEksConfigV2Output) ToClusterEksConfigV2OutputWithContext(ctx context.Context) ClusterEksConfigV2Output { return o } -func (o ClusterClusterTemplateAnswersPtrOutput) Elem() ClusterClusterTemplateAnswersOutput { - return o.ApplyT(func(v *ClusterClusterTemplateAnswers) ClusterClusterTemplateAnswers { - if v != nil { - return *v - } - var ret ClusterClusterTemplateAnswers - return ret - }).(ClusterClusterTemplateAnswersOutput) -} - -// Cluster ID to apply answer (string) -func (o ClusterClusterTemplateAnswersPtrOutput) ClusterId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterTemplateAnswers) *string { - if v == nil { - return nil - } - return v.ClusterId - }).(pulumi.StringPtrOutput) +func (o ClusterEksConfigV2Output) ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput { + return o.ToClusterEksConfigV2PtrOutputWithContext(context.Background()) } -// Project ID to apply answer (string) -func (o ClusterClusterTemplateAnswersPtrOutput) ProjectId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterClusterTemplateAnswers) *string { - if v == nil { - return nil - } - return v.ProjectId - }).(pulumi.StringPtrOutput) +func (o ClusterEksConfigV2Output) ToClusterEksConfigV2PtrOutputWithContext(ctx context.Context) ClusterEksConfigV2PtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterEksConfigV2) *ClusterEksConfigV2 { + return &v + }).(ClusterEksConfigV2PtrOutput) } -// Key/values for answer (map) -func (o ClusterClusterTemplateAnswersPtrOutput) Values() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterClusterTemplateAnswers) map[string]interface{} { - if v == nil { - return nil - } - return v.Values - }).(pulumi.MapOutput) +// The EKS cloudCredential id (string) +func (o ClusterEksConfigV2Output) CloudCredentialId() pulumi.StringOutput { + return o.ApplyT(func(v ClusterEksConfigV2) string { return v.CloudCredentialId }).(pulumi.StringOutput) } -type ClusterClusterTemplateQuestion struct { - // Default variable value (string) - Default string `pulumi:"default"` - // Required variable. Default `false` (bool) - Required *bool `pulumi:"required"` - // Variable type. `boolean`, `int`, `password`, and `string` are allowed. Default `string` (string) - Type *string `pulumi:"type"` - // Variable name (string) - Variable string `pulumi:"variable"` +// Is GKE cluster imported? Default: `false` (bool) +func (o ClusterEksConfigV2Output) Imported() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *bool { return v.Imported }).(pulumi.BoolPtrOutput) } -// ClusterClusterTemplateQuestionInput is an input type that accepts ClusterClusterTemplateQuestionArgs and ClusterClusterTemplateQuestionOutput values. -// You can construct a concrete instance of `ClusterClusterTemplateQuestionInput` via: -// -// ClusterClusterTemplateQuestionArgs{...} -type ClusterClusterTemplateQuestionInput interface { - pulumi.Input - - ToClusterClusterTemplateQuestionOutput() ClusterClusterTemplateQuestionOutput - ToClusterClusterTemplateQuestionOutputWithContext(context.Context) ClusterClusterTemplateQuestionOutput +// The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) +func (o ClusterEksConfigV2Output) KmsKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.KmsKey }).(pulumi.StringPtrOutput) } -type ClusterClusterTemplateQuestionArgs struct { - // Default variable value (string) - Default pulumi.StringInput `pulumi:"default"` - // Required variable. Default `false` (bool) - Required pulumi.BoolPtrInput `pulumi:"required"` - // Variable type. `boolean`, `int`, `password`, and `string` are allowed. Default `string` (string) - Type pulumi.StringPtrInput `pulumi:"type"` - // Variable name (string) - Variable pulumi.StringInput `pulumi:"variable"` +// The Kubernetes version that will be used for your master *and* OKE worker nodes (string) +func (o ClusterEksConfigV2Output) KubernetesVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.KubernetesVersion }).(pulumi.StringPtrOutput) } -func (ClusterClusterTemplateQuestionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterTemplateQuestion)(nil)).Elem() +// The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) +func (o ClusterEksConfigV2Output) LoggingTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterEksConfigV2) []string { return v.LoggingTypes }).(pulumi.StringArrayOutput) } -func (i ClusterClusterTemplateQuestionArgs) ToClusterClusterTemplateQuestionOutput() ClusterClusterTemplateQuestionOutput { - return i.ToClusterClusterTemplateQuestionOutputWithContext(context.Background()) +// The name of the Cluster (string) +func (o ClusterEksConfigV2Output) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.Name }).(pulumi.StringPtrOutput) } -func (i ClusterClusterTemplateQuestionArgs) ToClusterClusterTemplateQuestionOutputWithContext(ctx context.Context) ClusterClusterTemplateQuestionOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateQuestionOutput) +// The EKS cluster name to import. Required to create a new cluster (list) +func (o ClusterEksConfigV2Output) NodeGroups() ClusterEksConfigV2NodeGroupArrayOutput { + return o.ApplyT(func(v ClusterEksConfigV2) []ClusterEksConfigV2NodeGroup { return v.NodeGroups }).(ClusterEksConfigV2NodeGroupArrayOutput) } -// ClusterClusterTemplateQuestionArrayInput is an input type that accepts ClusterClusterTemplateQuestionArray and ClusterClusterTemplateQuestionArrayOutput values. -// You can construct a concrete instance of `ClusterClusterTemplateQuestionArrayInput` via: -// -// ClusterClusterTemplateQuestionArray{ ClusterClusterTemplateQuestionArgs{...} } -type ClusterClusterTemplateQuestionArrayInput interface { - pulumi.Input - - ToClusterClusterTemplateQuestionArrayOutput() ClusterClusterTemplateQuestionArrayOutput - ToClusterClusterTemplateQuestionArrayOutputWithContext(context.Context) ClusterClusterTemplateQuestionArrayOutput +// The EKS cluster has private access (bool) +func (o ClusterEksConfigV2Output) PrivateAccess() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *bool { return v.PrivateAccess }).(pulumi.BoolPtrOutput) } -type ClusterClusterTemplateQuestionArray []ClusterClusterTemplateQuestionInput - -func (ClusterClusterTemplateQuestionArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterClusterTemplateQuestion)(nil)).Elem() +// The EKS cluster has public access (bool) +func (o ClusterEksConfigV2Output) PublicAccess() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *bool { return v.PublicAccess }).(pulumi.BoolPtrOutput) } -func (i ClusterClusterTemplateQuestionArray) ToClusterClusterTemplateQuestionArrayOutput() ClusterClusterTemplateQuestionArrayOutput { - return i.ToClusterClusterTemplateQuestionArrayOutputWithContext(context.Background()) +// The EKS cluster public access sources (map) +func (o ClusterEksConfigV2Output) PublicAccessSources() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterEksConfigV2) []string { return v.PublicAccessSources }).(pulumi.StringArrayOutput) } -func (i ClusterClusterTemplateQuestionArray) ToClusterClusterTemplateQuestionArrayOutputWithContext(ctx context.Context) ClusterClusterTemplateQuestionArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterClusterTemplateQuestionArrayOutput) +// The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) +func (o ClusterEksConfigV2Output) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.Region }).(pulumi.StringPtrOutput) } -type ClusterClusterTemplateQuestionOutput struct{ *pulumi.OutputState } - -func (ClusterClusterTemplateQuestionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterClusterTemplateQuestion)(nil)).Elem() +// Enable EKS cluster secret encryption (bool) +func (o ClusterEksConfigV2Output) SecretsEncryption() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *bool { return v.SecretsEncryption }).(pulumi.BoolPtrOutput) } -func (o ClusterClusterTemplateQuestionOutput) ToClusterClusterTemplateQuestionOutput() ClusterClusterTemplateQuestionOutput { - return o +// List of security groups to use for the cluster (list) +func (o ClusterEksConfigV2Output) SecurityGroups() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterEksConfigV2) []string { return v.SecurityGroups }).(pulumi.StringArrayOutput) } -func (o ClusterClusterTemplateQuestionOutput) ToClusterClusterTemplateQuestionOutputWithContext(ctx context.Context) ClusterClusterTemplateQuestionOutput { - return o +// The AWS service role to use (string) +func (o ClusterEksConfigV2Output) ServiceRole() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.ServiceRole }).(pulumi.StringPtrOutput) } -// Default variable value (string) -func (o ClusterClusterTemplateQuestionOutput) Default() pulumi.StringOutput { - return o.ApplyT(func(v ClusterClusterTemplateQuestion) string { return v.Default }).(pulumi.StringOutput) +// The EKS node group subnets (list string) +func (o ClusterEksConfigV2Output) Subnets() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterEksConfigV2) []string { return v.Subnets }).(pulumi.StringArrayOutput) } -// Required variable. Default `false` (bool) -func (o ClusterClusterTemplateQuestionOutput) Required() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterClusterTemplateQuestion) *bool { return v.Required }).(pulumi.BoolPtrOutput) +// The GKE node config tags (List) +func (o ClusterEksConfigV2Output) Tags() pulumi.MapOutput { + return o.ApplyT(func(v ClusterEksConfigV2) map[string]interface{} { return v.Tags }).(pulumi.MapOutput) } -// Variable type. `boolean`, `int`, `password`, and `string` are allowed. Default `string` (string) -func (o ClusterClusterTemplateQuestionOutput) Type() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterClusterTemplateQuestion) *string { return v.Type }).(pulumi.StringPtrOutput) -} +type ClusterEksConfigV2PtrOutput struct{ *pulumi.OutputState } -// Variable name (string) -func (o ClusterClusterTemplateQuestionOutput) Variable() pulumi.StringOutput { - return o.ApplyT(func(v ClusterClusterTemplateQuestion) string { return v.Variable }).(pulumi.StringOutput) +func (ClusterEksConfigV2PtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterEksConfigV2)(nil)).Elem() } -type ClusterClusterTemplateQuestionArrayOutput struct{ *pulumi.OutputState } - -func (ClusterClusterTemplateQuestionArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterClusterTemplateQuestion)(nil)).Elem() +func (o ClusterEksConfigV2PtrOutput) ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput { + return o } -func (o ClusterClusterTemplateQuestionArrayOutput) ToClusterClusterTemplateQuestionArrayOutput() ClusterClusterTemplateQuestionArrayOutput { +func (o ClusterEksConfigV2PtrOutput) ToClusterEksConfigV2PtrOutputWithContext(ctx context.Context) ClusterEksConfigV2PtrOutput { return o } -func (o ClusterClusterTemplateQuestionArrayOutput) ToClusterClusterTemplateQuestionArrayOutputWithContext(ctx context.Context) ClusterClusterTemplateQuestionArrayOutput { - return o +func (o ClusterEksConfigV2PtrOutput) Elem() ClusterEksConfigV2Output { + return o.ApplyT(func(v *ClusterEksConfigV2) ClusterEksConfigV2 { + if v != nil { + return *v + } + var ret ClusterEksConfigV2 + return ret + }).(ClusterEksConfigV2Output) } -func (o ClusterClusterTemplateQuestionArrayOutput) Index(i pulumi.IntInput) ClusterClusterTemplateQuestionOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterClusterTemplateQuestion { - return vs[0].([]ClusterClusterTemplateQuestion)[vs[1].(int)] - }).(ClusterClusterTemplateQuestionOutput) +// The EKS cloudCredential id (string) +func (o ClusterEksConfigV2PtrOutput) CloudCredentialId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *string { + if v == nil { + return nil + } + return &v.CloudCredentialId + }).(pulumi.StringPtrOutput) } -type ClusterEksConfig struct { - // The AWS Client ID to use (string) - AccessKey string `pulumi:"accessKey"` - // AMI ID to use for the worker nodes instead of the default (string) - Ami *string `pulumi:"ami"` - // Associate public ip EKS worker nodes. Default `true` (bool) - AssociateWorkerNodePublicIp *bool `pulumi:"associateWorkerNodePublicIp"` - // The desired number of worker nodes. For Rancher v2.3.x and above. Default `3` (int) - DesiredNodes *int `pulumi:"desiredNodes"` - // Enables EBS encryption of worker nodes - EbsEncryption *bool `pulumi:"ebsEncryption"` - // The EKS node group instance type. Default: `t3.medium` (string) - InstanceType *string `pulumi:"instanceType"` - // Allow user to specify key name to use. For Rancher v2.2.7 and above (string) - KeyPairName *string `pulumi:"keyPairName"` - // The Kubernetes version that will be used for your master *and* OKE worker nodes (string) - KubernetesVersion string `pulumi:"kubernetesVersion"` - // The maximum number of worker nodes. Default `3` (int) - MaximumNodes *int `pulumi:"maximumNodes"` - // The minimum number of worker nodes. Default `1` (int) - MinimumNodes *int `pulumi:"minimumNodes"` - // The volume size for each node. Default `20` (int) - NodeVolumeSize *int `pulumi:"nodeVolumeSize"` - // The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) - Region *string `pulumi:"region"` - // The AWS Client Secret associated with the Client ID (string) - SecretKey string `pulumi:"secretKey"` - // List of security groups to use for the cluster (list) - SecurityGroups []string `pulumi:"securityGroups"` - // The AWS service role to use (string) - ServiceRole *string `pulumi:"serviceRole"` - // A session token to use with the client key and secret if applicable (string) - SessionToken *string `pulumi:"sessionToken"` - // The EKS node group subnets (list string) - Subnets []string `pulumi:"subnets"` - // The EKS node group user data (string) - UserData *string `pulumi:"userData"` - // The name of the virtual network to use. If it's not specified Rancher will create a new VPC (string) - VirtualNetwork *string `pulumi:"virtualNetwork"` +// Is GKE cluster imported? Default: `false` (bool) +func (o ClusterEksConfigV2PtrOutput) Imported() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *bool { + if v == nil { + return nil + } + return v.Imported + }).(pulumi.BoolPtrOutput) } -// ClusterEksConfigInput is an input type that accepts ClusterEksConfigArgs and ClusterEksConfigOutput values. -// You can construct a concrete instance of `ClusterEksConfigInput` via: -// -// ClusterEksConfigArgs{...} -type ClusterEksConfigInput interface { - pulumi.Input +// The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) +func (o ClusterEksConfigV2PtrOutput) KmsKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *string { + if v == nil { + return nil + } + return v.KmsKey + }).(pulumi.StringPtrOutput) +} - ToClusterEksConfigOutput() ClusterEksConfigOutput - ToClusterEksConfigOutputWithContext(context.Context) ClusterEksConfigOutput +// The Kubernetes version that will be used for your master *and* OKE worker nodes (string) +func (o ClusterEksConfigV2PtrOutput) KubernetesVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *string { + if v == nil { + return nil + } + return v.KubernetesVersion + }).(pulumi.StringPtrOutput) } -type ClusterEksConfigArgs struct { - // The AWS Client ID to use (string) - AccessKey pulumi.StringInput `pulumi:"accessKey"` - // AMI ID to use for the worker nodes instead of the default (string) - Ami pulumi.StringPtrInput `pulumi:"ami"` - // Associate public ip EKS worker nodes. Default `true` (bool) - AssociateWorkerNodePublicIp pulumi.BoolPtrInput `pulumi:"associateWorkerNodePublicIp"` - // The desired number of worker nodes. For Rancher v2.3.x and above. Default `3` (int) - DesiredNodes pulumi.IntPtrInput `pulumi:"desiredNodes"` - // Enables EBS encryption of worker nodes - EbsEncryption pulumi.BoolPtrInput `pulumi:"ebsEncryption"` - // The EKS node group instance type. Default: `t3.medium` (string) - InstanceType pulumi.StringPtrInput `pulumi:"instanceType"` - // Allow user to specify key name to use. For Rancher v2.2.7 and above (string) - KeyPairName pulumi.StringPtrInput `pulumi:"keyPairName"` - // The Kubernetes version that will be used for your master *and* OKE worker nodes (string) - KubernetesVersion pulumi.StringInput `pulumi:"kubernetesVersion"` - // The maximum number of worker nodes. Default `3` (int) - MaximumNodes pulumi.IntPtrInput `pulumi:"maximumNodes"` - // The minimum number of worker nodes. Default `1` (int) - MinimumNodes pulumi.IntPtrInput `pulumi:"minimumNodes"` - // The volume size for each node. Default `20` (int) - NodeVolumeSize pulumi.IntPtrInput `pulumi:"nodeVolumeSize"` - // The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) - Region pulumi.StringPtrInput `pulumi:"region"` - // The AWS Client Secret associated with the Client ID (string) - SecretKey pulumi.StringInput `pulumi:"secretKey"` - // List of security groups to use for the cluster (list) - SecurityGroups pulumi.StringArrayInput `pulumi:"securityGroups"` - // The AWS service role to use (string) - ServiceRole pulumi.StringPtrInput `pulumi:"serviceRole"` - // A session token to use with the client key and secret if applicable (string) - SessionToken pulumi.StringPtrInput `pulumi:"sessionToken"` - // The EKS node group subnets (list string) - Subnets pulumi.StringArrayInput `pulumi:"subnets"` - // The EKS node group user data (string) - UserData pulumi.StringPtrInput `pulumi:"userData"` - // The name of the virtual network to use. If it's not specified Rancher will create a new VPC (string) - VirtualNetwork pulumi.StringPtrInput `pulumi:"virtualNetwork"` +// The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) +func (o ClusterEksConfigV2PtrOutput) LoggingTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) []string { + if v == nil { + return nil + } + return v.LoggingTypes + }).(pulumi.StringArrayOutput) } -func (ClusterEksConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterEksConfig)(nil)).Elem() +// The name of the Cluster (string) +func (o ClusterEksConfigV2PtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *string { + if v == nil { + return nil + } + return v.Name + }).(pulumi.StringPtrOutput) } -func (i ClusterEksConfigArgs) ToClusterEksConfigOutput() ClusterEksConfigOutput { - return i.ToClusterEksConfigOutputWithContext(context.Background()) +// The EKS cluster name to import. Required to create a new cluster (list) +func (o ClusterEksConfigV2PtrOutput) NodeGroups() ClusterEksConfigV2NodeGroupArrayOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) []ClusterEksConfigV2NodeGroup { + if v == nil { + return nil + } + return v.NodeGroups + }).(ClusterEksConfigV2NodeGroupArrayOutput) } -func (i ClusterEksConfigArgs) ToClusterEksConfigOutputWithContext(ctx context.Context) ClusterEksConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigOutput) +// The EKS cluster has private access (bool) +func (o ClusterEksConfigV2PtrOutput) PrivateAccess() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *bool { + if v == nil { + return nil + } + return v.PrivateAccess + }).(pulumi.BoolPtrOutput) } -func (i ClusterEksConfigArgs) ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput { - return i.ToClusterEksConfigPtrOutputWithContext(context.Background()) +// The EKS cluster has public access (bool) +func (o ClusterEksConfigV2PtrOutput) PublicAccess() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *bool { + if v == nil { + return nil + } + return v.PublicAccess + }).(pulumi.BoolPtrOutput) } -func (i ClusterEksConfigArgs) ToClusterEksConfigPtrOutputWithContext(ctx context.Context) ClusterEksConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigOutput).ToClusterEksConfigPtrOutputWithContext(ctx) +// The EKS cluster public access sources (map) +func (o ClusterEksConfigV2PtrOutput) PublicAccessSources() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) []string { + if v == nil { + return nil + } + return v.PublicAccessSources + }).(pulumi.StringArrayOutput) } -// ClusterEksConfigPtrInput is an input type that accepts ClusterEksConfigArgs, ClusterEksConfigPtr and ClusterEksConfigPtrOutput values. -// You can construct a concrete instance of `ClusterEksConfigPtrInput` via: -// -// ClusterEksConfigArgs{...} -// -// or: +// The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) +func (o ClusterEksConfigV2PtrOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *string { + if v == nil { + return nil + } + return v.Region + }).(pulumi.StringPtrOutput) +} + +// Enable EKS cluster secret encryption (bool) +func (o ClusterEksConfigV2PtrOutput) SecretsEncryption() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *bool { + if v == nil { + return nil + } + return v.SecretsEncryption + }).(pulumi.BoolPtrOutput) +} + +// List of security groups to use for the cluster (list) +func (o ClusterEksConfigV2PtrOutput) SecurityGroups() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) []string { + if v == nil { + return nil + } + return v.SecurityGroups + }).(pulumi.StringArrayOutput) +} + +// The AWS service role to use (string) +func (o ClusterEksConfigV2PtrOutput) ServiceRole() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) *string { + if v == nil { + return nil + } + return v.ServiceRole + }).(pulumi.StringPtrOutput) +} + +// The EKS node group subnets (list string) +func (o ClusterEksConfigV2PtrOutput) Subnets() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) []string { + if v == nil { + return nil + } + return v.Subnets + }).(pulumi.StringArrayOutput) +} + +// The GKE node config tags (List) +func (o ClusterEksConfigV2PtrOutput) Tags() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterEksConfigV2) map[string]interface{} { + if v == nil { + return nil + } + return v.Tags + }).(pulumi.MapOutput) +} + +type ClusterEksConfigV2NodeGroup struct { + // The EKS node group desired size. Default: `2` (int) + DesiredSize *int `pulumi:"desiredSize"` + // The EKS node group disk size (Gb). Default: `20` (int) + DiskSize *int `pulumi:"diskSize"` + // The EKS node group ssh key (string) + Ec2SshKey *string `pulumi:"ec2SshKey"` + // Set true to EKS use gpu. Default: `false` (bool) + Gpu *bool `pulumi:"gpu"` + // The EKS node group image ID (string) + ImageId *string `pulumi:"imageId"` + // The EKS node group instance type. Default: `t3.medium` (string) + InstanceType *string `pulumi:"instanceType"` + // Labels for the Cluster (map) + Labels map[string]interface{} `pulumi:"labels"` + // The EKS node groups launch template (list Maxitem: 1) + LaunchTemplates []ClusterEksConfigV2NodeGroupLaunchTemplate `pulumi:"launchTemplates"` + // The EKS node group maximum size. Default `2` (int) + MaxSize *int `pulumi:"maxSize"` + // The EKS node group maximum size. Default `2` (int) + MinSize *int `pulumi:"minSize"` + // The name of the Cluster (string) + Name string `pulumi:"name"` + // The EKS node group node role ARN. Default `""` (string) + NodeRole *string `pulumi:"nodeRole"` + // Enable EKS node group request spot instances (bool) + RequestSpotInstances *bool `pulumi:"requestSpotInstances"` + // The EKS node group resource tags (map) + ResourceTags map[string]interface{} `pulumi:"resourceTags"` + // The EKS node group sport instace types (list string) + SpotInstanceTypes []string `pulumi:"spotInstanceTypes"` + // The EKS node group subnets (list string) + Subnets []string `pulumi:"subnets"` + // The GKE node config tags (List) + Tags map[string]interface{} `pulumi:"tags"` + // The EKS node group user data (string) + UserData *string `pulumi:"userData"` + // rancher-monitoring chart version (string) + Version *string `pulumi:"version"` +} + +// ClusterEksConfigV2NodeGroupInput is an input type that accepts ClusterEksConfigV2NodeGroupArgs and ClusterEksConfigV2NodeGroupOutput values. +// You can construct a concrete instance of `ClusterEksConfigV2NodeGroupInput` via: // -// nil -type ClusterEksConfigPtrInput interface { +// ClusterEksConfigV2NodeGroupArgs{...} +type ClusterEksConfigV2NodeGroupInput interface { pulumi.Input - ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput - ToClusterEksConfigPtrOutputWithContext(context.Context) ClusterEksConfigPtrOutput + ToClusterEksConfigV2NodeGroupOutput() ClusterEksConfigV2NodeGroupOutput + ToClusterEksConfigV2NodeGroupOutputWithContext(context.Context) ClusterEksConfigV2NodeGroupOutput } -type clusterEksConfigPtrType ClusterEksConfigArgs +type ClusterEksConfigV2NodeGroupArgs struct { + // The EKS node group desired size. Default: `2` (int) + DesiredSize pulumi.IntPtrInput `pulumi:"desiredSize"` + // The EKS node group disk size (Gb). Default: `20` (int) + DiskSize pulumi.IntPtrInput `pulumi:"diskSize"` + // The EKS node group ssh key (string) + Ec2SshKey pulumi.StringPtrInput `pulumi:"ec2SshKey"` + // Set true to EKS use gpu. Default: `false` (bool) + Gpu pulumi.BoolPtrInput `pulumi:"gpu"` + // The EKS node group image ID (string) + ImageId pulumi.StringPtrInput `pulumi:"imageId"` + // The EKS node group instance type. Default: `t3.medium` (string) + InstanceType pulumi.StringPtrInput `pulumi:"instanceType"` + // Labels for the Cluster (map) + Labels pulumi.MapInput `pulumi:"labels"` + // The EKS node groups launch template (list Maxitem: 1) + LaunchTemplates ClusterEksConfigV2NodeGroupLaunchTemplateArrayInput `pulumi:"launchTemplates"` + // The EKS node group maximum size. Default `2` (int) + MaxSize pulumi.IntPtrInput `pulumi:"maxSize"` + // The EKS node group maximum size. Default `2` (int) + MinSize pulumi.IntPtrInput `pulumi:"minSize"` + // The name of the Cluster (string) + Name pulumi.StringInput `pulumi:"name"` + // The EKS node group node role ARN. Default `""` (string) + NodeRole pulumi.StringPtrInput `pulumi:"nodeRole"` + // Enable EKS node group request spot instances (bool) + RequestSpotInstances pulumi.BoolPtrInput `pulumi:"requestSpotInstances"` + // The EKS node group resource tags (map) + ResourceTags pulumi.MapInput `pulumi:"resourceTags"` + // The EKS node group sport instace types (list string) + SpotInstanceTypes pulumi.StringArrayInput `pulumi:"spotInstanceTypes"` + // The EKS node group subnets (list string) + Subnets pulumi.StringArrayInput `pulumi:"subnets"` + // The GKE node config tags (List) + Tags pulumi.MapInput `pulumi:"tags"` + // The EKS node group user data (string) + UserData pulumi.StringPtrInput `pulumi:"userData"` + // rancher-monitoring chart version (string) + Version pulumi.StringPtrInput `pulumi:"version"` +} -func ClusterEksConfigPtr(v *ClusterEksConfigArgs) ClusterEksConfigPtrInput { - return (*clusterEksConfigPtrType)(v) +func (ClusterEksConfigV2NodeGroupArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterEksConfigV2NodeGroup)(nil)).Elem() } -func (*clusterEksConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterEksConfig)(nil)).Elem() +func (i ClusterEksConfigV2NodeGroupArgs) ToClusterEksConfigV2NodeGroupOutput() ClusterEksConfigV2NodeGroupOutput { + return i.ToClusterEksConfigV2NodeGroupOutputWithContext(context.Background()) } -func (i *clusterEksConfigPtrType) ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput { - return i.ToClusterEksConfigPtrOutputWithContext(context.Background()) +func (i ClusterEksConfigV2NodeGroupArgs) ToClusterEksConfigV2NodeGroupOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2NodeGroupOutput) } -func (i *clusterEksConfigPtrType) ToClusterEksConfigPtrOutputWithContext(ctx context.Context) ClusterEksConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigPtrOutput) +// ClusterEksConfigV2NodeGroupArrayInput is an input type that accepts ClusterEksConfigV2NodeGroupArray and ClusterEksConfigV2NodeGroupArrayOutput values. +// You can construct a concrete instance of `ClusterEksConfigV2NodeGroupArrayInput` via: +// +// ClusterEksConfigV2NodeGroupArray{ ClusterEksConfigV2NodeGroupArgs{...} } +type ClusterEksConfigV2NodeGroupArrayInput interface { + pulumi.Input + + ToClusterEksConfigV2NodeGroupArrayOutput() ClusterEksConfigV2NodeGroupArrayOutput + ToClusterEksConfigV2NodeGroupArrayOutputWithContext(context.Context) ClusterEksConfigV2NodeGroupArrayOutput } -type ClusterEksConfigOutput struct{ *pulumi.OutputState } +type ClusterEksConfigV2NodeGroupArray []ClusterEksConfigV2NodeGroupInput -func (ClusterEksConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterEksConfig)(nil)).Elem() +func (ClusterEksConfigV2NodeGroupArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterEksConfigV2NodeGroup)(nil)).Elem() } -func (o ClusterEksConfigOutput) ToClusterEksConfigOutput() ClusterEksConfigOutput { - return o +func (i ClusterEksConfigV2NodeGroupArray) ToClusterEksConfigV2NodeGroupArrayOutput() ClusterEksConfigV2NodeGroupArrayOutput { + return i.ToClusterEksConfigV2NodeGroupArrayOutputWithContext(context.Background()) } -func (o ClusterEksConfigOutput) ToClusterEksConfigOutputWithContext(ctx context.Context) ClusterEksConfigOutput { - return o +func (i ClusterEksConfigV2NodeGroupArray) ToClusterEksConfigV2NodeGroupArrayOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2NodeGroupArrayOutput) } -func (o ClusterEksConfigOutput) ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput { - return o.ToClusterEksConfigPtrOutputWithContext(context.Background()) +type ClusterEksConfigV2NodeGroupOutput struct{ *pulumi.OutputState } + +func (ClusterEksConfigV2NodeGroupOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterEksConfigV2NodeGroup)(nil)).Elem() } -func (o ClusterEksConfigOutput) ToClusterEksConfigPtrOutputWithContext(ctx context.Context) ClusterEksConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterEksConfig) *ClusterEksConfig { - return &v - }).(ClusterEksConfigPtrOutput) +func (o ClusterEksConfigV2NodeGroupOutput) ToClusterEksConfigV2NodeGroupOutput() ClusterEksConfigV2NodeGroupOutput { + return o } -// The AWS Client ID to use (string) -func (o ClusterEksConfigOutput) AccessKey() pulumi.StringOutput { - return o.ApplyT(func(v ClusterEksConfig) string { return v.AccessKey }).(pulumi.StringOutput) +func (o ClusterEksConfigV2NodeGroupOutput) ToClusterEksConfigV2NodeGroupOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupOutput { + return o } -// AMI ID to use for the worker nodes instead of the default (string) -func (o ClusterEksConfigOutput) Ami() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *string { return v.Ami }).(pulumi.StringPtrOutput) +// The EKS node group desired size. Default: `2` (int) +func (o ClusterEksConfigV2NodeGroupOutput) DesiredSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *int { return v.DesiredSize }).(pulumi.IntPtrOutput) } -// Associate public ip EKS worker nodes. Default `true` (bool) -func (o ClusterEksConfigOutput) AssociateWorkerNodePublicIp() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *bool { return v.AssociateWorkerNodePublicIp }).(pulumi.BoolPtrOutput) +// The EKS node group disk size (Gb). Default: `20` (int) +func (o ClusterEksConfigV2NodeGroupOutput) DiskSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *int { return v.DiskSize }).(pulumi.IntPtrOutput) } -// The desired number of worker nodes. For Rancher v2.3.x and above. Default `3` (int) -func (o ClusterEksConfigOutput) DesiredNodes() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *int { return v.DesiredNodes }).(pulumi.IntPtrOutput) +// The EKS node group ssh key (string) +func (o ClusterEksConfigV2NodeGroupOutput) Ec2SshKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.Ec2SshKey }).(pulumi.StringPtrOutput) } -// Enables EBS encryption of worker nodes -func (o ClusterEksConfigOutput) EbsEncryption() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *bool { return v.EbsEncryption }).(pulumi.BoolPtrOutput) +// Set true to EKS use gpu. Default: `false` (bool) +func (o ClusterEksConfigV2NodeGroupOutput) Gpu() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *bool { return v.Gpu }).(pulumi.BoolPtrOutput) } -// The EKS node group instance type. Default: `t3.medium` (string) -func (o ClusterEksConfigOutput) InstanceType() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *string { return v.InstanceType }).(pulumi.StringPtrOutput) +// The EKS node group image ID (string) +func (o ClusterEksConfigV2NodeGroupOutput) ImageId() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.ImageId }).(pulumi.StringPtrOutput) } -// Allow user to specify key name to use. For Rancher v2.2.7 and above (string) -func (o ClusterEksConfigOutput) KeyPairName() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *string { return v.KeyPairName }).(pulumi.StringPtrOutput) +// The EKS node group instance type. Default: `t3.medium` (string) +func (o ClusterEksConfigV2NodeGroupOutput) InstanceType() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.InstanceType }).(pulumi.StringPtrOutput) } -// The Kubernetes version that will be used for your master *and* OKE worker nodes (string) -func (o ClusterEksConfigOutput) KubernetesVersion() pulumi.StringOutput { - return o.ApplyT(func(v ClusterEksConfig) string { return v.KubernetesVersion }).(pulumi.StringOutput) +// Labels for the Cluster (map) +func (o ClusterEksConfigV2NodeGroupOutput) Labels() pulumi.MapOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) } -// The maximum number of worker nodes. Default `3` (int) -func (o ClusterEksConfigOutput) MaximumNodes() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *int { return v.MaximumNodes }).(pulumi.IntPtrOutput) +// The EKS node groups launch template (list Maxitem: 1) +func (o ClusterEksConfigV2NodeGroupOutput) LaunchTemplates() ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) []ClusterEksConfigV2NodeGroupLaunchTemplate { + return v.LaunchTemplates + }).(ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) } -// The minimum number of worker nodes. Default `1` (int) -func (o ClusterEksConfigOutput) MinimumNodes() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *int { return v.MinimumNodes }).(pulumi.IntPtrOutput) +// The EKS node group maximum size. Default `2` (int) +func (o ClusterEksConfigV2NodeGroupOutput) MaxSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *int { return v.MaxSize }).(pulumi.IntPtrOutput) } -// The volume size for each node. Default `20` (int) -func (o ClusterEksConfigOutput) NodeVolumeSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *int { return v.NodeVolumeSize }).(pulumi.IntPtrOutput) +// The EKS node group maximum size. Default `2` (int) +func (o ClusterEksConfigV2NodeGroupOutput) MinSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *int { return v.MinSize }).(pulumi.IntPtrOutput) } -// The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) -func (o ClusterEksConfigOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *string { return v.Region }).(pulumi.StringPtrOutput) +// The name of the Cluster (string) +func (o ClusterEksConfigV2NodeGroupOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) string { return v.Name }).(pulumi.StringOutput) } -// The AWS Client Secret associated with the Client ID (string) -func (o ClusterEksConfigOutput) SecretKey() pulumi.StringOutput { - return o.ApplyT(func(v ClusterEksConfig) string { return v.SecretKey }).(pulumi.StringOutput) +// The EKS node group node role ARN. Default `""` (string) +func (o ClusterEksConfigV2NodeGroupOutput) NodeRole() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.NodeRole }).(pulumi.StringPtrOutput) } -// List of security groups to use for the cluster (list) -func (o ClusterEksConfigOutput) SecurityGroups() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterEksConfig) []string { return v.SecurityGroups }).(pulumi.StringArrayOutput) +// Enable EKS node group request spot instances (bool) +func (o ClusterEksConfigV2NodeGroupOutput) RequestSpotInstances() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *bool { return v.RequestSpotInstances }).(pulumi.BoolPtrOutput) } -// The AWS service role to use (string) -func (o ClusterEksConfigOutput) ServiceRole() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *string { return v.ServiceRole }).(pulumi.StringPtrOutput) +// The EKS node group resource tags (map) +func (o ClusterEksConfigV2NodeGroupOutput) ResourceTags() pulumi.MapOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) map[string]interface{} { return v.ResourceTags }).(pulumi.MapOutput) } -// A session token to use with the client key and secret if applicable (string) -func (o ClusterEksConfigOutput) SessionToken() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *string { return v.SessionToken }).(pulumi.StringPtrOutput) +// The EKS node group sport instace types (list string) +func (o ClusterEksConfigV2NodeGroupOutput) SpotInstanceTypes() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) []string { return v.SpotInstanceTypes }).(pulumi.StringArrayOutput) } // The EKS node group subnets (list string) -func (o ClusterEksConfigOutput) Subnets() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterEksConfig) []string { return v.Subnets }).(pulumi.StringArrayOutput) +func (o ClusterEksConfigV2NodeGroupOutput) Subnets() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) []string { return v.Subnets }).(pulumi.StringArrayOutput) +} + +// The GKE node config tags (List) +func (o ClusterEksConfigV2NodeGroupOutput) Tags() pulumi.MapOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) map[string]interface{} { return v.Tags }).(pulumi.MapOutput) } // The EKS node group user data (string) -func (o ClusterEksConfigOutput) UserData() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *string { return v.UserData }).(pulumi.StringPtrOutput) +func (o ClusterEksConfigV2NodeGroupOutput) UserData() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.UserData }).(pulumi.StringPtrOutput) } -// The name of the virtual network to use. If it's not specified Rancher will create a new VPC (string) -func (o ClusterEksConfigOutput) VirtualNetwork() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfig) *string { return v.VirtualNetwork }).(pulumi.StringPtrOutput) +// rancher-monitoring chart version (string) +func (o ClusterEksConfigV2NodeGroupOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.Version }).(pulumi.StringPtrOutput) } -type ClusterEksConfigPtrOutput struct{ *pulumi.OutputState } +type ClusterEksConfigV2NodeGroupArrayOutput struct{ *pulumi.OutputState } -func (ClusterEksConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterEksConfig)(nil)).Elem() +func (ClusterEksConfigV2NodeGroupArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterEksConfigV2NodeGroup)(nil)).Elem() } -func (o ClusterEksConfigPtrOutput) ToClusterEksConfigPtrOutput() ClusterEksConfigPtrOutput { +func (o ClusterEksConfigV2NodeGroupArrayOutput) ToClusterEksConfigV2NodeGroupArrayOutput() ClusterEksConfigV2NodeGroupArrayOutput { return o } -func (o ClusterEksConfigPtrOutput) ToClusterEksConfigPtrOutputWithContext(ctx context.Context) ClusterEksConfigPtrOutput { +func (o ClusterEksConfigV2NodeGroupArrayOutput) ToClusterEksConfigV2NodeGroupArrayOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupArrayOutput { return o } -func (o ClusterEksConfigPtrOutput) Elem() ClusterEksConfigOutput { - return o.ApplyT(func(v *ClusterEksConfig) ClusterEksConfig { - if v != nil { - return *v - } - var ret ClusterEksConfig - return ret - }).(ClusterEksConfigOutput) +func (o ClusterEksConfigV2NodeGroupArrayOutput) Index(i pulumi.IntInput) ClusterEksConfigV2NodeGroupOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterEksConfigV2NodeGroup { + return vs[0].([]ClusterEksConfigV2NodeGroup)[vs[1].(int)] + }).(ClusterEksConfigV2NodeGroupOutput) } -// The AWS Client ID to use (string) -func (o ClusterEksConfigPtrOutput) AccessKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return &v.AccessKey - }).(pulumi.StringPtrOutput) +type ClusterEksConfigV2NodeGroupLaunchTemplate struct { + // The EKS node group launch template ID (string) + Id string `pulumi:"id"` + // The name of the Cluster (string) + Name *string `pulumi:"name"` + // rancher-monitoring chart version (string) + Version *int `pulumi:"version"` } -// AMI ID to use for the worker nodes instead of the default (string) -func (o ClusterEksConfigPtrOutput) Ami() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return v.Ami - }).(pulumi.StringPtrOutput) -} +// ClusterEksConfigV2NodeGroupLaunchTemplateInput is an input type that accepts ClusterEksConfigV2NodeGroupLaunchTemplateArgs and ClusterEksConfigV2NodeGroupLaunchTemplateOutput values. +// You can construct a concrete instance of `ClusterEksConfigV2NodeGroupLaunchTemplateInput` via: +// +// ClusterEksConfigV2NodeGroupLaunchTemplateArgs{...} +type ClusterEksConfigV2NodeGroupLaunchTemplateInput interface { + pulumi.Input -// Associate public ip EKS worker nodes. Default `true` (bool) -func (o ClusterEksConfigPtrOutput) AssociateWorkerNodePublicIp() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *bool { - if v == nil { - return nil - } - return v.AssociateWorkerNodePublicIp - }).(pulumi.BoolPtrOutput) + ToClusterEksConfigV2NodeGroupLaunchTemplateOutput() ClusterEksConfigV2NodeGroupLaunchTemplateOutput + ToClusterEksConfigV2NodeGroupLaunchTemplateOutputWithContext(context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateOutput } -// The desired number of worker nodes. For Rancher v2.3.x and above. Default `3` (int) -func (o ClusterEksConfigPtrOutput) DesiredNodes() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *int { - if v == nil { - return nil - } - return v.DesiredNodes - }).(pulumi.IntPtrOutput) +type ClusterEksConfigV2NodeGroupLaunchTemplateArgs struct { + // The EKS node group launch template ID (string) + Id pulumi.StringInput `pulumi:"id"` + // The name of the Cluster (string) + Name pulumi.StringPtrInput `pulumi:"name"` + // rancher-monitoring chart version (string) + Version pulumi.IntPtrInput `pulumi:"version"` } -// Enables EBS encryption of worker nodes -func (o ClusterEksConfigPtrOutput) EbsEncryption() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *bool { - if v == nil { - return nil - } - return v.EbsEncryption - }).(pulumi.BoolPtrOutput) +func (ClusterEksConfigV2NodeGroupLaunchTemplateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterEksConfigV2NodeGroupLaunchTemplate)(nil)).Elem() } -// The EKS node group instance type. Default: `t3.medium` (string) -func (o ClusterEksConfigPtrOutput) InstanceType() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return v.InstanceType - }).(pulumi.StringPtrOutput) +func (i ClusterEksConfigV2NodeGroupLaunchTemplateArgs) ToClusterEksConfigV2NodeGroupLaunchTemplateOutput() ClusterEksConfigV2NodeGroupLaunchTemplateOutput { + return i.ToClusterEksConfigV2NodeGroupLaunchTemplateOutputWithContext(context.Background()) } -// Allow user to specify key name to use. For Rancher v2.2.7 and above (string) -func (o ClusterEksConfigPtrOutput) KeyPairName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return v.KeyPairName - }).(pulumi.StringPtrOutput) +func (i ClusterEksConfigV2NodeGroupLaunchTemplateArgs) ToClusterEksConfigV2NodeGroupLaunchTemplateOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2NodeGroupLaunchTemplateOutput) } -// The Kubernetes version that will be used for your master *and* OKE worker nodes (string) -func (o ClusterEksConfigPtrOutput) KubernetesVersion() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return &v.KubernetesVersion - }).(pulumi.StringPtrOutput) +// ClusterEksConfigV2NodeGroupLaunchTemplateArrayInput is an input type that accepts ClusterEksConfigV2NodeGroupLaunchTemplateArray and ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput values. +// You can construct a concrete instance of `ClusterEksConfigV2NodeGroupLaunchTemplateArrayInput` via: +// +// ClusterEksConfigV2NodeGroupLaunchTemplateArray{ ClusterEksConfigV2NodeGroupLaunchTemplateArgs{...} } +type ClusterEksConfigV2NodeGroupLaunchTemplateArrayInput interface { + pulumi.Input + + ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput() ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput + ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutputWithContext(context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput } -// The maximum number of worker nodes. Default `3` (int) -func (o ClusterEksConfigPtrOutput) MaximumNodes() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *int { - if v == nil { - return nil - } - return v.MaximumNodes - }).(pulumi.IntPtrOutput) +type ClusterEksConfigV2NodeGroupLaunchTemplateArray []ClusterEksConfigV2NodeGroupLaunchTemplateInput + +func (ClusterEksConfigV2NodeGroupLaunchTemplateArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterEksConfigV2NodeGroupLaunchTemplate)(nil)).Elem() } -// The minimum number of worker nodes. Default `1` (int) -func (o ClusterEksConfigPtrOutput) MinimumNodes() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *int { - if v == nil { - return nil - } - return v.MinimumNodes - }).(pulumi.IntPtrOutput) +func (i ClusterEksConfigV2NodeGroupLaunchTemplateArray) ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput() ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { + return i.ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutputWithContext(context.Background()) } -// The volume size for each node. Default `20` (int) -func (o ClusterEksConfigPtrOutput) NodeVolumeSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *int { - if v == nil { - return nil - } - return v.NodeVolumeSize - }).(pulumi.IntPtrOutput) +func (i ClusterEksConfigV2NodeGroupLaunchTemplateArray) ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) } -// The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) -func (o ClusterEksConfigPtrOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return v.Region - }).(pulumi.StringPtrOutput) +type ClusterEksConfigV2NodeGroupLaunchTemplateOutput struct{ *pulumi.OutputState } + +func (ClusterEksConfigV2NodeGroupLaunchTemplateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterEksConfigV2NodeGroupLaunchTemplate)(nil)).Elem() } -// The AWS Client Secret associated with the Client ID (string) -func (o ClusterEksConfigPtrOutput) SecretKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return &v.SecretKey - }).(pulumi.StringPtrOutput) +func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) ToClusterEksConfigV2NodeGroupLaunchTemplateOutput() ClusterEksConfigV2NodeGroupLaunchTemplateOutput { + return o } -// List of security groups to use for the cluster (list) -func (o ClusterEksConfigPtrOutput) SecurityGroups() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterEksConfig) []string { - if v == nil { - return nil - } - return v.SecurityGroups - }).(pulumi.StringArrayOutput) +func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) ToClusterEksConfigV2NodeGroupLaunchTemplateOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateOutput { + return o } -// The AWS service role to use (string) -func (o ClusterEksConfigPtrOutput) ServiceRole() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return v.ServiceRole - }).(pulumi.StringPtrOutput) +// The EKS node group launch template ID (string) +func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroupLaunchTemplate) string { return v.Id }).(pulumi.StringOutput) } -// A session token to use with the client key and secret if applicable (string) -func (o ClusterEksConfigPtrOutput) SessionToken() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return v.SessionToken - }).(pulumi.StringPtrOutput) +// The name of the Cluster (string) +func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroupLaunchTemplate) *string { return v.Name }).(pulumi.StringPtrOutput) } -// The EKS node group subnets (list string) -func (o ClusterEksConfigPtrOutput) Subnets() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterEksConfig) []string { - if v == nil { - return nil - } - return v.Subnets - }).(pulumi.StringArrayOutput) +// rancher-monitoring chart version (string) +func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) Version() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterEksConfigV2NodeGroupLaunchTemplate) *int { return v.Version }).(pulumi.IntPtrOutput) } -// The EKS node group user data (string) -func (o ClusterEksConfigPtrOutput) UserData() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return v.UserData - }).(pulumi.StringPtrOutput) -} +type ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput struct{ *pulumi.OutputState } -// The name of the virtual network to use. If it's not specified Rancher will create a new VPC (string) -func (o ClusterEksConfigPtrOutput) VirtualNetwork() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfig) *string { - if v == nil { - return nil - } - return v.VirtualNetwork - }).(pulumi.StringPtrOutput) +func (ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterEksConfigV2NodeGroupLaunchTemplate)(nil)).Elem() } -type ClusterEksConfigV2 struct { - // The EKS cloudCredential id (string) - CloudCredentialId string `pulumi:"cloudCredentialId"` - // Is GKE cluster imported? Default: `false` (bool) - Imported *bool `pulumi:"imported"` - // The AWS kms key to use (string) - KmsKey *string `pulumi:"kmsKey"` - // The Kubernetes version that will be used for your master *and* OKE worker nodes (string) - KubernetesVersion *string `pulumi:"kubernetesVersion"` - // The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) - LoggingTypes []string `pulumi:"loggingTypes"` - // The name of the Cluster (string) - Name *string `pulumi:"name"` - // The EKS cluster name to import. Required to create a new cluster (list) - NodeGroups []ClusterEksConfigV2NodeGroup `pulumi:"nodeGroups"` - // The EKS cluster has private access (bool) - PrivateAccess *bool `pulumi:"privateAccess"` - // The EKS cluster has public access (bool) - PublicAccess *bool `pulumi:"publicAccess"` - // The EKS cluster public access sources (map) - PublicAccessSources []string `pulumi:"publicAccessSources"` - // The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) - Region *string `pulumi:"region"` - // Enable EKS cluster secret encryption (bool) - SecretsEncryption *bool `pulumi:"secretsEncryption"` - // List of security groups to use for the cluster (list) - SecurityGroups []string `pulumi:"securityGroups"` - // The AWS service role to use (string) - ServiceRole *string `pulumi:"serviceRole"` - // The EKS node group subnets (list string) - Subnets []string `pulumi:"subnets"` - // The GKE node config tags (List) - Tags map[string]interface{} `pulumi:"tags"` +func (o ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput() ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { + return o } -// ClusterEksConfigV2Input is an input type that accepts ClusterEksConfigV2Args and ClusterEksConfigV2Output values. -// You can construct a concrete instance of `ClusterEksConfigV2Input` via: -// -// ClusterEksConfigV2Args{...} -type ClusterEksConfigV2Input interface { - pulumi.Input +func (o ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { + return o +} - ToClusterEksConfigV2Output() ClusterEksConfigV2Output - ToClusterEksConfigV2OutputWithContext(context.Context) ClusterEksConfigV2Output +func (o ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) Index(i pulumi.IntInput) ClusterEksConfigV2NodeGroupLaunchTemplateOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterEksConfigV2NodeGroupLaunchTemplate { + return vs[0].([]ClusterEksConfigV2NodeGroupLaunchTemplate)[vs[1].(int)] + }).(ClusterEksConfigV2NodeGroupLaunchTemplateOutput) } -type ClusterEksConfigV2Args struct { - // The EKS cloudCredential id (string) - CloudCredentialId pulumi.StringInput `pulumi:"cloudCredentialId"` - // Is GKE cluster imported? Default: `false` (bool) - Imported pulumi.BoolPtrInput `pulumi:"imported"` - // The AWS kms key to use (string) - KmsKey pulumi.StringPtrInput `pulumi:"kmsKey"` - // The Kubernetes version that will be used for your master *and* OKE worker nodes (string) - KubernetesVersion pulumi.StringPtrInput `pulumi:"kubernetesVersion"` - // The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) - LoggingTypes pulumi.StringArrayInput `pulumi:"loggingTypes"` - // The name of the Cluster (string) - Name pulumi.StringPtrInput `pulumi:"name"` - // The EKS cluster name to import. Required to create a new cluster (list) - NodeGroups ClusterEksConfigV2NodeGroupArrayInput `pulumi:"nodeGroups"` - // The EKS cluster has private access (bool) - PrivateAccess pulumi.BoolPtrInput `pulumi:"privateAccess"` - // The EKS cluster has public access (bool) - PublicAccess pulumi.BoolPtrInput `pulumi:"publicAccess"` - // The EKS cluster public access sources (map) - PublicAccessSources pulumi.StringArrayInput `pulumi:"publicAccessSources"` - // The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) - Region pulumi.StringPtrInput `pulumi:"region"` - // Enable EKS cluster secret encryption (bool) - SecretsEncryption pulumi.BoolPtrInput `pulumi:"secretsEncryption"` - // List of security groups to use for the cluster (list) - SecurityGroups pulumi.StringArrayInput `pulumi:"securityGroups"` - // The AWS service role to use (string) - ServiceRole pulumi.StringPtrInput `pulumi:"serviceRole"` - // The EKS node group subnets (list string) - Subnets pulumi.StringArrayInput `pulumi:"subnets"` - // The GKE node config tags (List) - Tags pulumi.MapInput `pulumi:"tags"` +type ClusterFleetAgentDeploymentCustomization struct { + // User defined tolerations to append to agent (list) + AppendTolerations []ClusterFleetAgentDeploymentCustomizationAppendToleration `pulumi:"appendTolerations"` + // User defined affinity to override default agent affinity (string) + OverrideAffinity *string `pulumi:"overrideAffinity"` + // User defined resource requirements to set on the agent (list) + OverrideResourceRequirements []ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement `pulumi:"overrideResourceRequirements"` } -func (ClusterEksConfigV2Args) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterEksConfigV2)(nil)).Elem() +// ClusterFleetAgentDeploymentCustomizationInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationArgs and ClusterFleetAgentDeploymentCustomizationOutput values. +// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationInput` via: +// +// ClusterFleetAgentDeploymentCustomizationArgs{...} +type ClusterFleetAgentDeploymentCustomizationInput interface { + pulumi.Input + + ToClusterFleetAgentDeploymentCustomizationOutput() ClusterFleetAgentDeploymentCustomizationOutput + ToClusterFleetAgentDeploymentCustomizationOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationOutput } -func (i ClusterEksConfigV2Args) ToClusterEksConfigV2Output() ClusterEksConfigV2Output { - return i.ToClusterEksConfigV2OutputWithContext(context.Background()) +type ClusterFleetAgentDeploymentCustomizationArgs struct { + // User defined tolerations to append to agent (list) + AppendTolerations ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayInput `pulumi:"appendTolerations"` + // User defined affinity to override default agent affinity (string) + OverrideAffinity pulumi.StringPtrInput `pulumi:"overrideAffinity"` + // User defined resource requirements to set on the agent (list) + OverrideResourceRequirements ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput `pulumi:"overrideResourceRequirements"` } -func (i ClusterEksConfigV2Args) ToClusterEksConfigV2OutputWithContext(ctx context.Context) ClusterEksConfigV2Output { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2Output) +func (ClusterFleetAgentDeploymentCustomizationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterFleetAgentDeploymentCustomization)(nil)).Elem() } -func (i ClusterEksConfigV2Args) ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput { - return i.ToClusterEksConfigV2PtrOutputWithContext(context.Background()) +func (i ClusterFleetAgentDeploymentCustomizationArgs) ToClusterFleetAgentDeploymentCustomizationOutput() ClusterFleetAgentDeploymentCustomizationOutput { + return i.ToClusterFleetAgentDeploymentCustomizationOutputWithContext(context.Background()) } -func (i ClusterEksConfigV2Args) ToClusterEksConfigV2PtrOutputWithContext(ctx context.Context) ClusterEksConfigV2PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2Output).ToClusterEksConfigV2PtrOutputWithContext(ctx) +func (i ClusterFleetAgentDeploymentCustomizationArgs) ToClusterFleetAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterFleetAgentDeploymentCustomizationOutput) } -// ClusterEksConfigV2PtrInput is an input type that accepts ClusterEksConfigV2Args, ClusterEksConfigV2Ptr and ClusterEksConfigV2PtrOutput values. -// You can construct a concrete instance of `ClusterEksConfigV2PtrInput` via: -// -// ClusterEksConfigV2Args{...} -// -// or: +// ClusterFleetAgentDeploymentCustomizationArrayInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationArray and ClusterFleetAgentDeploymentCustomizationArrayOutput values. +// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationArrayInput` via: // -// nil -type ClusterEksConfigV2PtrInput interface { +// ClusterFleetAgentDeploymentCustomizationArray{ ClusterFleetAgentDeploymentCustomizationArgs{...} } +type ClusterFleetAgentDeploymentCustomizationArrayInput interface { pulumi.Input - ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput - ToClusterEksConfigV2PtrOutputWithContext(context.Context) ClusterEksConfigV2PtrOutput + ToClusterFleetAgentDeploymentCustomizationArrayOutput() ClusterFleetAgentDeploymentCustomizationArrayOutput + ToClusterFleetAgentDeploymentCustomizationArrayOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationArrayOutput } -type clusterEksConfigV2PtrType ClusterEksConfigV2Args - -func ClusterEksConfigV2Ptr(v *ClusterEksConfigV2Args) ClusterEksConfigV2PtrInput { - return (*clusterEksConfigV2PtrType)(v) -} +type ClusterFleetAgentDeploymentCustomizationArray []ClusterFleetAgentDeploymentCustomizationInput -func (*clusterEksConfigV2PtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterEksConfigV2)(nil)).Elem() +func (ClusterFleetAgentDeploymentCustomizationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterFleetAgentDeploymentCustomization)(nil)).Elem() } -func (i *clusterEksConfigV2PtrType) ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput { - return i.ToClusterEksConfigV2PtrOutputWithContext(context.Background()) +func (i ClusterFleetAgentDeploymentCustomizationArray) ToClusterFleetAgentDeploymentCustomizationArrayOutput() ClusterFleetAgentDeploymentCustomizationArrayOutput { + return i.ToClusterFleetAgentDeploymentCustomizationArrayOutputWithContext(context.Background()) } -func (i *clusterEksConfigV2PtrType) ToClusterEksConfigV2PtrOutputWithContext(ctx context.Context) ClusterEksConfigV2PtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2PtrOutput) +func (i ClusterFleetAgentDeploymentCustomizationArray) ToClusterFleetAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterFleetAgentDeploymentCustomizationArrayOutput) } -type ClusterEksConfigV2Output struct{ *pulumi.OutputState } +type ClusterFleetAgentDeploymentCustomizationOutput struct{ *pulumi.OutputState } -func (ClusterEksConfigV2Output) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterEksConfigV2)(nil)).Elem() +func (ClusterFleetAgentDeploymentCustomizationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterFleetAgentDeploymentCustomization)(nil)).Elem() } -func (o ClusterEksConfigV2Output) ToClusterEksConfigV2Output() ClusterEksConfigV2Output { +func (o ClusterFleetAgentDeploymentCustomizationOutput) ToClusterFleetAgentDeploymentCustomizationOutput() ClusterFleetAgentDeploymentCustomizationOutput { return o } -func (o ClusterEksConfigV2Output) ToClusterEksConfigV2OutputWithContext(ctx context.Context) ClusterEksConfigV2Output { +func (o ClusterFleetAgentDeploymentCustomizationOutput) ToClusterFleetAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationOutput { return o } -func (o ClusterEksConfigV2Output) ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput { - return o.ToClusterEksConfigV2PtrOutputWithContext(context.Background()) +// User defined tolerations to append to agent (list) +func (o ClusterFleetAgentDeploymentCustomizationOutput) AppendTolerations() ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomization) []ClusterFleetAgentDeploymentCustomizationAppendToleration { + return v.AppendTolerations + }).(ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) } -func (o ClusterEksConfigV2Output) ToClusterEksConfigV2PtrOutputWithContext(ctx context.Context) ClusterEksConfigV2PtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterEksConfigV2) *ClusterEksConfigV2 { - return &v - }).(ClusterEksConfigV2PtrOutput) +// User defined affinity to override default agent affinity (string) +func (o ClusterFleetAgentDeploymentCustomizationOutput) OverrideAffinity() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomization) *string { return v.OverrideAffinity }).(pulumi.StringPtrOutput) } -// The EKS cloudCredential id (string) -func (o ClusterEksConfigV2Output) CloudCredentialId() pulumi.StringOutput { - return o.ApplyT(func(v ClusterEksConfigV2) string { return v.CloudCredentialId }).(pulumi.StringOutput) +// User defined resource requirements to set on the agent (list) +func (o ClusterFleetAgentDeploymentCustomizationOutput) OverrideResourceRequirements() ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomization) []ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement { + return v.OverrideResourceRequirements + }).(ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) } -// Is GKE cluster imported? Default: `false` (bool) -func (o ClusterEksConfigV2Output) Imported() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *bool { return v.Imported }).(pulumi.BoolPtrOutput) -} +type ClusterFleetAgentDeploymentCustomizationArrayOutput struct{ *pulumi.OutputState } -// The AWS kms key to use (string) -func (o ClusterEksConfigV2Output) KmsKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.KmsKey }).(pulumi.StringPtrOutput) +func (ClusterFleetAgentDeploymentCustomizationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterFleetAgentDeploymentCustomization)(nil)).Elem() } -// The Kubernetes version that will be used for your master *and* OKE worker nodes (string) -func (o ClusterEksConfigV2Output) KubernetesVersion() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.KubernetesVersion }).(pulumi.StringPtrOutput) +func (o ClusterFleetAgentDeploymentCustomizationArrayOutput) ToClusterFleetAgentDeploymentCustomizationArrayOutput() ClusterFleetAgentDeploymentCustomizationArrayOutput { + return o } -// The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) -func (o ClusterEksConfigV2Output) LoggingTypes() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterEksConfigV2) []string { return v.LoggingTypes }).(pulumi.StringArrayOutput) +func (o ClusterFleetAgentDeploymentCustomizationArrayOutput) ToClusterFleetAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationArrayOutput { + return o } -// The name of the Cluster (string) -func (o ClusterEksConfigV2Output) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.Name }).(pulumi.StringPtrOutput) +func (o ClusterFleetAgentDeploymentCustomizationArrayOutput) Index(i pulumi.IntInput) ClusterFleetAgentDeploymentCustomizationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterFleetAgentDeploymentCustomization { + return vs[0].([]ClusterFleetAgentDeploymentCustomization)[vs[1].(int)] + }).(ClusterFleetAgentDeploymentCustomizationOutput) } -// The EKS cluster name to import. Required to create a new cluster (list) -func (o ClusterEksConfigV2Output) NodeGroups() ClusterEksConfigV2NodeGroupArrayOutput { - return o.ApplyT(func(v ClusterEksConfigV2) []ClusterEksConfigV2NodeGroup { return v.NodeGroups }).(ClusterEksConfigV2NodeGroupArrayOutput) +type ClusterFleetAgentDeploymentCustomizationAppendToleration struct { + // The GKE taint effect (string) + Effect *string `pulumi:"effect"` + // The GKE taint key (string) + Key string `pulumi:"key"` + // The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) + Operator *string `pulumi:"operator"` + // The toleration seconds (int) + Seconds *int `pulumi:"seconds"` + // The GKE taint value (string) + Value *string `pulumi:"value"` } -// The EKS cluster has private access (bool) -func (o ClusterEksConfigV2Output) PrivateAccess() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *bool { return v.PrivateAccess }).(pulumi.BoolPtrOutput) +// ClusterFleetAgentDeploymentCustomizationAppendTolerationInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs and ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput values. +// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationAppendTolerationInput` via: +// +// ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs{...} +type ClusterFleetAgentDeploymentCustomizationAppendTolerationInput interface { + pulumi.Input + + ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput + ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput } -// The EKS cluster has public access (bool) -func (o ClusterEksConfigV2Output) PublicAccess() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *bool { return v.PublicAccess }).(pulumi.BoolPtrOutput) +type ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs struct { + // The GKE taint effect (string) + Effect pulumi.StringPtrInput `pulumi:"effect"` + // The GKE taint key (string) + Key pulumi.StringInput `pulumi:"key"` + // The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) + Operator pulumi.StringPtrInput `pulumi:"operator"` + // The toleration seconds (int) + Seconds pulumi.IntPtrInput `pulumi:"seconds"` + // The GKE taint value (string) + Value pulumi.StringPtrInput `pulumi:"value"` } -// The EKS cluster public access sources (map) -func (o ClusterEksConfigV2Output) PublicAccessSources() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterEksConfigV2) []string { return v.PublicAccessSources }).(pulumi.StringArrayOutput) +func (ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterFleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -// The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) -func (o ClusterEksConfigV2Output) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.Region }).(pulumi.StringPtrOutput) +func (i ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs) ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { + return i.ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Background()) } -// Enable EKS cluster secret encryption (bool) -func (o ClusterEksConfigV2Output) SecretsEncryption() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *bool { return v.SecretsEncryption }).(pulumi.BoolPtrOutput) +func (i ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs) ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) } -// List of security groups to use for the cluster (list) -func (o ClusterEksConfigV2Output) SecurityGroups() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterEksConfigV2) []string { return v.SecurityGroups }).(pulumi.StringArrayOutput) +// ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationAppendTolerationArray and ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput values. +// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayInput` via: +// +// ClusterFleetAgentDeploymentCustomizationAppendTolerationArray{ ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs{...} } +type ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayInput interface { + pulumi.Input + + ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput + ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput } -// The AWS service role to use (string) -func (o ClusterEksConfigV2Output) ServiceRole() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2) *string { return v.ServiceRole }).(pulumi.StringPtrOutput) +type ClusterFleetAgentDeploymentCustomizationAppendTolerationArray []ClusterFleetAgentDeploymentCustomizationAppendTolerationInput + +func (ClusterFleetAgentDeploymentCustomizationAppendTolerationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterFleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -// The EKS node group subnets (list string) -func (o ClusterEksConfigV2Output) Subnets() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterEksConfigV2) []string { return v.Subnets }).(pulumi.StringArrayOutput) +func (i ClusterFleetAgentDeploymentCustomizationAppendTolerationArray) ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { + return i.ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Background()) } -// The GKE node config tags (List) -func (o ClusterEksConfigV2Output) Tags() pulumi.MapOutput { - return o.ApplyT(func(v ClusterEksConfigV2) map[string]interface{} { return v.Tags }).(pulumi.MapOutput) +func (i ClusterFleetAgentDeploymentCustomizationAppendTolerationArray) ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) } -type ClusterEksConfigV2PtrOutput struct{ *pulumi.OutputState } +type ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput struct{ *pulumi.OutputState } -func (ClusterEksConfigV2PtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterEksConfigV2)(nil)).Elem() +func (ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterFleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (o ClusterEksConfigV2PtrOutput) ToClusterEksConfigV2PtrOutput() ClusterEksConfigV2PtrOutput { +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { return o } -func (o ClusterEksConfigV2PtrOutput) ToClusterEksConfigV2PtrOutputWithContext(ctx context.Context) ClusterEksConfigV2PtrOutput { +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { return o } -func (o ClusterEksConfigV2PtrOutput) Elem() ClusterEksConfigV2Output { - return o.ApplyT(func(v *ClusterEksConfigV2) ClusterEksConfigV2 { - if v != nil { - return *v - } - var ret ClusterEksConfigV2 - return ret - }).(ClusterEksConfigV2Output) +// The GKE taint effect (string) +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) } -// The EKS cloudCredential id (string) -func (o ClusterEksConfigV2PtrOutput) CloudCredentialId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *string { - if v == nil { - return nil - } - return &v.CloudCredentialId - }).(pulumi.StringPtrOutput) +// The GKE taint key (string) +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) string { return v.Key }).(pulumi.StringOutput) } -// Is GKE cluster imported? Default: `false` (bool) -func (o ClusterEksConfigV2PtrOutput) Imported() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *bool { - if v == nil { - return nil - } - return v.Imported - }).(pulumi.BoolPtrOutput) +// The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) } -// The AWS kms key to use (string) -func (o ClusterEksConfigV2PtrOutput) KmsKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *string { - if v == nil { - return nil - } - return v.KmsKey - }).(pulumi.StringPtrOutput) +// The toleration seconds (int) +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Seconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) } -// The Kubernetes version that will be used for your master *and* OKE worker nodes (string) -func (o ClusterEksConfigV2PtrOutput) KubernetesVersion() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *string { - if v == nil { - return nil - } - return v.KubernetesVersion - }).(pulumi.StringPtrOutput) +// The GKE taint value (string) +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Value() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) *string { return v.Value }).(pulumi.StringPtrOutput) } -// The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) -func (o ClusterEksConfigV2PtrOutput) LoggingTypes() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) []string { - if v == nil { - return nil - } - return v.LoggingTypes - }).(pulumi.StringArrayOutput) -} +type ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput struct{ *pulumi.OutputState } -// The name of the Cluster (string) -func (o ClusterEksConfigV2PtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *string { - if v == nil { - return nil - } - return v.Name - }).(pulumi.StringPtrOutput) +func (ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterFleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -// The EKS cluster name to import. Required to create a new cluster (list) -func (o ClusterEksConfigV2PtrOutput) NodeGroups() ClusterEksConfigV2NodeGroupArrayOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) []ClusterEksConfigV2NodeGroup { - if v == nil { - return nil - } - return v.NodeGroups - }).(ClusterEksConfigV2NodeGroupArrayOutput) +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o } -// The EKS cluster has private access (bool) -func (o ClusterEksConfigV2PtrOutput) PrivateAccess() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *bool { - if v == nil { - return nil - } - return v.PrivateAccess - }).(pulumi.BoolPtrOutput) +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o } -// The EKS cluster has public access (bool) -func (o ClusterEksConfigV2PtrOutput) PublicAccess() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *bool { - if v == nil { - return nil - } - return v.PublicAccess - }).(pulumi.BoolPtrOutput) +func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) Index(i pulumi.IntInput) ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterFleetAgentDeploymentCustomizationAppendToleration { + return vs[0].([]ClusterFleetAgentDeploymentCustomizationAppendToleration)[vs[1].(int)] + }).(ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) } -// The EKS cluster public access sources (map) -func (o ClusterEksConfigV2PtrOutput) PublicAccessSources() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) []string { - if v == nil { - return nil - } - return v.PublicAccessSources - }).(pulumi.StringArrayOutput) +type ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement struct { + // The maximum CPU limit for agent (string) + CpuLimit *string `pulumi:"cpuLimit"` + // The minimum CPU required for agent (string) + CpuRequest *string `pulumi:"cpuRequest"` + // The maximum memory limit for agent (string) + MemoryLimit *string `pulumi:"memoryLimit"` + // The minimum memory required for agent (string) + MemoryRequest *string `pulumi:"memoryRequest"` } -// The availability domain within the region to host the cluster. See [here](https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm) for a list of region names. (string) -func (o ClusterEksConfigV2PtrOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *string { - if v == nil { - return nil - } - return v.Region - }).(pulumi.StringPtrOutput) -} +// ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArgs and ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutput values. +// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementInput` via: +// +// ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} +type ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementInput interface { + pulumi.Input -// Enable EKS cluster secret encryption (bool) -func (o ClusterEksConfigV2PtrOutput) SecretsEncryption() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *bool { - if v == nil { - return nil - } - return v.SecretsEncryption - }).(pulumi.BoolPtrOutput) -} - -// List of security groups to use for the cluster (list) -func (o ClusterEksConfigV2PtrOutput) SecurityGroups() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) []string { - if v == nil { - return nil - } - return v.SecurityGroups - }).(pulumi.StringArrayOutput) -} - -// The AWS service role to use (string) -func (o ClusterEksConfigV2PtrOutput) ServiceRole() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) *string { - if v == nil { - return nil - } - return v.ServiceRole - }).(pulumi.StringPtrOutput) -} - -// The EKS node group subnets (list string) -func (o ClusterEksConfigV2PtrOutput) Subnets() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) []string { - if v == nil { - return nil - } - return v.Subnets - }).(pulumi.StringArrayOutput) -} - -// The GKE node config tags (List) -func (o ClusterEksConfigV2PtrOutput) Tags() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterEksConfigV2) map[string]interface{} { - if v == nil { - return nil - } - return v.Tags - }).(pulumi.MapOutput) -} - -type ClusterEksConfigV2NodeGroup struct { - // The EKS node group desired size. Default: `2` (int) - DesiredSize *int `pulumi:"desiredSize"` - // The EKS node group disk size (Gb). Default: `20` (int) - DiskSize *int `pulumi:"diskSize"` - // The EKS node group ssh key (string) - Ec2SshKey *string `pulumi:"ec2SshKey"` - // Set true to EKS use gpu. Default: `false` (bool) - Gpu *bool `pulumi:"gpu"` - // The EKS node group image ID (string) - ImageId *string `pulumi:"imageId"` - // The EKS node group instance type. Default: `t3.medium` (string) - InstanceType *string `pulumi:"instanceType"` - // Labels for the Cluster (map) - Labels map[string]interface{} `pulumi:"labels"` - // The EKS node groups launch template (list Maxitem: 1) - LaunchTemplates []ClusterEksConfigV2NodeGroupLaunchTemplate `pulumi:"launchTemplates"` - // The EKS node group maximum size. Default `2` (int) - MaxSize *int `pulumi:"maxSize"` - // The EKS node group maximum size. Default `2` (int) - MinSize *int `pulumi:"minSize"` - // The name of the Cluster (string) - Name string `pulumi:"name"` - // The EKS node group node role ARN. Default `""` (string) - NodeRole *string `pulumi:"nodeRole"` - // Enable EKS node group request spot instances (bool) - RequestSpotInstances *bool `pulumi:"requestSpotInstances"` - // The EKS node group resource tags (map) - ResourceTags map[string]interface{} `pulumi:"resourceTags"` - // The EKS node group sport instace types (list string) - SpotInstanceTypes []string `pulumi:"spotInstanceTypes"` - // The EKS node group subnets (list string) - Subnets []string `pulumi:"subnets"` - // The GKE node config tags (List) - Tags map[string]interface{} `pulumi:"tags"` - // The EKS node group user data (string) - UserData *string `pulumi:"userData"` - // rancher-monitoring chart version (string) - Version *string `pulumi:"version"` -} - -// ClusterEksConfigV2NodeGroupInput is an input type that accepts ClusterEksConfigV2NodeGroupArgs and ClusterEksConfigV2NodeGroupOutput values. -// You can construct a concrete instance of `ClusterEksConfigV2NodeGroupInput` via: -// -// ClusterEksConfigV2NodeGroupArgs{...} -type ClusterEksConfigV2NodeGroupInput interface { - pulumi.Input - - ToClusterEksConfigV2NodeGroupOutput() ClusterEksConfigV2NodeGroupOutput - ToClusterEksConfigV2NodeGroupOutputWithContext(context.Context) ClusterEksConfigV2NodeGroupOutput -} - -type ClusterEksConfigV2NodeGroupArgs struct { - // The EKS node group desired size. Default: `2` (int) - DesiredSize pulumi.IntPtrInput `pulumi:"desiredSize"` - // The EKS node group disk size (Gb). Default: `20` (int) - DiskSize pulumi.IntPtrInput `pulumi:"diskSize"` - // The EKS node group ssh key (string) - Ec2SshKey pulumi.StringPtrInput `pulumi:"ec2SshKey"` - // Set true to EKS use gpu. Default: `false` (bool) - Gpu pulumi.BoolPtrInput `pulumi:"gpu"` - // The EKS node group image ID (string) - ImageId pulumi.StringPtrInput `pulumi:"imageId"` - // The EKS node group instance type. Default: `t3.medium` (string) - InstanceType pulumi.StringPtrInput `pulumi:"instanceType"` - // Labels for the Cluster (map) - Labels pulumi.MapInput `pulumi:"labels"` - // The EKS node groups launch template (list Maxitem: 1) - LaunchTemplates ClusterEksConfigV2NodeGroupLaunchTemplateArrayInput `pulumi:"launchTemplates"` - // The EKS node group maximum size. Default `2` (int) - MaxSize pulumi.IntPtrInput `pulumi:"maxSize"` - // The EKS node group maximum size. Default `2` (int) - MinSize pulumi.IntPtrInput `pulumi:"minSize"` - // The name of the Cluster (string) - Name pulumi.StringInput `pulumi:"name"` - // The EKS node group node role ARN. Default `""` (string) - NodeRole pulumi.StringPtrInput `pulumi:"nodeRole"` - // Enable EKS node group request spot instances (bool) - RequestSpotInstances pulumi.BoolPtrInput `pulumi:"requestSpotInstances"` - // The EKS node group resource tags (map) - ResourceTags pulumi.MapInput `pulumi:"resourceTags"` - // The EKS node group sport instace types (list string) - SpotInstanceTypes pulumi.StringArrayInput `pulumi:"spotInstanceTypes"` - // The EKS node group subnets (list string) - Subnets pulumi.StringArrayInput `pulumi:"subnets"` - // The GKE node config tags (List) - Tags pulumi.MapInput `pulumi:"tags"` - // The EKS node group user data (string) - UserData pulumi.StringPtrInput `pulumi:"userData"` - // rancher-monitoring chart version (string) - Version pulumi.StringPtrInput `pulumi:"version"` -} - -func (ClusterEksConfigV2NodeGroupArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterEksConfigV2NodeGroup)(nil)).Elem() -} - -func (i ClusterEksConfigV2NodeGroupArgs) ToClusterEksConfigV2NodeGroupOutput() ClusterEksConfigV2NodeGroupOutput { - return i.ToClusterEksConfigV2NodeGroupOutputWithContext(context.Background()) -} - -func (i ClusterEksConfigV2NodeGroupArgs) ToClusterEksConfigV2NodeGroupOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2NodeGroupOutput) -} - -// ClusterEksConfigV2NodeGroupArrayInput is an input type that accepts ClusterEksConfigV2NodeGroupArray and ClusterEksConfigV2NodeGroupArrayOutput values. -// You can construct a concrete instance of `ClusterEksConfigV2NodeGroupArrayInput` via: -// -// ClusterEksConfigV2NodeGroupArray{ ClusterEksConfigV2NodeGroupArgs{...} } -type ClusterEksConfigV2NodeGroupArrayInput interface { - pulumi.Input - - ToClusterEksConfigV2NodeGroupArrayOutput() ClusterEksConfigV2NodeGroupArrayOutput - ToClusterEksConfigV2NodeGroupArrayOutputWithContext(context.Context) ClusterEksConfigV2NodeGroupArrayOutput -} - -type ClusterEksConfigV2NodeGroupArray []ClusterEksConfigV2NodeGroupInput - -func (ClusterEksConfigV2NodeGroupArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterEksConfigV2NodeGroup)(nil)).Elem() -} - -func (i ClusterEksConfigV2NodeGroupArray) ToClusterEksConfigV2NodeGroupArrayOutput() ClusterEksConfigV2NodeGroupArrayOutput { - return i.ToClusterEksConfigV2NodeGroupArrayOutputWithContext(context.Background()) -} - -func (i ClusterEksConfigV2NodeGroupArray) ToClusterEksConfigV2NodeGroupArrayOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2NodeGroupArrayOutput) -} - -type ClusterEksConfigV2NodeGroupOutput struct{ *pulumi.OutputState } - -func (ClusterEksConfigV2NodeGroupOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterEksConfigV2NodeGroup)(nil)).Elem() -} - -func (o ClusterEksConfigV2NodeGroupOutput) ToClusterEksConfigV2NodeGroupOutput() ClusterEksConfigV2NodeGroupOutput { - return o -} - -func (o ClusterEksConfigV2NodeGroupOutput) ToClusterEksConfigV2NodeGroupOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupOutput { - return o -} - -// The EKS node group desired size. Default: `2` (int) -func (o ClusterEksConfigV2NodeGroupOutput) DesiredSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *int { return v.DesiredSize }).(pulumi.IntPtrOutput) -} - -// The EKS node group disk size (Gb). Default: `20` (int) -func (o ClusterEksConfigV2NodeGroupOutput) DiskSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *int { return v.DiskSize }).(pulumi.IntPtrOutput) -} - -// The EKS node group ssh key (string) -func (o ClusterEksConfigV2NodeGroupOutput) Ec2SshKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.Ec2SshKey }).(pulumi.StringPtrOutput) -} - -// Set true to EKS use gpu. Default: `false` (bool) -func (o ClusterEksConfigV2NodeGroupOutput) Gpu() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *bool { return v.Gpu }).(pulumi.BoolPtrOutput) -} - -// The EKS node group image ID (string) -func (o ClusterEksConfigV2NodeGroupOutput) ImageId() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.ImageId }).(pulumi.StringPtrOutput) -} - -// The EKS node group instance type. Default: `t3.medium` (string) -func (o ClusterEksConfigV2NodeGroupOutput) InstanceType() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.InstanceType }).(pulumi.StringPtrOutput) -} - -// Labels for the Cluster (map) -func (o ClusterEksConfigV2NodeGroupOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) -} - -// The EKS node groups launch template (list Maxitem: 1) -func (o ClusterEksConfigV2NodeGroupOutput) LaunchTemplates() ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) []ClusterEksConfigV2NodeGroupLaunchTemplate { - return v.LaunchTemplates - }).(ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) -} - -// The EKS node group maximum size. Default `2` (int) -func (o ClusterEksConfigV2NodeGroupOutput) MaxSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *int { return v.MaxSize }).(pulumi.IntPtrOutput) -} - -// The EKS node group maximum size. Default `2` (int) -func (o ClusterEksConfigV2NodeGroupOutput) MinSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *int { return v.MinSize }).(pulumi.IntPtrOutput) -} - -// The name of the Cluster (string) -func (o ClusterEksConfigV2NodeGroupOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) string { return v.Name }).(pulumi.StringOutput) -} - -// The EKS node group node role ARN. Default `""` (string) -func (o ClusterEksConfigV2NodeGroupOutput) NodeRole() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.NodeRole }).(pulumi.StringPtrOutput) -} - -// Enable EKS node group request spot instances (bool) -func (o ClusterEksConfigV2NodeGroupOutput) RequestSpotInstances() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *bool { return v.RequestSpotInstances }).(pulumi.BoolPtrOutput) -} - -// The EKS node group resource tags (map) -func (o ClusterEksConfigV2NodeGroupOutput) ResourceTags() pulumi.MapOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) map[string]interface{} { return v.ResourceTags }).(pulumi.MapOutput) -} - -// The EKS node group sport instace types (list string) -func (o ClusterEksConfigV2NodeGroupOutput) SpotInstanceTypes() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) []string { return v.SpotInstanceTypes }).(pulumi.StringArrayOutput) -} - -// The EKS node group subnets (list string) -func (o ClusterEksConfigV2NodeGroupOutput) Subnets() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) []string { return v.Subnets }).(pulumi.StringArrayOutput) -} - -// The GKE node config tags (List) -func (o ClusterEksConfigV2NodeGroupOutput) Tags() pulumi.MapOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) map[string]interface{} { return v.Tags }).(pulumi.MapOutput) -} - -// The EKS node group user data (string) -func (o ClusterEksConfigV2NodeGroupOutput) UserData() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.UserData }).(pulumi.StringPtrOutput) -} - -// rancher-monitoring chart version (string) -func (o ClusterEksConfigV2NodeGroupOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroup) *string { return v.Version }).(pulumi.StringPtrOutput) -} - -type ClusterEksConfigV2NodeGroupArrayOutput struct{ *pulumi.OutputState } - -func (ClusterEksConfigV2NodeGroupArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterEksConfigV2NodeGroup)(nil)).Elem() -} - -func (o ClusterEksConfigV2NodeGroupArrayOutput) ToClusterEksConfigV2NodeGroupArrayOutput() ClusterEksConfigV2NodeGroupArrayOutput { - return o -} - -func (o ClusterEksConfigV2NodeGroupArrayOutput) ToClusterEksConfigV2NodeGroupArrayOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupArrayOutput { - return o -} - -func (o ClusterEksConfigV2NodeGroupArrayOutput) Index(i pulumi.IntInput) ClusterEksConfigV2NodeGroupOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterEksConfigV2NodeGroup { - return vs[0].([]ClusterEksConfigV2NodeGroup)[vs[1].(int)] - }).(ClusterEksConfigV2NodeGroupOutput) -} - -type ClusterEksConfigV2NodeGroupLaunchTemplate struct { - // The EKS node group launch template ID (string) - Id string `pulumi:"id"` - // The name of the Cluster (string) - Name *string `pulumi:"name"` - // rancher-monitoring chart version (string) - Version *int `pulumi:"version"` -} - -// ClusterEksConfigV2NodeGroupLaunchTemplateInput is an input type that accepts ClusterEksConfigV2NodeGroupLaunchTemplateArgs and ClusterEksConfigV2NodeGroupLaunchTemplateOutput values. -// You can construct a concrete instance of `ClusterEksConfigV2NodeGroupLaunchTemplateInput` via: -// -// ClusterEksConfigV2NodeGroupLaunchTemplateArgs{...} -type ClusterEksConfigV2NodeGroupLaunchTemplateInput interface { - pulumi.Input - - ToClusterEksConfigV2NodeGroupLaunchTemplateOutput() ClusterEksConfigV2NodeGroupLaunchTemplateOutput - ToClusterEksConfigV2NodeGroupLaunchTemplateOutputWithContext(context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateOutput -} - -type ClusterEksConfigV2NodeGroupLaunchTemplateArgs struct { - // The EKS node group launch template ID (string) - Id pulumi.StringInput `pulumi:"id"` - // The name of the Cluster (string) - Name pulumi.StringPtrInput `pulumi:"name"` - // rancher-monitoring chart version (string) - Version pulumi.IntPtrInput `pulumi:"version"` -} - -func (ClusterEksConfigV2NodeGroupLaunchTemplateArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterEksConfigV2NodeGroupLaunchTemplate)(nil)).Elem() -} - -func (i ClusterEksConfigV2NodeGroupLaunchTemplateArgs) ToClusterEksConfigV2NodeGroupLaunchTemplateOutput() ClusterEksConfigV2NodeGroupLaunchTemplateOutput { - return i.ToClusterEksConfigV2NodeGroupLaunchTemplateOutputWithContext(context.Background()) -} - -func (i ClusterEksConfigV2NodeGroupLaunchTemplateArgs) ToClusterEksConfigV2NodeGroupLaunchTemplateOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2NodeGroupLaunchTemplateOutput) -} - -// ClusterEksConfigV2NodeGroupLaunchTemplateArrayInput is an input type that accepts ClusterEksConfigV2NodeGroupLaunchTemplateArray and ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput values. -// You can construct a concrete instance of `ClusterEksConfigV2NodeGroupLaunchTemplateArrayInput` via: -// -// ClusterEksConfigV2NodeGroupLaunchTemplateArray{ ClusterEksConfigV2NodeGroupLaunchTemplateArgs{...} } -type ClusterEksConfigV2NodeGroupLaunchTemplateArrayInput interface { - pulumi.Input - - ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput() ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput - ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutputWithContext(context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput -} - -type ClusterEksConfigV2NodeGroupLaunchTemplateArray []ClusterEksConfigV2NodeGroupLaunchTemplateInput - -func (ClusterEksConfigV2NodeGroupLaunchTemplateArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterEksConfigV2NodeGroupLaunchTemplate)(nil)).Elem() -} - -func (i ClusterEksConfigV2NodeGroupLaunchTemplateArray) ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput() ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { - return i.ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutputWithContext(context.Background()) -} - -func (i ClusterEksConfigV2NodeGroupLaunchTemplateArray) ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) -} - -type ClusterEksConfigV2NodeGroupLaunchTemplateOutput struct{ *pulumi.OutputState } - -func (ClusterEksConfigV2NodeGroupLaunchTemplateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterEksConfigV2NodeGroupLaunchTemplate)(nil)).Elem() -} - -func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) ToClusterEksConfigV2NodeGroupLaunchTemplateOutput() ClusterEksConfigV2NodeGroupLaunchTemplateOutput { - return o -} - -func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) ToClusterEksConfigV2NodeGroupLaunchTemplateOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateOutput { - return o -} - -// The EKS node group launch template ID (string) -func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroupLaunchTemplate) string { return v.Id }).(pulumi.StringOutput) -} - -// The name of the Cluster (string) -func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroupLaunchTemplate) *string { return v.Name }).(pulumi.StringPtrOutput) -} - -// rancher-monitoring chart version (string) -func (o ClusterEksConfigV2NodeGroupLaunchTemplateOutput) Version() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterEksConfigV2NodeGroupLaunchTemplate) *int { return v.Version }).(pulumi.IntPtrOutput) -} - -type ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput struct{ *pulumi.OutputState } - -func (ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterEksConfigV2NodeGroupLaunchTemplate)(nil)).Elem() -} - -func (o ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput() ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { - return o -} - -func (o ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) ToClusterEksConfigV2NodeGroupLaunchTemplateArrayOutputWithContext(ctx context.Context) ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput { - return o -} - -func (o ClusterEksConfigV2NodeGroupLaunchTemplateArrayOutput) Index(i pulumi.IntInput) ClusterEksConfigV2NodeGroupLaunchTemplateOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterEksConfigV2NodeGroupLaunchTemplate { - return vs[0].([]ClusterEksConfigV2NodeGroupLaunchTemplate)[vs[1].(int)] - }).(ClusterEksConfigV2NodeGroupLaunchTemplateOutput) -} - -type ClusterFleetAgentDeploymentCustomization struct { - // User defined tolerations to append to agent (list) - AppendTolerations []ClusterFleetAgentDeploymentCustomizationAppendToleration `pulumi:"appendTolerations"` - // User defined affinity to override default agent affinity (string) - OverrideAffinity *string `pulumi:"overrideAffinity"` - // User defined resource requirements to set on the agent (list) - OverrideResourceRequirements []ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement `pulumi:"overrideResourceRequirements"` -} - -// ClusterFleetAgentDeploymentCustomizationInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationArgs and ClusterFleetAgentDeploymentCustomizationOutput values. -// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationInput` via: -// -// ClusterFleetAgentDeploymentCustomizationArgs{...} -type ClusterFleetAgentDeploymentCustomizationInput interface { - pulumi.Input - - ToClusterFleetAgentDeploymentCustomizationOutput() ClusterFleetAgentDeploymentCustomizationOutput - ToClusterFleetAgentDeploymentCustomizationOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationOutput -} - -type ClusterFleetAgentDeploymentCustomizationArgs struct { - // User defined tolerations to append to agent (list) - AppendTolerations ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayInput `pulumi:"appendTolerations"` - // User defined affinity to override default agent affinity (string) - OverrideAffinity pulumi.StringPtrInput `pulumi:"overrideAffinity"` - // User defined resource requirements to set on the agent (list) - OverrideResourceRequirements ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput `pulumi:"overrideResourceRequirements"` -} - -func (ClusterFleetAgentDeploymentCustomizationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterFleetAgentDeploymentCustomization)(nil)).Elem() -} - -func (i ClusterFleetAgentDeploymentCustomizationArgs) ToClusterFleetAgentDeploymentCustomizationOutput() ClusterFleetAgentDeploymentCustomizationOutput { - return i.ToClusterFleetAgentDeploymentCustomizationOutputWithContext(context.Background()) -} - -func (i ClusterFleetAgentDeploymentCustomizationArgs) ToClusterFleetAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterFleetAgentDeploymentCustomizationOutput) -} - -// ClusterFleetAgentDeploymentCustomizationArrayInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationArray and ClusterFleetAgentDeploymentCustomizationArrayOutput values. -// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationArrayInput` via: -// -// ClusterFleetAgentDeploymentCustomizationArray{ ClusterFleetAgentDeploymentCustomizationArgs{...} } -type ClusterFleetAgentDeploymentCustomizationArrayInput interface { - pulumi.Input - - ToClusterFleetAgentDeploymentCustomizationArrayOutput() ClusterFleetAgentDeploymentCustomizationArrayOutput - ToClusterFleetAgentDeploymentCustomizationArrayOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationArrayOutput -} - -type ClusterFleetAgentDeploymentCustomizationArray []ClusterFleetAgentDeploymentCustomizationInput - -func (ClusterFleetAgentDeploymentCustomizationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterFleetAgentDeploymentCustomization)(nil)).Elem() -} - -func (i ClusterFleetAgentDeploymentCustomizationArray) ToClusterFleetAgentDeploymentCustomizationArrayOutput() ClusterFleetAgentDeploymentCustomizationArrayOutput { - return i.ToClusterFleetAgentDeploymentCustomizationArrayOutputWithContext(context.Background()) -} - -func (i ClusterFleetAgentDeploymentCustomizationArray) ToClusterFleetAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterFleetAgentDeploymentCustomizationArrayOutput) -} - -type ClusterFleetAgentDeploymentCustomizationOutput struct{ *pulumi.OutputState } - -func (ClusterFleetAgentDeploymentCustomizationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterFleetAgentDeploymentCustomization)(nil)).Elem() -} - -func (o ClusterFleetAgentDeploymentCustomizationOutput) ToClusterFleetAgentDeploymentCustomizationOutput() ClusterFleetAgentDeploymentCustomizationOutput { - return o -} - -func (o ClusterFleetAgentDeploymentCustomizationOutput) ToClusterFleetAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationOutput { - return o -} - -// User defined tolerations to append to agent (list) -func (o ClusterFleetAgentDeploymentCustomizationOutput) AppendTolerations() ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomization) []ClusterFleetAgentDeploymentCustomizationAppendToleration { - return v.AppendTolerations - }).(ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) -} - -// User defined affinity to override default agent affinity (string) -func (o ClusterFleetAgentDeploymentCustomizationOutput) OverrideAffinity() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomization) *string { return v.OverrideAffinity }).(pulumi.StringPtrOutput) -} - -// User defined resource requirements to set on the agent (list) -func (o ClusterFleetAgentDeploymentCustomizationOutput) OverrideResourceRequirements() ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomization) []ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement { - return v.OverrideResourceRequirements - }).(ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) -} - -type ClusterFleetAgentDeploymentCustomizationArrayOutput struct{ *pulumi.OutputState } - -func (ClusterFleetAgentDeploymentCustomizationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterFleetAgentDeploymentCustomization)(nil)).Elem() -} - -func (o ClusterFleetAgentDeploymentCustomizationArrayOutput) ToClusterFleetAgentDeploymentCustomizationArrayOutput() ClusterFleetAgentDeploymentCustomizationArrayOutput { - return o -} - -func (o ClusterFleetAgentDeploymentCustomizationArrayOutput) ToClusterFleetAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationArrayOutput { - return o -} - -func (o ClusterFleetAgentDeploymentCustomizationArrayOutput) Index(i pulumi.IntInput) ClusterFleetAgentDeploymentCustomizationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterFleetAgentDeploymentCustomization { - return vs[0].([]ClusterFleetAgentDeploymentCustomization)[vs[1].(int)] - }).(ClusterFleetAgentDeploymentCustomizationOutput) -} - -type ClusterFleetAgentDeploymentCustomizationAppendToleration struct { - // The GKE taint effect (string) - Effect *string `pulumi:"effect"` - // The GKE taint key (string) - Key string `pulumi:"key"` - // The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) - Operator *string `pulumi:"operator"` - // The toleration seconds (int) - Seconds *int `pulumi:"seconds"` - // The GKE taint value (string) - Value *string `pulumi:"value"` -} - -// ClusterFleetAgentDeploymentCustomizationAppendTolerationInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs and ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput values. -// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationAppendTolerationInput` via: -// -// ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs{...} -type ClusterFleetAgentDeploymentCustomizationAppendTolerationInput interface { - pulumi.Input - - ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput - ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput -} - -type ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs struct { - // The GKE taint effect (string) - Effect pulumi.StringPtrInput `pulumi:"effect"` - // The GKE taint key (string) - Key pulumi.StringInput `pulumi:"key"` - // The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) - Operator pulumi.StringPtrInput `pulumi:"operator"` - // The toleration seconds (int) - Seconds pulumi.IntPtrInput `pulumi:"seconds"` - // The GKE taint value (string) - Value pulumi.StringPtrInput `pulumi:"value"` -} - -func (ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterFleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() -} - -func (i ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs) ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { - return i.ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Background()) -} - -func (i ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs) ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) -} - -// ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationAppendTolerationArray and ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput values. -// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayInput` via: -// -// ClusterFleetAgentDeploymentCustomizationAppendTolerationArray{ ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs{...} } -type ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayInput interface { - pulumi.Input - - ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput - ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput -} - -type ClusterFleetAgentDeploymentCustomizationAppendTolerationArray []ClusterFleetAgentDeploymentCustomizationAppendTolerationInput - -func (ClusterFleetAgentDeploymentCustomizationAppendTolerationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterFleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() -} - -func (i ClusterFleetAgentDeploymentCustomizationAppendTolerationArray) ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return i.ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Background()) -} - -func (i ClusterFleetAgentDeploymentCustomizationAppendTolerationArray) ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) -} - -type ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput struct{ *pulumi.OutputState } - -func (ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterFleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() -} - -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { - return o -} - -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) ToClusterFleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { - return o -} - -// The GKE taint effect (string) -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) -} - -// The GKE taint key (string) -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) string { return v.Key }).(pulumi.StringOutput) -} - -// The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) -} - -// The toleration seconds (int) -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Seconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) -} - -// The GKE taint value (string) -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) Value() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterFleetAgentDeploymentCustomizationAppendToleration) *string { return v.Value }).(pulumi.StringPtrOutput) -} - -type ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput struct{ *pulumi.OutputState } - -func (ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterFleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() -} - -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o -} - -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o -} - -func (o ClusterFleetAgentDeploymentCustomizationAppendTolerationArrayOutput) Index(i pulumi.IntInput) ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterFleetAgentDeploymentCustomizationAppendToleration { - return vs[0].([]ClusterFleetAgentDeploymentCustomizationAppendToleration)[vs[1].(int)] - }).(ClusterFleetAgentDeploymentCustomizationAppendTolerationOutput) -} - -type ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement struct { - // The maximum CPU limit for agent (string) - CpuLimit *string `pulumi:"cpuLimit"` - // The minimum CPU required for agent (string) - CpuRequest *string `pulumi:"cpuRequest"` - // The maximum memory limit for agent (string) - MemoryLimit *string `pulumi:"memoryLimit"` - // The minimum memory required for agent (string) - MemoryRequest *string `pulumi:"memoryRequest"` -} - -// ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementInput is an input type that accepts ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArgs and ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutput values. -// You can construct a concrete instance of `ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementInput` via: -// -// ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} -type ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementInput interface { - pulumi.Input - - ToClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutput - ToClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutput + ToClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutput + ToClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Context) ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementOutput } type ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirementArgs struct { @@ -17401,7 +16558,8 @@ func (o ClusterRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ScsiCont type ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal struct { // (string) - Datacenters *string `pulumi:"datacenters"` + Datacenters *string `pulumi:"datacenters"` + GracefulShutdownTimeout *string `pulumi:"gracefulShutdownTimeout"` // (bool) InsecureFlag *bool `pulumi:"insecureFlag"` // Registry password (string) @@ -17427,7 +16585,8 @@ type ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalInput interface { type ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs struct { // (string) - Datacenters pulumi.StringPtrInput `pulumi:"datacenters"` + Datacenters pulumi.StringPtrInput `pulumi:"datacenters"` + GracefulShutdownTimeout pulumi.StringPtrInput `pulumi:"gracefulShutdownTimeout"` // (bool) InsecureFlag pulumi.BoolPtrInput `pulumi:"insecureFlag"` // Registry password (string) @@ -17522,6 +16681,12 @@ func (o ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) Datacente return o.ApplyT(func(v ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { return v.Datacenters }).(pulumi.StringPtrOutput) } +func (o ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + // (bool) func (o ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) InsecureFlag() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) *bool { return v.InsecureFlag }).(pulumi.BoolPtrOutput) @@ -17581,6 +16746,15 @@ func (o ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Datace }).(pulumi.StringPtrOutput) } +func (o ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + if v == nil { + return nil + } + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + // (bool) func (o ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) InsecureFlag() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) *bool { @@ -32112,1369 +31286,2087 @@ func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVspher }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ScsiControllerType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk) *string { + if v == nil { + return nil + } + return v.ScsiControllerType + }).(pulumi.StringPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal struct { + Datacenters *string `pulumi:"datacenters"` + GracefulShutdownTimeout *string `pulumi:"gracefulShutdownTimeout"` + InsecureFlag *bool `pulumi:"insecureFlag"` + Password *string `pulumi:"password"` + Port *string `pulumi:"port"` + SoapRoundtripCount *int `pulumi:"soapRoundtripCount"` + User *string `pulumi:"user"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs struct { + Datacenters pulumi.StringPtrInput `pulumi:"datacenters"` + GracefulShutdownTimeout pulumi.StringPtrInput `pulumi:"gracefulShutdownTimeout"` + InsecureFlag pulumi.BoolPtrInput `pulumi:"insecureFlag"` + Password pulumi.StringPtrInput `pulumi:"password"` + Port pulumi.StringPtrInput `pulumi:"port"` + SoapRoundtripCount pulumi.IntPtrInput `pulumi:"soapRoundtripCount"` + User pulumi.StringPtrInput `pulumi:"user"` +} + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal)(nil)).Elem() +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx) +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput +} + +type clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs + +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType)(v) +} + +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal)(nil)).Elem() +} + +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(context.Background()) +} + +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(context.Background()) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) Datacenters() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + return v.Datacenters + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) InsecureFlag() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *bool { + return v.InsecureFlag + }).(pulumi.BoolPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) Password() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + return v.Password + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) Port() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + return v.Port + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) SoapRoundtripCount() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *int { + return v.SoapRoundtripCount + }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) User() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + return v.User + }).(pulumi.StringPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Datacenters() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + if v == nil { + return nil + } + return v.Datacenters + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + if v == nil { + return nil + } + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) InsecureFlag() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *bool { + if v == nil { + return nil + } + return v.InsecureFlag + }).(pulumi.BoolPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Password() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + if v == nil { + return nil + } + return v.Password + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Port() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + if v == nil { + return nil + } + return v.Port + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) SoapRoundtripCount() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *int { + if v == nil { + return nil + } + return v.SoapRoundtripCount + }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) User() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + if v == nil { + return nil + } + return v.User + }).(pulumi.StringPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork struct { + PublicNetwork *string `pulumi:"publicNetwork"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs struct { + PublicNetwork pulumi.StringPtrInput `pulumi:"publicNetwork"` +} + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork)(nil)).Elem() +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx) +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput +} + +type clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs + +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType)(v) +} + +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork)(nil)).Elem() +} + +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(context.Background()) +} + +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(context.Background()) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) PublicNetwork() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork) *string { + return v.PublicNetwork + }).(pulumi.StringPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) PublicNetwork() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork) *string { + if v == nil { + return nil + } + return v.PublicNetwork + }).(pulumi.StringPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter struct { + Datacenters string `pulumi:"datacenters"` + // The cluster template name (string) + Name string `pulumi:"name"` + Password string `pulumi:"password"` + Port *string `pulumi:"port"` + SoapRoundtripCount *int `pulumi:"soapRoundtripCount"` + User string `pulumi:"user"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs struct { + Datacenters pulumi.StringInput `pulumi:"datacenters"` + // The cluster template name (string) + Name pulumi.StringInput `pulumi:"name"` + Password pulumi.StringInput `pulumi:"password"` + Port pulumi.StringPtrInput `pulumi:"port"` + SoapRoundtripCount pulumi.IntPtrInput `pulumi:"soapRoundtripCount"` + User pulumi.StringInput `pulumi:"user"` +} + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)(nil)).Elem() +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs{...} } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterInput + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)(nil)).Elem() +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) Datacenters() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) string { + return v.Datacenters + }).(pulumi.StringOutput) +} + +// The cluster template name (string) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) string { + return v.Name + }).(pulumi.StringOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) Password() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) string { + return v.Password + }).(pulumi.StringOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) Port() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) *string { + return v.Port + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) SoapRoundtripCount() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) *int { + return v.SoapRoundtripCount + }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) User() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) string { + return v.User + }).(pulumi.StringOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ScsiControllerType() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk) *string { - if v == nil { - return nil - } - return v.ScsiControllerType - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter { + return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal struct { - Datacenters *string `pulumi:"datacenters"` - InsecureFlag *bool `pulumi:"insecureFlag"` - Password *string `pulumi:"password"` - Port *string `pulumi:"port"` - SoapRoundtripCount *int `pulumi:"soapRoundtripCount"` - User *string `pulumi:"user"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace struct { + Datacenter string `pulumi:"datacenter"` + DefaultDatastore *string `pulumi:"defaultDatastore"` + Folder string `pulumi:"folder"` + ResourcepoolPath *string `pulumi:"resourcepoolPath"` + Server string `pulumi:"server"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs struct { - Datacenters pulumi.StringPtrInput `pulumi:"datacenters"` - InsecureFlag pulumi.BoolPtrInput `pulumi:"insecureFlag"` - Password pulumi.StringPtrInput `pulumi:"password"` - Port pulumi.StringPtrInput `pulumi:"port"` - SoapRoundtripCount pulumi.IntPtrInput `pulumi:"soapRoundtripCount"` - User pulumi.StringPtrInput `pulumi:"user"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs struct { + Datacenter pulumi.StringInput `pulumi:"datacenter"` + DefaultDatastore pulumi.StringPtrInput `pulumi:"defaultDatastore"` + Folder pulumi.StringInput `pulumi:"folder"` + ResourcepoolPath pulumi.StringPtrInput `pulumi:"resourcepoolPath"` + Server pulumi.StringInput `pulumi:"server"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) Datacenters() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { - return v.Datacenters - }).(pulumi.StringPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) InsecureFlag() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *bool { - return v.InsecureFlag - }).(pulumi.BoolPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) Datacenter() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) string { + return v.Datacenter + }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { - return v.Password +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) DefaultDatastore() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { + return v.DefaultDatastore }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) Port() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { - return v.Port - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) Folder() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) string { + return v.Folder + }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) SoapRoundtripCount() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *int { - return v.SoapRoundtripCount - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ResourcepoolPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { + return v.ResourcepoolPath + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) User() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { - return v.User - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) Server() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) string { + return v.Server + }).(pulumi.StringOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Datacenters() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) Datacenter() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { if v == nil { return nil } - return v.Datacenters + return &v.Datacenter }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) InsecureFlag() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *bool { - if v == nil { - return nil - } - return v.InsecureFlag - }).(pulumi.BoolPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) DefaultDatastore() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { if v == nil { return nil } - return v.Password + return v.DefaultDatastore }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Port() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) Folder() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { if v == nil { return nil } - return v.Port + return &v.Folder }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) SoapRoundtripCount() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) ResourcepoolPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { if v == nil { return nil } - return v.SoapRoundtripCount - }).(pulumi.IntPtrOutput) + return v.ResourcepoolPath + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) User() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) Server() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { if v == nil { return nil } - return v.User + return &v.Server }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork struct { - PublicNetwork *string `pulumi:"publicNetwork"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns struct { + // Linear Autoscaler Params + LinearAutoscalerParams *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams `pulumi:"linearAutoscalerParams"` + NodeSelector map[string]interface{} `pulumi:"nodeSelector"` + // Nodelocal dns + Nodelocal *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal `pulumi:"nodelocal"` + Options map[string]interface{} `pulumi:"options"` + Provider *string `pulumi:"provider"` + ReverseCidrs []string `pulumi:"reverseCidrs"` + // DNS service tolerations + Tolerations []ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration `pulumi:"tolerations"` + // Update deployment strategy + UpdateStrategy *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy `pulumi:"updateStrategy"` + UpstreamNameservers []string `pulumi:"upstreamNameservers"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs struct { - PublicNetwork pulumi.StringPtrInput `pulumi:"publicNetwork"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs struct { + // Linear Autoscaler Params + LinearAutoscalerParams ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput `pulumi:"linearAutoscalerParams"` + NodeSelector pulumi.MapInput `pulumi:"nodeSelector"` + // Nodelocal dns + Nodelocal ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput `pulumi:"nodelocal"` + Options pulumi.MapInput `pulumi:"options"` + Provider pulumi.StringPtrInput `pulumi:"provider"` + ReverseCidrs pulumi.StringArrayInput `pulumi:"reverseCidrs"` + // DNS service tolerations + Tolerations ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayInput `pulumi:"tolerations"` + // Update deployment strategy + UpdateStrategy ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput `pulumi:"updateStrategy"` + UpstreamNameservers pulumi.StringArrayInput `pulumi:"upstreamNameservers"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) PublicNetwork() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork) *string { - return v.PublicNetwork - }).(pulumi.StringPtrOutput) +// Linear Autoscaler Params +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) LinearAutoscalerParams() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams { + return v.LinearAutoscalerParams + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) NodeSelector() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) map[string]interface{} { + return v.NodeSelector + }).(pulumi.MapOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork)(nil)).Elem() +// Nodelocal dns +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) Nodelocal() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal { + return v.Nodelocal + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) Options() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) map[string]interface{} { + return v.Options + }).(pulumi.MapOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) Provider() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *string { return v.Provider }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ReverseCidrs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []string { return v.ReverseCidrs }).(pulumi.StringArrayOutput) +} + +// DNS service tolerations +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration { + return v.Tolerations + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) +} + +// Update deployment strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy { + return v.UpdateStrategy + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) UpstreamNameservers() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []string { + return v.UpstreamNameservers + }).(pulumi.StringArrayOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkPtrOutput) PublicNetwork() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork) *string { +// Linear Autoscaler Params +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) LinearAutoscalerParams() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams { if v == nil { return nil } - return v.PublicNetwork + return v.LinearAutoscalerParams + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) NodeSelector() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) map[string]interface{} { + if v == nil { + return nil + } + return v.NodeSelector + }).(pulumi.MapOutput) +} + +// Nodelocal dns +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Nodelocal() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal { + if v == nil { + return nil + } + return v.Nodelocal + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Options() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) map[string]interface{} { + if v == nil { + return nil + } + return v.Options + }).(pulumi.MapOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Provider() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *string { + if v == nil { + return nil + } + return v.Provider }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter struct { - Datacenters string `pulumi:"datacenters"` - // The cluster template name (string) - Name string `pulumi:"name"` - Password string `pulumi:"password"` - Port *string `pulumi:"port"` - SoapRoundtripCount *int `pulumi:"soapRoundtripCount"` - User string `pulumi:"user"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) ReverseCidrs() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []string { + if v == nil { + return nil + } + return v.ReverseCidrs + }).(pulumi.StringArrayOutput) +} + +// DNS service tolerations +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration { + if v == nil { + return nil + } + return v.Tolerations + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) +} + +// Update deployment strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy { + if v == nil { + return nil + } + return v.UpdateStrategy + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) UpstreamNameservers() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []string { + if v == nil { + return nil + } + return v.UpstreamNameservers + }).(pulumi.StringArrayOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterInput` via: +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams struct { + CoresPerReplica *float64 `pulumi:"coresPerReplica"` + Max *int `pulumi:"max"` + Min *int `pulumi:"min"` + NodesPerReplica *float64 `pulumi:"nodesPerReplica"` + PreventSinglePointFailure *bool `pulumi:"preventSinglePointFailure"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs struct { - Datacenters pulumi.StringInput `pulumi:"datacenters"` - // The cluster template name (string) - Name pulumi.StringInput `pulumi:"name"` - Password pulumi.StringInput `pulumi:"password"` - Port pulumi.StringPtrInput `pulumi:"port"` - SoapRoundtripCount pulumi.IntPtrInput `pulumi:"soapRoundtripCount"` - User pulumi.StringInput `pulumi:"user"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs struct { + CoresPerReplica pulumi.Float64PtrInput `pulumi:"coresPerReplica"` + Max pulumi.IntPtrInput `pulumi:"max"` + Min pulumi.IntPtrInput `pulumi:"min"` + NodesPerReplica pulumi.Float64PtrInput `pulumi:"nodesPerReplica"` + PreventSinglePointFailure pulumi.BoolPtrInput `pulumi:"preventSinglePointFailure"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayInput` via: +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx) +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs{...} } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterInput +type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)(nil)).Elem() +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType)(v) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutputWithContext(context.Background()) +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(context.Background()) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput struct{ *pulumi.OutputState } +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)(nil)).Elem() +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) Datacenters() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) string { - return v.Datacenters - }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(context.Background()) } -// The cluster template name (string) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) string { - return v.Name - }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) Password() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) string { - return v.Password - }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) CoresPerReplica() pulumi.Float64PtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *float64 { + return v.CoresPerReplica + }).(pulumi.Float64PtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) Port() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) *string { - return v.Port - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) Max() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *int { + return v.Max + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) SoapRoundtripCount() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) *int { - return v.SoapRoundtripCount +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) Min() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *int { + return v.Min }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) User() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter) string { - return v.User - }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) NodesPerReplica() pulumi.Float64PtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *float64 { + return v.NodesPerReplica + }).(pulumi.Float64PtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) PreventSinglePointFailure() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *bool { + return v.PreventSinglePointFailure + }).(pulumi.BoolPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)(nil)).Elem() +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter { - return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace struct { - Datacenter string `pulumi:"datacenter"` - DefaultDatastore *string `pulumi:"defaultDatastore"` - Folder string `pulumi:"folder"` - ResourcepoolPath *string `pulumi:"resourcepoolPath"` - Server string `pulumi:"server"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) CoresPerReplica() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *float64 { + if v == nil { + return nil + } + return v.CoresPerReplica + }).(pulumi.Float64PtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceInput` via: +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) Max() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *int { + if v == nil { + return nil + } + return v.Max + }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) Min() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *int { + if v == nil { + return nil + } + return v.Min + }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) NodesPerReplica() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *float64 { + if v == nil { + return nil + } + return v.NodesPerReplica + }).(pulumi.Float64PtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) PreventSinglePointFailure() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *bool { + if v == nil { + return nil + } + return v.PreventSinglePointFailure + }).(pulumi.BoolPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal struct { + IpAddress *string `pulumi:"ipAddress"` + // Node selector key pair + NodeSelector map[string]interface{} `pulumi:"nodeSelector"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs struct { - Datacenter pulumi.StringInput `pulumi:"datacenter"` - DefaultDatastore pulumi.StringPtrInput `pulumi:"defaultDatastore"` - Folder pulumi.StringInput `pulumi:"folder"` - ResourcepoolPath pulumi.StringPtrInput `pulumi:"resourcepoolPath"` - Server pulumi.StringInput `pulumi:"server"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs struct { + IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` + // Node selector key pair + NodeSelector pulumi.MapInput `pulumi:"nodeSelector"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) Datacenter() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) string { - return v.Datacenter - }).(pulumi.StringOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) DefaultDatastore() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { - return v.DefaultDatastore - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) Folder() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) string { - return v.Folder - }).(pulumi.StringOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) ResourcepoolPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { - return v.ResourcepoolPath - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) IpAddress() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) *string { return v.IpAddress }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) Server() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) string { - return v.Server - }).(pulumi.StringOutput) +// Node selector key pair +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) NodeSelector() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) map[string]interface{} { + return v.NodeSelector + }).(pulumi.MapOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) Datacenter() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) IpAddress() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) *string { if v == nil { return nil } - return &v.Datacenter + return v.IpAddress }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) DefaultDatastore() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { +// Node selector key pair +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) NodeSelector() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) map[string]interface{} { if v == nil { return nil } - return v.DefaultDatastore - }).(pulumi.StringPtrOutput) + return v.NodeSelector + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) Folder() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { - if v == nil { - return nil - } - return &v.Folder - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration struct { + Effect *string `pulumi:"effect"` + Key string `pulumi:"key"` + Operator *string `pulumi:"operator"` + Seconds *int `pulumi:"seconds"` + Value *string `pulumi:"value"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) ResourcepoolPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { - if v == nil { - return nil - } - return v.ResourcepoolPath - }).(pulumi.StringPtrOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspacePtrOutput) Server() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace) *string { - if v == nil { - return nil - } - return &v.Server - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs struct { + Effect pulumi.StringPtrInput `pulumi:"effect"` + Key pulumi.StringInput `pulumi:"key"` + Operator pulumi.StringPtrInput `pulumi:"operator"` + Seconds pulumi.IntPtrInput `pulumi:"seconds"` + Value pulumi.StringPtrInput `pulumi:"value"` } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns struct { - // Linear Autoscaler Params - LinearAutoscalerParams *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams `pulumi:"linearAutoscalerParams"` - NodeSelector map[string]interface{} `pulumi:"nodeSelector"` - // Nodelocal dns - Nodelocal *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal `pulumi:"nodelocal"` - Options map[string]interface{} `pulumi:"options"` - Provider *string `pulumi:"provider"` - ReverseCidrs []string `pulumi:"reverseCidrs"` - // DNS service tolerations - Tolerations []ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration `pulumi:"tolerations"` - // Update deployment strategy - UpdateStrategy *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy `pulumi:"updateStrategy"` - UpstreamNameservers []string `pulumi:"upstreamNameservers"` +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)(nil)).Elem() } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsInput` via: +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs{...} } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs struct { - // Linear Autoscaler Params - LinearAutoscalerParams ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput `pulumi:"linearAutoscalerParams"` - NodeSelector pulumi.MapInput `pulumi:"nodeSelector"` - // Nodelocal dns - Nodelocal ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput `pulumi:"nodelocal"` - Options pulumi.MapInput `pulumi:"options"` - Provider pulumi.StringPtrInput `pulumi:"provider"` - ReverseCidrs pulumi.StringArrayInput `pulumi:"reverseCidrs"` - // DNS service tolerations - Tolerations ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayInput `pulumi:"tolerations"` - // Update deployment strategy - UpdateStrategy ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput `pulumi:"updateStrategy"` - UpstreamNameservers pulumi.StringArrayInput `pulumi:"upstreamNameservers"` -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationInput -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(context.Background()) -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput struct{ *pulumi.OutputState } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)(nil)).Elem() } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrInput interface { - pulumi.Input +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { + return o +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { + return o } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) +} -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType)(v) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) string { return v.Key }).(pulumi.StringOutput) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Seconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Value() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) *string { return v.Value }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration { + return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy struct { + // Rolling update for update strategy + RollingUpdate *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate `pulumi:"rollingUpdate"` + // Strategy + Strategy *string `pulumi:"strategy"` } -// Linear Autoscaler Params -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) LinearAutoscalerParams() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams { - return v.LinearAutoscalerParams - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) NodeSelector() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) map[string]interface{} { - return v.NodeSelector - }).(pulumi.MapOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs struct { + // Rolling update for update strategy + RollingUpdate ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput `pulumi:"rollingUpdate"` + // Strategy + Strategy pulumi.StringPtrInput `pulumi:"strategy"` } -// Nodelocal dns -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) Nodelocal() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal { - return v.Nodelocal - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) Options() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) map[string]interface{} { - return v.Options - }).(pulumi.MapOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) Provider() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *string { return v.Provider }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) ReverseCidrs() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []string { return v.ReverseCidrs }).(pulumi.StringArrayOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(context.Background()) } -// DNS service tolerations -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration { - return v.Tolerations - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx) } -// Update deployment strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy { - return v.UpdateStrategy - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) UpstreamNameservers() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []string { - return v.UpstreamNameservers - }).(pulumi.StringArrayOutput) +type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs + +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType)(v) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput struct{ *pulumi.OutputState } +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy)(nil)).Elem() +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns)(nil)).Elem() +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(context.Background()) } -// Linear Autoscaler Params -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) LinearAutoscalerParams() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams { - if v == nil { - return nil - } - return v.LinearAutoscalerParams - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) NodeSelector() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) map[string]interface{} { - if v == nil { - return nil - } - return v.NodeSelector - }).(pulumi.MapOutput) +// Rolling update for update strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate { + return v.RollingUpdate + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) } -// Nodelocal dns -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Nodelocal() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal { - if v == nil { - return nil - } - return v.Nodelocal - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) +// Strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) Strategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *string { + return v.Strategy + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Options() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) map[string]interface{} { - if v == nil { - return nil - } - return v.Options - }).(pulumi.MapOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Provider() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *string { - if v == nil { - return nil - } - return v.Provider - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) ReverseCidrs() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []string { - if v == nil { - return nil - } - return v.ReverseCidrs - }).(pulumi.StringArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { + return o } -// DNS service tolerations -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration { - if v == nil { - return nil +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy { + if v != nil { + return *v } - return v.Tolerations - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) } -// Update deployment strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy { +// Rolling update for update strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate { if v == nil { return nil } - return v.UpdateStrategy - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) + return v.RollingUpdate + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsPtrOutput) UpstreamNameservers() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns) []string { +// Strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) Strategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *string { if v == nil { return nil } - return v.UpstreamNameservers - }).(pulumi.StringArrayOutput) + return v.Strategy + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams struct { - CoresPerReplica *float64 `pulumi:"coresPerReplica"` - Max *int `pulumi:"max"` - Min *int `pulumi:"min"` - NodesPerReplica *float64 `pulumi:"nodesPerReplica"` - PreventSinglePointFailure *bool `pulumi:"preventSinglePointFailure"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate struct { + // Rolling update max surge + MaxSurge *int `pulumi:"maxSurge"` + // Rolling update max unavailable + MaxUnavailable *int `pulumi:"maxUnavailable"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs struct { - CoresPerReplica pulumi.Float64PtrInput `pulumi:"coresPerReplica"` - Max pulumi.IntPtrInput `pulumi:"max"` - Min pulumi.IntPtrInput `pulumi:"min"` - NodesPerReplica pulumi.Float64PtrInput `pulumi:"nodesPerReplica"` - PreventSinglePointFailure pulumi.BoolPtrInput `pulumi:"preventSinglePointFailure"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs struct { + // Rolling update max surge + MaxSurge pulumi.IntPtrInput `pulumi:"maxSurge"` + // Rolling update max unavailable + MaxUnavailable pulumi.IntPtrInput `pulumi:"maxUnavailable"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) CoresPerReplica() pulumi.Float64PtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *float64 { - return v.CoresPerReplica - }).(pulumi.Float64PtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) Max() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *int { - return v.Max +// Rolling update max surge +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) MaxSurge() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *int { + return v.MaxSurge }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) Min() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *int { - return v.Min +// Rolling update max unavailable +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) MaxUnavailable() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *int { + return v.MaxUnavailable }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) NodesPerReplica() pulumi.Float64PtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *float64 { - return v.NodesPerReplica - }).(pulumi.Float64PtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) PreventSinglePointFailure() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *bool { - return v.PreventSinglePointFailure - }).(pulumi.BoolPtrOutput) -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) CoresPerReplica() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *float64 { - if v == nil { - return nil - } - return v.CoresPerReplica - }).(pulumi.Float64PtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) Max() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *int { +// Rolling update max surge +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) MaxSurge() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *int { if v == nil { return nil } - return v.Max + return v.MaxSurge }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) Min() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *int { +// Rolling update max unavailable +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) MaxUnavailable() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *int { if v == nil { return nil } - return v.Min + return v.MaxUnavailable }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) NodesPerReplica() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *float64 { - if v == nil { - return nil - } - return v.NodesPerReplica - }).(pulumi.Float64PtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParamsPtrOutput) PreventSinglePointFailure() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams) *bool { - if v == nil { - return nil - } - return v.PreventSinglePointFailure - }).(pulumi.BoolPtrOutput) -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal struct { - IpAddress *string `pulumi:"ipAddress"` - // Node selector key pair - NodeSelector map[string]interface{} `pulumi:"nodeSelector"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress struct { + DefaultBackend *bool `pulumi:"defaultBackend"` + DnsPolicy *string `pulumi:"dnsPolicy"` + ExtraArgs map[string]interface{} `pulumi:"extraArgs"` + HttpPort *int `pulumi:"httpPort"` + HttpsPort *int `pulumi:"httpsPort"` + NetworkMode *string `pulumi:"networkMode"` + NodeSelector map[string]interface{} `pulumi:"nodeSelector"` + Options map[string]interface{} `pulumi:"options"` + Provider *string `pulumi:"provider"` + // Ingress add-on tolerations + Tolerations []ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration `pulumi:"tolerations"` + // Update daemon set strategy + UpdateStrategy *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy `pulumi:"updateStrategy"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs struct { - IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` - // Node selector key pair - NodeSelector pulumi.MapInput `pulumi:"nodeSelector"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs struct { + DefaultBackend pulumi.BoolPtrInput `pulumi:"defaultBackend"` + DnsPolicy pulumi.StringPtrInput `pulumi:"dnsPolicy"` + ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` + HttpPort pulumi.IntPtrInput `pulumi:"httpPort"` + HttpsPort pulumi.IntPtrInput `pulumi:"httpsPort"` + NetworkMode pulumi.StringPtrInput `pulumi:"networkMode"` + NodeSelector pulumi.MapInput `pulumi:"nodeSelector"` + Options pulumi.MapInput `pulumi:"options"` + Provider pulumi.StringPtrInput `pulumi:"provider"` + // Ingress add-on tolerations + Tolerations ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayInput `pulumi:"tolerations"` + // Update daemon set strategy + UpdateStrategy ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput `pulumi:"updateStrategy"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutputWithContext(context.Background()) } - -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) IpAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) *string { return v.IpAddress }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) DefaultBackend() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *bool { return v.DefaultBackend }).(pulumi.BoolPtrOutput) } -// Node selector key pair -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) NodeSelector() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) map[string]interface{} { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) DnsPolicy() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { return v.DnsPolicy }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { + return v.ExtraArgs + }).(pulumi.MapOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) HttpPort() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *int { return v.HttpPort }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) HttpsPort() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *int { return v.HttpsPort }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) NetworkMode() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { return v.NetworkMode }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) NodeSelector() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { return v.NodeSelector }).(pulumi.MapOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) Options() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { + return v.Options + }).(pulumi.MapOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) Provider() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { return v.Provider }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { +// Ingress add-on tolerations +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration { + return v.Tolerations + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) +} + +// Update daemon set strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy { + return v.UpdateStrategy + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) IpAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) DefaultBackend() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *bool { if v == nil { return nil } - return v.IpAddress + return v.DefaultBackend + }).(pulumi.BoolPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) DnsPolicy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { + if v == nil { + return nil + } + return v.DnsPolicy }).(pulumi.StringPtrOutput) } -// Node selector key pair -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutput) NodeSelector() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal) map[string]interface{} { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { + if v == nil { + return nil + } + return v.ExtraArgs + }).(pulumi.MapOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) HttpPort() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *int { + if v == nil { + return nil + } + return v.HttpPort + }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) HttpsPort() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *int { + if v == nil { + return nil + } + return v.HttpsPort + }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) NetworkMode() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { + if v == nil { + return nil + } + return v.NetworkMode + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) NodeSelector() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { if v == nil { return nil } @@ -33482,7 +33374,45 @@ func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocalPtrOutp }).(pulumi.MapOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration struct { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) Options() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { + if v == nil { + return nil + } + return v.Options + }).(pulumi.MapOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) Provider() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { + if v == nil { + return nil + } + return v.Provider + }).(pulumi.StringPtrOutput) +} + +// Ingress add-on tolerations +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration { + if v == nil { + return nil + } + return v.Tolerations + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) +} + +// Update daemon set strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy { + if v == nil { + return nil + } + return v.UpdateStrategy + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration struct { Effect *string `pulumi:"effect"` Key string `pulumi:"key"` Operator *string `pulumi:"operator"` @@ -33490,18 +33420,18 @@ type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration struct { Value *string `pulumi:"value"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs struct { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs struct { Effect pulumi.StringPtrInput `pulumi:"effect"` Key pulumi.StringInput `pulumi:"key"` Operator pulumi.StringPtrInput `pulumi:"operator"` @@ -33509,250 +33439,254 @@ type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs stru Value pulumi.StringPtrInput `pulumi:"value"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs{...} } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs{...} } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationInput +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationInput -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) *string { + return v.Effect + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) string { return v.Key }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) string { return v.Key }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) *string { + return v.Operator + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Seconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Seconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) Value() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration) *string { return v.Value }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Value() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) *string { return v.Value }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration { - return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration { + return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy struct { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy struct { // Rolling update for update strategy - RollingUpdate *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate `pulumi:"rollingUpdate"` + RollingUpdate *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate `pulumi:"rollingUpdate"` // Strategy Strategy *string `pulumi:"strategy"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs struct { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs struct { // Rolling update for update strategy - RollingUpdate ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput `pulumi:"rollingUpdate"` + RollingUpdate ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput `pulumi:"rollingUpdate"` // Strategy Strategy pulumi.StringPtrInput `pulumi:"strategy"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) } // Rolling update for update strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate { return v.RollingUpdate - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) } // Strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) Strategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) Strategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *string { return v.Strategy }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) } // Rolling update for update strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate { if v == nil { return nil } return v.RollingUpdate - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) } // Strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPtrOutput) Strategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) Strategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *string { if v == nil { return nil } @@ -33760,159 +33694,138 @@ func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyPt }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate struct { - // Rolling update max surge - MaxSurge *int `pulumi:"maxSurge"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate struct { // Rolling update max unavailable MaxUnavailable *int `pulumi:"maxUnavailable"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs struct { - // Rolling update max surge - MaxSurge pulumi.IntPtrInput `pulumi:"maxSurge"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs struct { // Rolling update max unavailable MaxUnavailable pulumi.IntPtrInput `pulumi:"maxUnavailable"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) -} - -// Rolling update max surge -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) MaxSurge() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *int { - return v.MaxSurge - }).(pulumi.IntPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) } // Rolling update max unavailable -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) MaxUnavailable() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) MaxUnavailable() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate) *int { return v.MaxUnavailable }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdateOutput) -} - -// Rolling update max surge -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) MaxSurge() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *int { - if v == nil { - return nil - } - return v.MaxSurge - }).(pulumi.IntPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) } // Rolling update max unavailable -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdatePtrOutput) MaxUnavailable() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) MaxUnavailable() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate) *int { if v == nil { return nil } @@ -33920,9267 +33833,9869 @@ func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRo }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress struct { - DefaultBackend *bool `pulumi:"defaultBackend"` - DnsPolicy *string `pulumi:"dnsPolicy"` - ExtraArgs map[string]interface{} `pulumi:"extraArgs"` - HttpPort *int `pulumi:"httpPort"` - HttpsPort *int `pulumi:"httpsPort"` - NetworkMode *string `pulumi:"networkMode"` - NodeSelector map[string]interface{} `pulumi:"nodeSelector"` - Options map[string]interface{} `pulumi:"options"` - Provider *string `pulumi:"provider"` - // Ingress add-on tolerations - Tolerations []ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration `pulumi:"tolerations"` - // Update daemon set strategy - UpdateStrategy *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy `pulumi:"updateStrategy"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring struct { + NodeSelector map[string]interface{} `pulumi:"nodeSelector"` + Options map[string]interface{} `pulumi:"options"` + Provider *string `pulumi:"provider"` + Replicas *int `pulumi:"replicas"` + // Monitoring add-on tolerations + Tolerations []ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration `pulumi:"tolerations"` + // Update deployment strategy + UpdateStrategy *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy `pulumi:"updateStrategy"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs struct { - DefaultBackend pulumi.BoolPtrInput `pulumi:"defaultBackend"` - DnsPolicy pulumi.StringPtrInput `pulumi:"dnsPolicy"` - ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` - HttpPort pulumi.IntPtrInput `pulumi:"httpPort"` - HttpsPort pulumi.IntPtrInput `pulumi:"httpsPort"` - NetworkMode pulumi.StringPtrInput `pulumi:"networkMode"` - NodeSelector pulumi.MapInput `pulumi:"nodeSelector"` - Options pulumi.MapInput `pulumi:"options"` - Provider pulumi.StringPtrInput `pulumi:"provider"` - // Ingress add-on tolerations - Tolerations ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayInput `pulumi:"tolerations"` - // Update daemon set strategy - UpdateStrategy ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput `pulumi:"updateStrategy"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs struct { + NodeSelector pulumi.MapInput `pulumi:"nodeSelector"` + Options pulumi.MapInput `pulumi:"options"` + Provider pulumi.StringPtrInput `pulumi:"provider"` + Replicas pulumi.IntPtrInput `pulumi:"replicas"` + // Monitoring add-on tolerations + Tolerations ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayInput `pulumi:"tolerations"` + // Update deployment strategy + UpdateStrategy ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput `pulumi:"updateStrategy"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) DefaultBackend() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *bool { return v.DefaultBackend }).(pulumi.BoolPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) DnsPolicy() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { return v.DnsPolicy }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { - return v.ExtraArgs - }).(pulumi.MapOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) HttpPort() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *int { return v.HttpPort }).(pulumi.IntPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) HttpsPort() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *int { return v.HttpsPort }).(pulumi.IntPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) NetworkMode() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { return v.NetworkMode }).(pulumi.StringPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) NodeSelector() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) NodeSelector() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) map[string]interface{} { return v.NodeSelector }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) Options() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) Options() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) map[string]interface{} { return v.Options }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) Provider() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { return v.Provider }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) Provider() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *string { return v.Provider }).(pulumi.StringPtrOutput) } -// Ingress add-on tolerations -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) Replicas() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *int { return v.Replicas }).(pulumi.IntPtrOutput) +} + +// Monitoring add-on tolerations +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration { return v.Tolerations - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) } -// Update daemon set strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy { +// Update deployment strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy { return v.UpdateStrategy - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) DefaultBackend() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *bool { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) NodeSelector() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) map[string]interface{} { if v == nil { return nil } - return v.DefaultBackend - }).(pulumi.BoolPtrOutput) + return v.NodeSelector + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) DnsPolicy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Options() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) map[string]interface{} { if v == nil { return nil } - return v.DnsPolicy - }).(pulumi.StringPtrOutput) + return v.Options + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Provider() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *string { if v == nil { return nil } - return v.ExtraArgs - }).(pulumi.MapOutput) + return v.Provider + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) HttpPort() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Replicas() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *int { if v == nil { return nil } - return v.HttpPort + return v.Replicas }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) HttpsPort() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *int { +// Monitoring add-on tolerations +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration { if v == nil { return nil } - return v.HttpsPort - }).(pulumi.IntPtrOutput) + return v.Tolerations + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) NetworkMode() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { +// Update deployment strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy { if v == nil { return nil } - return v.NetworkMode + return v.UpdateStrategy + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration struct { + Effect *string `pulumi:"effect"` + Key string `pulumi:"key"` + Operator *string `pulumi:"operator"` + Seconds *int `pulumi:"seconds"` + Value *string `pulumi:"value"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs struct { + Effect pulumi.StringPtrInput `pulumi:"effect"` + Key pulumi.StringInput `pulumi:"key"` + Operator pulumi.StringPtrInput `pulumi:"operator"` + Seconds pulumi.IntPtrInput `pulumi:"seconds"` + Value pulumi.StringPtrInput `pulumi:"value"` +} + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)(nil)).Elem() +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs{...} } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationInput + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)(nil)).Elem() +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) *string { + return v.Effect }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) NodeSelector() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { - if v == nil { - return nil - } - return v.NodeSelector - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) string { return v.Key }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) Options() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) map[string]interface{} { - if v == nil { - return nil - } - return v.Options - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) *string { + return v.Operator + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) Provider() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *string { - if v == nil { - return nil - } - return v.Provider +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Seconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) *int { + return v.Seconds + }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Value() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) *string { + return v.Value }).(pulumi.StringPtrOutput) } -// Ingress add-on tolerations -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration { - if v == nil { - return nil - } - return v.Tolerations - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)(nil)).Elem() } -// Update daemon set strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressPtrOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy { - if v == nil { - return nil - } - return v.UpdateStrategy - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { + return o } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration struct { - Effect *string `pulumi:"effect"` - Key string `pulumi:"key"` - Operator *string `pulumi:"operator"` - Seconds *int `pulumi:"seconds"` - Value *string `pulumi:"value"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration { + return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy struct { + // Rolling update for update strategy + RollingUpdate *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate `pulumi:"rollingUpdate"` + // Strategy + Strategy *string `pulumi:"strategy"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs struct { + // Rolling update for update strategy + RollingUpdate ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput `pulumi:"rollingUpdate"` + // Strategy + Strategy pulumi.StringPtrInput `pulumi:"strategy"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs struct { - Effect pulumi.StringPtrInput `pulumi:"effect"` - Key pulumi.StringInput `pulumi:"key"` - Operator pulumi.StringPtrInput `pulumi:"operator"` - Seconds pulumi.IntPtrInput `pulumi:"seconds"` - Value pulumi.StringPtrInput `pulumi:"value"` +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutputWithContext(context.Background()) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)(nil)).Elem() +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs{...} } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationInput +type clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)(nil)).Elem() +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType)(v) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutputWithContext(context.Background()) +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(context.Background()) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)(nil)).Elem() +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { - return o +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) *string { - return v.Effect - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) string { return v.Key }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) *string { - return v.Operator - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Seconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) +// Rolling update for update strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate { + return v.RollingUpdate + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) Value() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration) *string { return v.Value }).(pulumi.StringPtrOutput) +// Strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) Strategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *string { + return v.Strategy + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration { - return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy struct { - // Rolling update for update strategy - RollingUpdate *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate `pulumi:"rollingUpdate"` - // Strategy - Strategy *string `pulumi:"strategy"` +// Rolling update for update strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate { + if v == nil { + return nil + } + return v.RollingUpdate + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyInput` via: +// Strategy +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) Strategy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *string { + if v == nil { + return nil + } + return v.Strategy + }).(pulumi.StringPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate struct { + // Rolling update max surge + MaxSurge *int `pulumi:"maxSurge"` + // Rolling update max unavailable + MaxUnavailable *int `pulumi:"maxUnavailable"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs struct { - // Rolling update for update strategy - RollingUpdate ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput `pulumi:"rollingUpdate"` - // Strategy - Strategy pulumi.StringPtrInput `pulumi:"strategy"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs struct { + // Rolling update max surge + MaxSurge pulumi.IntPtrInput `pulumi:"maxSurge"` + // Rolling update max unavailable + MaxUnavailable pulumi.IntPtrInput `pulumi:"maxUnavailable"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) } -// Rolling update for update strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate { - return v.RollingUpdate - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) +// Rolling update max surge +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) MaxSurge() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *int { + return v.MaxSurge + }).(pulumi.IntPtrOutput) } -// Strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) Strategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *string { - return v.Strategy - }).(pulumi.StringPtrOutput) +// Rolling update max unavailable +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) MaxUnavailable() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *int { + return v.MaxUnavailable + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) } -// Rolling update for update strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate { +// Rolling update max surge +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) MaxSurge() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *int { if v == nil { return nil } - return v.RollingUpdate - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) + return v.MaxSurge + }).(pulumi.IntPtrOutput) } -// Strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyPtrOutput) Strategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy) *string { +// Rolling update max unavailable +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) MaxUnavailable() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *int { if v == nil { return nil } - return v.Strategy - }).(pulumi.StringPtrOutput) + return v.MaxUnavailable + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate struct { - // Rolling update max unavailable - MaxUnavailable *int `pulumi:"maxUnavailable"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork struct { + AciNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider `pulumi:"aciNetworkProvider"` + CalicoNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider `pulumi:"calicoNetworkProvider"` + CanalNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider `pulumi:"canalNetworkProvider"` + FlannelNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider `pulumi:"flannelNetworkProvider"` + Mtu *int `pulumi:"mtu"` + Options map[string]interface{} `pulumi:"options"` + Plugin *string `pulumi:"plugin"` + // Network add-on tolerations + Tolerations []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration `pulumi:"tolerations"` + WeaveNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider `pulumi:"weaveNetworkProvider"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs struct { - // Rolling update max unavailable - MaxUnavailable pulumi.IntPtrInput `pulumi:"maxUnavailable"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs struct { + AciNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput `pulumi:"aciNetworkProvider"` + CalicoNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput `pulumi:"calicoNetworkProvider"` + CanalNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput `pulumi:"canalNetworkProvider"` + FlannelNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput `pulumi:"flannelNetworkProvider"` + Mtu pulumi.IntPtrInput `pulumi:"mtu"` + Options pulumi.MapInput `pulumi:"options"` + Plugin pulumi.StringPtrInput `pulumi:"plugin"` + // Network add-on tolerations + Tolerations ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayInput `pulumi:"tolerations"` + WeaveNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput `pulumi:"weaveNetworkProvider"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(context.Background()) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) AciNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider { + return v.AciNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) CalicoNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider { + return v.CalicoNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) CanalNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider { + return v.CanalNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) FlannelNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider { + return v.FlannelNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) Mtu() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *int { return v.Mtu }).(pulumi.IntPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) Options() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) map[string]interface{} { + return v.Options + }).(pulumi.MapOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) Plugin() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *string { return v.Plugin }).(pulumi.StringPtrOutput) +} + +// Network add-on tolerations +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration { + return v.Tolerations + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) WeaveNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider { + return v.WeaveNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) AciNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider { + if v == nil { + return nil + } + return v.AciNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) CalicoNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider { + if v == nil { + return nil + } + return v.CalicoNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) CanalNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider { + if v == nil { + return nil + } + return v.CanalNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) } -// Rolling update max unavailable -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) MaxUnavailable() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate) *int { - return v.MaxUnavailable - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) FlannelNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider { + if v == nil { + return nil + } + return v.FlannelNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Mtu() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *int { + if v == nil { + return nil + } + return v.Mtu + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Options() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) map[string]interface{} { + if v == nil { + return nil + } + return v.Options + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Plugin() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *string { + if v == nil { + return nil + } + return v.Plugin + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate) ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate { - if v != nil { - return *v +// Network add-on tolerations +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration { + if v == nil { + return nil } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdateOutput) + return v.Tolerations + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) } -// Rolling update max unavailable -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdatePtrOutput) MaxUnavailable() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) WeaveNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider { if v == nil { return nil } - return v.MaxUnavailable - }).(pulumi.IntPtrOutput) + return v.WeaveNetworkProvider + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring struct { - NodeSelector map[string]interface{} `pulumi:"nodeSelector"` - Options map[string]interface{} `pulumi:"options"` - Provider *string `pulumi:"provider"` - Replicas *int `pulumi:"replicas"` - // Monitoring add-on tolerations - Tolerations []ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration `pulumi:"tolerations"` - // Update deployment strategy - UpdateStrategy *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy `pulumi:"updateStrategy"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider struct { + Aep string `pulumi:"aep"` + ApicHosts []string `pulumi:"apicHosts"` + ApicRefreshTickerAdjust *string `pulumi:"apicRefreshTickerAdjust"` + ApicRefreshTime *string `pulumi:"apicRefreshTime"` + ApicSubscriptionDelay *string `pulumi:"apicSubscriptionDelay"` + ApicUserCrt string `pulumi:"apicUserCrt"` + ApicUserKey string `pulumi:"apicUserKey"` + ApicUserName string `pulumi:"apicUserName"` + Capic *string `pulumi:"capic"` + ControllerLogLevel *string `pulumi:"controllerLogLevel"` + DisablePeriodicSnatGlobalInfoSync *string `pulumi:"disablePeriodicSnatGlobalInfoSync"` + DisableWaitForNetwork *string `pulumi:"disableWaitForNetwork"` + DropLogEnable *string `pulumi:"dropLogEnable"` + DurationWaitForNetwork *string `pulumi:"durationWaitForNetwork"` + EnableEndpointSlice *string `pulumi:"enableEndpointSlice"` + EncapType string `pulumi:"encapType"` + EpRegistry *string `pulumi:"epRegistry"` + ExternDynamic string `pulumi:"externDynamic"` + ExternStatic string `pulumi:"externStatic"` + GbpPodSubnet *string `pulumi:"gbpPodSubnet"` + HostAgentLogLevel *string `pulumi:"hostAgentLogLevel"` + ImagePullPolicy *string `pulumi:"imagePullPolicy"` + ImagePullSecret *string `pulumi:"imagePullSecret"` + InfraVlan *string `pulumi:"infraVlan"` + InstallIstio *string `pulumi:"installIstio"` + IstioProfile *string `pulumi:"istioProfile"` + KafkaBrokers []string `pulumi:"kafkaBrokers"` + KafkaClientCrt *string `pulumi:"kafkaClientCrt"` + KafkaClientKey *string `pulumi:"kafkaClientKey"` + KubeApiVlan string `pulumi:"kubeApiVlan"` + L3out string `pulumi:"l3out"` + L3outExternalNetworks []string `pulumi:"l3outExternalNetworks"` + MaxNodesSvcGraph *string `pulumi:"maxNodesSvcGraph"` + McastRangeEnd string `pulumi:"mcastRangeEnd"` + McastRangeStart string `pulumi:"mcastRangeStart"` + MtuHeadRoom *string `pulumi:"mtuHeadRoom"` + MultusDisable *string `pulumi:"multusDisable"` + NoPriorityClass *string `pulumi:"noPriorityClass"` + NodePodIfEnable *string `pulumi:"nodePodIfEnable"` + NodeSubnet string `pulumi:"nodeSubnet"` + NodeSvcSubnet string `pulumi:"nodeSvcSubnet"` + OpflexClientSsl *string `pulumi:"opflexClientSsl"` + OpflexDeviceDeleteTimeout *string `pulumi:"opflexDeviceDeleteTimeout"` + OpflexLogLevel *string `pulumi:"opflexLogLevel"` + OpflexMode *string `pulumi:"opflexMode"` + OpflexServerPort *string `pulumi:"opflexServerPort"` + OverlayVrfName *string `pulumi:"overlayVrfName"` + OvsMemoryLimit *string `pulumi:"ovsMemoryLimit"` + PbrTrackingNonSnat *string `pulumi:"pbrTrackingNonSnat"` + PodSubnetChunkSize *string `pulumi:"podSubnetChunkSize"` + RunGbpContainer *string `pulumi:"runGbpContainer"` + RunOpflexServerContainer *string `pulumi:"runOpflexServerContainer"` + ServiceMonitorInterval *string `pulumi:"serviceMonitorInterval"` + ServiceVlan string `pulumi:"serviceVlan"` + SnatContractScope *string `pulumi:"snatContractScope"` + SnatNamespace *string `pulumi:"snatNamespace"` + SnatPortRangeEnd *string `pulumi:"snatPortRangeEnd"` + SnatPortRangeStart *string `pulumi:"snatPortRangeStart"` + SnatPortsPerNode *string `pulumi:"snatPortsPerNode"` + SriovEnable *string `pulumi:"sriovEnable"` + SubnetDomainName *string `pulumi:"subnetDomainName"` + SystemId string `pulumi:"systemId"` + Tenant *string `pulumi:"tenant"` + Token string `pulumi:"token"` + UseAciAnywhereCrd *string `pulumi:"useAciAnywhereCrd"` + UseAciCniPriorityClass *string `pulumi:"useAciCniPriorityClass"` + UseClusterRole *string `pulumi:"useClusterRole"` + UseHostNetnsVolume *string `pulumi:"useHostNetnsVolume"` + UseOpflexServerVolume *string `pulumi:"useOpflexServerVolume"` + UsePrivilegedContainer *string `pulumi:"usePrivilegedContainer"` + VmmController *string `pulumi:"vmmController"` + VmmDomain *string `pulumi:"vmmDomain"` + VrfName string `pulumi:"vrfName"` + VrfTenant string `pulumi:"vrfTenant"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs struct { - NodeSelector pulumi.MapInput `pulumi:"nodeSelector"` - Options pulumi.MapInput `pulumi:"options"` - Provider pulumi.StringPtrInput `pulumi:"provider"` - Replicas pulumi.IntPtrInput `pulumi:"replicas"` - // Monitoring add-on tolerations - Tolerations ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayInput `pulumi:"tolerations"` - // Update deployment strategy - UpdateStrategy ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput `pulumi:"updateStrategy"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs struct { + Aep pulumi.StringInput `pulumi:"aep"` + ApicHosts pulumi.StringArrayInput `pulumi:"apicHosts"` + ApicRefreshTickerAdjust pulumi.StringPtrInput `pulumi:"apicRefreshTickerAdjust"` + ApicRefreshTime pulumi.StringPtrInput `pulumi:"apicRefreshTime"` + ApicSubscriptionDelay pulumi.StringPtrInput `pulumi:"apicSubscriptionDelay"` + ApicUserCrt pulumi.StringInput `pulumi:"apicUserCrt"` + ApicUserKey pulumi.StringInput `pulumi:"apicUserKey"` + ApicUserName pulumi.StringInput `pulumi:"apicUserName"` + Capic pulumi.StringPtrInput `pulumi:"capic"` + ControllerLogLevel pulumi.StringPtrInput `pulumi:"controllerLogLevel"` + DisablePeriodicSnatGlobalInfoSync pulumi.StringPtrInput `pulumi:"disablePeriodicSnatGlobalInfoSync"` + DisableWaitForNetwork pulumi.StringPtrInput `pulumi:"disableWaitForNetwork"` + DropLogEnable pulumi.StringPtrInput `pulumi:"dropLogEnable"` + DurationWaitForNetwork pulumi.StringPtrInput `pulumi:"durationWaitForNetwork"` + EnableEndpointSlice pulumi.StringPtrInput `pulumi:"enableEndpointSlice"` + EncapType pulumi.StringInput `pulumi:"encapType"` + EpRegistry pulumi.StringPtrInput `pulumi:"epRegistry"` + ExternDynamic pulumi.StringInput `pulumi:"externDynamic"` + ExternStatic pulumi.StringInput `pulumi:"externStatic"` + GbpPodSubnet pulumi.StringPtrInput `pulumi:"gbpPodSubnet"` + HostAgentLogLevel pulumi.StringPtrInput `pulumi:"hostAgentLogLevel"` + ImagePullPolicy pulumi.StringPtrInput `pulumi:"imagePullPolicy"` + ImagePullSecret pulumi.StringPtrInput `pulumi:"imagePullSecret"` + InfraVlan pulumi.StringPtrInput `pulumi:"infraVlan"` + InstallIstio pulumi.StringPtrInput `pulumi:"installIstio"` + IstioProfile pulumi.StringPtrInput `pulumi:"istioProfile"` + KafkaBrokers pulumi.StringArrayInput `pulumi:"kafkaBrokers"` + KafkaClientCrt pulumi.StringPtrInput `pulumi:"kafkaClientCrt"` + KafkaClientKey pulumi.StringPtrInput `pulumi:"kafkaClientKey"` + KubeApiVlan pulumi.StringInput `pulumi:"kubeApiVlan"` + L3out pulumi.StringInput `pulumi:"l3out"` + L3outExternalNetworks pulumi.StringArrayInput `pulumi:"l3outExternalNetworks"` + MaxNodesSvcGraph pulumi.StringPtrInput `pulumi:"maxNodesSvcGraph"` + McastRangeEnd pulumi.StringInput `pulumi:"mcastRangeEnd"` + McastRangeStart pulumi.StringInput `pulumi:"mcastRangeStart"` + MtuHeadRoom pulumi.StringPtrInput `pulumi:"mtuHeadRoom"` + MultusDisable pulumi.StringPtrInput `pulumi:"multusDisable"` + NoPriorityClass pulumi.StringPtrInput `pulumi:"noPriorityClass"` + NodePodIfEnable pulumi.StringPtrInput `pulumi:"nodePodIfEnable"` + NodeSubnet pulumi.StringInput `pulumi:"nodeSubnet"` + NodeSvcSubnet pulumi.StringInput `pulumi:"nodeSvcSubnet"` + OpflexClientSsl pulumi.StringPtrInput `pulumi:"opflexClientSsl"` + OpflexDeviceDeleteTimeout pulumi.StringPtrInput `pulumi:"opflexDeviceDeleteTimeout"` + OpflexLogLevel pulumi.StringPtrInput `pulumi:"opflexLogLevel"` + OpflexMode pulumi.StringPtrInput `pulumi:"opflexMode"` + OpflexServerPort pulumi.StringPtrInput `pulumi:"opflexServerPort"` + OverlayVrfName pulumi.StringPtrInput `pulumi:"overlayVrfName"` + OvsMemoryLimit pulumi.StringPtrInput `pulumi:"ovsMemoryLimit"` + PbrTrackingNonSnat pulumi.StringPtrInput `pulumi:"pbrTrackingNonSnat"` + PodSubnetChunkSize pulumi.StringPtrInput `pulumi:"podSubnetChunkSize"` + RunGbpContainer pulumi.StringPtrInput `pulumi:"runGbpContainer"` + RunOpflexServerContainer pulumi.StringPtrInput `pulumi:"runOpflexServerContainer"` + ServiceMonitorInterval pulumi.StringPtrInput `pulumi:"serviceMonitorInterval"` + ServiceVlan pulumi.StringInput `pulumi:"serviceVlan"` + SnatContractScope pulumi.StringPtrInput `pulumi:"snatContractScope"` + SnatNamespace pulumi.StringPtrInput `pulumi:"snatNamespace"` + SnatPortRangeEnd pulumi.StringPtrInput `pulumi:"snatPortRangeEnd"` + SnatPortRangeStart pulumi.StringPtrInput `pulumi:"snatPortRangeStart"` + SnatPortsPerNode pulumi.StringPtrInput `pulumi:"snatPortsPerNode"` + SriovEnable pulumi.StringPtrInput `pulumi:"sriovEnable"` + SubnetDomainName pulumi.StringPtrInput `pulumi:"subnetDomainName"` + SystemId pulumi.StringInput `pulumi:"systemId"` + Tenant pulumi.StringPtrInput `pulumi:"tenant"` + Token pulumi.StringInput `pulumi:"token"` + UseAciAnywhereCrd pulumi.StringPtrInput `pulumi:"useAciAnywhereCrd"` + UseAciCniPriorityClass pulumi.StringPtrInput `pulumi:"useAciCniPriorityClass"` + UseClusterRole pulumi.StringPtrInput `pulumi:"useClusterRole"` + UseHostNetnsVolume pulumi.StringPtrInput `pulumi:"useHostNetnsVolume"` + UseOpflexServerVolume pulumi.StringPtrInput `pulumi:"useOpflexServerVolume"` + UsePrivilegedContainer pulumi.StringPtrInput `pulumi:"usePrivilegedContainer"` + VmmController pulumi.StringPtrInput `pulumi:"vmmController"` + VmmDomain pulumi.StringPtrInput `pulumi:"vmmDomain"` + VrfName pulumi.StringInput `pulumi:"vrfName"` + VrfTenant pulumi.StringInput `pulumi:"vrfTenant"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) NodeSelector() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) map[string]interface{} { - return v.NodeSelector - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) Aep() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.Aep + }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) Options() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) map[string]interface{} { - return v.Options - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicHosts() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { + return v.ApicHosts + }).(pulumi.StringArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) Provider() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *string { return v.Provider }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicRefreshTickerAdjust() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.ApicRefreshTickerAdjust + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) Replicas() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *int { return v.Replicas }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicRefreshTime() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.ApicRefreshTime + }).(pulumi.StringPtrOutput) } -// Monitoring add-on tolerations -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration { - return v.Tolerations - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicSubscriptionDelay() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.ApicSubscriptionDelay + }).(pulumi.StringPtrOutput) } -// Update deployment strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy { - return v.UpdateStrategy - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicUserCrt() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.ApicUserCrt + }).(pulumi.StringOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicUserKey() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.ApicUserKey + }).(pulumi.StringOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicUserName() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.ApicUserName + }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) Capic() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.Capic + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ControllerLogLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.ControllerLogLevel + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) DisablePeriodicSnatGlobalInfoSync() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.DisablePeriodicSnatGlobalInfoSync + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) NodeSelector() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) map[string]interface{} { - if v == nil { - return nil - } - return v.NodeSelector - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) DisableWaitForNetwork() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.DisableWaitForNetwork + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Options() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) map[string]interface{} { - if v == nil { - return nil - } - return v.Options - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) DropLogEnable() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.DropLogEnable + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Provider() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *string { - if v == nil { - return nil - } - return v.Provider +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) DurationWaitForNetwork() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.DurationWaitForNetwork }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Replicas() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *int { - if v == nil { - return nil - } - return v.Replicas - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) EnableEndpointSlice() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.EnableEndpointSlice + }).(pulumi.StringPtrOutput) } -// Monitoring add-on tolerations -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration { - if v == nil { - return nil - } - return v.Tolerations - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) EncapType() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.EncapType + }).(pulumi.StringOutput) } -// Update deployment strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringPtrOutput) UpdateStrategy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy { - if v == nil { - return nil - } - return v.UpdateStrategy - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) EpRegistry() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.EpRegistry + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ExternDynamic() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.ExternDynamic + }).(pulumi.StringOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ExternStatic() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.ExternStatic + }).(pulumi.StringOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) GbpPodSubnet() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.GbpPodSubnet + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) HostAgentLogLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.HostAgentLogLevel + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ImagePullPolicy() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.ImagePullPolicy + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ImagePullSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.ImagePullSecret + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) InfraVlan() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.InfraVlan + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration struct { - Effect *string `pulumi:"effect"` - Key string `pulumi:"key"` - Operator *string `pulumi:"operator"` - Seconds *int `pulumi:"seconds"` - Value *string `pulumi:"value"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) InstallIstio() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.InstallIstio + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationInput interface { - pulumi.Input +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) IstioProfile() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.IstioProfile + }).(pulumi.StringPtrOutput) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) KafkaBrokers() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { + return v.KafkaBrokers + }).(pulumi.StringArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs struct { - Effect pulumi.StringPtrInput `pulumi:"effect"` - Key pulumi.StringInput `pulumi:"key"` - Operator pulumi.StringPtrInput `pulumi:"operator"` - Seconds pulumi.IntPtrInput `pulumi:"seconds"` - Value pulumi.StringPtrInput `pulumi:"value"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) KafkaClientCrt() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.KafkaClientCrt + }).(pulumi.StringPtrOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) KafkaClientKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.KafkaClientKey + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) KubeApiVlan() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.KubeApiVlan + }).(pulumi.StringOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) L3out() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.L3out + }).(pulumi.StringOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs{...} } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayInput interface { - pulumi.Input +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) L3outExternalNetworks() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { + return v.L3outExternalNetworks + }).(pulumi.StringArrayOutput) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) MaxNodesSvcGraph() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.MaxNodesSvcGraph + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationInput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) McastRangeEnd() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.McastRangeEnd + }).(pulumi.StringOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) McastRangeStart() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.McastRangeStart + }).(pulumi.StringOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) MtuHeadRoom() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.MtuHeadRoom + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) MultusDisable() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.MultusDisable + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) NoPriorityClass() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.NoPriorityClass + }).(pulumi.StringPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) NodePodIfEnable() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.NodePodIfEnable + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) NodeSubnet() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.NodeSubnet + }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) NodeSvcSubnet() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.NodeSvcSubnet + }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) *string { - return v.Effect +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexClientSsl() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.OpflexClientSsl }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) string { return v.Key }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexDeviceDeleteTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.OpflexDeviceDeleteTimeout + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) *string { - return v.Operator +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexLogLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.OpflexLogLevel }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Seconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) *int { - return v.Seconds - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexMode() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.OpflexMode + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) Value() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration) *string { - return v.Value +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexServerPort() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.OpflexServerPort }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OverlayVrfName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.OverlayVrfName + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OvsMemoryLimit() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.OvsMemoryLimit + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) PbrTrackingNonSnat() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.PbrTrackingNonSnat + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration { - return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) PodSubnetChunkSize() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.PodSubnetChunkSize + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy struct { - // Rolling update for update strategy - RollingUpdate *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate `pulumi:"rollingUpdate"` - // Strategy - Strategy *string `pulumi:"strategy"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) RunGbpContainer() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.RunGbpContainer + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyInput interface { - pulumi.Input +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) RunOpflexServerContainer() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.RunOpflexServerContainer + }).(pulumi.StringPtrOutput) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ServiceMonitorInterval() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.ServiceMonitorInterval + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs struct { - // Rolling update for update strategy - RollingUpdate ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput `pulumi:"rollingUpdate"` - // Strategy - Strategy pulumi.StringPtrInput `pulumi:"strategy"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ServiceVlan() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.ServiceVlan + }).(pulumi.StringOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatContractScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.SnatContractScope + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatNamespace() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.SnatNamespace + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatPortRangeEnd() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.SnatPortRangeEnd + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatPortRangeStart() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.SnatPortRangeStart + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatPortsPerNode() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.SnatPortsPerNode + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput interface { - pulumi.Input +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SriovEnable() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.SriovEnable + }).(pulumi.StringPtrOutput) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SubnetDomainName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.SubnetDomainName + }).(pulumi.StringPtrOutput) } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SystemId() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.SystemId + }).(pulumi.StringOutput) +} -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType)(v) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) Tenant() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.Tenant + }).(pulumi.StringPtrOutput) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) Token() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.Token + }).(pulumi.StringOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseAciAnywhereCrd() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.UseAciAnywhereCrd + }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseAciCniPriorityClass() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.UseAciCniPriorityClass + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseClusterRole() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.UseClusterRole + }).(pulumi.StringPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseHostNetnsVolume() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.UseHostNetnsVolume + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseOpflexServerVolume() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.UseOpflexServerVolume + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UsePrivilegedContainer() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.UsePrivilegedContainer + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) VmmController() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.VmmController + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) VmmDomain() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + return v.VmmDomain + }).(pulumi.StringPtrOutput) } -// Rolling update for update strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate { - return v.RollingUpdate - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) VrfName() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.VrfName + }).(pulumi.StringOutput) } -// Strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) Strategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *string { - return v.Strategy - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) VrfTenant() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { + return v.VrfTenant + }).(pulumi.StringOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) } -// Rolling update for update strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) RollingUpdate() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Aep() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.RollingUpdate - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) + return &v.Aep + }).(pulumi.StringPtrOutput) } -// Strategy -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyPtrOutput) Strategy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicHosts() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { if v == nil { return nil } - return v.Strategy - }).(pulumi.StringPtrOutput) + return v.ApicHosts + }).(pulumi.StringArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate struct { - // Rolling update max surge - MaxSurge *int `pulumi:"maxSurge"` - // Rolling update max unavailable - MaxUnavailable *int `pulumi:"maxUnavailable"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicRefreshTickerAdjust() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.ApicRefreshTickerAdjust + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicRefreshTime() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.ApicRefreshTime + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs struct { - // Rolling update max surge - MaxSurge pulumi.IntPtrInput `pulumi:"maxSurge"` - // Rolling update max unavailable - MaxUnavailable pulumi.IntPtrInput `pulumi:"maxUnavailable"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicSubscriptionDelay() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.ApicSubscriptionDelay + }).(pulumi.StringPtrOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicUserCrt() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.ApicUserCrt + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicUserKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.ApicUserKey + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicUserName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.ApicUserName + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Capic() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.Capic + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ControllerLogLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.ControllerLogLevel + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) DisablePeriodicSnatGlobalInfoSync() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.DisablePeriodicSnatGlobalInfoSync + }).(pulumi.StringPtrOutput) } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) DisableWaitForNetwork() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.DisableWaitForNetwork + }).(pulumi.StringPtrOutput) +} -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType)(v) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) DropLogEnable() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.DropLogEnable + }).(pulumi.StringPtrOutput) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) DurationWaitForNetwork() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.DurationWaitForNetwork + }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) EnableEndpointSlice() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.EnableEndpointSlice + }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) EncapType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.EncapType + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) EpRegistry() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.EpRegistry + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ExternDynamic() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.ExternDynamic + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ExternStatic() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.ExternStatic + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) GbpPodSubnet() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.GbpPodSubnet + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) HostAgentLogLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.HostAgentLogLevel + }).(pulumi.StringPtrOutput) } -// Rolling update max surge -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) MaxSurge() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *int { - return v.MaxSurge - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ImagePullPolicy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.ImagePullPolicy + }).(pulumi.StringPtrOutput) } -// Rolling update max unavailable -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) MaxUnavailable() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *int { - return v.MaxUnavailable - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ImagePullSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.ImagePullSecret + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) InfraVlan() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.InfraVlan + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) InstallIstio() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.InstallIstio + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) IstioProfile() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.IstioProfile + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate { - if v != nil { - return *v +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) KafkaBrokers() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { + if v == nil { + return nil } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateOutput) + return v.KafkaBrokers + }).(pulumi.StringArrayOutput) } -// Rolling update max surge -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) MaxSurge() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) KafkaClientCrt() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.MaxSurge - }).(pulumi.IntPtrOutput) + return v.KafkaClientCrt + }).(pulumi.StringPtrOutput) } -// Rolling update max unavailable -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdatePtrOutput) MaxUnavailable() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) KafkaClientKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.MaxUnavailable - }).(pulumi.IntPtrOutput) + return v.KafkaClientKey + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork struct { - AciNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider `pulumi:"aciNetworkProvider"` - CalicoNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider `pulumi:"calicoNetworkProvider"` - CanalNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider `pulumi:"canalNetworkProvider"` - FlannelNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider `pulumi:"flannelNetworkProvider"` - Mtu *int `pulumi:"mtu"` - Options map[string]interface{} `pulumi:"options"` - Plugin *string `pulumi:"plugin"` - // Network add-on tolerations - Tolerations []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration `pulumi:"tolerations"` - WeaveNetworkProvider *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider `pulumi:"weaveNetworkProvider"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) KubeApiVlan() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.KubeApiVlan + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) L3out() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.L3out + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs struct { - AciNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput `pulumi:"aciNetworkProvider"` - CalicoNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput `pulumi:"calicoNetworkProvider"` - CanalNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput `pulumi:"canalNetworkProvider"` - FlannelNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput `pulumi:"flannelNetworkProvider"` - Mtu pulumi.IntPtrInput `pulumi:"mtu"` - Options pulumi.MapInput `pulumi:"options"` - Plugin pulumi.StringPtrInput `pulumi:"plugin"` - // Network add-on tolerations - Tolerations ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayInput `pulumi:"tolerations"` - WeaveNetworkProvider ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput `pulumi:"weaveNetworkProvider"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) L3outExternalNetworks() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { + if v == nil { + return nil + } + return v.L3outExternalNetworks + }).(pulumi.StringArrayOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) MaxNodesSvcGraph() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.MaxNodesSvcGraph + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) McastRangeEnd() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.McastRangeEnd + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) McastRangeStart() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.McastRangeStart + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) MtuHeadRoom() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.MtuHeadRoom + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) MultusDisable() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.MultusDisable + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrInput interface { - pulumi.Input +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) NoPriorityClass() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.NoPriorityClass + }).(pulumi.StringPtrOutput) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) NodePodIfEnable() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.NodePodIfEnable + }).(pulumi.StringPtrOutput) } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) NodeSubnet() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.NodeSubnet + }).(pulumi.StringPtrOutput) +} -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType)(v) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) NodeSvcSubnet() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.NodeSvcSubnet + }).(pulumi.StringPtrOutput) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexClientSsl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.OpflexClientSsl + }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexDeviceDeleteTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.OpflexDeviceDeleteTimeout + }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexLogLevel() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.OpflexLogLevel + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexMode() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.OpflexMode + }).(pulumi.StringPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexServerPort() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.OpflexServerPort + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OverlayVrfName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.OverlayVrfName + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OvsMemoryLimit() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.OvsMemoryLimit + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) PbrTrackingNonSnat() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.PbrTrackingNonSnat + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) PodSubnetChunkSize() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.PodSubnetChunkSize + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) AciNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider { - return v.AciNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) RunGbpContainer() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.RunGbpContainer + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) CalicoNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider { - return v.CalicoNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) RunOpflexServerContainer() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.RunOpflexServerContainer + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) CanalNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider { - return v.CanalNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ServiceMonitorInterval() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.ServiceMonitorInterval + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) FlannelNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider { - return v.FlannelNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ServiceVlan() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.ServiceVlan + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) Mtu() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *int { return v.Mtu }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatContractScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.SnatContractScope + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) Options() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) map[string]interface{} { - return v.Options - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatNamespace() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.SnatNamespace + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) Plugin() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *string { return v.Plugin }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatPortRangeEnd() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.SnatPortRangeEnd + }).(pulumi.StringPtrOutput) } -// Network add-on tolerations -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration { - return v.Tolerations - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatPortRangeStart() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.SnatPortRangeStart + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) WeaveNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider { - return v.WeaveNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatPortsPerNode() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.SnatPortsPerNode + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SriovEnable() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.SriovEnable + }).(pulumi.StringPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SubnetDomainName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.SubnetDomainName + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SystemId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.SystemId + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Tenant() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return v.Tenant + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Token() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil + } + return &v.Token + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork { - if v != nil { - return *v +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseAciAnywhereCrd() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { + if v == nil { + return nil } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkOutput) + return v.UseAciAnywhereCrd + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) AciNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseAciCniPriorityClass() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.AciNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) + return v.UseAciCniPriorityClass + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) CalicoNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseClusterRole() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.CalicoNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) + return v.UseClusterRole + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) CanalNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseHostNetnsVolume() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.CanalNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) + return v.UseHostNetnsVolume + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) FlannelNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseOpflexServerVolume() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.FlannelNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) + return v.UseOpflexServerVolume + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Mtu() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UsePrivilegedContainer() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.Mtu - }).(pulumi.IntPtrOutput) + return v.UsePrivilegedContainer + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Options() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) map[string]interface{} { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) VmmController() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.Options - }).(pulumi.MapOutput) + return v.VmmController + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Plugin() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) VmmDomain() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.Plugin + return v.VmmDomain }).(pulumi.StringPtrOutput) } -// Network add-on tolerations -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) Tolerations() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) VrfName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.Tolerations - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) + return &v.VrfName + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkPtrOutput) WeaveNetworkProvider() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) VrfTenant() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { if v == nil { return nil } - return v.WeaveNetworkProvider - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) + return &v.VrfTenant + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider struct { - Aep string `pulumi:"aep"` - ApicHosts []string `pulumi:"apicHosts"` - ApicRefreshTickerAdjust *string `pulumi:"apicRefreshTickerAdjust"` - ApicRefreshTime *string `pulumi:"apicRefreshTime"` - ApicSubscriptionDelay *string `pulumi:"apicSubscriptionDelay"` - ApicUserCrt string `pulumi:"apicUserCrt"` - ApicUserKey string `pulumi:"apicUserKey"` - ApicUserName string `pulumi:"apicUserName"` - Capic *string `pulumi:"capic"` - ControllerLogLevel *string `pulumi:"controllerLogLevel"` - DisablePeriodicSnatGlobalInfoSync *string `pulumi:"disablePeriodicSnatGlobalInfoSync"` - DisableWaitForNetwork *string `pulumi:"disableWaitForNetwork"` - DropLogEnable *string `pulumi:"dropLogEnable"` - DurationWaitForNetwork *string `pulumi:"durationWaitForNetwork"` - EnableEndpointSlice *string `pulumi:"enableEndpointSlice"` - EncapType string `pulumi:"encapType"` - EpRegistry *string `pulumi:"epRegistry"` - ExternDynamic string `pulumi:"externDynamic"` - ExternStatic string `pulumi:"externStatic"` - GbpPodSubnet *string `pulumi:"gbpPodSubnet"` - HostAgentLogLevel *string `pulumi:"hostAgentLogLevel"` - ImagePullPolicy *string `pulumi:"imagePullPolicy"` - ImagePullSecret *string `pulumi:"imagePullSecret"` - InfraVlan *string `pulumi:"infraVlan"` - InstallIstio *string `pulumi:"installIstio"` - IstioProfile *string `pulumi:"istioProfile"` - KafkaBrokers []string `pulumi:"kafkaBrokers"` - KafkaClientCrt *string `pulumi:"kafkaClientCrt"` - KafkaClientKey *string `pulumi:"kafkaClientKey"` - KubeApiVlan string `pulumi:"kubeApiVlan"` - L3out string `pulumi:"l3out"` - L3outExternalNetworks []string `pulumi:"l3outExternalNetworks"` - MaxNodesSvcGraph *string `pulumi:"maxNodesSvcGraph"` - McastRangeEnd string `pulumi:"mcastRangeEnd"` - McastRangeStart string `pulumi:"mcastRangeStart"` - MtuHeadRoom *string `pulumi:"mtuHeadRoom"` - MultusDisable *string `pulumi:"multusDisable"` - NoPriorityClass *string `pulumi:"noPriorityClass"` - NodePodIfEnable *string `pulumi:"nodePodIfEnable"` - NodeSubnet string `pulumi:"nodeSubnet"` - NodeSvcSubnet string `pulumi:"nodeSvcSubnet"` - OpflexClientSsl *string `pulumi:"opflexClientSsl"` - OpflexDeviceDeleteTimeout *string `pulumi:"opflexDeviceDeleteTimeout"` - OpflexLogLevel *string `pulumi:"opflexLogLevel"` - OpflexMode *string `pulumi:"opflexMode"` - OpflexServerPort *string `pulumi:"opflexServerPort"` - OverlayVrfName *string `pulumi:"overlayVrfName"` - OvsMemoryLimit *string `pulumi:"ovsMemoryLimit"` - PbrTrackingNonSnat *string `pulumi:"pbrTrackingNonSnat"` - PodSubnetChunkSize *string `pulumi:"podSubnetChunkSize"` - RunGbpContainer *string `pulumi:"runGbpContainer"` - RunOpflexServerContainer *string `pulumi:"runOpflexServerContainer"` - ServiceMonitorInterval *string `pulumi:"serviceMonitorInterval"` - ServiceVlan string `pulumi:"serviceVlan"` - SnatContractScope *string `pulumi:"snatContractScope"` - SnatNamespace *string `pulumi:"snatNamespace"` - SnatPortRangeEnd *string `pulumi:"snatPortRangeEnd"` - SnatPortRangeStart *string `pulumi:"snatPortRangeStart"` - SnatPortsPerNode *string `pulumi:"snatPortsPerNode"` - SriovEnable *string `pulumi:"sriovEnable"` - SubnetDomainName *string `pulumi:"subnetDomainName"` - SystemId string `pulumi:"systemId"` - Tenant *string `pulumi:"tenant"` - Token string `pulumi:"token"` - UseAciAnywhereCrd *string `pulumi:"useAciAnywhereCrd"` - UseAciCniPriorityClass *string `pulumi:"useAciCniPriorityClass"` - UseClusterRole *string `pulumi:"useClusterRole"` - UseHostNetnsVolume *string `pulumi:"useHostNetnsVolume"` - UseOpflexServerVolume *string `pulumi:"useOpflexServerVolume"` - UsePrivilegedContainer *string `pulumi:"usePrivilegedContainer"` - VmmController *string `pulumi:"vmmController"` - VmmDomain *string `pulumi:"vmmDomain"` - VrfName string `pulumi:"vrfName"` - VrfTenant string `pulumi:"vrfTenant"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider struct { + CloudProvider *string `pulumi:"cloudProvider"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs struct { - Aep pulumi.StringInput `pulumi:"aep"` - ApicHosts pulumi.StringArrayInput `pulumi:"apicHosts"` - ApicRefreshTickerAdjust pulumi.StringPtrInput `pulumi:"apicRefreshTickerAdjust"` - ApicRefreshTime pulumi.StringPtrInput `pulumi:"apicRefreshTime"` - ApicSubscriptionDelay pulumi.StringPtrInput `pulumi:"apicSubscriptionDelay"` - ApicUserCrt pulumi.StringInput `pulumi:"apicUserCrt"` - ApicUserKey pulumi.StringInput `pulumi:"apicUserKey"` - ApicUserName pulumi.StringInput `pulumi:"apicUserName"` - Capic pulumi.StringPtrInput `pulumi:"capic"` - ControllerLogLevel pulumi.StringPtrInput `pulumi:"controllerLogLevel"` - DisablePeriodicSnatGlobalInfoSync pulumi.StringPtrInput `pulumi:"disablePeriodicSnatGlobalInfoSync"` - DisableWaitForNetwork pulumi.StringPtrInput `pulumi:"disableWaitForNetwork"` - DropLogEnable pulumi.StringPtrInput `pulumi:"dropLogEnable"` - DurationWaitForNetwork pulumi.StringPtrInput `pulumi:"durationWaitForNetwork"` - EnableEndpointSlice pulumi.StringPtrInput `pulumi:"enableEndpointSlice"` - EncapType pulumi.StringInput `pulumi:"encapType"` - EpRegistry pulumi.StringPtrInput `pulumi:"epRegistry"` - ExternDynamic pulumi.StringInput `pulumi:"externDynamic"` - ExternStatic pulumi.StringInput `pulumi:"externStatic"` - GbpPodSubnet pulumi.StringPtrInput `pulumi:"gbpPodSubnet"` - HostAgentLogLevel pulumi.StringPtrInput `pulumi:"hostAgentLogLevel"` - ImagePullPolicy pulumi.StringPtrInput `pulumi:"imagePullPolicy"` - ImagePullSecret pulumi.StringPtrInput `pulumi:"imagePullSecret"` - InfraVlan pulumi.StringPtrInput `pulumi:"infraVlan"` - InstallIstio pulumi.StringPtrInput `pulumi:"installIstio"` - IstioProfile pulumi.StringPtrInput `pulumi:"istioProfile"` - KafkaBrokers pulumi.StringArrayInput `pulumi:"kafkaBrokers"` - KafkaClientCrt pulumi.StringPtrInput `pulumi:"kafkaClientCrt"` - KafkaClientKey pulumi.StringPtrInput `pulumi:"kafkaClientKey"` - KubeApiVlan pulumi.StringInput `pulumi:"kubeApiVlan"` - L3out pulumi.StringInput `pulumi:"l3out"` - L3outExternalNetworks pulumi.StringArrayInput `pulumi:"l3outExternalNetworks"` - MaxNodesSvcGraph pulumi.StringPtrInput `pulumi:"maxNodesSvcGraph"` - McastRangeEnd pulumi.StringInput `pulumi:"mcastRangeEnd"` - McastRangeStart pulumi.StringInput `pulumi:"mcastRangeStart"` - MtuHeadRoom pulumi.StringPtrInput `pulumi:"mtuHeadRoom"` - MultusDisable pulumi.StringPtrInput `pulumi:"multusDisable"` - NoPriorityClass pulumi.StringPtrInput `pulumi:"noPriorityClass"` - NodePodIfEnable pulumi.StringPtrInput `pulumi:"nodePodIfEnable"` - NodeSubnet pulumi.StringInput `pulumi:"nodeSubnet"` - NodeSvcSubnet pulumi.StringInput `pulumi:"nodeSvcSubnet"` - OpflexClientSsl pulumi.StringPtrInput `pulumi:"opflexClientSsl"` - OpflexDeviceDeleteTimeout pulumi.StringPtrInput `pulumi:"opflexDeviceDeleteTimeout"` - OpflexLogLevel pulumi.StringPtrInput `pulumi:"opflexLogLevel"` - OpflexMode pulumi.StringPtrInput `pulumi:"opflexMode"` - OpflexServerPort pulumi.StringPtrInput `pulumi:"opflexServerPort"` - OverlayVrfName pulumi.StringPtrInput `pulumi:"overlayVrfName"` - OvsMemoryLimit pulumi.StringPtrInput `pulumi:"ovsMemoryLimit"` - PbrTrackingNonSnat pulumi.StringPtrInput `pulumi:"pbrTrackingNonSnat"` - PodSubnetChunkSize pulumi.StringPtrInput `pulumi:"podSubnetChunkSize"` - RunGbpContainer pulumi.StringPtrInput `pulumi:"runGbpContainer"` - RunOpflexServerContainer pulumi.StringPtrInput `pulumi:"runOpflexServerContainer"` - ServiceMonitorInterval pulumi.StringPtrInput `pulumi:"serviceMonitorInterval"` - ServiceVlan pulumi.StringInput `pulumi:"serviceVlan"` - SnatContractScope pulumi.StringPtrInput `pulumi:"snatContractScope"` - SnatNamespace pulumi.StringPtrInput `pulumi:"snatNamespace"` - SnatPortRangeEnd pulumi.StringPtrInput `pulumi:"snatPortRangeEnd"` - SnatPortRangeStart pulumi.StringPtrInput `pulumi:"snatPortRangeStart"` - SnatPortsPerNode pulumi.StringPtrInput `pulumi:"snatPortsPerNode"` - SriovEnable pulumi.StringPtrInput `pulumi:"sriovEnable"` - SubnetDomainName pulumi.StringPtrInput `pulumi:"subnetDomainName"` - SystemId pulumi.StringInput `pulumi:"systemId"` - Tenant pulumi.StringPtrInput `pulumi:"tenant"` - Token pulumi.StringInput `pulumi:"token"` - UseAciAnywhereCrd pulumi.StringPtrInput `pulumi:"useAciAnywhereCrd"` - UseAciCniPriorityClass pulumi.StringPtrInput `pulumi:"useAciCniPriorityClass"` - UseClusterRole pulumi.StringPtrInput `pulumi:"useClusterRole"` - UseHostNetnsVolume pulumi.StringPtrInput `pulumi:"useHostNetnsVolume"` - UseOpflexServerVolume pulumi.StringPtrInput `pulumi:"useOpflexServerVolume"` - UsePrivilegedContainer pulumi.StringPtrInput `pulumi:"usePrivilegedContainer"` - VmmController pulumi.StringPtrInput `pulumi:"vmmController"` - VmmDomain pulumi.StringPtrInput `pulumi:"vmmDomain"` - VrfName pulumi.StringInput `pulumi:"vrfName"` - VrfTenant pulumi.StringInput `pulumi:"vrfTenant"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs struct { + CloudProvider pulumi.StringPtrInput `pulumi:"cloudProvider"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) Aep() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.Aep - }).(pulumi.StringOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicHosts() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { - return v.ApicHosts - }).(pulumi.StringArrayOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicRefreshTickerAdjust() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.ApicRefreshTickerAdjust - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicRefreshTime() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.ApicRefreshTime - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicSubscriptionDelay() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.ApicSubscriptionDelay - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicUserCrt() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.ApicUserCrt - }).(pulumi.StringOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicUserKey() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.ApicUserKey - }).(pulumi.StringOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ApicUserName() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.ApicUserName - }).(pulumi.StringOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) Capic() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.Capic - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ControllerLogLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.ControllerLogLevel - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) DisablePeriodicSnatGlobalInfoSync() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.DisablePeriodicSnatGlobalInfoSync - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) DisableWaitForNetwork() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.DisableWaitForNetwork - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) DropLogEnable() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.DropLogEnable - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) DurationWaitForNetwork() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.DurationWaitForNetwork - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) EnableEndpointSlice() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.EnableEndpointSlice - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) EncapType() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.EncapType - }).(pulumi.StringOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) EpRegistry() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.EpRegistry +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) CloudProvider() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider) *string { + return v.CloudProvider }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ExternDynamic() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.ExternDynamic - }).(pulumi.StringOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ExternStatic() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.ExternStatic - }).(pulumi.StringOutput) -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput struct{ *pulumi.OutputState } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) GbpPodSubnet() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.GbpPodSubnet - }).(pulumi.StringPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) HostAgentLogLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.HostAgentLogLevel - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ImagePullPolicy() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.ImagePullPolicy - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ImagePullSecret() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.ImagePullSecret - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) InfraVlan() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.InfraVlan +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) CloudProvider() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider) *string { + if v == nil { + return nil + } + return v.CloudProvider }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) InstallIstio() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.InstallIstio - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider struct { + Iface *string `pulumi:"iface"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) IstioProfile() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.IstioProfile - }).(pulumi.StringPtrOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) KafkaBrokers() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { - return v.KafkaBrokers - }).(pulumi.StringArrayOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) KafkaClientCrt() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.KafkaClientCrt - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs struct { + Iface pulumi.StringPtrInput `pulumi:"iface"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) KafkaClientKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.KafkaClientKey - }).(pulumi.StringPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) KubeApiVlan() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.KubeApiVlan - }).(pulumi.StringOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) L3out() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.L3out - }).(pulumi.StringOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) L3outExternalNetworks() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { - return v.L3outExternalNetworks - }).(pulumi.StringArrayOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) MaxNodesSvcGraph() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.MaxNodesSvcGraph - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) McastRangeEnd() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.McastRangeEnd - }).(pulumi.StringOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) McastRangeStart() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.McastRangeStart - }).(pulumi.StringOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) MtuHeadRoom() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.MtuHeadRoom - }).(pulumi.StringPtrOutput) -} +type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) MultusDisable() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.MultusDisable - }).(pulumi.StringPtrOutput) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType)(v) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) NoPriorityClass() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.NoPriorityClass - }).(pulumi.StringPtrOutput) +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) NodePodIfEnable() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.NodePodIfEnable - }).(pulumi.StringPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) NodeSubnet() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.NodeSubnet - }).(pulumi.StringOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) NodeSvcSubnet() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.NodeSvcSubnet - }).(pulumi.StringOutput) -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput struct{ *pulumi.OutputState } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexClientSsl() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.OpflexClientSsl - }).(pulumi.StringPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexDeviceDeleteTimeout() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.OpflexDeviceDeleteTimeout - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexLogLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.OpflexLogLevel - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexMode() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.OpflexMode - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OpflexServerPort() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.OpflexServerPort - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OverlayVrfName() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.OverlayVrfName +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) Iface() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider) *string { + return v.Iface }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) OvsMemoryLimit() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.OvsMemoryLimit - }).(pulumi.StringPtrOutput) -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput struct{ *pulumi.OutputState } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) PbrTrackingNonSnat() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.PbrTrackingNonSnat - }).(pulumi.StringPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) PodSubnetChunkSize() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.PodSubnetChunkSize - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) RunGbpContainer() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.RunGbpContainer - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) RunOpflexServerContainer() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.RunOpflexServerContainer - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ServiceMonitorInterval() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.ServiceMonitorInterval +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) Iface() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider) *string { + if v == nil { + return nil + } + return v.Iface }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) ServiceVlan() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.ServiceVlan - }).(pulumi.StringOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider struct { + Iface *string `pulumi:"iface"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatContractScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.SnatContractScope - }).(pulumi.StringPtrOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatNamespace() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.SnatNamespace - }).(pulumi.StringPtrOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatPortRangeEnd() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.SnatPortRangeEnd - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs struct { + Iface pulumi.StringPtrInput `pulumi:"iface"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatPortRangeStart() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.SnatPortRangeStart - }).(pulumi.StringPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SnatPortsPerNode() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.SnatPortsPerNode - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SriovEnable() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.SriovEnable - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SubnetDomainName() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.SubnetDomainName - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) SystemId() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.SystemId - }).(pulumi.StringOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) Tenant() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.Tenant - }).(pulumi.StringPtrOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) Token() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.Token - }).(pulumi.StringOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseAciAnywhereCrd() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.UseAciAnywhereCrd - }).(pulumi.StringPtrOutput) +type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs + +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType)(v) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseAciCniPriorityClass() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.UseAciCniPriorityClass - }).(pulumi.StringPtrOutput) +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseClusterRole() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.UseClusterRole - }).(pulumi.StringPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseHostNetnsVolume() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.UseHostNetnsVolume - }).(pulumi.StringPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UseOpflexServerVolume() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.UseOpflexServerVolume - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) UsePrivilegedContainer() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.UsePrivilegedContainer - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) VmmController() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.VmmController - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) VmmDomain() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - return v.VmmDomain - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) VrfName() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.VrfName - }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) VrfTenant() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) string { - return v.VrfTenant - }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) Iface() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider) *string { + return v.Iface + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Aep() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) Iface() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider) *string { if v == nil { return nil } - return &v.Aep + return v.Iface }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicHosts() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { - if v == nil { - return nil - } - return v.ApicHosts - }).(pulumi.StringArrayOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration struct { + Effect *string `pulumi:"effect"` + Key string `pulumi:"key"` + Operator *string `pulumi:"operator"` + Seconds *int `pulumi:"seconds"` + Value *string `pulumi:"value"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicRefreshTickerAdjust() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.ApicRefreshTickerAdjust - }).(pulumi.StringPtrOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicRefreshTime() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.ApicRefreshTime - }).(pulumi.StringPtrOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicSubscriptionDelay() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.ApicSubscriptionDelay - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs struct { + Effect pulumi.StringPtrInput `pulumi:"effect"` + Key pulumi.StringInput `pulumi:"key"` + Operator pulumi.StringPtrInput `pulumi:"operator"` + Seconds pulumi.IntPtrInput `pulumi:"seconds"` + Value pulumi.StringPtrInput `pulumi:"value"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicUserCrt() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.ApicUserCrt - }).(pulumi.StringPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicUserKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.ApicUserKey - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ApicUserName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.ApicUserName - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Capic() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.Capic - }).(pulumi.StringPtrOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs{...} } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ControllerLogLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.ControllerLogLevel - }).(pulumi.StringPtrOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) DisablePeriodicSnatGlobalInfoSync() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.DisablePeriodicSnatGlobalInfoSync - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationInput + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) DisableWaitForNetwork() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.DisableWaitForNetwork - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) DropLogEnable() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.DropLogEnable - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) DurationWaitForNetwork() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.DurationWaitForNetwork - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) EnableEndpointSlice() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.EnableEndpointSlice - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) EncapType() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.EncapType - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) EpRegistry() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.EpRegistry +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) *string { + return v.Effect }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ExternDynamic() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.ExternDynamic - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) string { return v.Key }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ExternStatic() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.ExternStatic +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) *string { + return v.Operator }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) GbpPodSubnet() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.GbpPodSubnet - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Seconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) HostAgentLogLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.HostAgentLogLevel - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Value() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) *string { return v.Value }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ImagePullPolicy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.ImagePullPolicy - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ImagePullSecret() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.ImagePullSecret - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) InfraVlan() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.InfraVlan - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) InstallIstio() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.InstallIstio - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration { + return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) IstioProfile() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.IstioProfile - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider struct { + Password string `pulumi:"password"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) KafkaBrokers() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { - if v == nil { - return nil - } - return v.KafkaBrokers - }).(pulumi.StringArrayOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) KafkaClientCrt() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.KafkaClientCrt - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs struct { + Password pulumi.StringInput `pulumi:"password"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) KafkaClientKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.KafkaClientKey - }).(pulumi.StringPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) KubeApiVlan() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.KubeApiVlan - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) L3out() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.L3out - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) L3outExternalNetworks() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) []string { - if v == nil { - return nil - } - return v.L3outExternalNetworks - }).(pulumi.StringArrayOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) MaxNodesSvcGraph() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.MaxNodesSvcGraph - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) McastRangeEnd() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.McastRangeEnd - }).(pulumi.StringPtrOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) McastRangeStart() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.McastRangeStart - }).(pulumi.StringPtrOutput) +type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs + +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType)(v) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) MtuHeadRoom() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.MtuHeadRoom - }).(pulumi.StringPtrOutput) +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) MultusDisable() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.MultusDisable - }).(pulumi.StringPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) NoPriorityClass() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.NoPriorityClass - }).(pulumi.StringPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) NodePodIfEnable() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.NodePodIfEnable - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) NodeSubnet() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.NodeSubnet - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) NodeSvcSubnet() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.NodeSvcSubnet - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexClientSsl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.OpflexClientSsl - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexDeviceDeleteTimeout() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.OpflexDeviceDeleteTimeout - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexLogLevel() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.OpflexLogLevel - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) Password() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider) string { + return v.Password + }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexMode() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.OpflexMode - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OpflexServerPort() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.OpflexServerPort - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OverlayVrfName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.OverlayVrfName - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) OvsMemoryLimit() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider { + if v != nil { + return *v } - return v.OvsMemoryLimit - }).(pulumi.StringPtrOutput) + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) PbrTrackingNonSnat() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) Password() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider) *string { if v == nil { return nil } - return v.PbrTrackingNonSnat + return &v.Password }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) PodSubnetChunkSize() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.PodSubnetChunkSize - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode struct { + Address string `pulumi:"address"` + DockerSocket *string `pulumi:"dockerSocket"` + HostnameOverride *string `pulumi:"hostnameOverride"` + InternalAddress *string `pulumi:"internalAddress"` + // Labels for the cluster template (map) + Labels map[string]interface{} `pulumi:"labels"` + NodeId *string `pulumi:"nodeId"` + Port *string `pulumi:"port"` + Roles []string `pulumi:"roles"` + SshAgentAuth *bool `pulumi:"sshAgentAuth"` + SshKey *string `pulumi:"sshKey"` + SshKeyPath *string `pulumi:"sshKeyPath"` + User string `pulumi:"user"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) RunGbpContainer() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.RunGbpContainer - }).(pulumi.StringPtrOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) RunOpflexServerContainer() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.RunOpflexServerContainer - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs struct { + Address pulumi.StringInput `pulumi:"address"` + DockerSocket pulumi.StringPtrInput `pulumi:"dockerSocket"` + HostnameOverride pulumi.StringPtrInput `pulumi:"hostnameOverride"` + InternalAddress pulumi.StringPtrInput `pulumi:"internalAddress"` + // Labels for the cluster template (map) + Labels pulumi.MapInput `pulumi:"labels"` + NodeId pulumi.StringPtrInput `pulumi:"nodeId"` + Port pulumi.StringPtrInput `pulumi:"port"` + Roles pulumi.StringArrayInput `pulumi:"roles"` + SshAgentAuth pulumi.BoolPtrInput `pulumi:"sshAgentAuth"` + SshKey pulumi.StringPtrInput `pulumi:"sshKey"` + SshKeyPath pulumi.StringPtrInput `pulumi:"sshKeyPath"` + User pulumi.StringInput `pulumi:"user"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ServiceMonitorInterval() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.ServiceMonitorInterval - }).(pulumi.StringPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) ServiceVlan() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.ServiceVlan - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatContractScope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.SnatContractScope - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatNamespace() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.SnatNamespace - }).(pulumi.StringPtrOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs{...} } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatPortRangeEnd() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.SnatPortRangeEnd - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeInput + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatPortRangeStart() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.SnatPortRangeStart - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SnatPortsPerNode() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.SnatPortsPerNode - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SriovEnable() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.SriovEnable - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SubnetDomainName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.SubnetDomainName - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) SystemId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.SystemId - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Tenant() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.Tenant - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) Address() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) string { return v.Address }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) Token() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.Token - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) DockerSocket() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.DockerSocket }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseAciAnywhereCrd() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.UseAciAnywhereCrd - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) HostnameOverride() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.HostnameOverride }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) InternalAddress() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.InternalAddress }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseAciCniPriorityClass() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.UseAciCniPriorityClass - }).(pulumi.StringPtrOutput) +// Labels for the cluster template (map) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) Labels() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) map[string]interface{} { + return v.Labels + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseClusterRole() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.UseClusterRole - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) NodeId() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.NodeId }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseHostNetnsVolume() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.UseHostNetnsVolume - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) Port() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.Port }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UseOpflexServerVolume() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.UseOpflexServerVolume - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) Roles() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) []string { return v.Roles }).(pulumi.StringArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) UsePrivilegedContainer() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.UsePrivilegedContainer - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) SshAgentAuth() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *bool { return v.SshAgentAuth }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) VmmController() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.VmmController - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) SshKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.SshKey }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) VmmDomain() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return v.VmmDomain - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) SshKeyPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.SshKeyPath }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) VrfName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.VrfName - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) User() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) string { return v.User }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderPtrOutput) VrfTenant() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider) *string { - if v == nil { - return nil - } - return &v.VrfTenant - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider struct { - CloudProvider *string `pulumi:"cloudProvider"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput { + return o } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderInput interface { - pulumi.Input +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput { + return o +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode { + return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs struct { - CloudProvider pulumi.StringPtrInput `pulumi:"cloudProvider"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry struct { + // ECR credential plugin config + EcrCredentialPlugin *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin `pulumi:"ecrCredentialPlugin"` + IsDefault *bool `pulumi:"isDefault"` + Password *string `pulumi:"password"` + Url string `pulumi:"url"` + User *string `pulumi:"user"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider)(nil)).Elem() +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutputWithContext(context.Background()) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs struct { + // ECR credential plugin config + EcrCredentialPlugin ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput `pulumi:"ecrCredentialPlugin"` + IsDefault pulumi.BoolPtrInput `pulumi:"isDefault"` + Password pulumi.StringPtrInput `pulumi:"password"` + Url pulumi.StringInput `pulumi:"url"` + User pulumi.StringPtrInput `pulumi:"user"` } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs{...} -// -// or: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayInput` via: // -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs{...} } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs - -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType)(v) -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryInput -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(context.Background()) +// ECR credential plugin config +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) EcrCredentialPlugin() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin { + return v.EcrCredentialPlugin + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) IsDefault() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) *bool { return v.IsDefault }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) CloudProvider() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider) *string { - return v.CloudProvider +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) Password() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) *string { + return v.Password }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) string { return v.Url }).(pulumi.StringOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) User() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) *string { return v.User }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { - return o +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProviderPtrOutput) CloudProvider() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider) *string { - if v == nil { - return nil - } - return v.CloudProvider - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry { + return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider struct { - Iface *string `pulumi:"iface"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin struct { + AwsAccessKeyId *string `pulumi:"awsAccessKeyId"` + AwsSecretAccessKey *string `pulumi:"awsSecretAccessKey"` + AwsSessionToken *string `pulumi:"awsSessionToken"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs struct { - Iface pulumi.StringPtrInput `pulumi:"iface"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs struct { + AwsAccessKeyId pulumi.StringPtrInput `pulumi:"awsAccessKeyId"` + AwsSecretAccessKey pulumi.StringPtrInput `pulumi:"awsSecretAccessKey"` + AwsSessionToken pulumi.StringPtrInput `pulumi:"awsSessionToken"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) Iface() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider) *string { - return v.Iface +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) AwsAccessKeyId() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { + return v.AwsAccessKeyId }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) AwsSecretAccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { + return v.AwsSecretAccessKey + }).(pulumi.StringPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) AwsSessionToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { + return v.AwsSessionToken + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProviderPtrOutput) Iface() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) AwsAccessKeyId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { if v == nil { return nil } - return v.Iface + return v.AwsAccessKeyId }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider struct { - Iface *string `pulumi:"iface"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) AwsSecretAccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { + if v == nil { + return nil + } + return v.AwsSecretAccessKey + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderInput` via: +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) AwsSessionToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { + if v == nil { + return nil + } + return v.AwsSessionToken + }).(pulumi.StringPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices struct { + Etcd *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd `pulumi:"etcd"` + KubeApi *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi `pulumi:"kubeApi"` + KubeController *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController `pulumi:"kubeController"` + Kubelet *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet `pulumi:"kubelet"` + Kubeproxy *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy `pulumi:"kubeproxy"` + Scheduler *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler `pulumi:"scheduler"` +} + +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs struct { - Iface pulumi.StringPtrInput `pulumi:"iface"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs struct { + Etcd ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput `pulumi:"etcd"` + KubeApi ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput `pulumi:"kubeApi"` + KubeController ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput `pulumi:"kubeController"` + Kubelet ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput `pulumi:"kubelet"` + Kubeproxy ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput `pulumi:"kubeproxy"` + Scheduler ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput `pulumi:"scheduler"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(context.Background()) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) Etcd() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd { + return v.Etcd + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) KubeApi() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi { + return v.KubeApi + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) KubeController() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController { + return v.KubeController + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) Kubelet() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet { + return v.Kubelet + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) Kubeproxy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy { + return v.Kubeproxy + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) Iface() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider) *string { - return v.Iface - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) Scheduler() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler { + return v.Scheduler + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProviderPtrOutput) Iface() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Etcd() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd { if v == nil { return nil } - return v.Iface - }).(pulumi.StringPtrOutput) + return v.Etcd + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration struct { - Effect *string `pulumi:"effect"` - Key string `pulumi:"key"` - Operator *string `pulumi:"operator"` - Seconds *int `pulumi:"seconds"` - Value *string `pulumi:"value"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) KubeApi() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi { + if v == nil { + return nil + } + return v.KubeApi + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) KubeController() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController { + if v == nil { + return nil + } + return v.KubeController + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs struct { - Effect pulumi.StringPtrInput `pulumi:"effect"` - Key pulumi.StringInput `pulumi:"key"` - Operator pulumi.StringPtrInput `pulumi:"operator"` - Seconds pulumi.IntPtrInput `pulumi:"seconds"` - Value pulumi.StringPtrInput `pulumi:"value"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Kubelet() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet { + if v == nil { + return nil + } + return v.Kubelet + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Kubeproxy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy { + if v == nil { + return nil + } + return v.Kubeproxy + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Scheduler() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler { + if v == nil { + return nil + } + return v.Scheduler + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd struct { + BackupConfig *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig `pulumi:"backupConfig"` + CaCert *string `pulumi:"caCert"` + Cert *string `pulumi:"cert"` + Creation *string `pulumi:"creation"` + ExternalUrls []string `pulumi:"externalUrls"` + ExtraArgs map[string]interface{} `pulumi:"extraArgs"` + ExtraBinds []string `pulumi:"extraBinds"` + ExtraEnvs []string `pulumi:"extraEnvs"` + Gid *int `pulumi:"gid"` + Image *string `pulumi:"image"` + Key *string `pulumi:"key"` + Path *string `pulumi:"path"` + Retention *string `pulumi:"retention"` + Snapshot *bool `pulumi:"snapshot"` + Uid *int `pulumi:"uid"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs{...} } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationInput - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)(nil)).Elem() +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs struct { + BackupConfig ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput `pulumi:"backupConfig"` + CaCert pulumi.StringPtrInput `pulumi:"caCert"` + Cert pulumi.StringPtrInput `pulumi:"cert"` + Creation pulumi.StringPtrInput `pulumi:"creation"` + ExternalUrls pulumi.StringArrayInput `pulumi:"externalUrls"` + ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` + ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` + ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` + Gid pulumi.IntPtrInput `pulumi:"gid"` + Image pulumi.StringPtrInput `pulumi:"image"` + Key pulumi.StringPtrInput `pulumi:"key"` + Path pulumi.StringPtrInput `pulumi:"path"` + Retention pulumi.StringPtrInput `pulumi:"retention"` + Snapshot pulumi.BoolPtrInput `pulumi:"snapshot"` + Uid pulumi.IntPtrInput `pulumi:"uid"` } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutputWithContext(context.Background()) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutputWithContext(context.Background()) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)(nil)).Elem() +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { - return o +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { - return o +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) *string { - return v.Effect - }).(pulumi.StringPtrOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) string { return v.Key }).(pulumi.StringOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) *string { - return v.Operator - }).(pulumi.StringPtrOutput) -} +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Seconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType)(v) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) Value() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration) *string { return v.Value }).(pulumi.StringPtrOutput) +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)(nil)).Elem() +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { - return o +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput { - return o -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput struct{ *pulumi.OutputState } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration { - return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider struct { - Password string `pulumi:"password"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { + return o } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { + return o } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs struct { - Password pulumi.StringInput `pulumi:"password"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(context.Background()) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) BackupConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig { + return v.BackupConfig + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) CaCert() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.CaCert }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Cert() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Cert }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Creation() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Creation }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ExternalUrls() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { + return v.ExternalUrls + }).(pulumi.StringArrayOutput) } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs - -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType)(v) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) map[string]interface{} { + return v.ExtraArgs + }).(pulumi.MapOutput) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { return v.ExtraEnvs }).(pulumi.StringArrayOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Gid() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *int { return v.Gid }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Image }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Key }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Path() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Path }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Retention() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Retention }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Snapshot() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *bool { return v.Snapshot }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) Password() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider) string { - return v.Password - }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Uid() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *int { return v.Uid }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderPtrOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) BackupConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig { if v == nil { return nil } - return &v.Password - }).(pulumi.StringPtrOutput) -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode struct { - Address string `pulumi:"address"` - DockerSocket *string `pulumi:"dockerSocket"` - HostnameOverride *string `pulumi:"hostnameOverride"` - InternalAddress *string `pulumi:"internalAddress"` - // Labels for the cluster template (map) - Labels map[string]interface{} `pulumi:"labels"` - NodeId *string `pulumi:"nodeId"` - Port *string `pulumi:"port"` - Roles []string `pulumi:"roles"` - SshAgentAuth *bool `pulumi:"sshAgentAuth"` - SshKey *string `pulumi:"sshKey"` - SshKeyPath *string `pulumi:"sshKeyPath"` - User string `pulumi:"user"` -} - -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput + return v.BackupConfig + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs struct { - Address pulumi.StringInput `pulumi:"address"` - DockerSocket pulumi.StringPtrInput `pulumi:"dockerSocket"` - HostnameOverride pulumi.StringPtrInput `pulumi:"hostnameOverride"` - InternalAddress pulumi.StringPtrInput `pulumi:"internalAddress"` - // Labels for the cluster template (map) - Labels pulumi.MapInput `pulumi:"labels"` - NodeId pulumi.StringPtrInput `pulumi:"nodeId"` - Port pulumi.StringPtrInput `pulumi:"port"` - Roles pulumi.StringArrayInput `pulumi:"roles"` - SshAgentAuth pulumi.BoolPtrInput `pulumi:"sshAgentAuth"` - SshKey pulumi.StringPtrInput `pulumi:"sshKey"` - SshKeyPath pulumi.StringPtrInput `pulumi:"sshKeyPath"` - User pulumi.StringInput `pulumi:"user"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) CaCert() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { + if v == nil { + return nil + } + return v.CaCert + }).(pulumi.StringPtrOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Cert() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { + if v == nil { + return nil + } + return v.Cert + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Creation() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { + if v == nil { + return nil + } + return v.Creation + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ExternalUrls() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { + if v == nil { + return nil + } + return v.ExternalUrls + }).(pulumi.StringArrayOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs{...} } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) map[string]interface{} { + if v == nil { + return nil + } + return v.ExtraArgs + }).(pulumi.MapOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeInput - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { + if v == nil { + return nil + } + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { + if v == nil { + return nil + } + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Gid() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *int { + if v == nil { + return nil + } + return v.Gid + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { + if v == nil { + return nil + } + return v.Image + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { + if v == nil { + return nil + } + return v.Key + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Path() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { + if v == nil { + return nil + } + return v.Path + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) Address() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) string { return v.Address }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Retention() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { + if v == nil { + return nil + } + return v.Retention + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) DockerSocket() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.DockerSocket }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Snapshot() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *bool { + if v == nil { + return nil + } + return v.Snapshot + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) HostnameOverride() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.HostnameOverride }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Uid() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *int { + if v == nil { + return nil + } + return v.Uid + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) InternalAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.InternalAddress }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig struct { + // Enable cluster template revision. Default `true` (bool) + Enabled *bool `pulumi:"enabled"` + IntervalHours *int `pulumi:"intervalHours"` + Retention *int `pulumi:"retention"` + S3BackupConfig *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig `pulumi:"s3BackupConfig"` + SafeTimestamp *bool `pulumi:"safeTimestamp"` + Timeout *int `pulumi:"timeout"` } -// Labels for the cluster template (map) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) map[string]interface{} { - return v.Labels - }).(pulumi.MapOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) NodeId() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.NodeId }).(pulumi.StringPtrOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) Port() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.Port }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs struct { + // Enable cluster template revision. Default `true` (bool) + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` + IntervalHours pulumi.IntPtrInput `pulumi:"intervalHours"` + Retention pulumi.IntPtrInput `pulumi:"retention"` + S3BackupConfig ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput `pulumi:"s3BackupConfig"` + SafeTimestamp pulumi.BoolPtrInput `pulumi:"safeTimestamp"` + Timeout pulumi.IntPtrInput `pulumi:"timeout"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) Roles() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) []string { return v.Roles }).(pulumi.StringArrayOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) SshAgentAuth() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *bool { return v.SshAgentAuth }).(pulumi.BoolPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) SshKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.SshKey }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) SshKeyPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) *string { return v.SshKeyPath }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) User() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode) string { return v.User }).(pulumi.StringOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput struct{ *pulumi.OutputState } +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput interface { + pulumi.Input -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)(nil)).Elem() + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput { - return o +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs + +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType)(v) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput { - return o +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode { - return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(context.Background()) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry struct { - // ECR credential plugin config - EcrCredentialPlugin *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin `pulumi:"ecrCredentialPlugin"` - IsDefault *bool `pulumi:"isDefault"` - Password *string `pulumi:"password"` - Url string `pulumi:"url"` - User *string `pulumi:"user"` +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryInput interface { - pulumi.Input +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput struct{ *pulumi.OutputState } - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs struct { - // ECR credential plugin config - EcrCredentialPlugin ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput `pulumi:"ecrCredentialPlugin"` - IsDefault pulumi.BoolPtrInput `pulumi:"isDefault"` - Password pulumi.StringPtrInput `pulumi:"password"` - Url pulumi.StringInput `pulumi:"url"` - User pulumi.StringPtrInput `pulumi:"user"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { + return o } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { + return o } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs{...} } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayInput interface { - pulumi.Input +// Enable cluster template revision. Default `true` (bool) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *bool { + return v.Enabled + }).(pulumi.BoolPtrOutput) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) IntervalHours() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { + return v.IntervalHours + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryInput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) Retention() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { + return v.Retention + }).(pulumi.IntPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) S3BackupConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig { + return v.S3BackupConfig + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) SafeTimestamp() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *bool { + return v.SafeTimestamp + }).(pulumi.BoolPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { + return v.Timeout + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { return o } -// ECR credential plugin config -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) EcrCredentialPlugin() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin { - return v.EcrCredentialPlugin - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) IsDefault() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) *bool { return v.IsDefault }).(pulumi.BoolPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) *string { - return v.Password - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) Url() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) string { return v.Url }).(pulumi.StringOutput) +// Enable cluster template revision. Default `true` (bool) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *bool { + if v == nil { + return nil + } + return v.Enabled + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) User() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry) *string { return v.User }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) IntervalHours() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { + if v == nil { + return nil + } + return v.IntervalHours + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) Retention() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { + if v == nil { + return nil + } + return v.Retention + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) S3BackupConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig { + if v == nil { + return nil + } + return v.S3BackupConfig + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) SafeTimestamp() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *bool { + if v == nil { + return nil + } + return v.SafeTimestamp + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry { - return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { + if v == nil { + return nil + } + return v.Timeout + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin struct { - AwsAccessKeyId *string `pulumi:"awsAccessKeyId"` - AwsSecretAccessKey *string `pulumi:"awsSecretAccessKey"` - AwsSessionToken *string `pulumi:"awsSessionToken"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig struct { + AccessKey *string `pulumi:"accessKey"` + BucketName string `pulumi:"bucketName"` + CustomCa *string `pulumi:"customCa"` + Endpoint string `pulumi:"endpoint"` + Folder *string `pulumi:"folder"` + Region *string `pulumi:"region"` + SecretKey *string `pulumi:"secretKey"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs struct { - AwsAccessKeyId pulumi.StringPtrInput `pulumi:"awsAccessKeyId"` - AwsSecretAccessKey pulumi.StringPtrInput `pulumi:"awsSecretAccessKey"` - AwsSessionToken pulumi.StringPtrInput `pulumi:"awsSessionToken"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs struct { + AccessKey pulumi.StringPtrInput `pulumi:"accessKey"` + BucketName pulumi.StringInput `pulumi:"bucketName"` + CustomCa pulumi.StringPtrInput `pulumi:"customCa"` + Endpoint pulumi.StringInput `pulumi:"endpoint"` + Folder pulumi.StringPtrInput `pulumi:"folder"` + Region pulumi.StringPtrInput `pulumi:"region"` + SecretKey pulumi.StringPtrInput `pulumi:"secretKey"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) AwsAccessKeyId() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { - return v.AwsAccessKeyId +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) AccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + return v.AccessKey }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) AwsSecretAccessKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { - return v.AwsSecretAccessKey +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) BucketName() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) string { + return v.BucketName + }).(pulumi.StringOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) CustomCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + return v.CustomCa }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) AwsSessionToken() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { - return v.AwsSessionToken +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) Endpoint() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) string { + return v.Endpoint + }).(pulumi.StringOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) Folder() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + return v.Folder }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + return v.Region + }).(pulumi.StringPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) SecretKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + return v.SecretKey + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) AwsAccessKeyId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) AccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return v.AccessKey + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) BucketName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return &v.BucketName + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) CustomCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return v.CustomCa + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) Endpoint() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return &v.Endpoint + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) Folder() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { if v == nil { return nil } - return v.AwsAccessKeyId + return v.Folder }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) AwsSecretAccessKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { if v == nil { return nil } - return v.AwsSecretAccessKey + return v.Region }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginPtrOutput) AwsSessionToken() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) SecretKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { if v == nil { return nil } - return v.AwsSessionToken + return v.SecretKey }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices struct { - Etcd *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd `pulumi:"etcd"` - KubeApi *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi `pulumi:"kubeApi"` - KubeController *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController `pulumi:"kubeController"` - Kubelet *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet `pulumi:"kubelet"` - Kubeproxy *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy `pulumi:"kubeproxy"` - Scheduler *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler `pulumi:"scheduler"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi struct { + // Cluster admission configuration + AdmissionConfiguration *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration `pulumi:"admissionConfiguration"` + AlwaysPullImages *bool `pulumi:"alwaysPullImages"` + AuditLog *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog `pulumi:"auditLog"` + EventRateLimit *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit `pulumi:"eventRateLimit"` + ExtraArgs map[string]interface{} `pulumi:"extraArgs"` + ExtraBinds []string `pulumi:"extraBinds"` + ExtraEnvs []string `pulumi:"extraEnvs"` + Image *string `pulumi:"image"` + PodSecurityPolicy *bool `pulumi:"podSecurityPolicy"` + SecretsEncryptionConfig *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig `pulumi:"secretsEncryptionConfig"` + ServiceClusterIpRange *string `pulumi:"serviceClusterIpRange"` + ServiceNodePortRange *string `pulumi:"serviceNodePortRange"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs struct { - Etcd ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput `pulumi:"etcd"` - KubeApi ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput `pulumi:"kubeApi"` - KubeController ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput `pulumi:"kubeController"` - Kubelet ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput `pulumi:"kubelet"` - Kubeproxy ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput `pulumi:"kubeproxy"` - Scheduler ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput `pulumi:"scheduler"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs struct { + // Cluster admission configuration + AdmissionConfiguration ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput `pulumi:"admissionConfiguration"` + AlwaysPullImages pulumi.BoolPtrInput `pulumi:"alwaysPullImages"` + AuditLog ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput `pulumi:"auditLog"` + EventRateLimit ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput `pulumi:"eventRateLimit"` + ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` + ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` + ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` + Image pulumi.StringPtrInput `pulumi:"image"` + PodSecurityPolicy pulumi.BoolPtrInput `pulumi:"podSecurityPolicy"` + SecretsEncryptionConfig ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput `pulumi:"secretsEncryptionConfig"` + ServiceClusterIpRange pulumi.StringPtrInput `pulumi:"serviceClusterIpRange"` + ServiceNodePortRange pulumi.StringPtrInput `pulumi:"serviceNodePortRange"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) Etcd() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd { - return v.Etcd - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) +// Cluster admission configuration +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) AdmissionConfiguration() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration { + return v.AdmissionConfiguration + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) KubeApi() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi { - return v.KubeApi - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) AlwaysPullImages() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *bool { + return v.AlwaysPullImages + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) KubeController() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController { - return v.KubeController - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) AuditLog() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog { + return v.AuditLog + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) Kubelet() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet { - return v.Kubelet - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) EventRateLimit() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit { + return v.EventRateLimit + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) Kubeproxy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy { - return v.Kubeproxy - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) map[string]interface{} { + return v.ExtraArgs + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) Scheduler() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler { - return v.Scheduler - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) []string { + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) []string { + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { return v.Image }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) PodSecurityPolicy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *bool { + return v.PodSecurityPolicy + }).(pulumi.BoolPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) SecretsEncryptionConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig { + return v.SecretsEncryptionConfig + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ServiceClusterIpRange() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { + return v.ServiceClusterIpRange + }).(pulumi.StringPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ServiceNodePortRange() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { + return v.ServiceNodePortRange + }).(pulumi.StringPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Etcd() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd { +// Cluster admission configuration +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) AdmissionConfiguration() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration { if v == nil { return nil } - return v.Etcd - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) + return v.AdmissionConfiguration + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) KubeApi() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) AlwaysPullImages() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *bool { if v == nil { return nil } - return v.KubeApi - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) + return v.AlwaysPullImages + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) KubeController() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) AuditLog() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog { if v == nil { return nil } - return v.KubeController - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) + return v.AuditLog + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Kubelet() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) EventRateLimit() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit { if v == nil { return nil } - return v.Kubelet - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) + return v.EventRateLimit + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Kubeproxy() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) map[string]interface{} { if v == nil { return nil } - return v.Kubeproxy - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) + return v.ExtraArgs + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesPtrOutput) Scheduler() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) []string { if v == nil { return nil } - return v.Scheduler - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd struct { - BackupConfig *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig `pulumi:"backupConfig"` - CaCert *string `pulumi:"caCert"` - Cert *string `pulumi:"cert"` - Creation *string `pulumi:"creation"` - ExternalUrls []string `pulumi:"externalUrls"` - ExtraArgs map[string]interface{} `pulumi:"extraArgs"` - ExtraBinds []string `pulumi:"extraBinds"` - ExtraEnvs []string `pulumi:"extraEnvs"` - Gid *int `pulumi:"gid"` - Image *string `pulumi:"image"` - Key *string `pulumi:"key"` - Path *string `pulumi:"path"` - Retention *string `pulumi:"retention"` - Snapshot *bool `pulumi:"snapshot"` - Uid *int `pulumi:"uid"` + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) []string { + if v == nil { + return nil + } + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs struct { - BackupConfig ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput `pulumi:"backupConfig"` - CaCert pulumi.StringPtrInput `pulumi:"caCert"` - Cert pulumi.StringPtrInput `pulumi:"cert"` - Creation pulumi.StringPtrInput `pulumi:"creation"` - ExternalUrls pulumi.StringArrayInput `pulumi:"externalUrls"` - ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` - ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` - ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` - Gid pulumi.IntPtrInput `pulumi:"gid"` - Image pulumi.StringPtrInput `pulumi:"image"` - Key pulumi.StringPtrInput `pulumi:"key"` - Path pulumi.StringPtrInput `pulumi:"path"` - Retention pulumi.StringPtrInput `pulumi:"retention"` - Snapshot pulumi.BoolPtrInput `pulumi:"snapshot"` - Uid pulumi.IntPtrInput `pulumi:"uid"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { + if v == nil { + return nil + } + return v.Image + }).(pulumi.StringPtrOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) PodSecurityPolicy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *bool { + if v == nil { + return nil + } + return v.PodSecurityPolicy + }).(pulumi.BoolPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) SecretsEncryptionConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig { + if v == nil { + return nil + } + return v.SecretsEncryptionConfig + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ServiceClusterIpRange() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { + if v == nil { + return nil + } + return v.ServiceClusterIpRange + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ServiceNodePortRange() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { + if v == nil { + return nil + } + return v.ServiceNodePortRange + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration struct { + // Admission configuration ApiVersion + ApiVersion *string `pulumi:"apiVersion"` + // Admission configuration Kind + Kind *string `pulumi:"kind"` + // Admission configuration plugins + Plugins []ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin `pulumi:"plugins"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs{...} -// -// or: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationInput` via: // -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput -} - -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs - -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType)(v) -} - -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd)(nil)).Elem() + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(context.Background()) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs struct { + // Admission configuration ApiVersion + ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"` + // Admission configuration Kind + Kind pulumi.StringPtrInput `pulumi:"kind"` + // Admission configuration plugins + Plugins ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayInput `pulumi:"plugins"` } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd)(nil)).Elem() +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { - return o +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { - return o +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) BackupConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig { - return v.BackupConfig - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) CaCert() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.CaCert }).(pulumi.StringPtrOutput) -} +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Cert() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Cert }).(pulumi.StringPtrOutput) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType)(v) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Creation() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Creation }).(pulumi.StringPtrOutput) +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ExternalUrls() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { - return v.ExternalUrls - }).(pulumi.StringArrayOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) map[string]interface{} { - return v.ExtraArgs - }).(pulumi.MapOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { - return v.ExtraBinds - }).(pulumi.StringArrayOutput) -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput struct{ *pulumi.OutputState } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { return v.ExtraEnvs }).(pulumi.StringArrayOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Gid() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *int { return v.Gid }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { + return o } - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Image }).(pulumi.StringPtrOutput) + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Key }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Path() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Path }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Retention() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { return v.Retention }).(pulumi.StringPtrOutput) +// Admission configuration ApiVersion +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ApiVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *string { + return v.ApiVersion + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Snapshot() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *bool { return v.Snapshot }).(pulumi.BoolPtrOutput) +// Admission configuration Kind +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) Kind() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *string { + return v.Kind + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) Uid() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *int { return v.Uid }).(pulumi.IntPtrOutput) +// Admission configuration plugins +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) Plugins() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin { + return v.Plugins + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) BackupConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig { +// Admission configuration ApiVersion +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) ApiVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *string { if v == nil { return nil } - return v.BackupConfig - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) + return v.ApiVersion + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) CaCert() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { +// Admission configuration Kind +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) Kind() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *string { if v == nil { return nil } - return v.CaCert + return v.Kind }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Cert() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { +// Admission configuration plugins +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) Plugins() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin { if v == nil { return nil } - return v.Cert - }).(pulumi.StringPtrOutput) + return v.Plugins + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Creation() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { - if v == nil { - return nil - } - return v.Creation - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin struct { + // Plugin configuration + Configuration *string `pulumi:"configuration"` + // The cluster template name (string) + Name *string `pulumi:"name"` + // Plugin path + Path *string `pulumi:"path"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ExternalUrls() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { - if v == nil { - return nil - } - return v.ExternalUrls - }).(pulumi.StringArrayOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) map[string]interface{} { - if v == nil { - return nil - } - return v.ExtraArgs - }).(pulumi.MapOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs struct { + // Plugin configuration + Configuration pulumi.StringPtrInput `pulumi:"configuration"` + // The cluster template name (string) + Name pulumi.StringPtrInput `pulumi:"name"` + // Plugin path + Path pulumi.StringPtrInput `pulumi:"path"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { - if v == nil { - return nil - } - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) []string { - if v == nil { - return nil - } - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Gid() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *int { - if v == nil { - return nil - } - return v.Gid - }).(pulumi.IntPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { - if v == nil { - return nil - } - return v.Image +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs{...} } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginInput + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)(nil)).Elem() +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutputWithContext(context.Background()) +} + +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { + return o +} + +// Plugin configuration +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) Configuration() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin) *string { + return v.Configuration }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { - if v == nil { - return nil - } - return v.Key +// The cluster template name (string) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin) *string { + return v.Name }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Path() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { - if v == nil { - return nil - } +// Plugin path +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) Path() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin) *string { return v.Path }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Retention() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *string { - if v == nil { - return nil - } - return v.Retention - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Snapshot() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *bool { - if v == nil { - return nil - } - return v.Snapshot - }).(pulumi.BoolPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdPtrOutput) Uid() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd) *int { - if v == nil { - return nil - } - return v.Uid - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { + return o } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig struct { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin { + return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog struct { + Configuration *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration `pulumi:"configuration"` // Enable cluster template revision. Default `true` (bool) - Enabled *bool `pulumi:"enabled"` - IntervalHours *int `pulumi:"intervalHours"` - Retention *int `pulumi:"retention"` - S3BackupConfig *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig `pulumi:"s3BackupConfig"` - SafeTimestamp *bool `pulumi:"safeTimestamp"` - Timeout *int `pulumi:"timeout"` + Enabled *bool `pulumi:"enabled"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs struct { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs struct { + Configuration ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput `pulumi:"configuration"` // Enable cluster template revision. Default `true` (bool) - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - IntervalHours pulumi.IntPtrInput `pulumi:"intervalHours"` - Retention pulumi.IntPtrInput `pulumi:"retention"` - S3BackupConfig ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput `pulumi:"s3BackupConfig"` - SafeTimestamp pulumi.BoolPtrInput `pulumi:"safeTimestamp"` - Timeout pulumi.IntPtrInput `pulumi:"timeout"` + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) -} - -// Enable cluster template revision. Default `true` (bool) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *bool { - return v.Enabled - }).(pulumi.BoolPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) IntervalHours() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { - return v.IntervalHours - }).(pulumi.IntPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) Retention() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { - return v.Retention - }).(pulumi.IntPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) S3BackupConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig { - return v.S3BackupConfig - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) Configuration() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration { + return v.Configuration + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) SafeTimestamp() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *bool { - return v.SafeTimestamp +// Enable cluster template revision. Default `true` (bool) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *bool { + return v.Enabled }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { - return v.Timeout - }).(pulumi.IntPtrOutput) -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigOutput) -} - -// Enable cluster template revision. Default `true` (bool) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *bool { - if v == nil { - return nil - } - return v.Enabled - }).(pulumi.BoolPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) IntervalHours() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { - if v == nil { - return nil - } - return v.IntervalHours - }).(pulumi.IntPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) Retention() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { - if v == nil { - return nil - } - return v.Retention - }).(pulumi.IntPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) S3BackupConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) Configuration() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration { if v == nil { return nil } - return v.S3BackupConfig - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) + return v.Configuration + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) SafeTimestamp() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *bool { +// Enable cluster template revision. Default `true` (bool) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *bool { if v == nil { return nil } - return v.SafeTimestamp + return v.Enabled }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigPtrOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig) *int { - if v == nil { - return nil - } - return v.Timeout - }).(pulumi.IntPtrOutput) -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig struct { - AccessKey *string `pulumi:"accessKey"` - BucketName string `pulumi:"bucketName"` - CustomCa *string `pulumi:"customCa"` - Endpoint string `pulumi:"endpoint"` - Folder *string `pulumi:"folder"` - Region *string `pulumi:"region"` - SecretKey *string `pulumi:"secretKey"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration struct { + Format *string `pulumi:"format"` + MaxAge *int `pulumi:"maxAge"` + MaxBackup *int `pulumi:"maxBackup"` + MaxSize *int `pulumi:"maxSize"` + Path *string `pulumi:"path"` + Policy *string `pulumi:"policy"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs struct { - AccessKey pulumi.StringPtrInput `pulumi:"accessKey"` - BucketName pulumi.StringInput `pulumi:"bucketName"` - CustomCa pulumi.StringPtrInput `pulumi:"customCa"` - Endpoint pulumi.StringInput `pulumi:"endpoint"` - Folder pulumi.StringPtrInput `pulumi:"folder"` - Region pulumi.StringPtrInput `pulumi:"region"` - SecretKey pulumi.StringPtrInput `pulumi:"secretKey"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs struct { + Format pulumi.StringPtrInput `pulumi:"format"` + MaxAge pulumi.IntPtrInput `pulumi:"maxAge"` + MaxBackup pulumi.IntPtrInput `pulumi:"maxBackup"` + MaxSize pulumi.IntPtrInput `pulumi:"maxSize"` + Path pulumi.StringPtrInput `pulumi:"path"` + Policy pulumi.StringPtrInput `pulumi:"policy"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) AccessKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { - return v.AccessKey +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) Format() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { + return v.Format }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) BucketName() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) string { - return v.BucketName - }).(pulumi.StringOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) CustomCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { - return v.CustomCa - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) MaxAge() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { + return v.MaxAge + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) Endpoint() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) string { - return v.Endpoint - }).(pulumi.StringOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) MaxBackup() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { + return v.MaxBackup + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) Folder() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { - return v.Folder - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) MaxSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { + return v.MaxSize + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { - return v.Region +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) Path() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { + return v.Path }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) SecretKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { - return v.SecretKey +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) Policy() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { + return v.Policy }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) AccessKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { - if v == nil { - return nil - } - return v.AccessKey - }).(pulumi.StringPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) BucketName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) Format() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { if v == nil { return nil } - return &v.BucketName + return v.Format }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) CustomCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) MaxAge() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { if v == nil { return nil } - return v.CustomCa - }).(pulumi.StringPtrOutput) + return v.MaxAge + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) Endpoint() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) MaxBackup() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { if v == nil { return nil } - return &v.Endpoint - }).(pulumi.StringPtrOutput) + return v.MaxBackup + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) Folder() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) MaxSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { if v == nil { return nil } - return v.Folder - }).(pulumi.StringPtrOutput) + return v.MaxSize + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) Path() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { if v == nil { return nil } - return v.Region + return v.Path }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigPtrOutput) SecretKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) Policy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { if v == nil { return nil } - return v.SecretKey + return v.Policy }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi struct { - // Cluster admission configuration - AdmissionConfiguration *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration `pulumi:"admissionConfiguration"` - AlwaysPullImages *bool `pulumi:"alwaysPullImages"` - AuditLog *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog `pulumi:"auditLog"` - EventRateLimit *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit `pulumi:"eventRateLimit"` - ExtraArgs map[string]interface{} `pulumi:"extraArgs"` - ExtraBinds []string `pulumi:"extraBinds"` - ExtraEnvs []string `pulumi:"extraEnvs"` - Image *string `pulumi:"image"` - PodSecurityPolicy *bool `pulumi:"podSecurityPolicy"` - SecretsEncryptionConfig *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig `pulumi:"secretsEncryptionConfig"` - ServiceClusterIpRange *string `pulumi:"serviceClusterIpRange"` - ServiceNodePortRange *string `pulumi:"serviceNodePortRange"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit struct { + Configuration *string `pulumi:"configuration"` + // Enable cluster template revision. Default `true` (bool) + Enabled *bool `pulumi:"enabled"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs struct { - // Cluster admission configuration - AdmissionConfiguration ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput `pulumi:"admissionConfiguration"` - AlwaysPullImages pulumi.BoolPtrInput `pulumi:"alwaysPullImages"` - AuditLog ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput `pulumi:"auditLog"` - EventRateLimit ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput `pulumi:"eventRateLimit"` - ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` - ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` - ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` - Image pulumi.StringPtrInput `pulumi:"image"` - PodSecurityPolicy pulumi.BoolPtrInput `pulumi:"podSecurityPolicy"` - SecretsEncryptionConfig ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput `pulumi:"secretsEncryptionConfig"` - ServiceClusterIpRange pulumi.StringPtrInput `pulumi:"serviceClusterIpRange"` - ServiceNodePortRange pulumi.StringPtrInput `pulumi:"serviceNodePortRange"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs struct { + Configuration pulumi.StringPtrInput `pulumi:"configuration"` + // Enable cluster template revision. Default `true` (bool) + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) } -// Cluster admission configuration -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) AdmissionConfiguration() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration { - return v.AdmissionConfiguration - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) Configuration() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *string { + return v.Configuration + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) AlwaysPullImages() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *bool { - return v.AlwaysPullImages +// Enable cluster template revision. Default `true` (bool) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *bool { + return v.Enabled }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) AuditLog() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog { - return v.AuditLog - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) -} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput struct{ *pulumi.OutputState } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) EventRateLimit() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit { - return v.EventRateLimit - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) map[string]interface{} { - return v.ExtraArgs - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) []string { - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) []string { - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { return v.Image }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) Configuration() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *string { + if v == nil { + return nil + } + return v.Configuration + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) PodSecurityPolicy() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *bool { - return v.PodSecurityPolicy +// Enable cluster template revision. Default `true` (bool) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *bool { + if v == nil { + return nil + } + return v.Enabled }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) SecretsEncryptionConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig { - return v.SecretsEncryptionConfig - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig struct { + CustomConfig *string `pulumi:"customConfig"` + // Enable cluster template revision. Default `true` (bool) + Enabled *bool `pulumi:"enabled"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ServiceClusterIpRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { - return v.ServiceClusterIpRange - }).(pulumi.StringPtrOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) ServiceNodePortRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { - return v.ServiceNodePortRange - }).(pulumi.StringPtrOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs struct { + CustomConfig pulumi.StringPtrInput `pulumi:"customConfig"` + // Enable cluster template revision. Default `true` (bool) + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput struct{ *pulumi.OutputState } +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig)(nil)).Elem() +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi)(nil)).Elem() +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return o +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput { - return o +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx) } -// Cluster admission configuration -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) AdmissionConfiguration() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration { - if v == nil { - return nil - } - return v.AdmissionConfiguration - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) AlwaysPullImages() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *bool { - if v == nil { - return nil - } - return v.AlwaysPullImages - }).(pulumi.BoolPtrOutput) +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs + +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType)(v) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) AuditLog() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog { - if v == nil { - return nil - } - return v.AuditLog - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) EventRateLimit() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit { - if v == nil { - return nil - } - return v.EventRateLimit - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) map[string]interface{} { - if v == nil { - return nil - } - return v.ExtraArgs - }).(pulumi.MapOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) +} + +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(context.Background()) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) CustomConfig() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *string { + return v.CustomConfig + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) []string { - if v == nil { - return nil - } - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +// Enable cluster template revision. Default `true` (bool) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *bool { + return v.Enabled + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) []string { - if v == nil { - return nil - } - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { - if v == nil { - return nil - } - return v.Image - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) PodSecurityPolicy() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *bool { - if v == nil { - return nil - } - return v.PodSecurityPolicy - }).(pulumi.BoolPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) SecretsEncryptionConfig() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig { - if v == nil { - return nil +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig { + if v != nil { + return *v } - return v.SecretsEncryptionConfig - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ServiceClusterIpRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) CustomConfig() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *string { if v == nil { return nil } - return v.ServiceClusterIpRange + return v.CustomConfig }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiPtrOutput) ServiceNodePortRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi) *string { +// Enable cluster template revision. Default `true` (bool) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *bool { if v == nil { return nil } - return v.ServiceNodePortRange - }).(pulumi.StringPtrOutput) + return v.Enabled + }).(pulumi.BoolPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration struct { - // Admission configuration ApiVersion - ApiVersion *string `pulumi:"apiVersion"` - // Admission configuration Kind - Kind *string `pulumi:"kind"` - // Admission configuration plugins - Plugins []ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin `pulumi:"plugins"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController struct { + ClusterCidr *string `pulumi:"clusterCidr"` + ExtraArgs map[string]interface{} `pulumi:"extraArgs"` + ExtraBinds []string `pulumi:"extraBinds"` + ExtraEnvs []string `pulumi:"extraEnvs"` + Image *string `pulumi:"image"` + ServiceClusterIpRange *string `pulumi:"serviceClusterIpRange"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs struct { - // Admission configuration ApiVersion - ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"` - // Admission configuration Kind - Kind pulumi.StringPtrInput `pulumi:"kind"` - // Admission configuration plugins - Plugins ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayInput `pulumi:"plugins"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs struct { + ClusterCidr pulumi.StringPtrInput `pulumi:"clusterCidr"` + ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` + ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` + ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` + Image pulumi.StringPtrInput `pulumi:"image"` + ServiceClusterIpRange pulumi.StringPtrInput `pulumi:"serviceClusterIpRange"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) } -// Admission configuration ApiVersion -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) ApiVersion() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *string { - return v.ApiVersion +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ClusterCidr() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { + return v.ClusterCidr }).(pulumi.StringPtrOutput) } -// Admission configuration Kind -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) Kind() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *string { - return v.Kind +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) map[string]interface{} { + return v.ExtraArgs + }).(pulumi.MapOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) []string { + return v.ExtraBinds + }).(pulumi.StringArrayOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) []string { + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { + return v.Image }).(pulumi.StringPtrOutput) } -// Admission configuration plugins -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) Plugins() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin { - return v.Plugins - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ServiceClusterIpRange() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { + return v.ServiceClusterIpRange + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) } -// Admission configuration ApiVersion -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) ApiVersion() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ClusterCidr() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { if v == nil { return nil } - return v.ApiVersion + return v.ClusterCidr }).(pulumi.StringPtrOutput) } -// Admission configuration Kind -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) Kind() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) map[string]interface{} { if v == nil { return nil } - return v.Kind - }).(pulumi.StringPtrOutput) + return v.ExtraArgs + }).(pulumi.MapOutput) } -// Admission configuration plugins -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPtrOutput) Plugins() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration) []ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) []string { if v == nil { return nil } - return v.Plugins - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin struct { - // Plugin configuration - Configuration *string `pulumi:"configuration"` - // The cluster template name (string) - Name *string `pulumi:"name"` - // Plugin path - Path *string `pulumi:"path"` -} - -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs struct { - // Plugin configuration - Configuration pulumi.StringPtrInput `pulumi:"configuration"` - // The cluster template name (string) - Name pulumi.StringPtrInput `pulumi:"name"` - // Plugin path - Path pulumi.StringPtrInput `pulumi:"path"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) []string { + if v == nil { + return nil + } + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { + if v == nil { + return nil + } + return v.Image + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ServiceClusterIpRange() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { + if v == nil { + return nil + } + return v.ServiceClusterIpRange + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet struct { + ClusterDnsServer *string `pulumi:"clusterDnsServer"` + ClusterDomain *string `pulumi:"clusterDomain"` + ExtraArgs map[string]interface{} `pulumi:"extraArgs"` + ExtraBinds []string `pulumi:"extraBinds"` + ExtraEnvs []string `pulumi:"extraEnvs"` + FailSwapOn *bool `pulumi:"failSwapOn"` + GenerateServingCertificate *bool `pulumi:"generateServingCertificate"` + Image *string `pulumi:"image"` + InfraContainerImage *string `pulumi:"infraContainerImage"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray{ ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArgs{...} } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray []ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginInput - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)(nil)).Elem() + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutputWithContext(context.Background()) +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs struct { + ClusterDnsServer pulumi.StringPtrInput `pulumi:"clusterDnsServer"` + ClusterDomain pulumi.StringPtrInput `pulumi:"clusterDomain"` + ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` + ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` + ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` + FailSwapOn pulumi.BoolPtrInput `pulumi:"failSwapOn"` + GenerateServingCertificate pulumi.BoolPtrInput `pulumi:"generateServingCertificate"` + Image pulumi.StringPtrInput `pulumi:"image"` + InfraContainerImage pulumi.StringPtrInput `pulumi:"infraContainerImage"` } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArray) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)(nil)).Elem() +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { - return o +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { - return o +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(context.Background()) } -// Plugin configuration -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) Configuration() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin) *string { - return v.Configuration - }).(pulumi.StringPtrOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx) } -// The cluster template name (string) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin) *string { - return v.Name - }).(pulumi.StringPtrOutput) -} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput` via: +// +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs{...} +// +// or: +// +// nil +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput interface { + pulumi.Input -// Plugin path -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) Path() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin) *string { - return v.Path - }).(pulumi.StringPtrOutput) + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)(nil)).Elem() -} +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { - return o +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType)(v) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput { - return o +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin { - return vs[0].([]ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPluginOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(context.Background()) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog struct { - Configuration *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration `pulumi:"configuration"` - // Enable cluster template revision. Default `true` (bool) - Enabled *bool `pulumi:"enabled"` +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogInput interface { - pulumi.Input +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput struct{ *pulumi.OutputState } - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs struct { - Configuration ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput `pulumi:"configuration"` - // Enable cluster template revision. Default `true` (bool) - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { + return o } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { + return o } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet { + return &v + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ClusterDnsServer() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { + return v.ClusterDnsServer + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ClusterDomain() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { + return v.ClusterDomain + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput interface { - pulumi.Input +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) map[string]interface{} { + return v.ExtraArgs + }).(pulumi.MapOutput) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) []string { + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) []string { + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) +} -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType)(v) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) FailSwapOn() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *bool { + return v.FailSwapOn + }).(pulumi.BoolPtrOutput) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) GenerateServingCertificate() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *bool { + return v.GenerateServingCertificate + }).(pulumi.BoolPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { return v.Image }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) InfraContainerImage() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { + return v.InfraContainerImage + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet { + if v != nil { + return *v + } + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet + return ret + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ClusterDnsServer() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { + if v == nil { + return nil + } + return v.ClusterDnsServer + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) Configuration() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration { - return v.Configuration - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ClusterDomain() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { + if v == nil { + return nil + } + return v.ClusterDomain + }).(pulumi.StringPtrOutput) } -// Enable cluster template revision. Default `true` (bool) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *bool { - return v.Enabled - }).(pulumi.BoolPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) map[string]interface{} { + if v == nil { + return nil + } + return v.ExtraArgs + }).(pulumi.MapOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput struct{ *pulumi.OutputState } - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) []string { + if v == nil { + return nil + } + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) []string { + if v == nil { + return nil + } + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput { - return o +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) FailSwapOn() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *bool { + if v == nil { + return nil + } + return v.FailSwapOn + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog { - if v != nil { - return *v +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) GenerateServingCertificate() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *bool { + if v == nil { + return nil } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogOutput) + return v.GenerateServingCertificate + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) Configuration() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { if v == nil { return nil } - return v.Configuration - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) + return v.Image + }).(pulumi.StringPtrOutput) } -// Enable cluster template revision. Default `true` (bool) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog) *bool { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) InfraContainerImage() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { if v == nil { return nil } - return v.Enabled - }).(pulumi.BoolPtrOutput) + return v.InfraContainerImage + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration struct { - Format *string `pulumi:"format"` - MaxAge *int `pulumi:"maxAge"` - MaxBackup *int `pulumi:"maxBackup"` - MaxSize *int `pulumi:"maxSize"` - Path *string `pulumi:"path"` - Policy *string `pulumi:"policy"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy struct { + ExtraArgs map[string]interface{} `pulumi:"extraArgs"` + ExtraBinds []string `pulumi:"extraBinds"` + ExtraEnvs []string `pulumi:"extraEnvs"` + Image *string `pulumi:"image"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs struct { - Format pulumi.StringPtrInput `pulumi:"format"` - MaxAge pulumi.IntPtrInput `pulumi:"maxAge"` - MaxBackup pulumi.IntPtrInput `pulumi:"maxBackup"` - MaxSize pulumi.IntPtrInput `pulumi:"maxSize"` - Path pulumi.StringPtrInput `pulumi:"path"` - Policy pulumi.StringPtrInput `pulumi:"policy"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs struct { + ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` + ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` + ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` + Image pulumi.StringPtrInput `pulumi:"image"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) Format() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { - return v.Format - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) MaxAge() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { - return v.MaxAge - }).(pulumi.IntPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) MaxBackup() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { - return v.MaxBackup - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) map[string]interface{} { + return v.ExtraArgs + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) MaxSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { - return v.MaxSize - }).(pulumi.IntPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) []string { + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) Path() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { - return v.Path - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) []string { + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) Policy() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { - return v.Policy - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) *string { return v.Image }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) Format() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { - if v == nil { - return nil - } - return v.Format - }).(pulumi.StringPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) MaxAge() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { - if v == nil { - return nil - } - return v.MaxAge - }).(pulumi.IntPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) MaxBackup() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) map[string]interface{} { if v == nil { return nil } - return v.MaxBackup - }).(pulumi.IntPtrOutput) + return v.ExtraArgs + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) MaxSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *int { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) []string { if v == nil { return nil } - return v.MaxSize - }).(pulumi.IntPtrOutput) + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) Path() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) []string { if v == nil { return nil } - return v.Path - }).(pulumi.StringPtrOutput) + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfigurationPtrOutput) Policy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) *string { if v == nil { return nil } - return v.Policy + return v.Image }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit struct { - Configuration *string `pulumi:"configuration"` - // Enable cluster template revision. Default `true` (bool) - Enabled *bool `pulumi:"enabled"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler struct { + ExtraArgs map[string]interface{} `pulumi:"extraArgs"` + ExtraBinds []string `pulumi:"extraBinds"` + ExtraEnvs []string `pulumi:"extraEnvs"` + Image *string `pulumi:"image"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs struct { - Configuration pulumi.StringPtrInput `pulumi:"configuration"` - // Enable cluster template revision. Default `true` (bool) - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs struct { + ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` + ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` + ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` + Image pulumi.StringPtrInput `pulumi:"image"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) Configuration() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *string { - return v.Configuration - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) map[string]interface{} { + return v.ExtraArgs + }).(pulumi.MapOutput) } -// Enable cluster template revision. Default `true` (bool) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *bool { - return v.Enabled - }).(pulumi.BoolPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) []string { + return v.ExtraBinds + }).(pulumi.StringArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput struct{ *pulumi.OutputState } +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) []string { + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit)(nil)).Elem() +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) *string { return v.Image }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) Configuration() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ExtraArgs() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) map[string]interface{} { if v == nil { return nil } - return v.Configuration - }).(pulumi.StringPtrOutput) + return v.ExtraArgs + }).(pulumi.MapOutput) } -// Enable cluster template revision. Default `true` (bool) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimitPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit) *bool { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ExtraBinds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) []string { + if v == nil { + return nil + } + return v.ExtraBinds + }).(pulumi.StringArrayOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) []string { + if v == nil { + return nil + } + return v.ExtraEnvs + }).(pulumi.StringArrayOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) Image() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) *string { if v == nil { return nil } - return v.Enabled - }).(pulumi.BoolPtrOutput) + return v.Image + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig struct { - CustomConfig *string `pulumi:"customConfig"` - // Enable cluster template revision. Default `true` (bool) - Enabled *bool `pulumi:"enabled"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy struct { + Drain *bool `pulumi:"drain"` + DrainInput *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput `pulumi:"drainInput"` + MaxUnavailableControlplane *string `pulumi:"maxUnavailableControlplane"` + MaxUnavailableWorker *string `pulumi:"maxUnavailableWorker"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs struct { - CustomConfig pulumi.StringPtrInput `pulumi:"customConfig"` - // Enable cluster template revision. Default `true` (bool) - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs struct { + Drain pulumi.BoolPtrInput `pulumi:"drain"` + DrainInput ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput `pulumi:"drainInput"` + MaxUnavailableControlplane pulumi.StringPtrInput `pulumi:"maxUnavailableControlplane"` + MaxUnavailableWorker pulumi.StringPtrInput `pulumi:"maxUnavailableWorker"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) CustomConfig() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *string { - return v.CustomConfig +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) Drain() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *bool { return v.Drain }).(pulumi.BoolPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) DrainInput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput { + return v.DrainInput + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) MaxUnavailableControlplane() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *string { + return v.MaxUnavailableControlplane }).(pulumi.StringPtrOutput) } -// Enable cluster template revision. Default `true` (bool) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *bool { - return v.Enabled - }).(pulumi.BoolPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) MaxUnavailableWorker() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *string { + return v.MaxUnavailableWorker + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) CustomConfig() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) Drain() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *bool { if v == nil { return nil } - return v.CustomConfig + return v.Drain + }).(pulumi.BoolPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) DrainInput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput { + if v == nil { + return nil + } + return v.DrainInput + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) +} + +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) MaxUnavailableControlplane() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *string { + if v == nil { + return nil + } + return v.MaxUnavailableControlplane }).(pulumi.StringPtrOutput) } -// Enable cluster template revision. Default `true` (bool) -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfigPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig) *bool { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) MaxUnavailableWorker() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *string { if v == nil { return nil } - return v.Enabled - }).(pulumi.BoolPtrOutput) + return v.MaxUnavailableWorker + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController struct { - ClusterCidr *string `pulumi:"clusterCidr"` - ExtraArgs map[string]interface{} `pulumi:"extraArgs"` - ExtraBinds []string `pulumi:"extraBinds"` - ExtraEnvs []string `pulumi:"extraEnvs"` - Image *string `pulumi:"image"` - ServiceClusterIpRange *string `pulumi:"serviceClusterIpRange"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput struct { + DeleteLocalData *bool `pulumi:"deleteLocalData"` + Force *bool `pulumi:"force"` + GracePeriod *int `pulumi:"gracePeriod"` + IgnoreDaemonSets *bool `pulumi:"ignoreDaemonSets"` + Timeout *int `pulumi:"timeout"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerInput interface { +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs{...} +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs struct { - ClusterCidr pulumi.StringPtrInput `pulumi:"clusterCidr"` - ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` - ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` - ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` - Image pulumi.StringPtrInput `pulumi:"image"` - ServiceClusterIpRange pulumi.StringPtrInput `pulumi:"serviceClusterIpRange"` +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs struct { + DeleteLocalData pulumi.BoolPtrInput `pulumi:"deleteLocalData"` + Force pulumi.BoolPtrInput `pulumi:"force"` + GracePeriod pulumi.IntPtrInput `pulumi:"gracePeriod"` + IgnoreDaemonSets pulumi.BoolPtrInput `pulumi:"ignoreDaemonSets"` + Timeout pulumi.IntPtrInput `pulumi:"timeout"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx) +func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput` via: +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs{...} +// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput interface { +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput + ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs +type clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType)(v) +func ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput { + return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController)(nil)).Elem() +func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(context.Background()) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { + return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) +func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { + return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ClusterCidr() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { - return v.ClusterCidr - }).(pulumi.StringPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) map[string]interface{} { - return v.ExtraArgs - }).(pulumi.MapOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) DeleteLocalData() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { + return v.DeleteLocalData + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) []string { - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) Force() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { + return v.Force + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) []string { - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) GracePeriod() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *int { + return v.GracePeriod + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { - return v.Image - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { + return v.IgnoreDaemonSets + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) ServiceClusterIpRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { - return v.ServiceClusterIpRange - }).(pulumi.StringPtrOutput) +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *int { + return v.Timeout + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController)(nil)).Elem() +func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController + var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ClusterCidr() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { - if v == nil { - return nil - } - return v.ClusterCidr - }).(pulumi.StringPtrOutput) + }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) map[string]interface{} { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) DeleteLocalData() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { if v == nil { return nil } - return v.ExtraArgs - }).(pulumi.MapOutput) + return v.DeleteLocalData + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) []string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) Force() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { if v == nil { return nil } - return v.ExtraBinds - }).(pulumi.StringArrayOutput) + return v.Force + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) []string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) GracePeriod() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *int { if v == nil { return nil } - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) + return v.GracePeriod + }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { if v == nil { return nil } - return v.Image - }).(pulumi.StringPtrOutput) + return v.IgnoreDaemonSets + }).(pulumi.BoolPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeControllerPtrOutput) ServiceClusterIpRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController) *string { +func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *int { if v == nil { return nil } - return v.ServiceClusterIpRange - }).(pulumi.StringPtrOutput) + return v.Timeout + }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet struct { - ClusterDnsServer *string `pulumi:"clusterDnsServer"` - ClusterDomain *string `pulumi:"clusterDomain"` - ExtraArgs map[string]interface{} `pulumi:"extraArgs"` - ExtraBinds []string `pulumi:"extraBinds"` - ExtraEnvs []string `pulumi:"extraEnvs"` - FailSwapOn *bool `pulumi:"failSwapOn"` - GenerateServingCertificate *bool `pulumi:"generateServingCertificate"` - Image *string `pulumi:"image"` - InfraContainerImage *string `pulumi:"infraContainerImage"` +type ClusterTemplateTemplateRevisionQuestion struct { + // Default variable value (string) + Default string `pulumi:"default"` + // Required variable. Default `false` (bool) + Required *bool `pulumi:"required"` + // Variable type. `boolean`, `int` and `string` are allowed. Default `string` (string) + Type *string `pulumi:"type"` + // Variable name (string) + Variable string `pulumi:"variable"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletInput` via: +// ClusterTemplateTemplateRevisionQuestionInput is an input type that accepts ClusterTemplateTemplateRevisionQuestionArgs and ClusterTemplateTemplateRevisionQuestionOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionQuestionInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletInput interface { +// ClusterTemplateTemplateRevisionQuestionArgs{...} +type ClusterTemplateTemplateRevisionQuestionInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput + ToClusterTemplateTemplateRevisionQuestionOutput() ClusterTemplateTemplateRevisionQuestionOutput + ToClusterTemplateTemplateRevisionQuestionOutputWithContext(context.Context) ClusterTemplateTemplateRevisionQuestionOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs struct { - ClusterDnsServer pulumi.StringPtrInput `pulumi:"clusterDnsServer"` - ClusterDomain pulumi.StringPtrInput `pulumi:"clusterDomain"` - ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` - ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` - ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` - FailSwapOn pulumi.BoolPtrInput `pulumi:"failSwapOn"` - GenerateServingCertificate pulumi.BoolPtrInput `pulumi:"generateServingCertificate"` - Image pulumi.StringPtrInput `pulumi:"image"` - InfraContainerImage pulumi.StringPtrInput `pulumi:"infraContainerImage"` +type ClusterTemplateTemplateRevisionQuestionArgs struct { + // Default variable value (string) + Default pulumi.StringInput `pulumi:"default"` + // Required variable. Default `false` (bool) + Required pulumi.BoolPtrInput `pulumi:"required"` + // Variable type. `boolean`, `int` and `string` are allowed. Default `string` (string) + Type pulumi.StringPtrInput `pulumi:"type"` + // Variable name (string) + Variable pulumi.StringInput `pulumi:"variable"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet)(nil)).Elem() +func (ClusterTemplateTemplateRevisionQuestionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionQuestion)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutputWithContext(context.Background()) +func (i ClusterTemplateTemplateRevisionQuestionArgs) ToClusterTemplateTemplateRevisionQuestionOutput() ClusterTemplateTemplateRevisionQuestionOutput { + return i.ToClusterTemplateTemplateRevisionQuestionOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) +func (i ClusterTemplateTemplateRevisionQuestionArgs) ToClusterTemplateTemplateRevisionQuestionOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionQuestionOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionQuestionOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(context.Background()) +// ClusterTemplateTemplateRevisionQuestionArrayInput is an input type that accepts ClusterTemplateTemplateRevisionQuestionArray and ClusterTemplateTemplateRevisionQuestionArrayOutput values. +// You can construct a concrete instance of `ClusterTemplateTemplateRevisionQuestionArrayInput` via: +// +// ClusterTemplateTemplateRevisionQuestionArray{ ClusterTemplateTemplateRevisionQuestionArgs{...} } +type ClusterTemplateTemplateRevisionQuestionArrayInput interface { + pulumi.Input + + ToClusterTemplateTemplateRevisionQuestionArrayOutput() ClusterTemplateTemplateRevisionQuestionArrayOutput + ToClusterTemplateTemplateRevisionQuestionArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionQuestionArrayOutput } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx) +type ClusterTemplateTemplateRevisionQuestionArray []ClusterTemplateTemplateRevisionQuestionInput + +func (ClusterTemplateTemplateRevisionQuestionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionQuestion)(nil)).Elem() } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput interface { - pulumi.Input +func (i ClusterTemplateTemplateRevisionQuestionArray) ToClusterTemplateTemplateRevisionQuestionArrayOutput() ClusterTemplateTemplateRevisionQuestionArrayOutput { + return i.ToClusterTemplateTemplateRevisionQuestionArrayOutputWithContext(context.Background()) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput +func (i ClusterTemplateTemplateRevisionQuestionArray) ToClusterTemplateTemplateRevisionQuestionArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionQuestionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionQuestionArrayOutput) +} + +type ClusterTemplateTemplateRevisionQuestionOutput struct{ *pulumi.OutputState } + +func (ClusterTemplateTemplateRevisionQuestionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterTemplateTemplateRevisionQuestion)(nil)).Elem() +} + +func (o ClusterTemplateTemplateRevisionQuestionOutput) ToClusterTemplateTemplateRevisionQuestionOutput() ClusterTemplateTemplateRevisionQuestionOutput { + return o +} + +func (o ClusterTemplateTemplateRevisionQuestionOutput) ToClusterTemplateTemplateRevisionQuestionOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionQuestionOutput { + return o } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs - -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType)(v) +// Default variable value (string) +func (o ClusterTemplateTemplateRevisionQuestionOutput) Default() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionQuestion) string { return v.Default }).(pulumi.StringOutput) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet)(nil)).Elem() +// Required variable. Default `false` (bool) +func (o ClusterTemplateTemplateRevisionQuestionOutput) Required() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionQuestion) *bool { return v.Required }).(pulumi.BoolPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(context.Background()) +// Variable type. `boolean`, `int` and `string` are allowed. Default `string` (string) +func (o ClusterTemplateTemplateRevisionQuestionOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionQuestion) *string { return v.Type }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) +// Variable name (string) +func (o ClusterTemplateTemplateRevisionQuestionOutput) Variable() pulumi.StringOutput { + return o.ApplyT(func(v ClusterTemplateTemplateRevisionQuestion) string { return v.Variable }).(pulumi.StringOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput struct{ *pulumi.OutputState } +type ClusterTemplateTemplateRevisionQuestionArrayOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet)(nil)).Elem() +func (ClusterTemplateTemplateRevisionQuestionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionQuestion)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { +func (o ClusterTemplateTemplateRevisionQuestionArrayOutput) ToClusterTemplateTemplateRevisionQuestionArrayOutput() ClusterTemplateTemplateRevisionQuestionArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { +func (o ClusterTemplateTemplateRevisionQuestionArrayOutput) ToClusterTemplateTemplateRevisionQuestionArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionQuestionArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(context.Background()) +func (o ClusterTemplateTemplateRevisionQuestionArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionQuestionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionQuestion { + return vs[0].([]ClusterTemplateTemplateRevisionQuestion)[vs[1].(int)] + }).(ClusterTemplateTemplateRevisionQuestionOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) +type ClusterV2AgentEnvVar struct { + // The name of the cluster. + Name string `pulumi:"name"` + // The taint value. + Value string `pulumi:"value"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ClusterDnsServer() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { - return v.ClusterDnsServer - }).(pulumi.StringPtrOutput) +// ClusterV2AgentEnvVarInput is an input type that accepts ClusterV2AgentEnvVarArgs and ClusterV2AgentEnvVarOutput values. +// You can construct a concrete instance of `ClusterV2AgentEnvVarInput` via: +// +// ClusterV2AgentEnvVarArgs{...} +type ClusterV2AgentEnvVarInput interface { + pulumi.Input + + ToClusterV2AgentEnvVarOutput() ClusterV2AgentEnvVarOutput + ToClusterV2AgentEnvVarOutputWithContext(context.Context) ClusterV2AgentEnvVarOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ClusterDomain() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { - return v.ClusterDomain - }).(pulumi.StringPtrOutput) +type ClusterV2AgentEnvVarArgs struct { + // The name of the cluster. + Name pulumi.StringInput `pulumi:"name"` + // The taint value. + Value pulumi.StringInput `pulumi:"value"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) map[string]interface{} { - return v.ExtraArgs - }).(pulumi.MapOutput) +func (ClusterV2AgentEnvVarArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2AgentEnvVar)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) []string { - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +func (i ClusterV2AgentEnvVarArgs) ToClusterV2AgentEnvVarOutput() ClusterV2AgentEnvVarOutput { + return i.ToClusterV2AgentEnvVarOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) []string { - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +func (i ClusterV2AgentEnvVarArgs) ToClusterV2AgentEnvVarOutputWithContext(ctx context.Context) ClusterV2AgentEnvVarOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2AgentEnvVarOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) FailSwapOn() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *bool { - return v.FailSwapOn - }).(pulumi.BoolPtrOutput) +// ClusterV2AgentEnvVarArrayInput is an input type that accepts ClusterV2AgentEnvVarArray and ClusterV2AgentEnvVarArrayOutput values. +// You can construct a concrete instance of `ClusterV2AgentEnvVarArrayInput` via: +// +// ClusterV2AgentEnvVarArray{ ClusterV2AgentEnvVarArgs{...} } +type ClusterV2AgentEnvVarArrayInput interface { + pulumi.Input + + ToClusterV2AgentEnvVarArrayOutput() ClusterV2AgentEnvVarArrayOutput + ToClusterV2AgentEnvVarArrayOutputWithContext(context.Context) ClusterV2AgentEnvVarArrayOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) GenerateServingCertificate() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *bool { - return v.GenerateServingCertificate - }).(pulumi.BoolPtrOutput) +type ClusterV2AgentEnvVarArray []ClusterV2AgentEnvVarInput + +func (ClusterV2AgentEnvVarArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2AgentEnvVar)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { return v.Image }).(pulumi.StringPtrOutput) +func (i ClusterV2AgentEnvVarArray) ToClusterV2AgentEnvVarArrayOutput() ClusterV2AgentEnvVarArrayOutput { + return i.ToClusterV2AgentEnvVarArrayOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) InfraContainerImage() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { - return v.InfraContainerImage - }).(pulumi.StringPtrOutput) +func (i ClusterV2AgentEnvVarArray) ToClusterV2AgentEnvVarArrayOutputWithContext(ctx context.Context) ClusterV2AgentEnvVarArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2AgentEnvVarArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput struct{ *pulumi.OutputState } +type ClusterV2AgentEnvVarOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet)(nil)).Elem() +func (ClusterV2AgentEnvVarOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2AgentEnvVar)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { +func (o ClusterV2AgentEnvVarOutput) ToClusterV2AgentEnvVarOutput() ClusterV2AgentEnvVarOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput { +func (o ClusterV2AgentEnvVarOutput) ToClusterV2AgentEnvVarOutputWithContext(ctx context.Context) ClusterV2AgentEnvVarOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletOutput) +// The name of the cluster. +func (o ClusterV2AgentEnvVarOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2AgentEnvVar) string { return v.Name }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ClusterDnsServer() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { - if v == nil { - return nil - } - return v.ClusterDnsServer - }).(pulumi.StringPtrOutput) +// The taint value. +func (o ClusterV2AgentEnvVarOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2AgentEnvVar) string { return v.Value }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ClusterDomain() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { - if v == nil { - return nil - } - return v.ClusterDomain - }).(pulumi.StringPtrOutput) +type ClusterV2AgentEnvVarArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2AgentEnvVarArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2AgentEnvVar)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) map[string]interface{} { - if v == nil { - return nil - } - return v.ExtraArgs - }).(pulumi.MapOutput) +func (o ClusterV2AgentEnvVarArrayOutput) ToClusterV2AgentEnvVarArrayOutput() ClusterV2AgentEnvVarArrayOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) []string { - if v == nil { - return nil - } - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +func (o ClusterV2AgentEnvVarArrayOutput) ToClusterV2AgentEnvVarArrayOutputWithContext(ctx context.Context) ClusterV2AgentEnvVarArrayOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) []string { - if v == nil { - return nil - } - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +func (o ClusterV2AgentEnvVarArrayOutput) Index(i pulumi.IntInput) ClusterV2AgentEnvVarOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2AgentEnvVar { + return vs[0].([]ClusterV2AgentEnvVar)[vs[1].(int)] + }).(ClusterV2AgentEnvVarOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) FailSwapOn() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *bool { - if v == nil { - return nil - } - return v.FailSwapOn - }).(pulumi.BoolPtrOutput) +type ClusterV2ClusterAgentDeploymentCustomization struct { + // A list of tolerations to be appended to the default tolerations. + AppendTolerations []ClusterV2ClusterAgentDeploymentCustomizationAppendToleration `pulumi:"appendTolerations"` + // Override affinity overrides the global default affinity setting. + OverrideAffinity *string `pulumi:"overrideAffinity"` + // Override resource requirements overrides the default value for requests and/or limits. + OverrideResourceRequirements []ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement `pulumi:"overrideResourceRequirements"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) GenerateServingCertificate() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *bool { - if v == nil { - return nil - } - return v.GenerateServingCertificate - }).(pulumi.BoolPtrOutput) +// ClusterV2ClusterAgentDeploymentCustomizationInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationArgs and ClusterV2ClusterAgentDeploymentCustomizationOutput values. +// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationInput` via: +// +// ClusterV2ClusterAgentDeploymentCustomizationArgs{...} +type ClusterV2ClusterAgentDeploymentCustomizationInput interface { + pulumi.Input + + ToClusterV2ClusterAgentDeploymentCustomizationOutput() ClusterV2ClusterAgentDeploymentCustomizationOutput + ToClusterV2ClusterAgentDeploymentCustomizationOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { - if v == nil { - return nil - } - return v.Image - }).(pulumi.StringPtrOutput) +type ClusterV2ClusterAgentDeploymentCustomizationArgs struct { + // A list of tolerations to be appended to the default tolerations. + AppendTolerations ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayInput `pulumi:"appendTolerations"` + // Override affinity overrides the global default affinity setting. + OverrideAffinity pulumi.StringPtrInput `pulumi:"overrideAffinity"` + // Override resource requirements overrides the default value for requests and/or limits. + OverrideResourceRequirements ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput `pulumi:"overrideResourceRequirements"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeletPtrOutput) InfraContainerImage() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet) *string { - if v == nil { - return nil - } - return v.InfraContainerImage - }).(pulumi.StringPtrOutput) +func (ClusterV2ClusterAgentDeploymentCustomizationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomization)(nil)).Elem() } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy struct { - ExtraArgs map[string]interface{} `pulumi:"extraArgs"` - ExtraBinds []string `pulumi:"extraBinds"` - ExtraEnvs []string `pulumi:"extraEnvs"` - Image *string `pulumi:"image"` +func (i ClusterV2ClusterAgentDeploymentCustomizationArgs) ToClusterV2ClusterAgentDeploymentCustomizationOutput() ClusterV2ClusterAgentDeploymentCustomizationOutput { + return i.ToClusterV2ClusterAgentDeploymentCustomizationOutputWithContext(context.Background()) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyInput` via: +func (i ClusterV2ClusterAgentDeploymentCustomizationArgs) ToClusterV2ClusterAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationOutput) +} + +// ClusterV2ClusterAgentDeploymentCustomizationArrayInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationArray and ClusterV2ClusterAgentDeploymentCustomizationArrayOutput values. +// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationArrayInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyInput interface { +// ClusterV2ClusterAgentDeploymentCustomizationArray{ ClusterV2ClusterAgentDeploymentCustomizationArgs{...} } +type ClusterV2ClusterAgentDeploymentCustomizationArrayInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput + ToClusterV2ClusterAgentDeploymentCustomizationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationArrayOutput + ToClusterV2ClusterAgentDeploymentCustomizationArrayOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationArrayOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs struct { - ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` - ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` - ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` - Image pulumi.StringPtrInput `pulumi:"image"` +type ClusterV2ClusterAgentDeploymentCustomizationArray []ClusterV2ClusterAgentDeploymentCustomizationInput + +func (ClusterV2ClusterAgentDeploymentCustomizationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomization)(nil)).Elem() } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy)(nil)).Elem() +func (i ClusterV2ClusterAgentDeploymentCustomizationArray) ToClusterV2ClusterAgentDeploymentCustomizationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { + return i.ToClusterV2ClusterAgentDeploymentCustomizationArrayOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutputWithContext(context.Background()) +func (i ClusterV2ClusterAgentDeploymentCustomizationArray) ToClusterV2ClusterAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) +type ClusterV2ClusterAgentDeploymentCustomizationOutput struct{ *pulumi.OutputState } + +func (ClusterV2ClusterAgentDeploymentCustomizationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomization)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(context.Background()) +func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) ToClusterV2ClusterAgentDeploymentCustomizationOutput() ClusterV2ClusterAgentDeploymentCustomizationOutput { + return o } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx) +func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) ToClusterV2ClusterAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOutput { + return o } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput interface { - pulumi.Input +// A list of tolerations to be appended to the default tolerations. +func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) AppendTolerations() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomization) []ClusterV2ClusterAgentDeploymentCustomizationAppendToleration { + return v.AppendTolerations + }).(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput +// Override affinity overrides the global default affinity setting. +func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) OverrideAffinity() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomization) *string { return v.OverrideAffinity }).(pulumi.StringPtrOutput) } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs +// Override resource requirements overrides the default value for requests and/or limits. +func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) OverrideResourceRequirements() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomization) []ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement { + return v.OverrideResourceRequirements + }).(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) +} -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType)(v) +type ClusterV2ClusterAgentDeploymentCustomizationArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomization)(nil)).Elem() } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy)(nil)).Elem() +func (o ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { + return o } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(context.Background()) +func (o ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { + return o } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) +func (o ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) Index(i pulumi.IntInput) ClusterV2ClusterAgentDeploymentCustomizationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2ClusterAgentDeploymentCustomization { + return vs[0].([]ClusterV2ClusterAgentDeploymentCustomization)[vs[1].(int)] + }).(ClusterV2ClusterAgentDeploymentCustomizationOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput struct{ *pulumi.OutputState } +type ClusterV2ClusterAgentDeploymentCustomizationAppendToleration struct { + // The taint effect. Default: `\"NoExecute\"`. + Effect *string `pulumi:"effect"` + // Key is the name of the key of the item to retrieve. + Key string `pulumi:"key"` + // Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + Operator *string `pulumi:"operator"` + // The number of seconds a pod will stay bound to a node with a matching taint. + Seconds *int `pulumi:"seconds"` + // The taint value. + Value *string `pulumi:"value"` +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy)(nil)).Elem() +// ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs and ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput values. +// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationInput` via: +// +// ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs{...} +type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationInput interface { + pulumi.Input + + ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput + ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { - return o +type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs struct { + // The taint effect. Default: `\"NoExecute\"`. + Effect pulumi.StringPtrInput `pulumi:"effect"` + // Key is the name of the key of the item to retrieve. + Key pulumi.StringInput `pulumi:"key"` + // Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + Operator pulumi.StringPtrInput `pulumi:"operator"` + // The number of seconds a pod will stay bound to a node with a matching taint. + Seconds pulumi.IntPtrInput `pulumi:"seconds"` + // The taint value. + Value pulumi.StringPtrInput `pulumi:"value"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { - return o +func (ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(context.Background()) +func (i ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { + return i.ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) +func (i ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) map[string]interface{} { - return v.ExtraArgs - }).(pulumi.MapOutput) +// ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray and ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput values. +// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayInput` via: +// +// ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray{ ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs{...} } +type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayInput interface { + pulumi.Input + + ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput + ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) []string { - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray []ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationInput + +func (ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) []string { - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +func (i ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return i.ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) *string { return v.Image }).(pulumi.StringPtrOutput) +func (i ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput struct{ *pulumi.OutputState } +type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy)(nil)).Elem() +func (ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput { +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyOutput) +// The taint effect. Default: `\"NoExecute\"`. +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) map[string]interface{} { - if v == nil { - return nil - } - return v.ExtraArgs - }).(pulumi.MapOutput) +// Key is the name of the key of the item to retrieve. +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) string { return v.Key }).(pulumi.StringOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) []string { - if v == nil { - return nil - } - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) []string { - if v == nil { - return nil - } - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +// The number of seconds a pod will stay bound to a node with a matching taint. +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Seconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxyPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy) *string { - if v == nil { - return nil - } - return v.Image - }).(pulumi.StringPtrOutput) +// The taint value. +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Value() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Value }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler struct { - ExtraArgs map[string]interface{} `pulumi:"extraArgs"` - ExtraBinds []string `pulumi:"extraBinds"` - ExtraEnvs []string `pulumi:"extraEnvs"` - Image *string `pulumi:"image"` +type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerInput interface { - pulumi.Input +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o +} - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs struct { - ExtraArgs pulumi.MapInput `pulumi:"extraArgs"` - ExtraBinds pulumi.StringArrayInput `pulumi:"extraBinds"` - ExtraEnvs pulumi.StringArrayInput `pulumi:"extraEnvs"` - Image pulumi.StringPtrInput `pulumi:"image"` +func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) Index(i pulumi.IntInput) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2ClusterAgentDeploymentCustomizationAppendToleration { + return vs[0].([]ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)[vs[1].(int)] + }).(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler)(nil)).Elem() +type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement struct { + // The maximum CPU limit for agent. + CpuLimit *string `pulumi:"cpuLimit"` + // The minimum CPU required for agent. + CpuRequest *string `pulumi:"cpuRequest"` + // The maximum memory limit for agent. + MemoryLimit *string `pulumi:"memoryLimit"` + // The minimum memory required for agent. + MemoryRequest *string `pulumi:"memoryRequest"` } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutputWithContext(context.Background()) +// ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs and ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput values. +// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementInput` via: +// +// ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} +type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementInput interface { + pulumi.Input + + ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput + ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput +} + +type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs struct { + // The maximum CPU limit for agent. + CpuLimit pulumi.StringPtrInput `pulumi:"cpuLimit"` + // The minimum CPU required for agent. + CpuRequest pulumi.StringPtrInput `pulumi:"cpuRequest"` + // The maximum memory limit for agent. + MemoryLimit pulumi.StringPtrInput `pulumi:"memoryLimit"` + // The minimum memory required for agent. + MemoryRequest pulumi.StringPtrInput `pulumi:"memoryRequest"` } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) +func (ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(context.Background()) +func (i ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return i.ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx) +func (i ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs{...} -// -// or: +// ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray and ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput values. +// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput` via: // -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput interface { +// ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray{ ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} } +type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput + ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput + ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs - -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType)(v) -} +type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray []ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementInput -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler)(nil)).Elem() +func (ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(context.Background()) +func (i ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return i.ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) +func (i ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput struct{ *pulumi.OutputState } +type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler)(nil)).Elem() +func (ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(context.Background()) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) map[string]interface{} { - return v.ExtraArgs - }).(pulumi.MapOutput) +// The maximum CPU limit for agent. +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuLimit() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.CpuLimit + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) []string { - return v.ExtraBinds - }).(pulumi.StringArrayOutput) +// The minimum CPU required for agent. +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuRequest() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.CpuRequest + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) []string { - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) +// The maximum memory limit for agent. +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryLimit() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.MemoryLimit + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) *string { return v.Image }).(pulumi.StringPtrOutput) +// The minimum memory required for agent. +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryRequest() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.MemoryRequest + }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput struct{ *pulumi.OutputState } +type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler)(nil)).Elem() +func (ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput { +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ExtraArgs() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) map[string]interface{} { - if v == nil { - return nil - } - return v.ExtraArgs - }).(pulumi.MapOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ExtraBinds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) []string { - if v == nil { - return nil - } - return v.ExtraBinds - }).(pulumi.StringArrayOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) ExtraEnvs() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) []string { - if v == nil { - return nil - } - return v.ExtraEnvs - }).(pulumi.StringArrayOutput) -} - -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSchedulerPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler) *string { - if v == nil { - return nil - } - return v.Image - }).(pulumi.StringPtrOutput) +func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) Index(i pulumi.IntInput) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement { + return vs[0].([]ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)[vs[1].(int)] + }).(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy struct { - Drain *bool `pulumi:"drain"` - DrainInput *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput `pulumi:"drainInput"` - MaxUnavailableControlplane *string `pulumi:"maxUnavailableControlplane"` - MaxUnavailableWorker *string `pulumi:"maxUnavailableWorker"` +type ClusterV2ClusterRegistrationToken struct { + // Annotations for the Cluster. + Annotations map[string]interface{} `pulumi:"annotations"` + // Cluster ID. + ClusterId *string `pulumi:"clusterId"` + // Command to execute in an imported k8s cluster. + Command *string `pulumi:"command"` + // (Computed, string) The ID of the resource. + Id *string `pulumi:"id"` + // Insecure command to execute in an imported k8s cluster. + InsecureCommand *string `pulumi:"insecureCommand"` + // Insecure node command to execute in an imported k8s cluster. + InsecureNodeCommand *string `pulumi:"insecureNodeCommand"` + // Insecure windows command to execute in an imported k8s cluster. + InsecureWindowsNodeCommand *string `pulumi:"insecureWindowsNodeCommand"` + // Labels for the Cluster. + Labels map[string]interface{} `pulumi:"labels"` + // K8s manifest url to execute with `kubectl` to import an existing k8s cluster. + ManifestUrl *string `pulumi:"manifestUrl"` + // The name of the cluster. + Name *string `pulumi:"name"` + // Node command to execute in Linux nodes for custom k8s cluster. + NodeCommand *string `pulumi:"nodeCommand"` + // Token for cluster registration token object. + Token *string `pulumi:"token"` + // Node command to execute in Windows nodes for custom k8s cluster. + WindowsNodeCommand *string `pulumi:"windowsNodeCommand"` } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyInput` via: +// ClusterV2ClusterRegistrationTokenInput is an input type that accepts ClusterV2ClusterRegistrationTokenArgs and ClusterV2ClusterRegistrationTokenOutput values. +// You can construct a concrete instance of `ClusterV2ClusterRegistrationTokenInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyInput interface { +// ClusterV2ClusterRegistrationTokenArgs{...} +type ClusterV2ClusterRegistrationTokenInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput + ToClusterV2ClusterRegistrationTokenOutput() ClusterV2ClusterRegistrationTokenOutput + ToClusterV2ClusterRegistrationTokenOutputWithContext(context.Context) ClusterV2ClusterRegistrationTokenOutput } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs struct { - Drain pulumi.BoolPtrInput `pulumi:"drain"` - DrainInput ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput `pulumi:"drainInput"` - MaxUnavailableControlplane pulumi.StringPtrInput `pulumi:"maxUnavailableControlplane"` - MaxUnavailableWorker pulumi.StringPtrInput `pulumi:"maxUnavailableWorker"` +type ClusterV2ClusterRegistrationTokenArgs struct { + // Annotations for the Cluster. + Annotations pulumi.MapInput `pulumi:"annotations"` + // Cluster ID. + ClusterId pulumi.StringPtrInput `pulumi:"clusterId"` + // Command to execute in an imported k8s cluster. + Command pulumi.StringPtrInput `pulumi:"command"` + // (Computed, string) The ID of the resource. + Id pulumi.StringPtrInput `pulumi:"id"` + // Insecure command to execute in an imported k8s cluster. + InsecureCommand pulumi.StringPtrInput `pulumi:"insecureCommand"` + // Insecure node command to execute in an imported k8s cluster. + InsecureNodeCommand pulumi.StringPtrInput `pulumi:"insecureNodeCommand"` + // Insecure windows command to execute in an imported k8s cluster. + InsecureWindowsNodeCommand pulumi.StringPtrInput `pulumi:"insecureWindowsNodeCommand"` + // Labels for the Cluster. + Labels pulumi.MapInput `pulumi:"labels"` + // K8s manifest url to execute with `kubectl` to import an existing k8s cluster. + ManifestUrl pulumi.StringPtrInput `pulumi:"manifestUrl"` + // The name of the cluster. + Name pulumi.StringPtrInput `pulumi:"name"` + // Node command to execute in Linux nodes for custom k8s cluster. + NodeCommand pulumi.StringPtrInput `pulumi:"nodeCommand"` + // Token for cluster registration token object. + Token pulumi.StringPtrInput `pulumi:"token"` + // Node command to execute in Windows nodes for custom k8s cluster. + WindowsNodeCommand pulumi.StringPtrInput `pulumi:"windowsNodeCommand"` } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy)(nil)).Elem() +func (ClusterV2ClusterRegistrationTokenArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2ClusterRegistrationToken)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutputWithContext(context.Background()) +func (i ClusterV2ClusterRegistrationTokenArgs) ToClusterV2ClusterRegistrationTokenOutput() ClusterV2ClusterRegistrationTokenOutput { + return i.ToClusterV2ClusterRegistrationTokenOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) +func (i ClusterV2ClusterRegistrationTokenArgs) ToClusterV2ClusterRegistrationTokenOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterRegistrationTokenOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) +func (i ClusterV2ClusterRegistrationTokenArgs) ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput { + return i.ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx) +func (i ClusterV2ClusterRegistrationTokenArgs) ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterRegistrationTokenOutput).ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrInput` via: +// ClusterV2ClusterRegistrationTokenPtrInput is an input type that accepts ClusterV2ClusterRegistrationTokenArgs, ClusterV2ClusterRegistrationTokenPtr and ClusterV2ClusterRegistrationTokenPtrOutput values. +// You can construct a concrete instance of `ClusterV2ClusterRegistrationTokenPtrInput` via: // -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs{...} +// ClusterV2ClusterRegistrationTokenArgs{...} // // or: // // nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrInput interface { +type ClusterV2ClusterRegistrationTokenPtrInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput + ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput + ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(context.Context) ClusterV2ClusterRegistrationTokenPtrOutput } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs +type clusterV2ClusterRegistrationTokenPtrType ClusterV2ClusterRegistrationTokenArgs -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType)(v) +func ClusterV2ClusterRegistrationTokenPtr(v *ClusterV2ClusterRegistrationTokenArgs) ClusterV2ClusterRegistrationTokenPtrInput { + return (*clusterV2ClusterRegistrationTokenPtrType)(v) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy)(nil)).Elem() +func (*clusterV2ClusterRegistrationTokenPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2ClusterRegistrationToken)(nil)).Elem() } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) +func (i *clusterV2ClusterRegistrationTokenPtrType) ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput { + return i.ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(context.Background()) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) +func (i *clusterV2ClusterRegistrationTokenPtrType) ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterRegistrationTokenPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput struct{ *pulumi.OutputState } +type ClusterV2ClusterRegistrationTokenOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy)(nil)).Elem() +func (ClusterV2ClusterRegistrationTokenOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2ClusterRegistrationToken)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { +func (o ClusterV2ClusterRegistrationTokenOutput) ToClusterV2ClusterRegistrationTokenOutput() ClusterV2ClusterRegistrationTokenOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { +func (o ClusterV2ClusterRegistrationTokenOutput) ToClusterV2ClusterRegistrationTokenOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) +func (o ClusterV2ClusterRegistrationTokenOutput) ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput { + return o.ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy { +func (o ClusterV2ClusterRegistrationTokenOutput) ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2ClusterRegistrationToken) *ClusterV2ClusterRegistrationToken { return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) + }).(ClusterV2ClusterRegistrationTokenPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) Drain() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *bool { return v.Drain }).(pulumi.BoolPtrOutput) +// Annotations for the Cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) Annotations() pulumi.MapOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) DrainInput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput { - return v.DrainInput - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) +// Cluster ID. +func (o ClusterV2ClusterRegistrationTokenOutput) ClusterId() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.ClusterId }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) MaxUnavailableControlplane() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *string { - return v.MaxUnavailableControlplane - }).(pulumi.StringPtrOutput) +// Command to execute in an imported k8s cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) Command() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.Command }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) MaxUnavailableWorker() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *string { - return v.MaxUnavailableWorker - }).(pulumi.StringPtrOutput) +// (Computed, string) The ID of the resource. +func (o ClusterV2ClusterRegistrationTokenOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.Id }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput struct{ *pulumi.OutputState } +// Insecure command to execute in an imported k8s cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) InsecureCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.InsecureCommand }).(pulumi.StringPtrOutput) +} -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy)(nil)).Elem() +// Insecure node command to execute in an imported k8s cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) InsecureNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.InsecureNodeCommand }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { +// Insecure windows command to execute in an imported k8s cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) InsecureWindowsNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.InsecureWindowsNodeCommand }).(pulumi.StringPtrOutput) +} + +// Labels for the Cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) Labels() pulumi.MapOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) +} + +// K8s manifest url to execute with `kubectl` to import an existing k8s cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) ManifestUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.ManifestUrl }).(pulumi.StringPtrOutput) +} + +// The name of the cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.Name }).(pulumi.StringPtrOutput) +} + +// Node command to execute in Linux nodes for custom k8s cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) NodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.NodeCommand }).(pulumi.StringPtrOutput) +} + +// Token for cluster registration token object. +func (o ClusterV2ClusterRegistrationTokenOutput) Token() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.Token }).(pulumi.StringPtrOutput) +} + +// Node command to execute in Windows nodes for custom k8s cluster. +func (o ClusterV2ClusterRegistrationTokenOutput) WindowsNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.WindowsNodeCommand }).(pulumi.StringPtrOutput) +} + +type ClusterV2ClusterRegistrationTokenPtrOutput struct{ *pulumi.OutputState } + +func (ClusterV2ClusterRegistrationTokenPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2ClusterRegistrationToken)(nil)).Elem() +} + +func (o ClusterV2ClusterRegistrationTokenPtrOutput) ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput { +func (o ClusterV2ClusterRegistrationTokenPtrOutput) ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenPtrOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy { +func (o ClusterV2ClusterRegistrationTokenPtrOutput) Elem() ClusterV2ClusterRegistrationTokenOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) ClusterV2ClusterRegistrationToken { if v != nil { return *v } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy + var ret ClusterV2ClusterRegistrationToken return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyOutput) + }).(ClusterV2ClusterRegistrationTokenOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) Drain() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *bool { +// Annotations for the Cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) Annotations() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) map[string]interface{} { if v == nil { return nil } - return v.Drain - }).(pulumi.BoolPtrOutput) + return v.Annotations + }).(pulumi.MapOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) DrainInput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput { +// Cluster ID. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) ClusterId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { if v == nil { return nil } - return v.DrainInput - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) + return v.ClusterId + }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) MaxUnavailableControlplane() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *string { +// Command to execute in an imported k8s cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) Command() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { if v == nil { return nil } - return v.MaxUnavailableControlplane + return v.Command }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyPtrOutput) MaxUnavailableWorker() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy) *string { +// (Computed, string) The ID of the resource. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) Id() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { if v == nil { return nil } - return v.MaxUnavailableWorker + return v.Id }).(pulumi.StringPtrOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput struct { - DeleteLocalData *bool `pulumi:"deleteLocalData"` - Force *bool `pulumi:"force"` - GracePeriod *int `pulumi:"gracePeriod"` - IgnoreDaemonSets *bool `pulumi:"ignoreDaemonSets"` - Timeout *int `pulumi:"timeout"` -} - -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs and ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs{...} -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput -} - -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs struct { - DeleteLocalData pulumi.BoolPtrInput `pulumi:"deleteLocalData"` - Force pulumi.BoolPtrInput `pulumi:"force"` - GracePeriod pulumi.IntPtrInput `pulumi:"gracePeriod"` - IgnoreDaemonSets pulumi.BoolPtrInput `pulumi:"ignoreDaemonSets"` - Timeout pulumi.IntPtrInput `pulumi:"timeout"` -} - -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput)(nil)).Elem() +// Insecure command to execute in an imported k8s cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) InsecureCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.InsecureCommand + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutputWithContext(context.Background()) +// Insecure node command to execute in an imported k8s cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) InsecureNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.InsecureNodeCommand + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) +// Insecure windows command to execute in an imported k8s cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) InsecureWindowsNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.InsecureWindowsNodeCommand + }).(pulumi.StringPtrOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(context.Background()) +// Labels for the Cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) Labels() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) map[string]interface{} { + if v == nil { + return nil + } + return v.Labels + }).(pulumi.MapOutput) } -func (i ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput).ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx) +// K8s manifest url to execute with `kubectl` to import an existing k8s cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) ManifestUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.ManifestUrl + }).(pulumi.StringPtrOutput) } -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput is an input type that accepts ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs, ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtr and ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput` via: -// -// ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs{...} -// -// or: -// -// nil -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput interface { - pulumi.Input - - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput - ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput +// The name of the cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.Name + }).(pulumi.StringPtrOutput) } -type clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs - -func ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtr(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputArgs) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrInput { - return (*clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType)(v) +// Node command to execute in Linux nodes for custom k8s cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) NodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.NodeCommand + }).(pulumi.StringPtrOutput) } -func (*clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput)(nil)).Elem() +// Token for cluster registration token object. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) Token() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.Token + }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { - return i.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(context.Background()) +// Node command to execute in Windows nodes for custom k8s cluster. +func (o ClusterV2ClusterRegistrationTokenPtrOutput) WindowsNodeCommand() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { + if v == nil { + return nil + } + return v.WindowsNodeCommand + }).(pulumi.StringPtrOutput) } -func (i *clusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrType) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) +type ClusterV2FleetAgentDeploymentCustomization struct { + // A list of tolerations to be appended to the default tolerations. + AppendTolerations []ClusterV2FleetAgentDeploymentCustomizationAppendToleration `pulumi:"appendTolerations"` + // Override affinity overrides the global default affinity setting. + OverrideAffinity *string `pulumi:"overrideAffinity"` + // Override resource requirements overrides the default value for requests and/or limits. + OverrideResourceRequirements []ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement `pulumi:"overrideResourceRequirements"` } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput struct{ *pulumi.OutputState } +// ClusterV2FleetAgentDeploymentCustomizationInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationArgs and ClusterV2FleetAgentDeploymentCustomizationOutput values. +// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationInput` via: +// +// ClusterV2FleetAgentDeploymentCustomizationArgs{...} +type ClusterV2FleetAgentDeploymentCustomizationInput interface { + pulumi.Input -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput)(nil)).Elem() + ToClusterV2FleetAgentDeploymentCustomizationOutput() ClusterV2FleetAgentDeploymentCustomizationOutput + ToClusterV2FleetAgentDeploymentCustomizationOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { - return o +type ClusterV2FleetAgentDeploymentCustomizationArgs struct { + // A list of tolerations to be appended to the default tolerations. + AppendTolerations ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayInput `pulumi:"appendTolerations"` + // Override affinity overrides the global default affinity setting. + OverrideAffinity pulumi.StringPtrInput `pulumi:"overrideAffinity"` + // Override resource requirements overrides the default value for requests and/or limits. + OverrideResourceRequirements ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput `pulumi:"overrideResourceRequirements"` } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { - return o +func (ClusterV2FleetAgentDeploymentCustomizationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomization)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { - return o.ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(context.Background()) +func (i ClusterV2FleetAgentDeploymentCustomizationArgs) ToClusterV2FleetAgentDeploymentCustomizationOutput() ClusterV2FleetAgentDeploymentCustomizationOutput { + return i.ToClusterV2FleetAgentDeploymentCustomizationOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput { - return &v - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) +func (i ClusterV2FleetAgentDeploymentCustomizationArgs) ToClusterV2FleetAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) DeleteLocalData() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { - return v.DeleteLocalData - }).(pulumi.BoolPtrOutput) -} +// ClusterV2FleetAgentDeploymentCustomizationArrayInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationArray and ClusterV2FleetAgentDeploymentCustomizationArrayOutput values. +// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationArrayInput` via: +// +// ClusterV2FleetAgentDeploymentCustomizationArray{ ClusterV2FleetAgentDeploymentCustomizationArgs{...} } +type ClusterV2FleetAgentDeploymentCustomizationArrayInput interface { + pulumi.Input -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) Force() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { - return v.Force - }).(pulumi.BoolPtrOutput) + ToClusterV2FleetAgentDeploymentCustomizationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationArrayOutput + ToClusterV2FleetAgentDeploymentCustomizationArrayOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationArrayOutput } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) GracePeriod() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *int { - return v.GracePeriod - }).(pulumi.IntPtrOutput) +type ClusterV2FleetAgentDeploymentCustomizationArray []ClusterV2FleetAgentDeploymentCustomizationInput + +func (ClusterV2FleetAgentDeploymentCustomizationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomization)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { - return v.IgnoreDaemonSets - }).(pulumi.BoolPtrOutput) +func (i ClusterV2FleetAgentDeploymentCustomizationArray) ToClusterV2FleetAgentDeploymentCustomizationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationArrayOutput { + return i.ToClusterV2FleetAgentDeploymentCustomizationArrayOutputWithContext(context.Background()) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *int { - return v.Timeout - }).(pulumi.IntPtrOutput) +func (i ClusterV2FleetAgentDeploymentCustomizationArray) ToClusterV2FleetAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationArrayOutput) } -type ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput struct{ *pulumi.OutputState } +type ClusterV2FleetAgentDeploymentCustomizationOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput)(nil)).Elem() +func (ClusterV2FleetAgentDeploymentCustomizationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomization)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationOutput) ToClusterV2FleetAgentDeploymentCustomizationOutput() ClusterV2FleetAgentDeploymentCustomizationOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) ToClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationOutput) ToClusterV2FleetAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOutput { return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) Elem() ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput { - if v != nil { - return *v - } - var ret ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput - return ret - }).(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputOutput) +// A list of tolerations to be appended to the default tolerations. +func (o ClusterV2FleetAgentDeploymentCustomizationOutput) AppendTolerations() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomization) []ClusterV2FleetAgentDeploymentCustomizationAppendToleration { + return v.AppendTolerations + }).(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) DeleteLocalData() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { - if v == nil { - return nil - } - return v.DeleteLocalData - }).(pulumi.BoolPtrOutput) +// Override affinity overrides the global default affinity setting. +func (o ClusterV2FleetAgentDeploymentCustomizationOutput) OverrideAffinity() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomization) *string { return v.OverrideAffinity }).(pulumi.StringPtrOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) Force() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { - if v == nil { - return nil - } - return v.Force - }).(pulumi.BoolPtrOutput) +// Override resource requirements overrides the default value for requests and/or limits. +func (o ClusterV2FleetAgentDeploymentCustomizationOutput) OverrideResourceRequirements() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomization) []ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement { + return v.OverrideResourceRequirements + }).(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) GracePeriod() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *int { - if v == nil { - return nil - } - return v.GracePeriod - }).(pulumi.IntPtrOutput) +type ClusterV2FleetAgentDeploymentCustomizationArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2FleetAgentDeploymentCustomizationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomization)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *bool { - if v == nil { - return nil - } - return v.IgnoreDaemonSets - }).(pulumi.BoolPtrOutput) +func (o ClusterV2FleetAgentDeploymentCustomizationArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationArrayOutput { + return o } -func (o ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInputPtrOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput) *int { - if v == nil { - return nil - } - return v.Timeout - }).(pulumi.IntPtrOutput) +func (o ClusterV2FleetAgentDeploymentCustomizationArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationArrayOutput { + return o } -type ClusterTemplateTemplateRevisionQuestion struct { - // Default variable value (string) - Default string `pulumi:"default"` - // Required variable. Default `false` (bool) - Required *bool `pulumi:"required"` - // Variable type. `boolean`, `int` and `string` are allowed. Default `string` (string) - Type *string `pulumi:"type"` - // Variable name (string) - Variable string `pulumi:"variable"` +func (o ClusterV2FleetAgentDeploymentCustomizationArrayOutput) Index(i pulumi.IntInput) ClusterV2FleetAgentDeploymentCustomizationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2FleetAgentDeploymentCustomization { + return vs[0].([]ClusterV2FleetAgentDeploymentCustomization)[vs[1].(int)] + }).(ClusterV2FleetAgentDeploymentCustomizationOutput) } -// ClusterTemplateTemplateRevisionQuestionInput is an input type that accepts ClusterTemplateTemplateRevisionQuestionArgs and ClusterTemplateTemplateRevisionQuestionOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionQuestionInput` via: +type ClusterV2FleetAgentDeploymentCustomizationAppendToleration struct { + // The taint effect. Default: `\"NoExecute\"`. + Effect *string `pulumi:"effect"` + // Key is the name of the key of the item to retrieve. + Key string `pulumi:"key"` + // Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + Operator *string `pulumi:"operator"` + // The number of seconds a pod will stay bound to a node with a matching taint. + Seconds *int `pulumi:"seconds"` + // The taint value. + Value *string `pulumi:"value"` +} + +// ClusterV2FleetAgentDeploymentCustomizationAppendTolerationInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs and ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput values. +// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationAppendTolerationInput` via: // -// ClusterTemplateTemplateRevisionQuestionArgs{...} -type ClusterTemplateTemplateRevisionQuestionInput interface { +// ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs{...} +type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionQuestionOutput() ClusterTemplateTemplateRevisionQuestionOutput - ToClusterTemplateTemplateRevisionQuestionOutputWithContext(context.Context) ClusterTemplateTemplateRevisionQuestionOutput + ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput + ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput } -type ClusterTemplateTemplateRevisionQuestionArgs struct { - // Default variable value (string) - Default pulumi.StringInput `pulumi:"default"` - // Required variable. Default `false` (bool) - Required pulumi.BoolPtrInput `pulumi:"required"` - // Variable type. `boolean`, `int` and `string` are allowed. Default `string` (string) - Type pulumi.StringPtrInput `pulumi:"type"` - // Variable name (string) - Variable pulumi.StringInput `pulumi:"variable"` +type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs struct { + // The taint effect. Default: `\"NoExecute\"`. + Effect pulumi.StringPtrInput `pulumi:"effect"` + // Key is the name of the key of the item to retrieve. + Key pulumi.StringInput `pulumi:"key"` + // Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + Operator pulumi.StringPtrInput `pulumi:"operator"` + // The number of seconds a pod will stay bound to a node with a matching taint. + Seconds pulumi.IntPtrInput `pulumi:"seconds"` + // The taint value. + Value pulumi.StringPtrInput `pulumi:"value"` } -func (ClusterTemplateTemplateRevisionQuestionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionQuestion)(nil)).Elem() +func (ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionQuestionArgs) ToClusterTemplateTemplateRevisionQuestionOutput() ClusterTemplateTemplateRevisionQuestionOutput { - return i.ToClusterTemplateTemplateRevisionQuestionOutputWithContext(context.Background()) +func (i ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { + return i.ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionQuestionArgs) ToClusterTemplateTemplateRevisionQuestionOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionQuestionOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionQuestionOutput) +func (i ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) } -// ClusterTemplateTemplateRevisionQuestionArrayInput is an input type that accepts ClusterTemplateTemplateRevisionQuestionArray and ClusterTemplateTemplateRevisionQuestionArrayOutput values. -// You can construct a concrete instance of `ClusterTemplateTemplateRevisionQuestionArrayInput` via: +// ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray and ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput values. +// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayInput` via: // -// ClusterTemplateTemplateRevisionQuestionArray{ ClusterTemplateTemplateRevisionQuestionArgs{...} } -type ClusterTemplateTemplateRevisionQuestionArrayInput interface { +// ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray{ ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs{...} } +type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayInput interface { pulumi.Input - ToClusterTemplateTemplateRevisionQuestionArrayOutput() ClusterTemplateTemplateRevisionQuestionArrayOutput - ToClusterTemplateTemplateRevisionQuestionArrayOutputWithContext(context.Context) ClusterTemplateTemplateRevisionQuestionArrayOutput + ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput + ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput } -type ClusterTemplateTemplateRevisionQuestionArray []ClusterTemplateTemplateRevisionQuestionInput +type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray []ClusterV2FleetAgentDeploymentCustomizationAppendTolerationInput -func (ClusterTemplateTemplateRevisionQuestionArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionQuestion)(nil)).Elem() +func (ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (i ClusterTemplateTemplateRevisionQuestionArray) ToClusterTemplateTemplateRevisionQuestionArrayOutput() ClusterTemplateTemplateRevisionQuestionArrayOutput { - return i.ToClusterTemplateTemplateRevisionQuestionArrayOutputWithContext(context.Background()) +func (i ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { + return i.ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Background()) } -func (i ClusterTemplateTemplateRevisionQuestionArray) ToClusterTemplateTemplateRevisionQuestionArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionQuestionArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterTemplateTemplateRevisionQuestionArrayOutput) +func (i ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) } -type ClusterTemplateTemplateRevisionQuestionOutput struct{ *pulumi.OutputState } +type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput struct{ *pulumi.OutputState } -func (ClusterTemplateTemplateRevisionQuestionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterTemplateTemplateRevisionQuestion)(nil)).Elem() +func (ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionQuestionOutput) ToClusterTemplateTemplateRevisionQuestionOutput() ClusterTemplateTemplateRevisionQuestionOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { return o } -func (o ClusterTemplateTemplateRevisionQuestionOutput) ToClusterTemplateTemplateRevisionQuestionOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionQuestionOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { return o } -// Default variable value (string) -func (o ClusterTemplateTemplateRevisionQuestionOutput) Default() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionQuestion) string { return v.Default }).(pulumi.StringOutput) +// The taint effect. Default: `\"NoExecute\"`. +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) } -// Required variable. Default `false` (bool) -func (o ClusterTemplateTemplateRevisionQuestionOutput) Required() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionQuestion) *bool { return v.Required }).(pulumi.BoolPtrOutput) +// Key is the name of the key of the item to retrieve. +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) string { return v.Key }).(pulumi.StringOutput) } -// Variable type. `boolean`, `int` and `string` are allowed. Default `string` (string) -func (o ClusterTemplateTemplateRevisionQuestionOutput) Type() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionQuestion) *string { return v.Type }).(pulumi.StringPtrOutput) +// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) } -// Variable name (string) -func (o ClusterTemplateTemplateRevisionQuestionOutput) Variable() pulumi.StringOutput { - return o.ApplyT(func(v ClusterTemplateTemplateRevisionQuestion) string { return v.Variable }).(pulumi.StringOutput) +// The number of seconds a pod will stay bound to a node with a matching taint. +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Seconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) } -type ClusterTemplateTemplateRevisionQuestionArrayOutput struct{ *pulumi.OutputState } +// The taint value. +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Value() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) *string { return v.Value }).(pulumi.StringPtrOutput) +} -func (ClusterTemplateTemplateRevisionQuestionArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterTemplateTemplateRevisionQuestion)(nil)).Elem() +type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() } -func (o ClusterTemplateTemplateRevisionQuestionArrayOutput) ToClusterTemplateTemplateRevisionQuestionArrayOutput() ClusterTemplateTemplateRevisionQuestionArrayOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionQuestionArrayOutput) ToClusterTemplateTemplateRevisionQuestionArrayOutputWithContext(ctx context.Context) ClusterTemplateTemplateRevisionQuestionArrayOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { return o } -func (o ClusterTemplateTemplateRevisionQuestionArrayOutput) Index(i pulumi.IntInput) ClusterTemplateTemplateRevisionQuestionOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterTemplateTemplateRevisionQuestion { - return vs[0].([]ClusterTemplateTemplateRevisionQuestion)[vs[1].(int)] - }).(ClusterTemplateTemplateRevisionQuestionOutput) +func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) Index(i pulumi.IntInput) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2FleetAgentDeploymentCustomizationAppendToleration { + return vs[0].([]ClusterV2FleetAgentDeploymentCustomizationAppendToleration)[vs[1].(int)] + }).(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) } -type ClusterV2AgentEnvVar struct { - // The name of the Cluster v2 (string) - Name string `pulumi:"name"` - // The taint value (string) - Value string `pulumi:"value"` +type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement struct { + // The maximum CPU limit for agent. + CpuLimit *string `pulumi:"cpuLimit"` + // The minimum CPU required for agent. + CpuRequest *string `pulumi:"cpuRequest"` + // The maximum memory limit for agent. + MemoryLimit *string `pulumi:"memoryLimit"` + // The minimum memory required for agent. + MemoryRequest *string `pulumi:"memoryRequest"` } -// ClusterV2AgentEnvVarInput is an input type that accepts ClusterV2AgentEnvVarArgs and ClusterV2AgentEnvVarOutput values. -// You can construct a concrete instance of `ClusterV2AgentEnvVarInput` via: +// ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs and ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput values. +// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementInput` via: // -// ClusterV2AgentEnvVarArgs{...} -type ClusterV2AgentEnvVarInput interface { +// ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} +type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementInput interface { pulumi.Input - ToClusterV2AgentEnvVarOutput() ClusterV2AgentEnvVarOutput - ToClusterV2AgentEnvVarOutputWithContext(context.Context) ClusterV2AgentEnvVarOutput + ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput + ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput } -type ClusterV2AgentEnvVarArgs struct { - // The name of the Cluster v2 (string) - Name pulumi.StringInput `pulumi:"name"` - // The taint value (string) - Value pulumi.StringInput `pulumi:"value"` +type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs struct { + // The maximum CPU limit for agent. + CpuLimit pulumi.StringPtrInput `pulumi:"cpuLimit"` + // The minimum CPU required for agent. + CpuRequest pulumi.StringPtrInput `pulumi:"cpuRequest"` + // The maximum memory limit for agent. + MemoryLimit pulumi.StringPtrInput `pulumi:"memoryLimit"` + // The minimum memory required for agent. + MemoryRequest pulumi.StringPtrInput `pulumi:"memoryRequest"` } -func (ClusterV2AgentEnvVarArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2AgentEnvVar)(nil)).Elem() +func (ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (i ClusterV2AgentEnvVarArgs) ToClusterV2AgentEnvVarOutput() ClusterV2AgentEnvVarOutput { - return i.ToClusterV2AgentEnvVarOutputWithContext(context.Background()) +func (i ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return i.ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Background()) } -func (i ClusterV2AgentEnvVarArgs) ToClusterV2AgentEnvVarOutputWithContext(ctx context.Context) ClusterV2AgentEnvVarOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2AgentEnvVarOutput) +func (i ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) } -// ClusterV2AgentEnvVarArrayInput is an input type that accepts ClusterV2AgentEnvVarArray and ClusterV2AgentEnvVarArrayOutput values. -// You can construct a concrete instance of `ClusterV2AgentEnvVarArrayInput` via: +// ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray and ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput values. +// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput` via: // -// ClusterV2AgentEnvVarArray{ ClusterV2AgentEnvVarArgs{...} } -type ClusterV2AgentEnvVarArrayInput interface { +// ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray{ ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} } +type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput interface { pulumi.Input - ToClusterV2AgentEnvVarArrayOutput() ClusterV2AgentEnvVarArrayOutput - ToClusterV2AgentEnvVarArrayOutputWithContext(context.Context) ClusterV2AgentEnvVarArrayOutput + ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput + ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput } -type ClusterV2AgentEnvVarArray []ClusterV2AgentEnvVarInput +type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray []ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementInput -func (ClusterV2AgentEnvVarArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2AgentEnvVar)(nil)).Elem() +func (ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (i ClusterV2AgentEnvVarArray) ToClusterV2AgentEnvVarArrayOutput() ClusterV2AgentEnvVarArrayOutput { - return i.ToClusterV2AgentEnvVarArrayOutputWithContext(context.Background()) +func (i ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return i.ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Background()) } -func (i ClusterV2AgentEnvVarArray) ToClusterV2AgentEnvVarArrayOutputWithContext(ctx context.Context) ClusterV2AgentEnvVarArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2AgentEnvVarArrayOutput) +func (i ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) } -type ClusterV2AgentEnvVarOutput struct{ *pulumi.OutputState } +type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput struct{ *pulumi.OutputState } -func (ClusterV2AgentEnvVarOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2AgentEnvVar)(nil)).Elem() +func (ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() } -func (o ClusterV2AgentEnvVarOutput) ToClusterV2AgentEnvVarOutput() ClusterV2AgentEnvVarOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { return o } -func (o ClusterV2AgentEnvVarOutput) ToClusterV2AgentEnvVarOutputWithContext(ctx context.Context) ClusterV2AgentEnvVarOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { return o } -// The name of the Cluster v2 (string) -func (o ClusterV2AgentEnvVarOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2AgentEnvVar) string { return v.Name }).(pulumi.StringOutput) +// The maximum CPU limit for agent. +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuLimit() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.CpuLimit + }).(pulumi.StringPtrOutput) } -// The taint value (string) -func (o ClusterV2AgentEnvVarOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2AgentEnvVar) string { return v.Value }).(pulumi.StringOutput) +// The minimum CPU required for agent. +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuRequest() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.CpuRequest + }).(pulumi.StringPtrOutput) } -type ClusterV2AgentEnvVarArrayOutput struct{ *pulumi.OutputState } +// The maximum memory limit for agent. +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryLimit() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.MemoryLimit + }).(pulumi.StringPtrOutput) +} -func (ClusterV2AgentEnvVarArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2AgentEnvVar)(nil)).Elem() +// The minimum memory required for agent. +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryRequest() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement) *string { + return v.MemoryRequest + }).(pulumi.StringPtrOutput) } -func (o ClusterV2AgentEnvVarArrayOutput) ToClusterV2AgentEnvVarArrayOutput() ClusterV2AgentEnvVarArrayOutput { +type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +} + +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { return o } -func (o ClusterV2AgentEnvVarArrayOutput) ToClusterV2AgentEnvVarArrayOutputWithContext(ctx context.Context) ClusterV2AgentEnvVarArrayOutput { +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { return o } -func (o ClusterV2AgentEnvVarArrayOutput) Index(i pulumi.IntInput) ClusterV2AgentEnvVarOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2AgentEnvVar { - return vs[0].([]ClusterV2AgentEnvVar)[vs[1].(int)] - }).(ClusterV2AgentEnvVarOutput) +func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) Index(i pulumi.IntInput) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement { + return vs[0].([]ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)[vs[1].(int)] + }).(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) } -type ClusterV2ClusterAgentDeploymentCustomization struct { - // User defined tolerations to append to agent (list) - AppendTolerations []ClusterV2ClusterAgentDeploymentCustomizationAppendToleration `pulumi:"appendTolerations"` - // User defined affinity to override default agent affinity (string) - OverrideAffinity *string `pulumi:"overrideAffinity"` - // User defined resource requirements to set on the agent (list) - OverrideResourceRequirements []ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement `pulumi:"overrideResourceRequirements"` +type ClusterV2LocalAuthEndpoint struct { + // CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. + CaCerts *string `pulumi:"caCerts"` + // If `enabled` is set to true, nodes will be drained before upgrade. + Enabled *bool `pulumi:"enabled"` + // FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. + Fqdn *string `pulumi:"fqdn"` } -// ClusterV2ClusterAgentDeploymentCustomizationInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationArgs and ClusterV2ClusterAgentDeploymentCustomizationOutput values. -// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationInput` via: +// ClusterV2LocalAuthEndpointInput is an input type that accepts ClusterV2LocalAuthEndpointArgs and ClusterV2LocalAuthEndpointOutput values. +// You can construct a concrete instance of `ClusterV2LocalAuthEndpointInput` via: // -// ClusterV2ClusterAgentDeploymentCustomizationArgs{...} -type ClusterV2ClusterAgentDeploymentCustomizationInput interface { +// ClusterV2LocalAuthEndpointArgs{...} +type ClusterV2LocalAuthEndpointInput interface { pulumi.Input - ToClusterV2ClusterAgentDeploymentCustomizationOutput() ClusterV2ClusterAgentDeploymentCustomizationOutput - ToClusterV2ClusterAgentDeploymentCustomizationOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationOutput + ToClusterV2LocalAuthEndpointOutput() ClusterV2LocalAuthEndpointOutput + ToClusterV2LocalAuthEndpointOutputWithContext(context.Context) ClusterV2LocalAuthEndpointOutput } -type ClusterV2ClusterAgentDeploymentCustomizationArgs struct { - // User defined tolerations to append to agent (list) - AppendTolerations ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayInput `pulumi:"appendTolerations"` - // User defined affinity to override default agent affinity (string) - OverrideAffinity pulumi.StringPtrInput `pulumi:"overrideAffinity"` - // User defined resource requirements to set on the agent (list) - OverrideResourceRequirements ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput `pulumi:"overrideResourceRequirements"` +type ClusterV2LocalAuthEndpointArgs struct { + // CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. + CaCerts pulumi.StringPtrInput `pulumi:"caCerts"` + // If `enabled` is set to true, nodes will be drained before upgrade. + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` + // FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. + Fqdn pulumi.StringPtrInput `pulumi:"fqdn"` } -func (ClusterV2ClusterAgentDeploymentCustomizationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomization)(nil)).Elem() +func (ClusterV2LocalAuthEndpointArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2LocalAuthEndpoint)(nil)).Elem() } -func (i ClusterV2ClusterAgentDeploymentCustomizationArgs) ToClusterV2ClusterAgentDeploymentCustomizationOutput() ClusterV2ClusterAgentDeploymentCustomizationOutput { - return i.ToClusterV2ClusterAgentDeploymentCustomizationOutputWithContext(context.Background()) +func (i ClusterV2LocalAuthEndpointArgs) ToClusterV2LocalAuthEndpointOutput() ClusterV2LocalAuthEndpointOutput { + return i.ToClusterV2LocalAuthEndpointOutputWithContext(context.Background()) } -func (i ClusterV2ClusterAgentDeploymentCustomizationArgs) ToClusterV2ClusterAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationOutput) +func (i ClusterV2LocalAuthEndpointArgs) ToClusterV2LocalAuthEndpointOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2LocalAuthEndpointOutput) } -// ClusterV2ClusterAgentDeploymentCustomizationArrayInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationArray and ClusterV2ClusterAgentDeploymentCustomizationArrayOutput values. -// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationArrayInput` via: +func (i ClusterV2LocalAuthEndpointArgs) ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput { + return i.ToClusterV2LocalAuthEndpointPtrOutputWithContext(context.Background()) +} + +func (i ClusterV2LocalAuthEndpointArgs) ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2LocalAuthEndpointOutput).ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx) +} + +// ClusterV2LocalAuthEndpointPtrInput is an input type that accepts ClusterV2LocalAuthEndpointArgs, ClusterV2LocalAuthEndpointPtr and ClusterV2LocalAuthEndpointPtrOutput values. +// You can construct a concrete instance of `ClusterV2LocalAuthEndpointPtrInput` via: // -// ClusterV2ClusterAgentDeploymentCustomizationArray{ ClusterV2ClusterAgentDeploymentCustomizationArgs{...} } -type ClusterV2ClusterAgentDeploymentCustomizationArrayInput interface { +// ClusterV2LocalAuthEndpointArgs{...} +// +// or: +// +// nil +type ClusterV2LocalAuthEndpointPtrInput interface { pulumi.Input - ToClusterV2ClusterAgentDeploymentCustomizationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationArrayOutput - ToClusterV2ClusterAgentDeploymentCustomizationArrayOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationArrayOutput + ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput + ToClusterV2LocalAuthEndpointPtrOutputWithContext(context.Context) ClusterV2LocalAuthEndpointPtrOutput } -type ClusterV2ClusterAgentDeploymentCustomizationArray []ClusterV2ClusterAgentDeploymentCustomizationInput +type clusterV2LocalAuthEndpointPtrType ClusterV2LocalAuthEndpointArgs -func (ClusterV2ClusterAgentDeploymentCustomizationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomization)(nil)).Elem() +func ClusterV2LocalAuthEndpointPtr(v *ClusterV2LocalAuthEndpointArgs) ClusterV2LocalAuthEndpointPtrInput { + return (*clusterV2LocalAuthEndpointPtrType)(v) } -func (i ClusterV2ClusterAgentDeploymentCustomizationArray) ToClusterV2ClusterAgentDeploymentCustomizationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { - return i.ToClusterV2ClusterAgentDeploymentCustomizationArrayOutputWithContext(context.Background()) +func (*clusterV2LocalAuthEndpointPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2LocalAuthEndpoint)(nil)).Elem() +} + +func (i *clusterV2LocalAuthEndpointPtrType) ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput { + return i.ToClusterV2LocalAuthEndpointPtrOutputWithContext(context.Background()) +} + +func (i *clusterV2LocalAuthEndpointPtrType) ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2LocalAuthEndpointPtrOutput) +} + +type ClusterV2LocalAuthEndpointOutput struct{ *pulumi.OutputState } + +func (ClusterV2LocalAuthEndpointOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2LocalAuthEndpoint)(nil)).Elem() +} + +func (o ClusterV2LocalAuthEndpointOutput) ToClusterV2LocalAuthEndpointOutput() ClusterV2LocalAuthEndpointOutput { + return o +} + +func (o ClusterV2LocalAuthEndpointOutput) ToClusterV2LocalAuthEndpointOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointOutput { + return o +} + +func (o ClusterV2LocalAuthEndpointOutput) ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput { + return o.ToClusterV2LocalAuthEndpointPtrOutputWithContext(context.Background()) +} + +func (o ClusterV2LocalAuthEndpointOutput) ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2LocalAuthEndpoint) *ClusterV2LocalAuthEndpoint { + return &v + }).(ClusterV2LocalAuthEndpointPtrOutput) +} + +// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. +func (o ClusterV2LocalAuthEndpointOutput) CaCerts() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2LocalAuthEndpoint) *string { return v.CaCerts }).(pulumi.StringPtrOutput) +} + +// If `enabled` is set to true, nodes will be drained before upgrade. +func (o ClusterV2LocalAuthEndpointOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2LocalAuthEndpoint) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } -func (i ClusterV2ClusterAgentDeploymentCustomizationArray) ToClusterV2ClusterAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) +// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. +func (o ClusterV2LocalAuthEndpointOutput) Fqdn() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2LocalAuthEndpoint) *string { return v.Fqdn }).(pulumi.StringPtrOutput) } -type ClusterV2ClusterAgentDeploymentCustomizationOutput struct{ *pulumi.OutputState } +type ClusterV2LocalAuthEndpointPtrOutput struct{ *pulumi.OutputState } -func (ClusterV2ClusterAgentDeploymentCustomizationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomization)(nil)).Elem() +func (ClusterV2LocalAuthEndpointPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2LocalAuthEndpoint)(nil)).Elem() } -func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) ToClusterV2ClusterAgentDeploymentCustomizationOutput() ClusterV2ClusterAgentDeploymentCustomizationOutput { +func (o ClusterV2LocalAuthEndpointPtrOutput) ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput { return o } -func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) ToClusterV2ClusterAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOutput { +func (o ClusterV2LocalAuthEndpointPtrOutput) ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointPtrOutput { return o } -// User defined tolerations to append to agent (list) -func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) AppendTolerations() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomization) []ClusterV2ClusterAgentDeploymentCustomizationAppendToleration { - return v.AppendTolerations - }).(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) +func (o ClusterV2LocalAuthEndpointPtrOutput) Elem() ClusterV2LocalAuthEndpointOutput { + return o.ApplyT(func(v *ClusterV2LocalAuthEndpoint) ClusterV2LocalAuthEndpoint { + if v != nil { + return *v + } + var ret ClusterV2LocalAuthEndpoint + return ret + }).(ClusterV2LocalAuthEndpointOutput) } -// User defined affinity to override default agent affinity (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) OverrideAffinity() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomization) *string { return v.OverrideAffinity }).(pulumi.StringPtrOutput) +// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. +func (o ClusterV2LocalAuthEndpointPtrOutput) CaCerts() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2LocalAuthEndpoint) *string { + if v == nil { + return nil + } + return v.CaCerts + }).(pulumi.StringPtrOutput) } -// User defined resource requirements to set on the agent (list) -func (o ClusterV2ClusterAgentDeploymentCustomizationOutput) OverrideResourceRequirements() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomization) []ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement { - return v.OverrideResourceRequirements - }).(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) +// If `enabled` is set to true, nodes will be drained before upgrade. +func (o ClusterV2LocalAuthEndpointPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterV2LocalAuthEndpoint) *bool { + if v == nil { + return nil + } + return v.Enabled + }).(pulumi.BoolPtrOutput) } -type ClusterV2ClusterAgentDeploymentCustomizationArrayOutput struct{ *pulumi.OutputState } - -func (ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomization)(nil)).Elem() +// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. +func (o ClusterV2LocalAuthEndpointPtrOutput) Fqdn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2LocalAuthEndpoint) *string { + if v == nil { + return nil + } + return v.Fqdn + }).(pulumi.StringPtrOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { - return o +type ClusterV2RkeConfig struct { + // The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. + AdditionalManifest *string `pulumi:"additionalManifest"` + // The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). + ChartValues *string `pulumi:"chartValues"` + // Etcd configures the behavior of the automatic etcd snapshot feature. + Etcd *ClusterV2RkeConfigEtcd `pulumi:"etcd"` + // Cluster V2 etcd snapshot create. + EtcdSnapshotCreate *ClusterV2RkeConfigEtcdSnapshotCreate `pulumi:"etcdSnapshotCreate"` + // Cluster V2 etcd snapshot restore. + EtcdSnapshotRestore *ClusterV2RkeConfigEtcdSnapshotRestore `pulumi:"etcdSnapshotRestore"` + // Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). + // + // Deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead + LocalAuthEndpoint *ClusterV2RkeConfigLocalAuthEndpoint `pulumi:"localAuthEndpoint"` + // Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). + MachineGlobalConfig *string `pulumi:"machineGlobalConfig"` + // Default values for machine pool configurations if unset + MachinePoolDefaults []ClusterV2RkeConfigMachinePoolDefault `pulumi:"machinePoolDefaults"` + // Cluster V2 machine pools. + MachinePools []ClusterV2RkeConfigMachinePool `pulumi:"machinePools"` + // Machine selector config is the same as machineGlobalConfig except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machineSelectorConfig takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. + MachineSelectorConfigs []ClusterV2RkeConfigMachineSelectorConfig `pulumi:"machineSelectorConfigs"` + // Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + MachineSelectorFiles []ClusterV2RkeConfigMachineSelectorFile `pulumi:"machineSelectorFiles"` + // Docker registries from which the cluster pulls images. + Registries *ClusterV2RkeConfigRegistries `pulumi:"registries"` + // Cluster V2 certificate rotation. + RotateCertificates *ClusterV2RkeConfigRotateCertificates `pulumi:"rotateCertificates"` + // Cluster upgrade strategy. + UpgradeStrategy *ClusterV2RkeConfigUpgradeStrategy `pulumi:"upgradeStrategy"` } -func (o ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationArrayOutput { - return o -} +// ClusterV2RkeConfigInput is an input type that accepts ClusterV2RkeConfigArgs and ClusterV2RkeConfigOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigInput` via: +// +// ClusterV2RkeConfigArgs{...} +type ClusterV2RkeConfigInput interface { + pulumi.Input -func (o ClusterV2ClusterAgentDeploymentCustomizationArrayOutput) Index(i pulumi.IntInput) ClusterV2ClusterAgentDeploymentCustomizationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2ClusterAgentDeploymentCustomization { - return vs[0].([]ClusterV2ClusterAgentDeploymentCustomization)[vs[1].(int)] - }).(ClusterV2ClusterAgentDeploymentCustomizationOutput) + ToClusterV2RkeConfigOutput() ClusterV2RkeConfigOutput + ToClusterV2RkeConfigOutputWithContext(context.Context) ClusterV2RkeConfigOutput } -type ClusterV2ClusterAgentDeploymentCustomizationAppendToleration struct { - // The taint effect. Default: `\"NoExecute\"` (string) - Effect *string `pulumi:"effect"` - // Machine selector label match expressions key (string) - Key string `pulumi:"key"` - // Machine selector label match expressions operator (string) - Operator *string `pulumi:"operator"` - // The number of seconds a pod will stay bound to a node with a matching taint (int) - Seconds *int `pulumi:"seconds"` - // The taint value (string) - Value *string `pulumi:"value"` +type ClusterV2RkeConfigArgs struct { + // The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. + AdditionalManifest pulumi.StringPtrInput `pulumi:"additionalManifest"` + // The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). + ChartValues pulumi.StringPtrInput `pulumi:"chartValues"` + // Etcd configures the behavior of the automatic etcd snapshot feature. + Etcd ClusterV2RkeConfigEtcdPtrInput `pulumi:"etcd"` + // Cluster V2 etcd snapshot create. + EtcdSnapshotCreate ClusterV2RkeConfigEtcdSnapshotCreatePtrInput `pulumi:"etcdSnapshotCreate"` + // Cluster V2 etcd snapshot restore. + EtcdSnapshotRestore ClusterV2RkeConfigEtcdSnapshotRestorePtrInput `pulumi:"etcdSnapshotRestore"` + // Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). + // + // Deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead + LocalAuthEndpoint ClusterV2RkeConfigLocalAuthEndpointPtrInput `pulumi:"localAuthEndpoint"` + // Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). + MachineGlobalConfig pulumi.StringPtrInput `pulumi:"machineGlobalConfig"` + // Default values for machine pool configurations if unset + MachinePoolDefaults ClusterV2RkeConfigMachinePoolDefaultArrayInput `pulumi:"machinePoolDefaults"` + // Cluster V2 machine pools. + MachinePools ClusterV2RkeConfigMachinePoolArrayInput `pulumi:"machinePools"` + // Machine selector config is the same as machineGlobalConfig except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machineSelectorConfig takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. + MachineSelectorConfigs ClusterV2RkeConfigMachineSelectorConfigArrayInput `pulumi:"machineSelectorConfigs"` + // Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + MachineSelectorFiles ClusterV2RkeConfigMachineSelectorFileArrayInput `pulumi:"machineSelectorFiles"` + // Docker registries from which the cluster pulls images. + Registries ClusterV2RkeConfigRegistriesPtrInput `pulumi:"registries"` + // Cluster V2 certificate rotation. + RotateCertificates ClusterV2RkeConfigRotateCertificatesPtrInput `pulumi:"rotateCertificates"` + // Cluster upgrade strategy. + UpgradeStrategy ClusterV2RkeConfigUpgradeStrategyPtrInput `pulumi:"upgradeStrategy"` } -// ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs and ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput values. -// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationInput` via: -// -// ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs{...} -type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationInput interface { - pulumi.Input - - ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput - ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput +func (ClusterV2RkeConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfig)(nil)).Elem() } -type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs struct { - // The taint effect. Default: `\"NoExecute\"` (string) - Effect pulumi.StringPtrInput `pulumi:"effect"` - // Machine selector label match expressions key (string) - Key pulumi.StringInput `pulumi:"key"` - // Machine selector label match expressions operator (string) - Operator pulumi.StringPtrInput `pulumi:"operator"` - // The number of seconds a pod will stay bound to a node with a matching taint (int) - Seconds pulumi.IntPtrInput `pulumi:"seconds"` - // The taint value (string) - Value pulumi.StringPtrInput `pulumi:"value"` +func (i ClusterV2RkeConfigArgs) ToClusterV2RkeConfigOutput() ClusterV2RkeConfigOutput { + return i.ToClusterV2RkeConfigOutputWithContext(context.Background()) } -func (ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +func (i ClusterV2RkeConfigArgs) ToClusterV2RkeConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigOutput) } -func (i ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { - return i.ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigArgs) ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput { + return i.ToClusterV2RkeConfigPtrOutputWithContext(context.Background()) } -func (i ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) +func (i ClusterV2RkeConfigArgs) ToClusterV2RkeConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigOutput).ToClusterV2RkeConfigPtrOutputWithContext(ctx) } -// ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray and ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput values. -// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayInput` via: +// ClusterV2RkeConfigPtrInput is an input type that accepts ClusterV2RkeConfigArgs, ClusterV2RkeConfigPtr and ClusterV2RkeConfigPtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigPtrInput` via: // -// ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray{ ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs{...} } -type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayInput interface { +// ClusterV2RkeConfigArgs{...} +// +// or: +// +// nil +type ClusterV2RkeConfigPtrInput interface { pulumi.Input - ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput - ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput + ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput + ToClusterV2RkeConfigPtrOutputWithContext(context.Context) ClusterV2RkeConfigPtrOutput } -type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray []ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationInput +type clusterV2RkeConfigPtrType ClusterV2RkeConfigArgs -func (ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +func ClusterV2RkeConfigPtr(v *ClusterV2RkeConfigArgs) ClusterV2RkeConfigPtrInput { + return (*clusterV2RkeConfigPtrType)(v) } -func (i ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return i.ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Background()) +func (*clusterV2RkeConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfig)(nil)).Elem() } -func (i ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArray) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) +func (i *clusterV2RkeConfigPtrType) ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput { + return i.ToClusterV2RkeConfigPtrOutputWithContext(context.Background()) } -type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput struct{ *pulumi.OutputState } +func (i *clusterV2RkeConfigPtrType) ToClusterV2RkeConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigPtrOutput) +} -func (ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +type ClusterV2RkeConfigOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfig)(nil)).Elem() } -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { +func (o ClusterV2RkeConfigOutput) ToClusterV2RkeConfigOutput() ClusterV2RkeConfigOutput { return o } -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { +func (o ClusterV2RkeConfigOutput) ToClusterV2RkeConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigOutput { return o } -// The taint effect. Default: `\"NoExecute\"` (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) +func (o ClusterV2RkeConfigOutput) ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput { + return o.ToClusterV2RkeConfigPtrOutputWithContext(context.Background()) } -// Machine selector label match expressions key (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) string { return v.Key }).(pulumi.StringOutput) +func (o ClusterV2RkeConfigOutput) ToClusterV2RkeConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfig) *ClusterV2RkeConfig { + return &v + }).(ClusterV2RkeConfigPtrOutput) } -// Machine selector label match expressions operator (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) +// The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. +func (o ClusterV2RkeConfigOutput) AdditionalManifest() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *string { return v.AdditionalManifest }).(pulumi.StringPtrOutput) } -// The number of seconds a pod will stay bound to a node with a matching taint (int) -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Seconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) +// The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). +func (o ClusterV2RkeConfigOutput) ChartValues() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *string { return v.ChartValues }).(pulumi.StringPtrOutput) } -// The taint value (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) Value() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationAppendToleration) *string { return v.Value }).(pulumi.StringPtrOutput) +// Etcd configures the behavior of the automatic etcd snapshot feature. +func (o ClusterV2RkeConfigOutput) Etcd() ClusterV2RkeConfigEtcdPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigEtcd { return v.Etcd }).(ClusterV2RkeConfigEtcdPtrOutput) } -type ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput struct{ *pulumi.OutputState } - -func (ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +// Cluster V2 etcd snapshot create. +func (o ClusterV2RkeConfigOutput) EtcdSnapshotCreate() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigEtcdSnapshotCreate { return v.EtcdSnapshotCreate }).(ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o +// Cluster V2 etcd snapshot restore. +func (o ClusterV2RkeConfigOutput) EtcdSnapshotRestore() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigEtcdSnapshotRestore { return v.EtcdSnapshotRestore }).(ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o +// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). +// +// Deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead +func (o ClusterV2RkeConfigOutput) LocalAuthEndpoint() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigLocalAuthEndpoint { return v.LocalAuthEndpoint }).(ClusterV2RkeConfigLocalAuthEndpointPtrOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArrayOutput) Index(i pulumi.IntInput) ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2ClusterAgentDeploymentCustomizationAppendToleration { - return vs[0].([]ClusterV2ClusterAgentDeploymentCustomizationAppendToleration)[vs[1].(int)] - }).(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationOutput) +// Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). +func (o ClusterV2RkeConfigOutput) MachineGlobalConfig() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *string { return v.MachineGlobalConfig }).(pulumi.StringPtrOutput) } -type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement struct { - // The maximum CPU limit for agent (string) - CpuLimit *string `pulumi:"cpuLimit"` - // The minimum CPU required for agent (string) - CpuRequest *string `pulumi:"cpuRequest"` - // The maximum memory limit for agent (string) - MemoryLimit *string `pulumi:"memoryLimit"` - // The minimum memory required for agent (string) - MemoryRequest *string `pulumi:"memoryRequest"` +// Default values for machine pool configurations if unset +func (o ClusterV2RkeConfigOutput) MachinePoolDefaults() ClusterV2RkeConfigMachinePoolDefaultArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) []ClusterV2RkeConfigMachinePoolDefault { return v.MachinePoolDefaults }).(ClusterV2RkeConfigMachinePoolDefaultArrayOutput) } -// ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs and ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput values. -// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementInput` via: -// -// ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} -type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementInput interface { - pulumi.Input - - ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput - ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput +// Cluster V2 machine pools. +func (o ClusterV2RkeConfigOutput) MachinePools() ClusterV2RkeConfigMachinePoolArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) []ClusterV2RkeConfigMachinePool { return v.MachinePools }).(ClusterV2RkeConfigMachinePoolArrayOutput) } -type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs struct { - // The maximum CPU limit for agent (string) - CpuLimit pulumi.StringPtrInput `pulumi:"cpuLimit"` - // The minimum CPU required for agent (string) - CpuRequest pulumi.StringPtrInput `pulumi:"cpuRequest"` - // The maximum memory limit for agent (string) - MemoryLimit pulumi.StringPtrInput `pulumi:"memoryLimit"` - // The minimum memory required for agent (string) - MemoryRequest pulumi.StringPtrInput `pulumi:"memoryRequest"` +// Machine selector config is the same as machineGlobalConfig except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machineSelectorConfig takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. +func (o ClusterV2RkeConfigOutput) MachineSelectorConfigs() ClusterV2RkeConfigMachineSelectorConfigArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) []ClusterV2RkeConfigMachineSelectorConfig { return v.MachineSelectorConfigs }).(ClusterV2RkeConfigMachineSelectorConfigArrayOutput) } -func (ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +// Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. +func (o ClusterV2RkeConfigOutput) MachineSelectorFiles() ClusterV2RkeConfigMachineSelectorFileArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) []ClusterV2RkeConfigMachineSelectorFile { return v.MachineSelectorFiles }).(ClusterV2RkeConfigMachineSelectorFileArrayOutput) } -func (i ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return i.ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Background()) +// Docker registries from which the cluster pulls images. +func (o ClusterV2RkeConfigOutput) Registries() ClusterV2RkeConfigRegistriesPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigRegistries { return v.Registries }).(ClusterV2RkeConfigRegistriesPtrOutput) } -func (i ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) +// Cluster V2 certificate rotation. +func (o ClusterV2RkeConfigOutput) RotateCertificates() ClusterV2RkeConfigRotateCertificatesPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigRotateCertificates { return v.RotateCertificates }).(ClusterV2RkeConfigRotateCertificatesPtrOutput) } -// ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput is an input type that accepts ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray and ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput values. -// You can construct a concrete instance of `ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput` via: -// -// ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray{ ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} } -type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayInput interface { - pulumi.Input - - ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput - ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput +// Cluster upgrade strategy. +func (o ClusterV2RkeConfigOutput) UpgradeStrategy() ClusterV2RkeConfigUpgradeStrategyPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigUpgradeStrategy { return v.UpgradeStrategy }).(ClusterV2RkeConfigUpgradeStrategyPtrOutput) } -type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray []ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementInput +type ClusterV2RkeConfigPtrOutput struct{ *pulumi.OutputState } -func (ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +func (ClusterV2RkeConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfig)(nil)).Elem() } -func (i ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return i.ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigPtrOutput) ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput { + return o } -func (i ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) +func (o ClusterV2RkeConfigPtrOutput) ToClusterV2RkeConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigPtrOutput { + return o } -type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput struct{ *pulumi.OutputState } +func (o ClusterV2RkeConfigPtrOutput) Elem() ClusterV2RkeConfigOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) ClusterV2RkeConfig { + if v != nil { + return *v + } + var ret ClusterV2RkeConfig + return ret + }).(ClusterV2RkeConfigOutput) +} -func (ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +// The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. +func (o ClusterV2RkeConfigPtrOutput) AdditionalManifest() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *string { + if v == nil { + return nil + } + return v.AdditionalManifest + }).(pulumi.StringPtrOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return o +// The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). +func (o ClusterV2RkeConfigPtrOutput) ChartValues() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *string { + if v == nil { + return nil + } + return v.ChartValues + }).(pulumi.StringPtrOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return o +// Etcd configures the behavior of the automatic etcd snapshot feature. +func (o ClusterV2RkeConfigPtrOutput) Etcd() ClusterV2RkeConfigEtcdPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigEtcd { + if v == nil { + return nil + } + return v.Etcd + }).(ClusterV2RkeConfigEtcdPtrOutput) } -// The maximum CPU limit for agent (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuLimit() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.CpuLimit - }).(pulumi.StringPtrOutput) +// Cluster V2 etcd snapshot create. +func (o ClusterV2RkeConfigPtrOutput) EtcdSnapshotCreate() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigEtcdSnapshotCreate { + if v == nil { + return nil + } + return v.EtcdSnapshotCreate + }).(ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) } -// The minimum CPU required for agent (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuRequest() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.CpuRequest - }).(pulumi.StringPtrOutput) +// Cluster V2 etcd snapshot restore. +func (o ClusterV2RkeConfigPtrOutput) EtcdSnapshotRestore() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigEtcdSnapshotRestore { + if v == nil { + return nil + } + return v.EtcdSnapshotRestore + }).(ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) } -// The maximum memory limit for agent (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryLimit() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.MemoryLimit - }).(pulumi.StringPtrOutput) +// Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). +// +// Deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead +func (o ClusterV2RkeConfigPtrOutput) LocalAuthEndpoint() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigLocalAuthEndpoint { + if v == nil { + return nil + } + return v.LocalAuthEndpoint + }).(ClusterV2RkeConfigLocalAuthEndpointPtrOutput) } -// The minimum memory required for agent (string) -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryRequest() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.MemoryRequest +// Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). +func (o ClusterV2RkeConfigPtrOutput) MachineGlobalConfig() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *string { + if v == nil { + return nil + } + return v.MachineGlobalConfig }).(pulumi.StringPtrOutput) } -type ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput struct{ *pulumi.OutputState } +// Default values for machine pool configurations if unset +func (o ClusterV2RkeConfigPtrOutput) MachinePoolDefaults() ClusterV2RkeConfigMachinePoolDefaultArrayOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) []ClusterV2RkeConfigMachinePoolDefault { + if v == nil { + return nil + } + return v.MachinePoolDefaults + }).(ClusterV2RkeConfigMachinePoolDefaultArrayOutput) +} -func (ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +// Cluster V2 machine pools. +func (o ClusterV2RkeConfigPtrOutput) MachinePools() ClusterV2RkeConfigMachinePoolArrayOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) []ClusterV2RkeConfigMachinePool { + if v == nil { + return nil + } + return v.MachinePools + }).(ClusterV2RkeConfigMachinePoolArrayOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return o +// Machine selector config is the same as machineGlobalConfig except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machineSelectorConfig takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. +func (o ClusterV2RkeConfigPtrOutput) MachineSelectorConfigs() ClusterV2RkeConfigMachineSelectorConfigArrayOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) []ClusterV2RkeConfigMachineSelectorConfig { + if v == nil { + return nil + } + return v.MachineSelectorConfigs + }).(ClusterV2RkeConfigMachineSelectorConfigArrayOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return o +// Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. +func (o ClusterV2RkeConfigPtrOutput) MachineSelectorFiles() ClusterV2RkeConfigMachineSelectorFileArrayOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) []ClusterV2RkeConfigMachineSelectorFile { + if v == nil { + return nil + } + return v.MachineSelectorFiles + }).(ClusterV2RkeConfigMachineSelectorFileArrayOutput) } -func (o ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) Index(i pulumi.IntInput) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement { - return vs[0].([]ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement)[vs[1].(int)] - }).(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementOutput) +// Docker registries from which the cluster pulls images. +func (o ClusterV2RkeConfigPtrOutput) Registries() ClusterV2RkeConfigRegistriesPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigRegistries { + if v == nil { + return nil + } + return v.Registries + }).(ClusterV2RkeConfigRegistriesPtrOutput) } -type ClusterV2ClusterRegistrationToken struct { - // Annotations for the Cluster V2 (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // Cluster ID (string) - ClusterId *string `pulumi:"clusterId"` - // Command to execute in a imported k8s cluster (string) - Command *string `pulumi:"command"` - // (Computed) The ID of the resource (string) - Id *string `pulumi:"id"` - // Insecure command to execute in a imported k8s cluster (string) - InsecureCommand *string `pulumi:"insecureCommand"` - // Insecure node command to execute in a imported k8s cluster (string) - InsecureNodeCommand *string `pulumi:"insecureNodeCommand"` - // Insecure windows command to execute in a imported k8s cluster (string) - InsecureWindowsNodeCommand *string `pulumi:"insecureWindowsNodeCommand"` - // Labels for the Cluster V2 (map) - Labels map[string]interface{} `pulumi:"labels"` - // K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) - ManifestUrl *string `pulumi:"manifestUrl"` - // The name of the Cluster v2 (string) - Name *string `pulumi:"name"` - // Node command to execute in linux nodes for custom k8s cluster (string) - NodeCommand *string `pulumi:"nodeCommand"` - // Token for cluster registration token object (string) - Token *string `pulumi:"token"` - // Node command to execute in windows nodes for custom k8s cluster (string) - WindowsNodeCommand *string `pulumi:"windowsNodeCommand"` +// Cluster V2 certificate rotation. +func (o ClusterV2RkeConfigPtrOutput) RotateCertificates() ClusterV2RkeConfigRotateCertificatesPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigRotateCertificates { + if v == nil { + return nil + } + return v.RotateCertificates + }).(ClusterV2RkeConfigRotateCertificatesPtrOutput) } -// ClusterV2ClusterRegistrationTokenInput is an input type that accepts ClusterV2ClusterRegistrationTokenArgs and ClusterV2ClusterRegistrationTokenOutput values. -// You can construct a concrete instance of `ClusterV2ClusterRegistrationTokenInput` via: -// -// ClusterV2ClusterRegistrationTokenArgs{...} -type ClusterV2ClusterRegistrationTokenInput interface { - pulumi.Input +// Cluster upgrade strategy. +func (o ClusterV2RkeConfigPtrOutput) UpgradeStrategy() ClusterV2RkeConfigUpgradeStrategyPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigUpgradeStrategy { + if v == nil { + return nil + } + return v.UpgradeStrategy + }).(ClusterV2RkeConfigUpgradeStrategyPtrOutput) +} - ToClusterV2ClusterRegistrationTokenOutput() ClusterV2ClusterRegistrationTokenOutput - ToClusterV2ClusterRegistrationTokenOutputWithContext(context.Context) ClusterV2ClusterRegistrationTokenOutput +type ClusterV2RkeConfigEtcd struct { + // Disable ETCD snapshots. + DisableSnapshots *bool `pulumi:"disableSnapshots"` + // Creation option for etcd service. + S3Config *ClusterV2RkeConfigEtcdS3Config `pulumi:"s3Config"` + // ETCD snapshot retention. + SnapshotRetention *int `pulumi:"snapshotRetention"` + // ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). + SnapshotScheduleCron *string `pulumi:"snapshotScheduleCron"` } -type ClusterV2ClusterRegistrationTokenArgs struct { - // Annotations for the Cluster V2 (map) - Annotations pulumi.MapInput `pulumi:"annotations"` - // Cluster ID (string) - ClusterId pulumi.StringPtrInput `pulumi:"clusterId"` - // Command to execute in a imported k8s cluster (string) - Command pulumi.StringPtrInput `pulumi:"command"` - // (Computed) The ID of the resource (string) - Id pulumi.StringPtrInput `pulumi:"id"` - // Insecure command to execute in a imported k8s cluster (string) - InsecureCommand pulumi.StringPtrInput `pulumi:"insecureCommand"` - // Insecure node command to execute in a imported k8s cluster (string) - InsecureNodeCommand pulumi.StringPtrInput `pulumi:"insecureNodeCommand"` - // Insecure windows command to execute in a imported k8s cluster (string) - InsecureWindowsNodeCommand pulumi.StringPtrInput `pulumi:"insecureWindowsNodeCommand"` - // Labels for the Cluster V2 (map) - Labels pulumi.MapInput `pulumi:"labels"` - // K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) - ManifestUrl pulumi.StringPtrInput `pulumi:"manifestUrl"` - // The name of the Cluster v2 (string) - Name pulumi.StringPtrInput `pulumi:"name"` - // Node command to execute in linux nodes for custom k8s cluster (string) - NodeCommand pulumi.StringPtrInput `pulumi:"nodeCommand"` - // Token for cluster registration token object (string) - Token pulumi.StringPtrInput `pulumi:"token"` - // Node command to execute in windows nodes for custom k8s cluster (string) - WindowsNodeCommand pulumi.StringPtrInput `pulumi:"windowsNodeCommand"` +// ClusterV2RkeConfigEtcdInput is an input type that accepts ClusterV2RkeConfigEtcdArgs and ClusterV2RkeConfigEtcdOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigEtcdInput` via: +// +// ClusterV2RkeConfigEtcdArgs{...} +type ClusterV2RkeConfigEtcdInput interface { + pulumi.Input + + ToClusterV2RkeConfigEtcdOutput() ClusterV2RkeConfigEtcdOutput + ToClusterV2RkeConfigEtcdOutputWithContext(context.Context) ClusterV2RkeConfigEtcdOutput } -func (ClusterV2ClusterRegistrationTokenArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2ClusterRegistrationToken)(nil)).Elem() +type ClusterV2RkeConfigEtcdArgs struct { + // Disable ETCD snapshots. + DisableSnapshots pulumi.BoolPtrInput `pulumi:"disableSnapshots"` + // Creation option for etcd service. + S3Config ClusterV2RkeConfigEtcdS3ConfigPtrInput `pulumi:"s3Config"` + // ETCD snapshot retention. + SnapshotRetention pulumi.IntPtrInput `pulumi:"snapshotRetention"` + // ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). + SnapshotScheduleCron pulumi.StringPtrInput `pulumi:"snapshotScheduleCron"` } -func (i ClusterV2ClusterRegistrationTokenArgs) ToClusterV2ClusterRegistrationTokenOutput() ClusterV2ClusterRegistrationTokenOutput { - return i.ToClusterV2ClusterRegistrationTokenOutputWithContext(context.Background()) +func (ClusterV2RkeConfigEtcdArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigEtcd)(nil)).Elem() } -func (i ClusterV2ClusterRegistrationTokenArgs) ToClusterV2ClusterRegistrationTokenOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterRegistrationTokenOutput) +func (i ClusterV2RkeConfigEtcdArgs) ToClusterV2RkeConfigEtcdOutput() ClusterV2RkeConfigEtcdOutput { + return i.ToClusterV2RkeConfigEtcdOutputWithContext(context.Background()) } -func (i ClusterV2ClusterRegistrationTokenArgs) ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput { - return i.ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigEtcdArgs) ToClusterV2RkeConfigEtcdOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdOutput) } -func (i ClusterV2ClusterRegistrationTokenArgs) ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterRegistrationTokenOutput).ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx) +func (i ClusterV2RkeConfigEtcdArgs) ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput { + return i.ToClusterV2RkeConfigEtcdPtrOutputWithContext(context.Background()) } -// ClusterV2ClusterRegistrationTokenPtrInput is an input type that accepts ClusterV2ClusterRegistrationTokenArgs, ClusterV2ClusterRegistrationTokenPtr and ClusterV2ClusterRegistrationTokenPtrOutput values. -// You can construct a concrete instance of `ClusterV2ClusterRegistrationTokenPtrInput` via: +func (i ClusterV2RkeConfigEtcdArgs) ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdOutput).ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx) +} + +// ClusterV2RkeConfigEtcdPtrInput is an input type that accepts ClusterV2RkeConfigEtcdArgs, ClusterV2RkeConfigEtcdPtr and ClusterV2RkeConfigEtcdPtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigEtcdPtrInput` via: // -// ClusterV2ClusterRegistrationTokenArgs{...} +// ClusterV2RkeConfigEtcdArgs{...} // // or: // // nil -type ClusterV2ClusterRegistrationTokenPtrInput interface { +type ClusterV2RkeConfigEtcdPtrInput interface { pulumi.Input - ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput - ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(context.Context) ClusterV2ClusterRegistrationTokenPtrOutput + ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput + ToClusterV2RkeConfigEtcdPtrOutputWithContext(context.Context) ClusterV2RkeConfigEtcdPtrOutput } -type clusterV2ClusterRegistrationTokenPtrType ClusterV2ClusterRegistrationTokenArgs +type clusterV2RkeConfigEtcdPtrType ClusterV2RkeConfigEtcdArgs -func ClusterV2ClusterRegistrationTokenPtr(v *ClusterV2ClusterRegistrationTokenArgs) ClusterV2ClusterRegistrationTokenPtrInput { - return (*clusterV2ClusterRegistrationTokenPtrType)(v) +func ClusterV2RkeConfigEtcdPtr(v *ClusterV2RkeConfigEtcdArgs) ClusterV2RkeConfigEtcdPtrInput { + return (*clusterV2RkeConfigEtcdPtrType)(v) } -func (*clusterV2ClusterRegistrationTokenPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2ClusterRegistrationToken)(nil)).Elem() +func (*clusterV2RkeConfigEtcdPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigEtcd)(nil)).Elem() } -func (i *clusterV2ClusterRegistrationTokenPtrType) ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput { - return i.ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(context.Background()) +func (i *clusterV2RkeConfigEtcdPtrType) ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput { + return i.ToClusterV2RkeConfigEtcdPtrOutputWithContext(context.Background()) } -func (i *clusterV2ClusterRegistrationTokenPtrType) ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2ClusterRegistrationTokenPtrOutput) +func (i *clusterV2RkeConfigEtcdPtrType) ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdPtrOutput) } -type ClusterV2ClusterRegistrationTokenOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigEtcdOutput struct{ *pulumi.OutputState } -func (ClusterV2ClusterRegistrationTokenOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2ClusterRegistrationToken)(nil)).Elem() +func (ClusterV2RkeConfigEtcdOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigEtcd)(nil)).Elem() } -func (o ClusterV2ClusterRegistrationTokenOutput) ToClusterV2ClusterRegistrationTokenOutput() ClusterV2ClusterRegistrationTokenOutput { +func (o ClusterV2RkeConfigEtcdOutput) ToClusterV2RkeConfigEtcdOutput() ClusterV2RkeConfigEtcdOutput { return o } -func (o ClusterV2ClusterRegistrationTokenOutput) ToClusterV2ClusterRegistrationTokenOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenOutput { +func (o ClusterV2RkeConfigEtcdOutput) ToClusterV2RkeConfigEtcdOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdOutput { return o } -func (o ClusterV2ClusterRegistrationTokenOutput) ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput { - return o.ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigEtcdOutput) ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput { + return o.ToClusterV2RkeConfigEtcdPtrOutputWithContext(context.Background()) } -func (o ClusterV2ClusterRegistrationTokenOutput) ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2ClusterRegistrationToken) *ClusterV2ClusterRegistrationToken { +func (o ClusterV2RkeConfigEtcdOutput) ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigEtcd) *ClusterV2RkeConfigEtcd { return &v - }).(ClusterV2ClusterRegistrationTokenPtrOutput) -} - -// Annotations for the Cluster V2 (map) -func (o ClusterV2ClusterRegistrationTokenOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) -} - -// Cluster ID (string) -func (o ClusterV2ClusterRegistrationTokenOutput) ClusterId() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.ClusterId }).(pulumi.StringPtrOutput) -} - -// Command to execute in a imported k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenOutput) Command() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.Command }).(pulumi.StringPtrOutput) -} - -// (Computed) The ID of the resource (string) -func (o ClusterV2ClusterRegistrationTokenOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.Id }).(pulumi.StringPtrOutput) -} - -// Insecure command to execute in a imported k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenOutput) InsecureCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.InsecureCommand }).(pulumi.StringPtrOutput) -} - -// Insecure node command to execute in a imported k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenOutput) InsecureNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.InsecureNodeCommand }).(pulumi.StringPtrOutput) -} - -// Insecure windows command to execute in a imported k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenOutput) InsecureWindowsNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.InsecureWindowsNodeCommand }).(pulumi.StringPtrOutput) -} - -// Labels for the Cluster V2 (map) -func (o ClusterV2ClusterRegistrationTokenOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) -} - -// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenOutput) ManifestUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.ManifestUrl }).(pulumi.StringPtrOutput) + }).(ClusterV2RkeConfigEtcdPtrOutput) } -// The name of the Cluster v2 (string) -func (o ClusterV2ClusterRegistrationTokenOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.Name }).(pulumi.StringPtrOutput) +// Disable ETCD snapshots. +func (o ClusterV2RkeConfigEtcdOutput) DisableSnapshots() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcd) *bool { return v.DisableSnapshots }).(pulumi.BoolPtrOutput) } -// Node command to execute in linux nodes for custom k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenOutput) NodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.NodeCommand }).(pulumi.StringPtrOutput) +// Creation option for etcd service. +func (o ClusterV2RkeConfigEtcdOutput) S3Config() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcd) *ClusterV2RkeConfigEtcdS3Config { return v.S3Config }).(ClusterV2RkeConfigEtcdS3ConfigPtrOutput) } -// Token for cluster registration token object (string) -func (o ClusterV2ClusterRegistrationTokenOutput) Token() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.Token }).(pulumi.StringPtrOutput) +// ETCD snapshot retention. +func (o ClusterV2RkeConfigEtcdOutput) SnapshotRetention() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcd) *int { return v.SnapshotRetention }).(pulumi.IntPtrOutput) } -// Node command to execute in windows nodes for custom k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenOutput) WindowsNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2ClusterRegistrationToken) *string { return v.WindowsNodeCommand }).(pulumi.StringPtrOutput) +// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). +func (o ClusterV2RkeConfigEtcdOutput) SnapshotScheduleCron() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcd) *string { return v.SnapshotScheduleCron }).(pulumi.StringPtrOutput) } -type ClusterV2ClusterRegistrationTokenPtrOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigEtcdPtrOutput struct{ *pulumi.OutputState } -func (ClusterV2ClusterRegistrationTokenPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2ClusterRegistrationToken)(nil)).Elem() +func (ClusterV2RkeConfigEtcdPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigEtcd)(nil)).Elem() } -func (o ClusterV2ClusterRegistrationTokenPtrOutput) ToClusterV2ClusterRegistrationTokenPtrOutput() ClusterV2ClusterRegistrationTokenPtrOutput { +func (o ClusterV2RkeConfigEtcdPtrOutput) ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput { return o } -func (o ClusterV2ClusterRegistrationTokenPtrOutput) ToClusterV2ClusterRegistrationTokenPtrOutputWithContext(ctx context.Context) ClusterV2ClusterRegistrationTokenPtrOutput { +func (o ClusterV2RkeConfigEtcdPtrOutput) ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdPtrOutput { return o } -func (o ClusterV2ClusterRegistrationTokenPtrOutput) Elem() ClusterV2ClusterRegistrationTokenOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) ClusterV2ClusterRegistrationToken { +func (o ClusterV2RkeConfigEtcdPtrOutput) Elem() ClusterV2RkeConfigEtcdOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) ClusterV2RkeConfigEtcd { if v != nil { return *v } - var ret ClusterV2ClusterRegistrationToken + var ret ClusterV2RkeConfigEtcd return ret - }).(ClusterV2ClusterRegistrationTokenOutput) + }).(ClusterV2RkeConfigEtcdOutput) } -// Annotations for the Cluster V2 (map) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) map[string]interface{} { +// Disable ETCD snapshots. +func (o ClusterV2RkeConfigEtcdPtrOutput) DisableSnapshots() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) *bool { if v == nil { return nil } - return v.Annotations - }).(pulumi.MapOutput) + return v.DisableSnapshots + }).(pulumi.BoolPtrOutput) } -// Cluster ID (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) ClusterId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { +// Creation option for etcd service. +func (o ClusterV2RkeConfigEtcdPtrOutput) S3Config() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) *ClusterV2RkeConfigEtcdS3Config { if v == nil { return nil } - return v.ClusterId - }).(pulumi.StringPtrOutput) + return v.S3Config + }).(ClusterV2RkeConfigEtcdS3ConfigPtrOutput) } -// Command to execute in a imported k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) Command() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { +// ETCD snapshot retention. +func (o ClusterV2RkeConfigEtcdPtrOutput) SnapshotRetention() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) *int { if v == nil { return nil } - return v.Command - }).(pulumi.StringPtrOutput) + return v.SnapshotRetention + }).(pulumi.IntPtrOutput) } -// (Computed) The ID of the resource (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { +// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). +func (o ClusterV2RkeConfigEtcdPtrOutput) SnapshotScheduleCron() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) *string { if v == nil { return nil } - return v.Id + return v.SnapshotScheduleCron }).(pulumi.StringPtrOutput) } -// Insecure command to execute in a imported k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) InsecureCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { - if v == nil { - return nil - } - return v.InsecureCommand - }).(pulumi.StringPtrOutput) +type ClusterV2RkeConfigEtcdS3Config struct { + // Bucket name for S3 service. + Bucket string `pulumi:"bucket"` + // ETCD snapshot S3 cloud credential name. + CloudCredentialName *string `pulumi:"cloudCredentialName"` + // ETCD snapshot S3 endpoint. + Endpoint string `pulumi:"endpoint"` + // ETCD snapshot S3 endpoint CA. + EndpointCa *string `pulumi:"endpointCa"` + // ETCD snapshot S3 folder. + Folder *string `pulumi:"folder"` + // ETCD snapshot S3 region. + Region *string `pulumi:"region"` + // Disable ETCD skip ssl verify. + SkipSslVerify *bool `pulumi:"skipSslVerify"` } -// Insecure node command to execute in a imported k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) InsecureNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { - if v == nil { - return nil - } - return v.InsecureNodeCommand - }).(pulumi.StringPtrOutput) +// ClusterV2RkeConfigEtcdS3ConfigInput is an input type that accepts ClusterV2RkeConfigEtcdS3ConfigArgs and ClusterV2RkeConfigEtcdS3ConfigOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigEtcdS3ConfigInput` via: +// +// ClusterV2RkeConfigEtcdS3ConfigArgs{...} +type ClusterV2RkeConfigEtcdS3ConfigInput interface { + pulumi.Input + + ToClusterV2RkeConfigEtcdS3ConfigOutput() ClusterV2RkeConfigEtcdS3ConfigOutput + ToClusterV2RkeConfigEtcdS3ConfigOutputWithContext(context.Context) ClusterV2RkeConfigEtcdS3ConfigOutput } -// Insecure windows command to execute in a imported k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) InsecureWindowsNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { - if v == nil { - return nil - } - return v.InsecureWindowsNodeCommand - }).(pulumi.StringPtrOutput) +type ClusterV2RkeConfigEtcdS3ConfigArgs struct { + // Bucket name for S3 service. + Bucket pulumi.StringInput `pulumi:"bucket"` + // ETCD snapshot S3 cloud credential name. + CloudCredentialName pulumi.StringPtrInput `pulumi:"cloudCredentialName"` + // ETCD snapshot S3 endpoint. + Endpoint pulumi.StringInput `pulumi:"endpoint"` + // ETCD snapshot S3 endpoint CA. + EndpointCa pulumi.StringPtrInput `pulumi:"endpointCa"` + // ETCD snapshot S3 folder. + Folder pulumi.StringPtrInput `pulumi:"folder"` + // ETCD snapshot S3 region. + Region pulumi.StringPtrInput `pulumi:"region"` + // Disable ETCD skip ssl verify. + SkipSslVerify pulumi.BoolPtrInput `pulumi:"skipSslVerify"` } -// Labels for the Cluster V2 (map) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) map[string]interface{} { - if v == nil { - return nil - } - return v.Labels - }).(pulumi.MapOutput) +func (ClusterV2RkeConfigEtcdS3ConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigEtcdS3Config)(nil)).Elem() } -// K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) ManifestUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { - if v == nil { - return nil - } - return v.ManifestUrl - }).(pulumi.StringPtrOutput) +func (i ClusterV2RkeConfigEtcdS3ConfigArgs) ToClusterV2RkeConfigEtcdS3ConfigOutput() ClusterV2RkeConfigEtcdS3ConfigOutput { + return i.ToClusterV2RkeConfigEtcdS3ConfigOutputWithContext(context.Background()) } -// The name of the Cluster v2 (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { - if v == nil { - return nil - } - return v.Name - }).(pulumi.StringPtrOutput) +func (i ClusterV2RkeConfigEtcdS3ConfigArgs) ToClusterV2RkeConfigEtcdS3ConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdS3ConfigOutput) } -// Node command to execute in linux nodes for custom k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) NodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { - if v == nil { - return nil - } - return v.NodeCommand - }).(pulumi.StringPtrOutput) +func (i ClusterV2RkeConfigEtcdS3ConfigArgs) ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { + return i.ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(context.Background()) } -// Token for cluster registration token object (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) Token() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { - if v == nil { - return nil - } - return v.Token - }).(pulumi.StringPtrOutput) +func (i ClusterV2RkeConfigEtcdS3ConfigArgs) ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdS3ConfigOutput).ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx) } -// Node command to execute in windows nodes for custom k8s cluster (string) -func (o ClusterV2ClusterRegistrationTokenPtrOutput) WindowsNodeCommand() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2ClusterRegistrationToken) *string { - if v == nil { - return nil - } - return v.WindowsNodeCommand - }).(pulumi.StringPtrOutput) +// ClusterV2RkeConfigEtcdS3ConfigPtrInput is an input type that accepts ClusterV2RkeConfigEtcdS3ConfigArgs, ClusterV2RkeConfigEtcdS3ConfigPtr and ClusterV2RkeConfigEtcdS3ConfigPtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigEtcdS3ConfigPtrInput` via: +// +// ClusterV2RkeConfigEtcdS3ConfigArgs{...} +// +// or: +// +// nil +type ClusterV2RkeConfigEtcdS3ConfigPtrInput interface { + pulumi.Input + + ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput + ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput } -type ClusterV2FleetAgentDeploymentCustomization struct { - // User defined tolerations to append to agent (list) - AppendTolerations []ClusterV2FleetAgentDeploymentCustomizationAppendToleration `pulumi:"appendTolerations"` - // User defined affinity to override default agent affinity (string) - OverrideAffinity *string `pulumi:"overrideAffinity"` - // User defined resource requirements to set on the agent (list) - OverrideResourceRequirements []ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement `pulumi:"overrideResourceRequirements"` +type clusterV2RkeConfigEtcdS3ConfigPtrType ClusterV2RkeConfigEtcdS3ConfigArgs + +func ClusterV2RkeConfigEtcdS3ConfigPtr(v *ClusterV2RkeConfigEtcdS3ConfigArgs) ClusterV2RkeConfigEtcdS3ConfigPtrInput { + return (*clusterV2RkeConfigEtcdS3ConfigPtrType)(v) } -// ClusterV2FleetAgentDeploymentCustomizationInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationArgs and ClusterV2FleetAgentDeploymentCustomizationOutput values. -// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationInput` via: -// -// ClusterV2FleetAgentDeploymentCustomizationArgs{...} -type ClusterV2FleetAgentDeploymentCustomizationInput interface { - pulumi.Input +func (*clusterV2RkeConfigEtcdS3ConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigEtcdS3Config)(nil)).Elem() +} - ToClusterV2FleetAgentDeploymentCustomizationOutput() ClusterV2FleetAgentDeploymentCustomizationOutput - ToClusterV2FleetAgentDeploymentCustomizationOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationOutput +func (i *clusterV2RkeConfigEtcdS3ConfigPtrType) ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { + return i.ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(context.Background()) } -type ClusterV2FleetAgentDeploymentCustomizationArgs struct { - // User defined tolerations to append to agent (list) - AppendTolerations ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayInput `pulumi:"appendTolerations"` - // User defined affinity to override default agent affinity (string) - OverrideAffinity pulumi.StringPtrInput `pulumi:"overrideAffinity"` - // User defined resource requirements to set on the agent (list) - OverrideResourceRequirements ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput `pulumi:"overrideResourceRequirements"` +func (i *clusterV2RkeConfigEtcdS3ConfigPtrType) ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdS3ConfigPtrOutput) } -func (ClusterV2FleetAgentDeploymentCustomizationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomization)(nil)).Elem() +type ClusterV2RkeConfigEtcdS3ConfigOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigEtcdS3ConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigEtcdS3Config)(nil)).Elem() } -func (i ClusterV2FleetAgentDeploymentCustomizationArgs) ToClusterV2FleetAgentDeploymentCustomizationOutput() ClusterV2FleetAgentDeploymentCustomizationOutput { - return i.ToClusterV2FleetAgentDeploymentCustomizationOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) ToClusterV2RkeConfigEtcdS3ConfigOutput() ClusterV2RkeConfigEtcdS3ConfigOutput { + return o } -func (i ClusterV2FleetAgentDeploymentCustomizationArgs) ToClusterV2FleetAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationOutput) +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) ToClusterV2RkeConfigEtcdS3ConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigOutput { + return o } -// ClusterV2FleetAgentDeploymentCustomizationArrayInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationArray and ClusterV2FleetAgentDeploymentCustomizationArrayOutput values. -// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationArrayInput` via: -// -// ClusterV2FleetAgentDeploymentCustomizationArray{ ClusterV2FleetAgentDeploymentCustomizationArgs{...} } -type ClusterV2FleetAgentDeploymentCustomizationArrayInput interface { - pulumi.Input +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { + return o.ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(context.Background()) +} - ToClusterV2FleetAgentDeploymentCustomizationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationArrayOutput - ToClusterV2FleetAgentDeploymentCustomizationArrayOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationArrayOutput +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigEtcdS3Config) *ClusterV2RkeConfigEtcdS3Config { + return &v + }).(ClusterV2RkeConfigEtcdS3ConfigPtrOutput) } -type ClusterV2FleetAgentDeploymentCustomizationArray []ClusterV2FleetAgentDeploymentCustomizationInput +// Bucket name for S3 service. +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) Bucket() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) string { return v.Bucket }).(pulumi.StringOutput) +} -func (ClusterV2FleetAgentDeploymentCustomizationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomization)(nil)).Elem() +// ETCD snapshot S3 cloud credential name. +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) CloudCredentialName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *string { return v.CloudCredentialName }).(pulumi.StringPtrOutput) } -func (i ClusterV2FleetAgentDeploymentCustomizationArray) ToClusterV2FleetAgentDeploymentCustomizationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationArrayOutput { - return i.ToClusterV2FleetAgentDeploymentCustomizationArrayOutputWithContext(context.Background()) +// ETCD snapshot S3 endpoint. +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) Endpoint() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) string { return v.Endpoint }).(pulumi.StringOutput) } -func (i ClusterV2FleetAgentDeploymentCustomizationArray) ToClusterV2FleetAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationArrayOutput) +// ETCD snapshot S3 endpoint CA. +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) EndpointCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *string { return v.EndpointCa }).(pulumi.StringPtrOutput) } -type ClusterV2FleetAgentDeploymentCustomizationOutput struct{ *pulumi.OutputState } +// ETCD snapshot S3 folder. +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) Folder() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *string { return v.Folder }).(pulumi.StringPtrOutput) +} -func (ClusterV2FleetAgentDeploymentCustomizationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomization)(nil)).Elem() +// ETCD snapshot S3 region. +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *string { return v.Region }).(pulumi.StringPtrOutput) } -func (o ClusterV2FleetAgentDeploymentCustomizationOutput) ToClusterV2FleetAgentDeploymentCustomizationOutput() ClusterV2FleetAgentDeploymentCustomizationOutput { +// Disable ETCD skip ssl verify. +func (o ClusterV2RkeConfigEtcdS3ConfigOutput) SkipSslVerify() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *bool { return v.SkipSslVerify }).(pulumi.BoolPtrOutput) +} + +type ClusterV2RkeConfigEtcdS3ConfigPtrOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigEtcdS3ConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigEtcdS3Config)(nil)).Elem() +} + +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { return o } -func (o ClusterV2FleetAgentDeploymentCustomizationOutput) ToClusterV2FleetAgentDeploymentCustomizationOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOutput { +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput { return o } -// User defined tolerations to append to agent (list) -func (o ClusterV2FleetAgentDeploymentCustomizationOutput) AppendTolerations() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomization) []ClusterV2FleetAgentDeploymentCustomizationAppendToleration { - return v.AppendTolerations - }).(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Elem() ClusterV2RkeConfigEtcdS3ConfigOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) ClusterV2RkeConfigEtcdS3Config { + if v != nil { + return *v + } + var ret ClusterV2RkeConfigEtcdS3Config + return ret + }).(ClusterV2RkeConfigEtcdS3ConfigOutput) } -// User defined affinity to override default agent affinity (string) -func (o ClusterV2FleetAgentDeploymentCustomizationOutput) OverrideAffinity() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomization) *string { return v.OverrideAffinity }).(pulumi.StringPtrOutput) +// Bucket name for S3 service. +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Bucket() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { + if v == nil { + return nil + } + return &v.Bucket + }).(pulumi.StringPtrOutput) } -// User defined resource requirements to set on the agent (list) -func (o ClusterV2FleetAgentDeploymentCustomizationOutput) OverrideResourceRequirements() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomization) []ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement { - return v.OverrideResourceRequirements - }).(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) +// ETCD snapshot S3 cloud credential name. +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) CloudCredentialName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { + if v == nil { + return nil + } + return v.CloudCredentialName + }).(pulumi.StringPtrOutput) } -type ClusterV2FleetAgentDeploymentCustomizationArrayOutput struct{ *pulumi.OutputState } +// ETCD snapshot S3 endpoint. +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Endpoint() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { + if v == nil { + return nil + } + return &v.Endpoint + }).(pulumi.StringPtrOutput) +} -func (ClusterV2FleetAgentDeploymentCustomizationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomization)(nil)).Elem() +// ETCD snapshot S3 endpoint CA. +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) EndpointCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { + if v == nil { + return nil + } + return v.EndpointCa + }).(pulumi.StringPtrOutput) } -func (o ClusterV2FleetAgentDeploymentCustomizationArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationArrayOutput { - return o +// ETCD snapshot S3 folder. +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Folder() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { + if v == nil { + return nil + } + return v.Folder + }).(pulumi.StringPtrOutput) } -func (o ClusterV2FleetAgentDeploymentCustomizationArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationArrayOutput { - return o +// ETCD snapshot S3 region. +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { + if v == nil { + return nil + } + return v.Region + }).(pulumi.StringPtrOutput) } -func (o ClusterV2FleetAgentDeploymentCustomizationArrayOutput) Index(i pulumi.IntInput) ClusterV2FleetAgentDeploymentCustomizationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2FleetAgentDeploymentCustomization { - return vs[0].([]ClusterV2FleetAgentDeploymentCustomization)[vs[1].(int)] - }).(ClusterV2FleetAgentDeploymentCustomizationOutput) +// Disable ETCD skip ssl verify. +func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) SkipSslVerify() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *bool { + if v == nil { + return nil + } + return v.SkipSslVerify + }).(pulumi.BoolPtrOutput) } -type ClusterV2FleetAgentDeploymentCustomizationAppendToleration struct { - // The taint effect. Default: `\"NoExecute\"` (string) - Effect *string `pulumi:"effect"` - // Machine selector label match expressions key (string) - Key string `pulumi:"key"` - // Machine selector label match expressions operator (string) - Operator *string `pulumi:"operator"` - // The number of seconds a pod will stay bound to a node with a matching taint (int) - Seconds *int `pulumi:"seconds"` - // The taint value (string) - Value *string `pulumi:"value"` +type ClusterV2RkeConfigEtcdSnapshotCreate struct { + // ETCD snapshot desired generation. + Generation int `pulumi:"generation"` } -// ClusterV2FleetAgentDeploymentCustomizationAppendTolerationInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs and ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput values. -// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationAppendTolerationInput` via: +// ClusterV2RkeConfigEtcdSnapshotCreateInput is an input type that accepts ClusterV2RkeConfigEtcdSnapshotCreateArgs and ClusterV2RkeConfigEtcdSnapshotCreateOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigEtcdSnapshotCreateInput` via: // -// ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs{...} -type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationInput interface { +// ClusterV2RkeConfigEtcdSnapshotCreateArgs{...} +type ClusterV2RkeConfigEtcdSnapshotCreateInput interface { pulumi.Input - ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput - ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput + ToClusterV2RkeConfigEtcdSnapshotCreateOutput() ClusterV2RkeConfigEtcdSnapshotCreateOutput + ToClusterV2RkeConfigEtcdSnapshotCreateOutputWithContext(context.Context) ClusterV2RkeConfigEtcdSnapshotCreateOutput +} + +type ClusterV2RkeConfigEtcdSnapshotCreateArgs struct { + // ETCD snapshot desired generation. + Generation pulumi.IntInput `pulumi:"generation"` } -type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs struct { - // The taint effect. Default: `\"NoExecute\"` (string) - Effect pulumi.StringPtrInput `pulumi:"effect"` - // Machine selector label match expressions key (string) - Key pulumi.StringInput `pulumi:"key"` - // Machine selector label match expressions operator (string) - Operator pulumi.StringPtrInput `pulumi:"operator"` - // The number of seconds a pod will stay bound to a node with a matching taint (int) - Seconds pulumi.IntPtrInput `pulumi:"seconds"` - // The taint value (string) - Value pulumi.StringPtrInput `pulumi:"value"` +func (ClusterV2RkeConfigEtcdSnapshotCreateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigEtcdSnapshotCreate)(nil)).Elem() } -func (ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +func (i ClusterV2RkeConfigEtcdSnapshotCreateArgs) ToClusterV2RkeConfigEtcdSnapshotCreateOutput() ClusterV2RkeConfigEtcdSnapshotCreateOutput { + return i.ToClusterV2RkeConfigEtcdSnapshotCreateOutputWithContext(context.Background()) } -func (i ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { - return i.ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigEtcdSnapshotCreateArgs) ToClusterV2RkeConfigEtcdSnapshotCreateOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreateOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotCreateOutput) } -func (i ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) +func (i ClusterV2RkeConfigEtcdSnapshotCreateArgs) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return i.ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(context.Background()) } -// ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray and ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput values. -// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayInput` via: +func (i ClusterV2RkeConfigEtcdSnapshotCreateArgs) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotCreateOutput).ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx) +} + +// ClusterV2RkeConfigEtcdSnapshotCreatePtrInput is an input type that accepts ClusterV2RkeConfigEtcdSnapshotCreateArgs, ClusterV2RkeConfigEtcdSnapshotCreatePtr and ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigEtcdSnapshotCreatePtrInput` via: // -// ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray{ ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs{...} } -type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayInput interface { +// ClusterV2RkeConfigEtcdSnapshotCreateArgs{...} +// +// or: +// +// nil +type ClusterV2RkeConfigEtcdSnapshotCreatePtrInput interface { pulumi.Input - ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput - ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput + ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput + ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput } -type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray []ClusterV2FleetAgentDeploymentCustomizationAppendTolerationInput +type clusterV2RkeConfigEtcdSnapshotCreatePtrType ClusterV2RkeConfigEtcdSnapshotCreateArgs -func (ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +func ClusterV2RkeConfigEtcdSnapshotCreatePtr(v *ClusterV2RkeConfigEtcdSnapshotCreateArgs) ClusterV2RkeConfigEtcdSnapshotCreatePtrInput { + return (*clusterV2RkeConfigEtcdSnapshotCreatePtrType)(v) } -func (i ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return i.ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(context.Background()) +func (*clusterV2RkeConfigEtcdSnapshotCreatePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigEtcdSnapshotCreate)(nil)).Elem() } -func (i ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArray) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) +func (i *clusterV2RkeConfigEtcdSnapshotCreatePtrType) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return i.ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(context.Background()) } -type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput struct{ *pulumi.OutputState } +func (i *clusterV2RkeConfigEtcdSnapshotCreatePtrType) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) +} -func (ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +type ClusterV2RkeConfigEtcdSnapshotCreateOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigEtcdSnapshotCreateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigEtcdSnapshotCreate)(nil)).Elem() } -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { +func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) ToClusterV2RkeConfigEtcdSnapshotCreateOutput() ClusterV2RkeConfigEtcdSnapshotCreateOutput { return o } -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { +func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) ToClusterV2RkeConfigEtcdSnapshotCreateOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreateOutput { return o } -// The taint effect. Default: `\"NoExecute\"` (string) -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) *string { return v.Effect }).(pulumi.StringPtrOutput) +func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return o.ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(context.Background()) } -// Machine selector label match expressions key (string) -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) string { return v.Key }).(pulumi.StringOutput) +func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigEtcdSnapshotCreate) *ClusterV2RkeConfigEtcdSnapshotCreate { + return &v + }).(ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) } -// Machine selector label match expressions operator (string) -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) *string { return v.Operator }).(pulumi.StringPtrOutput) +// ETCD snapshot desired generation. +func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) Generation() pulumi.IntOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdSnapshotCreate) int { return v.Generation }).(pulumi.IntOutput) } -// The number of seconds a pod will stay bound to a node with a matching taint (int) -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Seconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) *int { return v.Seconds }).(pulumi.IntPtrOutput) -} +type ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput struct{ *pulumi.OutputState } -// The taint value (string) -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) Value() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationAppendToleration) *string { return v.Value }).(pulumi.StringPtrOutput) +func (ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigEtcdSnapshotCreate)(nil)).Elem() } -type ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput struct{ *pulumi.OutputState } - -func (ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomizationAppendToleration)(nil)).Elem() +func (o ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { + return o } -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput() ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { +func (o ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { return o } -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput { - return o +func (o ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) Elem() ClusterV2RkeConfigEtcdSnapshotCreateOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotCreate) ClusterV2RkeConfigEtcdSnapshotCreate { + if v != nil { + return *v + } + var ret ClusterV2RkeConfigEtcdSnapshotCreate + return ret + }).(ClusterV2RkeConfigEtcdSnapshotCreateOutput) } -func (o ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArrayOutput) Index(i pulumi.IntInput) ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2FleetAgentDeploymentCustomizationAppendToleration { - return vs[0].([]ClusterV2FleetAgentDeploymentCustomizationAppendToleration)[vs[1].(int)] - }).(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationOutput) +// ETCD snapshot desired generation. +func (o ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) Generation() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotCreate) *int { + if v == nil { + return nil + } + return &v.Generation + }).(pulumi.IntPtrOutput) } -type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement struct { - // The maximum CPU limit for agent (string) - CpuLimit *string `pulumi:"cpuLimit"` - // The minimum CPU required for agent (string) - CpuRequest *string `pulumi:"cpuRequest"` - // The maximum memory limit for agent (string) - MemoryLimit *string `pulumi:"memoryLimit"` - // The minimum memory required for agent (string) - MemoryRequest *string `pulumi:"memoryRequest"` +type ClusterV2RkeConfigEtcdSnapshotRestore struct { + // ETCD snapshot desired generation. + Generation int `pulumi:"generation"` + // The name of the cluster. + Name string `pulumi:"name"` + // ETCD restore RKE config (set to none, all, or kubernetesVersion). + RestoreRkeConfig *string `pulumi:"restoreRkeConfig"` } -// ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs and ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput values. -// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementInput` via: +// ClusterV2RkeConfigEtcdSnapshotRestoreInput is an input type that accepts ClusterV2RkeConfigEtcdSnapshotRestoreArgs and ClusterV2RkeConfigEtcdSnapshotRestoreOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigEtcdSnapshotRestoreInput` via: // -// ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} -type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementInput interface { +// ClusterV2RkeConfigEtcdSnapshotRestoreArgs{...} +type ClusterV2RkeConfigEtcdSnapshotRestoreInput interface { pulumi.Input - ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput - ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput + ToClusterV2RkeConfigEtcdSnapshotRestoreOutput() ClusterV2RkeConfigEtcdSnapshotRestoreOutput + ToClusterV2RkeConfigEtcdSnapshotRestoreOutputWithContext(context.Context) ClusterV2RkeConfigEtcdSnapshotRestoreOutput } -type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs struct { - // The maximum CPU limit for agent (string) - CpuLimit pulumi.StringPtrInput `pulumi:"cpuLimit"` - // The minimum CPU required for agent (string) - CpuRequest pulumi.StringPtrInput `pulumi:"cpuRequest"` - // The maximum memory limit for agent (string) - MemoryLimit pulumi.StringPtrInput `pulumi:"memoryLimit"` - // The minimum memory required for agent (string) - MemoryRequest pulumi.StringPtrInput `pulumi:"memoryRequest"` +type ClusterV2RkeConfigEtcdSnapshotRestoreArgs struct { + // ETCD snapshot desired generation. + Generation pulumi.IntInput `pulumi:"generation"` + // The name of the cluster. + Name pulumi.StringInput `pulumi:"name"` + // ETCD restore RKE config (set to none, all, or kubernetesVersion). + RestoreRkeConfig pulumi.StringPtrInput `pulumi:"restoreRkeConfig"` } -func (ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +func (ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigEtcdSnapshotRestore)(nil)).Elem() } -func (i ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return i.ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ToClusterV2RkeConfigEtcdSnapshotRestoreOutput() ClusterV2RkeConfigEtcdSnapshotRestoreOutput { + return i.ToClusterV2RkeConfigEtcdSnapshotRestoreOutputWithContext(context.Background()) } -func (i ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) +func (i ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ToClusterV2RkeConfigEtcdSnapshotRestoreOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestoreOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotRestoreOutput) } -// ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput is an input type that accepts ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray and ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput values. -// You can construct a concrete instance of `ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput` via: +func (i ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { + return i.ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(context.Background()) +} + +func (i ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotRestoreOutput).ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx) +} + +// ClusterV2RkeConfigEtcdSnapshotRestorePtrInput is an input type that accepts ClusterV2RkeConfigEtcdSnapshotRestoreArgs, ClusterV2RkeConfigEtcdSnapshotRestorePtr and ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigEtcdSnapshotRestorePtrInput` via: // -// ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray{ ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs{...} } -type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayInput interface { +// ClusterV2RkeConfigEtcdSnapshotRestoreArgs{...} +// +// or: +// +// nil +type ClusterV2RkeConfigEtcdSnapshotRestorePtrInput interface { pulumi.Input - ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput - ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput + ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput + ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput } -type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray []ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementInput +type clusterV2RkeConfigEtcdSnapshotRestorePtrType ClusterV2RkeConfigEtcdSnapshotRestoreArgs -func (ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +func ClusterV2RkeConfigEtcdSnapshotRestorePtr(v *ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ClusterV2RkeConfigEtcdSnapshotRestorePtrInput { + return (*clusterV2RkeConfigEtcdSnapshotRestorePtrType)(v) } -func (i ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return i.ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(context.Background()) +func (*clusterV2RkeConfigEtcdSnapshotRestorePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigEtcdSnapshotRestore)(nil)).Elem() } -func (i ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArray) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) +func (i *clusterV2RkeConfigEtcdSnapshotRestorePtrType) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { + return i.ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(context.Background()) } -type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput struct{ *pulumi.OutputState } +func (i *clusterV2RkeConfigEtcdSnapshotRestorePtrType) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) +} -func (ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +type ClusterV2RkeConfigEtcdSnapshotRestoreOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigEtcdSnapshotRestore)(nil)).Elem() } -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { +func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ToClusterV2RkeConfigEtcdSnapshotRestoreOutput() ClusterV2RkeConfigEtcdSnapshotRestoreOutput { return o } -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { +func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ToClusterV2RkeConfigEtcdSnapshotRestoreOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestoreOutput { return o } -// The maximum CPU limit for agent (string) -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuLimit() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.CpuLimit - }).(pulumi.StringPtrOutput) +func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { + return o.ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(context.Background()) } -// The minimum CPU required for agent (string) -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) CpuRequest() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.CpuRequest - }).(pulumi.StringPtrOutput) +func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigEtcdSnapshotRestore) *ClusterV2RkeConfigEtcdSnapshotRestore { + return &v + }).(ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) } -// The maximum memory limit for agent (string) -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryLimit() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.MemoryLimit - }).(pulumi.StringPtrOutput) +// ETCD snapshot desired generation. +func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) Generation() pulumi.IntOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdSnapshotRestore) int { return v.Generation }).(pulumi.IntOutput) } -// The minimum memory required for agent (string) -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) MemoryRequest() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement) *string { - return v.MemoryRequest - }).(pulumi.StringPtrOutput) +// The name of the cluster. +func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdSnapshotRestore) string { return v.Name }).(pulumi.StringOutput) } -type ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput struct{ *pulumi.OutputState } +// ETCD restore RKE config (set to none, all, or kubernetesVersion). +func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) RestoreRkeConfig() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigEtcdSnapshotRestore) *string { return v.RestoreRkeConfig }).(pulumi.StringPtrOutput) +} -func (ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)(nil)).Elem() +type ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigEtcdSnapshotRestore)(nil)).Elem() } -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput() ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { +func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { return o } -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) ToClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutputWithContext(ctx context.Context) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput { +func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { return o } -func (o ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArrayOutput) Index(i pulumi.IntInput) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement { - return vs[0].([]ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement)[vs[1].(int)] - }).(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementOutput) +func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) Elem() ClusterV2RkeConfigEtcdSnapshotRestoreOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotRestore) ClusterV2RkeConfigEtcdSnapshotRestore { + if v != nil { + return *v + } + var ret ClusterV2RkeConfigEtcdSnapshotRestore + return ret + }).(ClusterV2RkeConfigEtcdSnapshotRestoreOutput) } -type ClusterV2LocalAuthEndpoint struct { - // CA certs for the authorized cluster endpoint (string) +// ETCD snapshot desired generation. +func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) Generation() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotRestore) *int { + if v == nil { + return nil + } + return &v.Generation + }).(pulumi.IntPtrOutput) +} + +// The name of the cluster. +func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotRestore) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) +} + +// ETCD restore RKE config (set to none, all, or kubernetesVersion). +func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) RestoreRkeConfig() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotRestore) *string { + if v == nil { + return nil + } + return v.RestoreRkeConfig + }).(pulumi.StringPtrOutput) +} + +type ClusterV2RkeConfigLocalAuthEndpoint struct { + // CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. CaCerts *string `pulumi:"caCerts"` - // Drain options enabled? Default `true` (bool) + // If `enabled` is set to true, nodes will be drained before upgrade. Enabled *bool `pulumi:"enabled"` - // FQDN for the authorized cluster endpoint (string) + // FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. Fqdn *string `pulumi:"fqdn"` } -// ClusterV2LocalAuthEndpointInput is an input type that accepts ClusterV2LocalAuthEndpointArgs and ClusterV2LocalAuthEndpointOutput values. -// You can construct a concrete instance of `ClusterV2LocalAuthEndpointInput` via: +// ClusterV2RkeConfigLocalAuthEndpointInput is an input type that accepts ClusterV2RkeConfigLocalAuthEndpointArgs and ClusterV2RkeConfigLocalAuthEndpointOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigLocalAuthEndpointInput` via: // -// ClusterV2LocalAuthEndpointArgs{...} -type ClusterV2LocalAuthEndpointInput interface { +// ClusterV2RkeConfigLocalAuthEndpointArgs{...} +type ClusterV2RkeConfigLocalAuthEndpointInput interface { pulumi.Input - ToClusterV2LocalAuthEndpointOutput() ClusterV2LocalAuthEndpointOutput - ToClusterV2LocalAuthEndpointOutputWithContext(context.Context) ClusterV2LocalAuthEndpointOutput + ToClusterV2RkeConfigLocalAuthEndpointOutput() ClusterV2RkeConfigLocalAuthEndpointOutput + ToClusterV2RkeConfigLocalAuthEndpointOutputWithContext(context.Context) ClusterV2RkeConfigLocalAuthEndpointOutput } -type ClusterV2LocalAuthEndpointArgs struct { - // CA certs for the authorized cluster endpoint (string) +type ClusterV2RkeConfigLocalAuthEndpointArgs struct { + // CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. CaCerts pulumi.StringPtrInput `pulumi:"caCerts"` - // Drain options enabled? Default `true` (bool) + // If `enabled` is set to true, nodes will be drained before upgrade. Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - // FQDN for the authorized cluster endpoint (string) + // FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. Fqdn pulumi.StringPtrInput `pulumi:"fqdn"` } -func (ClusterV2LocalAuthEndpointArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2LocalAuthEndpoint)(nil)).Elem() +func (ClusterV2RkeConfigLocalAuthEndpointArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigLocalAuthEndpoint)(nil)).Elem() } -func (i ClusterV2LocalAuthEndpointArgs) ToClusterV2LocalAuthEndpointOutput() ClusterV2LocalAuthEndpointOutput { - return i.ToClusterV2LocalAuthEndpointOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigLocalAuthEndpointArgs) ToClusterV2RkeConfigLocalAuthEndpointOutput() ClusterV2RkeConfigLocalAuthEndpointOutput { + return i.ToClusterV2RkeConfigLocalAuthEndpointOutputWithContext(context.Background()) } -func (i ClusterV2LocalAuthEndpointArgs) ToClusterV2LocalAuthEndpointOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2LocalAuthEndpointOutput) +func (i ClusterV2RkeConfigLocalAuthEndpointArgs) ToClusterV2RkeConfigLocalAuthEndpointOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigLocalAuthEndpointOutput) } -func (i ClusterV2LocalAuthEndpointArgs) ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput { - return i.ToClusterV2LocalAuthEndpointPtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigLocalAuthEndpointArgs) ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { + return i.ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(context.Background()) } -func (i ClusterV2LocalAuthEndpointArgs) ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2LocalAuthEndpointOutput).ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx) +func (i ClusterV2RkeConfigLocalAuthEndpointArgs) ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigLocalAuthEndpointOutput).ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx) } -// ClusterV2LocalAuthEndpointPtrInput is an input type that accepts ClusterV2LocalAuthEndpointArgs, ClusterV2LocalAuthEndpointPtr and ClusterV2LocalAuthEndpointPtrOutput values. -// You can construct a concrete instance of `ClusterV2LocalAuthEndpointPtrInput` via: +// ClusterV2RkeConfigLocalAuthEndpointPtrInput is an input type that accepts ClusterV2RkeConfigLocalAuthEndpointArgs, ClusterV2RkeConfigLocalAuthEndpointPtr and ClusterV2RkeConfigLocalAuthEndpointPtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigLocalAuthEndpointPtrInput` via: // -// ClusterV2LocalAuthEndpointArgs{...} +// ClusterV2RkeConfigLocalAuthEndpointArgs{...} // // or: // // nil -type ClusterV2LocalAuthEndpointPtrInput interface { +type ClusterV2RkeConfigLocalAuthEndpointPtrInput interface { pulumi.Input - ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput - ToClusterV2LocalAuthEndpointPtrOutputWithContext(context.Context) ClusterV2LocalAuthEndpointPtrOutput + ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput + ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput } -type clusterV2LocalAuthEndpointPtrType ClusterV2LocalAuthEndpointArgs +type clusterV2RkeConfigLocalAuthEndpointPtrType ClusterV2RkeConfigLocalAuthEndpointArgs -func ClusterV2LocalAuthEndpointPtr(v *ClusterV2LocalAuthEndpointArgs) ClusterV2LocalAuthEndpointPtrInput { - return (*clusterV2LocalAuthEndpointPtrType)(v) +func ClusterV2RkeConfigLocalAuthEndpointPtr(v *ClusterV2RkeConfigLocalAuthEndpointArgs) ClusterV2RkeConfigLocalAuthEndpointPtrInput { + return (*clusterV2RkeConfigLocalAuthEndpointPtrType)(v) } -func (*clusterV2LocalAuthEndpointPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2LocalAuthEndpoint)(nil)).Elem() +func (*clusterV2RkeConfigLocalAuthEndpointPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigLocalAuthEndpoint)(nil)).Elem() } -func (i *clusterV2LocalAuthEndpointPtrType) ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput { - return i.ToClusterV2LocalAuthEndpointPtrOutputWithContext(context.Background()) +func (i *clusterV2RkeConfigLocalAuthEndpointPtrType) ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { + return i.ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(context.Background()) } -func (i *clusterV2LocalAuthEndpointPtrType) ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2LocalAuthEndpointPtrOutput) +func (i *clusterV2RkeConfigLocalAuthEndpointPtrType) ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigLocalAuthEndpointPtrOutput) } -type ClusterV2LocalAuthEndpointOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigLocalAuthEndpointOutput struct{ *pulumi.OutputState } -func (ClusterV2LocalAuthEndpointOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2LocalAuthEndpoint)(nil)).Elem() +func (ClusterV2RkeConfigLocalAuthEndpointOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigLocalAuthEndpoint)(nil)).Elem() } -func (o ClusterV2LocalAuthEndpointOutput) ToClusterV2LocalAuthEndpointOutput() ClusterV2LocalAuthEndpointOutput { +func (o ClusterV2RkeConfigLocalAuthEndpointOutput) ToClusterV2RkeConfigLocalAuthEndpointOutput() ClusterV2RkeConfigLocalAuthEndpointOutput { return o } -func (o ClusterV2LocalAuthEndpointOutput) ToClusterV2LocalAuthEndpointOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointOutput { +func (o ClusterV2RkeConfigLocalAuthEndpointOutput) ToClusterV2RkeConfigLocalAuthEndpointOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointOutput { return o } -func (o ClusterV2LocalAuthEndpointOutput) ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput { - return o.ToClusterV2LocalAuthEndpointPtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigLocalAuthEndpointOutput) ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { + return o.ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(context.Background()) } -func (o ClusterV2LocalAuthEndpointOutput) ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2LocalAuthEndpoint) *ClusterV2LocalAuthEndpoint { +func (o ClusterV2RkeConfigLocalAuthEndpointOutput) ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigLocalAuthEndpoint) *ClusterV2RkeConfigLocalAuthEndpoint { return &v - }).(ClusterV2LocalAuthEndpointPtrOutput) + }).(ClusterV2RkeConfigLocalAuthEndpointPtrOutput) } -// CA certs for the authorized cluster endpoint (string) -func (o ClusterV2LocalAuthEndpointOutput) CaCerts() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2LocalAuthEndpoint) *string { return v.CaCerts }).(pulumi.StringPtrOutput) +// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. +func (o ClusterV2RkeConfigLocalAuthEndpointOutput) CaCerts() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigLocalAuthEndpoint) *string { return v.CaCerts }).(pulumi.StringPtrOutput) } -// Drain options enabled? Default `true` (bool) -func (o ClusterV2LocalAuthEndpointOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2LocalAuthEndpoint) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) +// If `enabled` is set to true, nodes will be drained before upgrade. +func (o ClusterV2RkeConfigLocalAuthEndpointOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigLocalAuthEndpoint) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } -// FQDN for the authorized cluster endpoint (string) -func (o ClusterV2LocalAuthEndpointOutput) Fqdn() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2LocalAuthEndpoint) *string { return v.Fqdn }).(pulumi.StringPtrOutput) +// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. +func (o ClusterV2RkeConfigLocalAuthEndpointOutput) Fqdn() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigLocalAuthEndpoint) *string { return v.Fqdn }).(pulumi.StringPtrOutput) } -type ClusterV2LocalAuthEndpointPtrOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigLocalAuthEndpointPtrOutput struct{ *pulumi.OutputState } -func (ClusterV2LocalAuthEndpointPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2LocalAuthEndpoint)(nil)).Elem() +func (ClusterV2RkeConfigLocalAuthEndpointPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigLocalAuthEndpoint)(nil)).Elem() } -func (o ClusterV2LocalAuthEndpointPtrOutput) ToClusterV2LocalAuthEndpointPtrOutput() ClusterV2LocalAuthEndpointPtrOutput { +func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { return o } -func (o ClusterV2LocalAuthEndpointPtrOutput) ToClusterV2LocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2LocalAuthEndpointPtrOutput { +func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput { return o } -func (o ClusterV2LocalAuthEndpointPtrOutput) Elem() ClusterV2LocalAuthEndpointOutput { - return o.ApplyT(func(v *ClusterV2LocalAuthEndpoint) ClusterV2LocalAuthEndpoint { +func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) Elem() ClusterV2RkeConfigLocalAuthEndpointOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigLocalAuthEndpoint) ClusterV2RkeConfigLocalAuthEndpoint { if v != nil { return *v } - var ret ClusterV2LocalAuthEndpoint + var ret ClusterV2RkeConfigLocalAuthEndpoint return ret - }).(ClusterV2LocalAuthEndpointOutput) + }).(ClusterV2RkeConfigLocalAuthEndpointOutput) } -// CA certs for the authorized cluster endpoint (string) -func (o ClusterV2LocalAuthEndpointPtrOutput) CaCerts() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2LocalAuthEndpoint) *string { +// CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. +func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) CaCerts() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigLocalAuthEndpoint) *string { if v == nil { return nil } @@ -43188,9 +43703,9 @@ func (o ClusterV2LocalAuthEndpointPtrOutput) CaCerts() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Drain options enabled? Default `true` (bool) -func (o ClusterV2LocalAuthEndpointPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterV2LocalAuthEndpoint) *bool { +// If `enabled` is set to true, nodes will be drained before upgrade. +func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigLocalAuthEndpoint) *bool { if v == nil { return nil } @@ -43198,9 +43713,9 @@ func (o ClusterV2LocalAuthEndpointPtrOutput) Enabled() pulumi.BoolPtrOutput { }).(pulumi.BoolPtrOutput) } -// FQDN for the authorized cluster endpoint (string) -func (o ClusterV2LocalAuthEndpointPtrOutput) Fqdn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2LocalAuthEndpoint) *string { +// FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. +func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) Fqdn() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigLocalAuthEndpoint) *string { if v == nil { return nil } @@ -43208,2273 +43723,2098 @@ func (o ClusterV2LocalAuthEndpointPtrOutput) Fqdn() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -type ClusterV2RkeConfig struct { - // Cluster V2 additional manifest (string) - AdditionalManifest *string `pulumi:"additionalManifest"` - // Cluster V2 chart values. Must be in YAML format (string) - ChartValues *string `pulumi:"chartValues"` - // Cluster V2 etcd (list maxitems:1) - Etcd *ClusterV2RkeConfigEtcd `pulumi:"etcd"` - // Cluster V2 etcd snapshot create (list maxitems:1) - EtcdSnapshotCreate *ClusterV2RkeConfigEtcdSnapshotCreate `pulumi:"etcdSnapshotCreate"` - // Cluster V2 etcd snapshot restore (list maxitems:1) - EtcdSnapshotRestore *ClusterV2RkeConfigEtcdSnapshotRestore `pulumi:"etcdSnapshotRestore"` - // Cluster V2 local auth endpoint (list maxitems:1) - // - // Deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead - LocalAuthEndpoint *ClusterV2RkeConfigLocalAuthEndpoint `pulumi:"localAuthEndpoint"` - // Cluster V2 machine global config. Must be in YAML format (string) - MachineGlobalConfig *string `pulumi:"machineGlobalConfig"` - // Default values for machine pool configurations if unset - MachinePoolDefaults []ClusterV2RkeConfigMachinePoolDefault `pulumi:"machinePoolDefaults"` - // Cluster V2 machine pools (list) - MachinePools []ClusterV2RkeConfigMachinePool `pulumi:"machinePools"` - // Cluster V2 machine selector config (list) - MachineSelectorConfigs []ClusterV2RkeConfigMachineSelectorConfig `pulumi:"machineSelectorConfigs"` - // Cluster V2 docker registries (list maxitems:1) - Registries *ClusterV2RkeConfigRegistries `pulumi:"registries"` - // Cluster V2 certificate rotation (list maxitems:1) - RotateCertificates *ClusterV2RkeConfigRotateCertificates `pulumi:"rotateCertificates"` - // Cluster V2 upgrade strategy (list maxitems:1) - UpgradeStrategy *ClusterV2RkeConfigUpgradeStrategy `pulumi:"upgradeStrategy"` -} - -// ClusterV2RkeConfigInput is an input type that accepts ClusterV2RkeConfigArgs and ClusterV2RkeConfigOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigInput` via: -// -// ClusterV2RkeConfigArgs{...} -type ClusterV2RkeConfigInput interface { - pulumi.Input - - ToClusterV2RkeConfigOutput() ClusterV2RkeConfigOutput - ToClusterV2RkeConfigOutputWithContext(context.Context) ClusterV2RkeConfigOutput -} - -type ClusterV2RkeConfigArgs struct { - // Cluster V2 additional manifest (string) - AdditionalManifest pulumi.StringPtrInput `pulumi:"additionalManifest"` - // Cluster V2 chart values. Must be in YAML format (string) - ChartValues pulumi.StringPtrInput `pulumi:"chartValues"` - // Cluster V2 etcd (list maxitems:1) - Etcd ClusterV2RkeConfigEtcdPtrInput `pulumi:"etcd"` - // Cluster V2 etcd snapshot create (list maxitems:1) - EtcdSnapshotCreate ClusterV2RkeConfigEtcdSnapshotCreatePtrInput `pulumi:"etcdSnapshotCreate"` - // Cluster V2 etcd snapshot restore (list maxitems:1) - EtcdSnapshotRestore ClusterV2RkeConfigEtcdSnapshotRestorePtrInput `pulumi:"etcdSnapshotRestore"` - // Cluster V2 local auth endpoint (list maxitems:1) - // - // Deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead - LocalAuthEndpoint ClusterV2RkeConfigLocalAuthEndpointPtrInput `pulumi:"localAuthEndpoint"` - // Cluster V2 machine global config. Must be in YAML format (string) - MachineGlobalConfig pulumi.StringPtrInput `pulumi:"machineGlobalConfig"` - // Default values for machine pool configurations if unset - MachinePoolDefaults ClusterV2RkeConfigMachinePoolDefaultArrayInput `pulumi:"machinePoolDefaults"` - // Cluster V2 machine pools (list) - MachinePools ClusterV2RkeConfigMachinePoolArrayInput `pulumi:"machinePools"` - // Cluster V2 machine selector config (list) - MachineSelectorConfigs ClusterV2RkeConfigMachineSelectorConfigArrayInput `pulumi:"machineSelectorConfigs"` - // Cluster V2 docker registries (list maxitems:1) - Registries ClusterV2RkeConfigRegistriesPtrInput `pulumi:"registries"` - // Cluster V2 certificate rotation (list maxitems:1) - RotateCertificates ClusterV2RkeConfigRotateCertificatesPtrInput `pulumi:"rotateCertificates"` - // Cluster V2 upgrade strategy (list maxitems:1) - UpgradeStrategy ClusterV2RkeConfigUpgradeStrategyPtrInput `pulumi:"upgradeStrategy"` +type ClusterV2RkeConfigMachinePool struct { + // Annotations for the Cluster. + Annotations map[string]interface{} `pulumi:"annotations"` + // Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + CloudCredentialSecretName *string `pulumi:"cloudCredentialSecretName"` + // Machine pool control plane role? + ControlPlaneRole *bool `pulumi:"controlPlaneRole"` + // Machine Pool Drain Before Delete? + DrainBeforeDelete *bool `pulumi:"drainBeforeDelete"` + // Machine pool etcd role? + EtcdRole *bool `pulumi:"etcdRole"` + // maximum length for autogenerated hostname + HostnameLengthLimit *int `pulumi:"hostnameLengthLimit"` + // Labels for the Cluster. + Labels map[string]interface{} `pulumi:"labels"` + // Machine pool node config. + MachineConfig ClusterV2RkeConfigMachinePoolMachineConfig `pulumi:"machineConfig"` + // Labels for Machine pool nodes. + MachineLabels map[string]interface{} `pulumi:"machineLabels"` + // Max unhealthy nodes for automated replacement to be allowed. + MaxUnhealthy *string `pulumi:"maxUnhealthy"` + // The name of the cluster. + Name string `pulumi:"name"` + // Seconds a machine has to drain before deletion. + NodeDrainTimeout *int `pulumi:"nodeDrainTimeout"` + // Seconds a new node has to become active before it is replaced. + NodeStartupTimeoutSeconds *int `pulumi:"nodeStartupTimeoutSeconds"` + // Machine pool paused? + Paused *bool `pulumi:"paused"` + // Machine pool quantity. + Quantity *int `pulumi:"quantity"` + // Machine pool rolling update. + RollingUpdate *ClusterV2RkeConfigMachinePoolRollingUpdate `pulumi:"rollingUpdate"` + // Machine pool taints. + Taints []ClusterV2RkeConfigMachinePoolTaint `pulumi:"taints"` + // Seconds an unhealthy node has to become active before it is replaced. + UnhealthyNodeTimeoutSeconds *int `pulumi:"unhealthyNodeTimeoutSeconds"` + // Range of unhealthy nodes for automated replacement to be allowed. + UnhealthyRange *string `pulumi:"unhealthyRange"` + // Machine pool worker role? + WorkerRole *bool `pulumi:"workerRole"` } -func (ClusterV2RkeConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfig)(nil)).Elem() +// ClusterV2RkeConfigMachinePoolInput is an input type that accepts ClusterV2RkeConfigMachinePoolArgs and ClusterV2RkeConfigMachinePoolOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolInput` via: +// +// ClusterV2RkeConfigMachinePoolArgs{...} +type ClusterV2RkeConfigMachinePoolInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachinePoolOutput() ClusterV2RkeConfigMachinePoolOutput + ToClusterV2RkeConfigMachinePoolOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolOutput } -func (i ClusterV2RkeConfigArgs) ToClusterV2RkeConfigOutput() ClusterV2RkeConfigOutput { - return i.ToClusterV2RkeConfigOutputWithContext(context.Background()) +type ClusterV2RkeConfigMachinePoolArgs struct { + // Annotations for the Cluster. + Annotations pulumi.MapInput `pulumi:"annotations"` + // Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + CloudCredentialSecretName pulumi.StringPtrInput `pulumi:"cloudCredentialSecretName"` + // Machine pool control plane role? + ControlPlaneRole pulumi.BoolPtrInput `pulumi:"controlPlaneRole"` + // Machine Pool Drain Before Delete? + DrainBeforeDelete pulumi.BoolPtrInput `pulumi:"drainBeforeDelete"` + // Machine pool etcd role? + EtcdRole pulumi.BoolPtrInput `pulumi:"etcdRole"` + // maximum length for autogenerated hostname + HostnameLengthLimit pulumi.IntPtrInput `pulumi:"hostnameLengthLimit"` + // Labels for the Cluster. + Labels pulumi.MapInput `pulumi:"labels"` + // Machine pool node config. + MachineConfig ClusterV2RkeConfigMachinePoolMachineConfigInput `pulumi:"machineConfig"` + // Labels for Machine pool nodes. + MachineLabels pulumi.MapInput `pulumi:"machineLabels"` + // Max unhealthy nodes for automated replacement to be allowed. + MaxUnhealthy pulumi.StringPtrInput `pulumi:"maxUnhealthy"` + // The name of the cluster. + Name pulumi.StringInput `pulumi:"name"` + // Seconds a machine has to drain before deletion. + NodeDrainTimeout pulumi.IntPtrInput `pulumi:"nodeDrainTimeout"` + // Seconds a new node has to become active before it is replaced. + NodeStartupTimeoutSeconds pulumi.IntPtrInput `pulumi:"nodeStartupTimeoutSeconds"` + // Machine pool paused? + Paused pulumi.BoolPtrInput `pulumi:"paused"` + // Machine pool quantity. + Quantity pulumi.IntPtrInput `pulumi:"quantity"` + // Machine pool rolling update. + RollingUpdate ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput `pulumi:"rollingUpdate"` + // Machine pool taints. + Taints ClusterV2RkeConfigMachinePoolTaintArrayInput `pulumi:"taints"` + // Seconds an unhealthy node has to become active before it is replaced. + UnhealthyNodeTimeoutSeconds pulumi.IntPtrInput `pulumi:"unhealthyNodeTimeoutSeconds"` + // Range of unhealthy nodes for automated replacement to be allowed. + UnhealthyRange pulumi.StringPtrInput `pulumi:"unhealthyRange"` + // Machine pool worker role? + WorkerRole pulumi.BoolPtrInput `pulumi:"workerRole"` } -func (i ClusterV2RkeConfigArgs) ToClusterV2RkeConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigOutput) +func (ClusterV2RkeConfigMachinePoolArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePool)(nil)).Elem() } -func (i ClusterV2RkeConfigArgs) ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput { - return i.ToClusterV2RkeConfigPtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachinePoolArgs) ToClusterV2RkeConfigMachinePoolOutput() ClusterV2RkeConfigMachinePoolOutput { + return i.ToClusterV2RkeConfigMachinePoolOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigArgs) ToClusterV2RkeConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigOutput).ToClusterV2RkeConfigPtrOutputWithContext(ctx) +func (i ClusterV2RkeConfigMachinePoolArgs) ToClusterV2RkeConfigMachinePoolOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolOutput) } -// ClusterV2RkeConfigPtrInput is an input type that accepts ClusterV2RkeConfigArgs, ClusterV2RkeConfigPtr and ClusterV2RkeConfigPtrOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigPtrInput` via: -// -// ClusterV2RkeConfigArgs{...} -// -// or: +// ClusterV2RkeConfigMachinePoolArrayInput is an input type that accepts ClusterV2RkeConfigMachinePoolArray and ClusterV2RkeConfigMachinePoolArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolArrayInput` via: // -// nil -type ClusterV2RkeConfigPtrInput interface { +// ClusterV2RkeConfigMachinePoolArray{ ClusterV2RkeConfigMachinePoolArgs{...} } +type ClusterV2RkeConfigMachinePoolArrayInput interface { pulumi.Input - ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput - ToClusterV2RkeConfigPtrOutputWithContext(context.Context) ClusterV2RkeConfigPtrOutput + ToClusterV2RkeConfigMachinePoolArrayOutput() ClusterV2RkeConfigMachinePoolArrayOutput + ToClusterV2RkeConfigMachinePoolArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolArrayOutput } -type clusterV2RkeConfigPtrType ClusterV2RkeConfigArgs - -func ClusterV2RkeConfigPtr(v *ClusterV2RkeConfigArgs) ClusterV2RkeConfigPtrInput { - return (*clusterV2RkeConfigPtrType)(v) -} +type ClusterV2RkeConfigMachinePoolArray []ClusterV2RkeConfigMachinePoolInput -func (*clusterV2RkeConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfig)(nil)).Elem() +func (ClusterV2RkeConfigMachinePoolArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePool)(nil)).Elem() } -func (i *clusterV2RkeConfigPtrType) ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput { - return i.ToClusterV2RkeConfigPtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachinePoolArray) ToClusterV2RkeConfigMachinePoolArrayOutput() ClusterV2RkeConfigMachinePoolArrayOutput { + return i.ToClusterV2RkeConfigMachinePoolArrayOutputWithContext(context.Background()) } -func (i *clusterV2RkeConfigPtrType) ToClusterV2RkeConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigPtrOutput) +func (i ClusterV2RkeConfigMachinePoolArray) ToClusterV2RkeConfigMachinePoolArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolArrayOutput) } -type ClusterV2RkeConfigOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachinePoolOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfig)(nil)).Elem() +func (ClusterV2RkeConfigMachinePoolOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePool)(nil)).Elem() } -func (o ClusterV2RkeConfigOutput) ToClusterV2RkeConfigOutput() ClusterV2RkeConfigOutput { +func (o ClusterV2RkeConfigMachinePoolOutput) ToClusterV2RkeConfigMachinePoolOutput() ClusterV2RkeConfigMachinePoolOutput { return o } -func (o ClusterV2RkeConfigOutput) ToClusterV2RkeConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigOutput { +func (o ClusterV2RkeConfigMachinePoolOutput) ToClusterV2RkeConfigMachinePoolOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolOutput { return o } -func (o ClusterV2RkeConfigOutput) ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput { - return o.ToClusterV2RkeConfigPtrOutputWithContext(context.Background()) -} - -func (o ClusterV2RkeConfigOutput) ToClusterV2RkeConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfig) *ClusterV2RkeConfig { - return &v - }).(ClusterV2RkeConfigPtrOutput) +// Annotations for the Cluster. +func (o ClusterV2RkeConfigMachinePoolOutput) Annotations() pulumi.MapOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) } -// Cluster V2 additional manifest (string) -func (o ClusterV2RkeConfigOutput) AdditionalManifest() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *string { return v.AdditionalManifest }).(pulumi.StringPtrOutput) +// Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. +func (o ClusterV2RkeConfigMachinePoolOutput) CloudCredentialSecretName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *string { return v.CloudCredentialSecretName }).(pulumi.StringPtrOutput) } -// Cluster V2 chart values. Must be in YAML format (string) -func (o ClusterV2RkeConfigOutput) ChartValues() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *string { return v.ChartValues }).(pulumi.StringPtrOutput) +// Machine pool control plane role? +func (o ClusterV2RkeConfigMachinePoolOutput) ControlPlaneRole() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.ControlPlaneRole }).(pulumi.BoolPtrOutput) } -// Cluster V2 etcd (list maxitems:1) -func (o ClusterV2RkeConfigOutput) Etcd() ClusterV2RkeConfigEtcdPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigEtcd { return v.Etcd }).(ClusterV2RkeConfigEtcdPtrOutput) +// Machine Pool Drain Before Delete? +func (o ClusterV2RkeConfigMachinePoolOutput) DrainBeforeDelete() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.DrainBeforeDelete }).(pulumi.BoolPtrOutput) } -// Cluster V2 etcd snapshot create (list maxitems:1) -func (o ClusterV2RkeConfigOutput) EtcdSnapshotCreate() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigEtcdSnapshotCreate { return v.EtcdSnapshotCreate }).(ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) +// Machine pool etcd role? +func (o ClusterV2RkeConfigMachinePoolOutput) EtcdRole() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.EtcdRole }).(pulumi.BoolPtrOutput) } -// Cluster V2 etcd snapshot restore (list maxitems:1) -func (o ClusterV2RkeConfigOutput) EtcdSnapshotRestore() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigEtcdSnapshotRestore { return v.EtcdSnapshotRestore }).(ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) +// maximum length for autogenerated hostname +func (o ClusterV2RkeConfigMachinePoolOutput) HostnameLengthLimit() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.HostnameLengthLimit }).(pulumi.IntPtrOutput) } -// Cluster V2 local auth endpoint (list maxitems:1) -// -// Deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead -func (o ClusterV2RkeConfigOutput) LocalAuthEndpoint() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigLocalAuthEndpoint { return v.LocalAuthEndpoint }).(ClusterV2RkeConfigLocalAuthEndpointPtrOutput) +// Labels for the Cluster. +func (o ClusterV2RkeConfigMachinePoolOutput) Labels() pulumi.MapOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) } -// Cluster V2 machine global config. Must be in YAML format (string) -func (o ClusterV2RkeConfigOutput) MachineGlobalConfig() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *string { return v.MachineGlobalConfig }).(pulumi.StringPtrOutput) +// Machine pool node config. +func (o ClusterV2RkeConfigMachinePoolOutput) MachineConfig() ClusterV2RkeConfigMachinePoolMachineConfigOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) ClusterV2RkeConfigMachinePoolMachineConfig { + return v.MachineConfig + }).(ClusterV2RkeConfigMachinePoolMachineConfigOutput) } -// Default values for machine pool configurations if unset -func (o ClusterV2RkeConfigOutput) MachinePoolDefaults() ClusterV2RkeConfigMachinePoolDefaultArrayOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) []ClusterV2RkeConfigMachinePoolDefault { return v.MachinePoolDefaults }).(ClusterV2RkeConfigMachinePoolDefaultArrayOutput) +// Labels for Machine pool nodes. +func (o ClusterV2RkeConfigMachinePoolOutput) MachineLabels() pulumi.MapOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) map[string]interface{} { return v.MachineLabels }).(pulumi.MapOutput) } -// Cluster V2 machine pools (list) -func (o ClusterV2RkeConfigOutput) MachinePools() ClusterV2RkeConfigMachinePoolArrayOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) []ClusterV2RkeConfigMachinePool { return v.MachinePools }).(ClusterV2RkeConfigMachinePoolArrayOutput) +// Max unhealthy nodes for automated replacement to be allowed. +func (o ClusterV2RkeConfigMachinePoolOutput) MaxUnhealthy() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *string { return v.MaxUnhealthy }).(pulumi.StringPtrOutput) } -// Cluster V2 machine selector config (list) -func (o ClusterV2RkeConfigOutput) MachineSelectorConfigs() ClusterV2RkeConfigMachineSelectorConfigArrayOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) []ClusterV2RkeConfigMachineSelectorConfig { return v.MachineSelectorConfigs }).(ClusterV2RkeConfigMachineSelectorConfigArrayOutput) +// The name of the cluster. +func (o ClusterV2RkeConfigMachinePoolOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) string { return v.Name }).(pulumi.StringOutput) } -// Cluster V2 docker registries (list maxitems:1) -func (o ClusterV2RkeConfigOutput) Registries() ClusterV2RkeConfigRegistriesPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigRegistries { return v.Registries }).(ClusterV2RkeConfigRegistriesPtrOutput) +// Seconds a machine has to drain before deletion. +func (o ClusterV2RkeConfigMachinePoolOutput) NodeDrainTimeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.NodeDrainTimeout }).(pulumi.IntPtrOutput) } -// Cluster V2 certificate rotation (list maxitems:1) -func (o ClusterV2RkeConfigOutput) RotateCertificates() ClusterV2RkeConfigRotateCertificatesPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigRotateCertificates { return v.RotateCertificates }).(ClusterV2RkeConfigRotateCertificatesPtrOutput) +// Seconds a new node has to become active before it is replaced. +func (o ClusterV2RkeConfigMachinePoolOutput) NodeStartupTimeoutSeconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.NodeStartupTimeoutSeconds }).(pulumi.IntPtrOutput) } -// Cluster V2 upgrade strategy (list maxitems:1) -func (o ClusterV2RkeConfigOutput) UpgradeStrategy() ClusterV2RkeConfigUpgradeStrategyPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfig) *ClusterV2RkeConfigUpgradeStrategy { return v.UpgradeStrategy }).(ClusterV2RkeConfigUpgradeStrategyPtrOutput) +// Machine pool paused? +func (o ClusterV2RkeConfigMachinePoolOutput) Paused() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.Paused }).(pulumi.BoolPtrOutput) } -type ClusterV2RkeConfigPtrOutput struct{ *pulumi.OutputState } - -func (ClusterV2RkeConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfig)(nil)).Elem() +// Machine pool quantity. +func (o ClusterV2RkeConfigMachinePoolOutput) Quantity() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.Quantity }).(pulumi.IntPtrOutput) } -func (o ClusterV2RkeConfigPtrOutput) ToClusterV2RkeConfigPtrOutput() ClusterV2RkeConfigPtrOutput { - return o +// Machine pool rolling update. +func (o ClusterV2RkeConfigMachinePoolOutput) RollingUpdate() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *ClusterV2RkeConfigMachinePoolRollingUpdate { + return v.RollingUpdate + }).(ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) } -func (o ClusterV2RkeConfigPtrOutput) ToClusterV2RkeConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigPtrOutput { - return o +// Machine pool taints. +func (o ClusterV2RkeConfigMachinePoolOutput) Taints() ClusterV2RkeConfigMachinePoolTaintArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) []ClusterV2RkeConfigMachinePoolTaint { return v.Taints }).(ClusterV2RkeConfigMachinePoolTaintArrayOutput) } -func (o ClusterV2RkeConfigPtrOutput) Elem() ClusterV2RkeConfigOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) ClusterV2RkeConfig { - if v != nil { - return *v - } - var ret ClusterV2RkeConfig - return ret - }).(ClusterV2RkeConfigOutput) +// Seconds an unhealthy node has to become active before it is replaced. +func (o ClusterV2RkeConfigMachinePoolOutput) UnhealthyNodeTimeoutSeconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.UnhealthyNodeTimeoutSeconds }).(pulumi.IntPtrOutput) } -// Cluster V2 additional manifest (string) -func (o ClusterV2RkeConfigPtrOutput) AdditionalManifest() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *string { - if v == nil { - return nil - } - return v.AdditionalManifest - }).(pulumi.StringPtrOutput) +// Range of unhealthy nodes for automated replacement to be allowed. +func (o ClusterV2RkeConfigMachinePoolOutput) UnhealthyRange() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *string { return v.UnhealthyRange }).(pulumi.StringPtrOutput) } -// Cluster V2 chart values. Must be in YAML format (string) -func (o ClusterV2RkeConfigPtrOutput) ChartValues() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *string { - if v == nil { - return nil - } - return v.ChartValues - }).(pulumi.StringPtrOutput) +// Machine pool worker role? +func (o ClusterV2RkeConfigMachinePoolOutput) WorkerRole() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.WorkerRole }).(pulumi.BoolPtrOutput) } -// Cluster V2 etcd (list maxitems:1) -func (o ClusterV2RkeConfigPtrOutput) Etcd() ClusterV2RkeConfigEtcdPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigEtcd { - if v == nil { - return nil - } - return v.Etcd - }).(ClusterV2RkeConfigEtcdPtrOutput) -} +type ClusterV2RkeConfigMachinePoolArrayOutput struct{ *pulumi.OutputState } -// Cluster V2 etcd snapshot create (list maxitems:1) -func (o ClusterV2RkeConfigPtrOutput) EtcdSnapshotCreate() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigEtcdSnapshotCreate { - if v == nil { - return nil - } - return v.EtcdSnapshotCreate - }).(ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) +func (ClusterV2RkeConfigMachinePoolArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePool)(nil)).Elem() } -// Cluster V2 etcd snapshot restore (list maxitems:1) -func (o ClusterV2RkeConfigPtrOutput) EtcdSnapshotRestore() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigEtcdSnapshotRestore { - if v == nil { - return nil - } - return v.EtcdSnapshotRestore - }).(ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) +func (o ClusterV2RkeConfigMachinePoolArrayOutput) ToClusterV2RkeConfigMachinePoolArrayOutput() ClusterV2RkeConfigMachinePoolArrayOutput { + return o } -// Cluster V2 local auth endpoint (list maxitems:1) -// -// Deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead -func (o ClusterV2RkeConfigPtrOutput) LocalAuthEndpoint() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigLocalAuthEndpoint { - if v == nil { - return nil - } - return v.LocalAuthEndpoint - }).(ClusterV2RkeConfigLocalAuthEndpointPtrOutput) +func (o ClusterV2RkeConfigMachinePoolArrayOutput) ToClusterV2RkeConfigMachinePoolArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolArrayOutput { + return o } -// Cluster V2 machine global config. Must be in YAML format (string) -func (o ClusterV2RkeConfigPtrOutput) MachineGlobalConfig() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *string { - if v == nil { - return nil - } - return v.MachineGlobalConfig - }).(pulumi.StringPtrOutput) +func (o ClusterV2RkeConfigMachinePoolArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachinePoolOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachinePool { + return vs[0].([]ClusterV2RkeConfigMachinePool)[vs[1].(int)] + }).(ClusterV2RkeConfigMachinePoolOutput) } -// Default values for machine pool configurations if unset -func (o ClusterV2RkeConfigPtrOutput) MachinePoolDefaults() ClusterV2RkeConfigMachinePoolDefaultArrayOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) []ClusterV2RkeConfigMachinePoolDefault { - if v == nil { - return nil - } - return v.MachinePoolDefaults - }).(ClusterV2RkeConfigMachinePoolDefaultArrayOutput) +type ClusterV2RkeConfigMachinePoolDefault struct { + // maximum length for autogenerated hostname + HostnameLengthLimit *int `pulumi:"hostnameLengthLimit"` } -// Cluster V2 machine pools (list) -func (o ClusterV2RkeConfigPtrOutput) MachinePools() ClusterV2RkeConfigMachinePoolArrayOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) []ClusterV2RkeConfigMachinePool { - if v == nil { - return nil - } - return v.MachinePools - }).(ClusterV2RkeConfigMachinePoolArrayOutput) -} +// ClusterV2RkeConfigMachinePoolDefaultInput is an input type that accepts ClusterV2RkeConfigMachinePoolDefaultArgs and ClusterV2RkeConfigMachinePoolDefaultOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolDefaultInput` via: +// +// ClusterV2RkeConfigMachinePoolDefaultArgs{...} +type ClusterV2RkeConfigMachinePoolDefaultInput interface { + pulumi.Input -// Cluster V2 machine selector config (list) -func (o ClusterV2RkeConfigPtrOutput) MachineSelectorConfigs() ClusterV2RkeConfigMachineSelectorConfigArrayOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) []ClusterV2RkeConfigMachineSelectorConfig { - if v == nil { - return nil - } - return v.MachineSelectorConfigs - }).(ClusterV2RkeConfigMachineSelectorConfigArrayOutput) + ToClusterV2RkeConfigMachinePoolDefaultOutput() ClusterV2RkeConfigMachinePoolDefaultOutput + ToClusterV2RkeConfigMachinePoolDefaultOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolDefaultOutput } -// Cluster V2 docker registries (list maxitems:1) -func (o ClusterV2RkeConfigPtrOutput) Registries() ClusterV2RkeConfigRegistriesPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigRegistries { - if v == nil { - return nil - } - return v.Registries - }).(ClusterV2RkeConfigRegistriesPtrOutput) +type ClusterV2RkeConfigMachinePoolDefaultArgs struct { + // maximum length for autogenerated hostname + HostnameLengthLimit pulumi.IntPtrInput `pulumi:"hostnameLengthLimit"` } -// Cluster V2 certificate rotation (list maxitems:1) -func (o ClusterV2RkeConfigPtrOutput) RotateCertificates() ClusterV2RkeConfigRotateCertificatesPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigRotateCertificates { - if v == nil { - return nil - } - return v.RotateCertificates - }).(ClusterV2RkeConfigRotateCertificatesPtrOutput) +func (ClusterV2RkeConfigMachinePoolDefaultArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolDefault)(nil)).Elem() } -// Cluster V2 upgrade strategy (list maxitems:1) -func (o ClusterV2RkeConfigPtrOutput) UpgradeStrategy() ClusterV2RkeConfigUpgradeStrategyPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfig) *ClusterV2RkeConfigUpgradeStrategy { - if v == nil { - return nil - } - return v.UpgradeStrategy - }).(ClusterV2RkeConfigUpgradeStrategyPtrOutput) +func (i ClusterV2RkeConfigMachinePoolDefaultArgs) ToClusterV2RkeConfigMachinePoolDefaultOutput() ClusterV2RkeConfigMachinePoolDefaultOutput { + return i.ToClusterV2RkeConfigMachinePoolDefaultOutputWithContext(context.Background()) } -type ClusterV2RkeConfigEtcd struct { - // Disable ETCD snapshots. Default: `false` (bool) - DisableSnapshots *bool `pulumi:"disableSnapshots"` - // Creation option for etcd service (list maxitems:1) - S3Config *ClusterV2RkeConfigEtcdS3Config `pulumi:"s3Config"` - // ETCD snapshot retention (int) - SnapshotRetention *int `pulumi:"snapshotRetention"` - // ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) - SnapshotScheduleCron *string `pulumi:"snapshotScheduleCron"` +func (i ClusterV2RkeConfigMachinePoolDefaultArgs) ToClusterV2RkeConfigMachinePoolDefaultOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolDefaultOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolDefaultOutput) } -// ClusterV2RkeConfigEtcdInput is an input type that accepts ClusterV2RkeConfigEtcdArgs and ClusterV2RkeConfigEtcdOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigEtcdInput` via: +// ClusterV2RkeConfigMachinePoolDefaultArrayInput is an input type that accepts ClusterV2RkeConfigMachinePoolDefaultArray and ClusterV2RkeConfigMachinePoolDefaultArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolDefaultArrayInput` via: // -// ClusterV2RkeConfigEtcdArgs{...} -type ClusterV2RkeConfigEtcdInput interface { +// ClusterV2RkeConfigMachinePoolDefaultArray{ ClusterV2RkeConfigMachinePoolDefaultArgs{...} } +type ClusterV2RkeConfigMachinePoolDefaultArrayInput interface { pulumi.Input - ToClusterV2RkeConfigEtcdOutput() ClusterV2RkeConfigEtcdOutput - ToClusterV2RkeConfigEtcdOutputWithContext(context.Context) ClusterV2RkeConfigEtcdOutput -} - -type ClusterV2RkeConfigEtcdArgs struct { - // Disable ETCD snapshots. Default: `false` (bool) - DisableSnapshots pulumi.BoolPtrInput `pulumi:"disableSnapshots"` - // Creation option for etcd service (list maxitems:1) - S3Config ClusterV2RkeConfigEtcdS3ConfigPtrInput `pulumi:"s3Config"` - // ETCD snapshot retention (int) - SnapshotRetention pulumi.IntPtrInput `pulumi:"snapshotRetention"` - // ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) - SnapshotScheduleCron pulumi.StringPtrInput `pulumi:"snapshotScheduleCron"` -} - -func (ClusterV2RkeConfigEtcdArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigEtcd)(nil)).Elem() -} - -func (i ClusterV2RkeConfigEtcdArgs) ToClusterV2RkeConfigEtcdOutput() ClusterV2RkeConfigEtcdOutput { - return i.ToClusterV2RkeConfigEtcdOutputWithContext(context.Background()) + ToClusterV2RkeConfigMachinePoolDefaultArrayOutput() ClusterV2RkeConfigMachinePoolDefaultArrayOutput + ToClusterV2RkeConfigMachinePoolDefaultArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolDefaultArrayOutput } -func (i ClusterV2RkeConfigEtcdArgs) ToClusterV2RkeConfigEtcdOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdOutput) -} +type ClusterV2RkeConfigMachinePoolDefaultArray []ClusterV2RkeConfigMachinePoolDefaultInput -func (i ClusterV2RkeConfigEtcdArgs) ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput { - return i.ToClusterV2RkeConfigEtcdPtrOutputWithContext(context.Background()) +func (ClusterV2RkeConfigMachinePoolDefaultArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePoolDefault)(nil)).Elem() } -func (i ClusterV2RkeConfigEtcdArgs) ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdOutput).ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx) +func (i ClusterV2RkeConfigMachinePoolDefaultArray) ToClusterV2RkeConfigMachinePoolDefaultArrayOutput() ClusterV2RkeConfigMachinePoolDefaultArrayOutput { + return i.ToClusterV2RkeConfigMachinePoolDefaultArrayOutputWithContext(context.Background()) } -// ClusterV2RkeConfigEtcdPtrInput is an input type that accepts ClusterV2RkeConfigEtcdArgs, ClusterV2RkeConfigEtcdPtr and ClusterV2RkeConfigEtcdPtrOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigEtcdPtrInput` via: -// -// ClusterV2RkeConfigEtcdArgs{...} -// -// or: -// -// nil -type ClusterV2RkeConfigEtcdPtrInput interface { - pulumi.Input - - ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput - ToClusterV2RkeConfigEtcdPtrOutputWithContext(context.Context) ClusterV2RkeConfigEtcdPtrOutput +func (i ClusterV2RkeConfigMachinePoolDefaultArray) ToClusterV2RkeConfigMachinePoolDefaultArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolDefaultArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolDefaultArrayOutput) } -type clusterV2RkeConfigEtcdPtrType ClusterV2RkeConfigEtcdArgs +type ClusterV2RkeConfigMachinePoolDefaultOutput struct{ *pulumi.OutputState } -func ClusterV2RkeConfigEtcdPtr(v *ClusterV2RkeConfigEtcdArgs) ClusterV2RkeConfigEtcdPtrInput { - return (*clusterV2RkeConfigEtcdPtrType)(v) +func (ClusterV2RkeConfigMachinePoolDefaultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolDefault)(nil)).Elem() } -func (*clusterV2RkeConfigEtcdPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigEtcd)(nil)).Elem() +func (o ClusterV2RkeConfigMachinePoolDefaultOutput) ToClusterV2RkeConfigMachinePoolDefaultOutput() ClusterV2RkeConfigMachinePoolDefaultOutput { + return o } -func (i *clusterV2RkeConfigEtcdPtrType) ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput { - return i.ToClusterV2RkeConfigEtcdPtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigMachinePoolDefaultOutput) ToClusterV2RkeConfigMachinePoolDefaultOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolDefaultOutput { + return o } -func (i *clusterV2RkeConfigEtcdPtrType) ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdPtrOutput) +// maximum length for autogenerated hostname +func (o ClusterV2RkeConfigMachinePoolDefaultOutput) HostnameLengthLimit() pulumi.IntPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolDefault) *int { return v.HostnameLengthLimit }).(pulumi.IntPtrOutput) } -type ClusterV2RkeConfigEtcdOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachinePoolDefaultArrayOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigEtcdOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigEtcd)(nil)).Elem() +func (ClusterV2RkeConfigMachinePoolDefaultArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePoolDefault)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdOutput) ToClusterV2RkeConfigEtcdOutput() ClusterV2RkeConfigEtcdOutput { +func (o ClusterV2RkeConfigMachinePoolDefaultArrayOutput) ToClusterV2RkeConfigMachinePoolDefaultArrayOutput() ClusterV2RkeConfigMachinePoolDefaultArrayOutput { return o } -func (o ClusterV2RkeConfigEtcdOutput) ToClusterV2RkeConfigEtcdOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdOutput { +func (o ClusterV2RkeConfigMachinePoolDefaultArrayOutput) ToClusterV2RkeConfigMachinePoolDefaultArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolDefaultArrayOutput { return o } -func (o ClusterV2RkeConfigEtcdOutput) ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput { - return o.ToClusterV2RkeConfigEtcdPtrOutputWithContext(context.Background()) -} - -func (o ClusterV2RkeConfigEtcdOutput) ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigEtcd) *ClusterV2RkeConfigEtcd { - return &v - }).(ClusterV2RkeConfigEtcdPtrOutput) +func (o ClusterV2RkeConfigMachinePoolDefaultArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachinePoolDefaultOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachinePoolDefault { + return vs[0].([]ClusterV2RkeConfigMachinePoolDefault)[vs[1].(int)] + }).(ClusterV2RkeConfigMachinePoolDefaultOutput) } -// Disable ETCD snapshots. Default: `false` (bool) -func (o ClusterV2RkeConfigEtcdOutput) DisableSnapshots() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcd) *bool { return v.DisableSnapshots }).(pulumi.BoolPtrOutput) +type ClusterV2RkeConfigMachinePoolMachineConfig struct { + // Api version of the machine_config. + ApiVersion *string `pulumi:"apiVersion"` + // Machine config kind. + Kind string `pulumi:"kind"` + // The name of the cluster. + Name string `pulumi:"name"` } -// Creation option for etcd service (list maxitems:1) -func (o ClusterV2RkeConfigEtcdOutput) S3Config() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcd) *ClusterV2RkeConfigEtcdS3Config { return v.S3Config }).(ClusterV2RkeConfigEtcdS3ConfigPtrOutput) -} +// ClusterV2RkeConfigMachinePoolMachineConfigInput is an input type that accepts ClusterV2RkeConfigMachinePoolMachineConfigArgs and ClusterV2RkeConfigMachinePoolMachineConfigOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolMachineConfigInput` via: +// +// ClusterV2RkeConfigMachinePoolMachineConfigArgs{...} +type ClusterV2RkeConfigMachinePoolMachineConfigInput interface { + pulumi.Input -// ETCD snapshot retention (int) -func (o ClusterV2RkeConfigEtcdOutput) SnapshotRetention() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcd) *int { return v.SnapshotRetention }).(pulumi.IntPtrOutput) + ToClusterV2RkeConfigMachinePoolMachineConfigOutput() ClusterV2RkeConfigMachinePoolMachineConfigOutput + ToClusterV2RkeConfigMachinePoolMachineConfigOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolMachineConfigOutput } -// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) -func (o ClusterV2RkeConfigEtcdOutput) SnapshotScheduleCron() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcd) *string { return v.SnapshotScheduleCron }).(pulumi.StringPtrOutput) +type ClusterV2RkeConfigMachinePoolMachineConfigArgs struct { + // Api version of the machine_config. + ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"` + // Machine config kind. + Kind pulumi.StringInput `pulumi:"kind"` + // The name of the cluster. + Name pulumi.StringInput `pulumi:"name"` } -type ClusterV2RkeConfigEtcdPtrOutput struct{ *pulumi.OutputState } - -func (ClusterV2RkeConfigEtcdPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigEtcd)(nil)).Elem() +func (ClusterV2RkeConfigMachinePoolMachineConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolMachineConfig)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdPtrOutput) ToClusterV2RkeConfigEtcdPtrOutput() ClusterV2RkeConfigEtcdPtrOutput { - return o +func (i ClusterV2RkeConfigMachinePoolMachineConfigArgs) ToClusterV2RkeConfigMachinePoolMachineConfigOutput() ClusterV2RkeConfigMachinePoolMachineConfigOutput { + return i.ToClusterV2RkeConfigMachinePoolMachineConfigOutputWithContext(context.Background()) } -func (o ClusterV2RkeConfigEtcdPtrOutput) ToClusterV2RkeConfigEtcdPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdPtrOutput { - return o +func (i ClusterV2RkeConfigMachinePoolMachineConfigArgs) ToClusterV2RkeConfigMachinePoolMachineConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolMachineConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolMachineConfigOutput) } -func (o ClusterV2RkeConfigEtcdPtrOutput) Elem() ClusterV2RkeConfigEtcdOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) ClusterV2RkeConfigEtcd { - if v != nil { - return *v - } - var ret ClusterV2RkeConfigEtcd - return ret - }).(ClusterV2RkeConfigEtcdOutput) -} +type ClusterV2RkeConfigMachinePoolMachineConfigOutput struct{ *pulumi.OutputState } -// Disable ETCD snapshots. Default: `false` (bool) -func (o ClusterV2RkeConfigEtcdPtrOutput) DisableSnapshots() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) *bool { - if v == nil { - return nil - } - return v.DisableSnapshots - }).(pulumi.BoolPtrOutput) +func (ClusterV2RkeConfigMachinePoolMachineConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolMachineConfig)(nil)).Elem() } -// Creation option for etcd service (list maxitems:1) -func (o ClusterV2RkeConfigEtcdPtrOutput) S3Config() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) *ClusterV2RkeConfigEtcdS3Config { - if v == nil { - return nil - } - return v.S3Config - }).(ClusterV2RkeConfigEtcdS3ConfigPtrOutput) +func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) ToClusterV2RkeConfigMachinePoolMachineConfigOutput() ClusterV2RkeConfigMachinePoolMachineConfigOutput { + return o } -// ETCD snapshot retention (int) -func (o ClusterV2RkeConfigEtcdPtrOutput) SnapshotRetention() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) *int { - if v == nil { - return nil - } - return v.SnapshotRetention - }).(pulumi.IntPtrOutput) +func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) ToClusterV2RkeConfigMachinePoolMachineConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolMachineConfigOutput { + return o } -// ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) -func (o ClusterV2RkeConfigEtcdPtrOutput) SnapshotScheduleCron() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcd) *string { - if v == nil { - return nil - } - return v.SnapshotScheduleCron - }).(pulumi.StringPtrOutput) +// Api version of the machine_config. +func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) ApiVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolMachineConfig) *string { return v.ApiVersion }).(pulumi.StringPtrOutput) } -type ClusterV2RkeConfigEtcdS3Config struct { - // Bucket name for S3 service (string) - Bucket string `pulumi:"bucket"` - // ETCD snapshot S3 cloud credential name (string) - CloudCredentialName *string `pulumi:"cloudCredentialName"` - // ETCD snapshot S3 endpoint (string) - Endpoint string `pulumi:"endpoint"` - // ETCD snapshot S3 endpoint CA (string) - EndpointCa *string `pulumi:"endpointCa"` - // ETCD snapshot S3 folder (string) - Folder *string `pulumi:"folder"` - // ETCD snapshot S3 region (string) - Region *string `pulumi:"region"` - // Disable ETCD skip ssl verify. Default: `false` (bool) - SkipSslVerify *bool `pulumi:"skipSslVerify"` +// Machine config kind. +func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) Kind() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolMachineConfig) string { return v.Kind }).(pulumi.StringOutput) } -// ClusterV2RkeConfigEtcdS3ConfigInput is an input type that accepts ClusterV2RkeConfigEtcdS3ConfigArgs and ClusterV2RkeConfigEtcdS3ConfigOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigEtcdS3ConfigInput` via: +// The name of the cluster. +func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolMachineConfig) string { return v.Name }).(pulumi.StringOutput) +} + +type ClusterV2RkeConfigMachinePoolRollingUpdate struct { + // Rolling update max surge. + MaxSurge *string `pulumi:"maxSurge"` + // Rolling update max unavailable. + MaxUnavailable *string `pulumi:"maxUnavailable"` +} + +// ClusterV2RkeConfigMachinePoolRollingUpdateInput is an input type that accepts ClusterV2RkeConfigMachinePoolRollingUpdateArgs and ClusterV2RkeConfigMachinePoolRollingUpdateOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolRollingUpdateInput` via: // -// ClusterV2RkeConfigEtcdS3ConfigArgs{...} -type ClusterV2RkeConfigEtcdS3ConfigInput interface { +// ClusterV2RkeConfigMachinePoolRollingUpdateArgs{...} +type ClusterV2RkeConfigMachinePoolRollingUpdateInput interface { pulumi.Input - ToClusterV2RkeConfigEtcdS3ConfigOutput() ClusterV2RkeConfigEtcdS3ConfigOutput - ToClusterV2RkeConfigEtcdS3ConfigOutputWithContext(context.Context) ClusterV2RkeConfigEtcdS3ConfigOutput + ToClusterV2RkeConfigMachinePoolRollingUpdateOutput() ClusterV2RkeConfigMachinePoolRollingUpdateOutput + ToClusterV2RkeConfigMachinePoolRollingUpdateOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolRollingUpdateOutput } -type ClusterV2RkeConfigEtcdS3ConfigArgs struct { - // Bucket name for S3 service (string) - Bucket pulumi.StringInput `pulumi:"bucket"` - // ETCD snapshot S3 cloud credential name (string) - CloudCredentialName pulumi.StringPtrInput `pulumi:"cloudCredentialName"` - // ETCD snapshot S3 endpoint (string) - Endpoint pulumi.StringInput `pulumi:"endpoint"` - // ETCD snapshot S3 endpoint CA (string) - EndpointCa pulumi.StringPtrInput `pulumi:"endpointCa"` - // ETCD snapshot S3 folder (string) - Folder pulumi.StringPtrInput `pulumi:"folder"` - // ETCD snapshot S3 region (string) - Region pulumi.StringPtrInput `pulumi:"region"` - // Disable ETCD skip ssl verify. Default: `false` (bool) - SkipSslVerify pulumi.BoolPtrInput `pulumi:"skipSslVerify"` +type ClusterV2RkeConfigMachinePoolRollingUpdateArgs struct { + // Rolling update max surge. + MaxSurge pulumi.StringPtrInput `pulumi:"maxSurge"` + // Rolling update max unavailable. + MaxUnavailable pulumi.StringPtrInput `pulumi:"maxUnavailable"` } -func (ClusterV2RkeConfigEtcdS3ConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigEtcdS3Config)(nil)).Elem() +func (ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolRollingUpdate)(nil)).Elem() } -func (i ClusterV2RkeConfigEtcdS3ConfigArgs) ToClusterV2RkeConfigEtcdS3ConfigOutput() ClusterV2RkeConfigEtcdS3ConfigOutput { - return i.ToClusterV2RkeConfigEtcdS3ConfigOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ToClusterV2RkeConfigMachinePoolRollingUpdateOutput() ClusterV2RkeConfigMachinePoolRollingUpdateOutput { + return i.ToClusterV2RkeConfigMachinePoolRollingUpdateOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigEtcdS3ConfigArgs) ToClusterV2RkeConfigEtcdS3ConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdS3ConfigOutput) +func (i ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ToClusterV2RkeConfigMachinePoolRollingUpdateOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdateOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolRollingUpdateOutput) } -func (i ClusterV2RkeConfigEtcdS3ConfigArgs) ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { - return i.ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { + return i.ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigEtcdS3ConfigArgs) ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdS3ConfigOutput).ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx) +func (i ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolRollingUpdateOutput).ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx) } -// ClusterV2RkeConfigEtcdS3ConfigPtrInput is an input type that accepts ClusterV2RkeConfigEtcdS3ConfigArgs, ClusterV2RkeConfigEtcdS3ConfigPtr and ClusterV2RkeConfigEtcdS3ConfigPtrOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigEtcdS3ConfigPtrInput` via: +// ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput is an input type that accepts ClusterV2RkeConfigMachinePoolRollingUpdateArgs, ClusterV2RkeConfigMachinePoolRollingUpdatePtr and ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput` via: // -// ClusterV2RkeConfigEtcdS3ConfigArgs{...} +// ClusterV2RkeConfigMachinePoolRollingUpdateArgs{...} // // or: // // nil -type ClusterV2RkeConfigEtcdS3ConfigPtrInput interface { +type ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput interface { pulumi.Input - ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput - ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput + ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput + ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput } -type clusterV2RkeConfigEtcdS3ConfigPtrType ClusterV2RkeConfigEtcdS3ConfigArgs +type clusterV2RkeConfigMachinePoolRollingUpdatePtrType ClusterV2RkeConfigMachinePoolRollingUpdateArgs -func ClusterV2RkeConfigEtcdS3ConfigPtr(v *ClusterV2RkeConfigEtcdS3ConfigArgs) ClusterV2RkeConfigEtcdS3ConfigPtrInput { - return (*clusterV2RkeConfigEtcdS3ConfigPtrType)(v) +func ClusterV2RkeConfigMachinePoolRollingUpdatePtr(v *ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput { + return (*clusterV2RkeConfigMachinePoolRollingUpdatePtrType)(v) } -func (*clusterV2RkeConfigEtcdS3ConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigEtcdS3Config)(nil)).Elem() +func (*clusterV2RkeConfigMachinePoolRollingUpdatePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachinePoolRollingUpdate)(nil)).Elem() } -func (i *clusterV2RkeConfigEtcdS3ConfigPtrType) ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { - return i.ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(context.Background()) +func (i *clusterV2RkeConfigMachinePoolRollingUpdatePtrType) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { + return i.ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(context.Background()) } -func (i *clusterV2RkeConfigEtcdS3ConfigPtrType) ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdS3ConfigPtrOutput) +func (i *clusterV2RkeConfigMachinePoolRollingUpdatePtrType) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) } -type ClusterV2RkeConfigEtcdS3ConfigOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachinePoolRollingUpdateOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigEtcdS3ConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigEtcdS3Config)(nil)).Elem() +func (ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolRollingUpdate)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) ToClusterV2RkeConfigEtcdS3ConfigOutput() ClusterV2RkeConfigEtcdS3ConfigOutput { +func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ToClusterV2RkeConfigMachinePoolRollingUpdateOutput() ClusterV2RkeConfigMachinePoolRollingUpdateOutput { return o } -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) ToClusterV2RkeConfigEtcdS3ConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigOutput { +func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ToClusterV2RkeConfigMachinePoolRollingUpdateOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdateOutput { return o } -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { - return o.ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { + return o.ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(context.Background()) } -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigEtcdS3Config) *ClusterV2RkeConfigEtcdS3Config { +func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigMachinePoolRollingUpdate) *ClusterV2RkeConfigMachinePoolRollingUpdate { return &v - }).(ClusterV2RkeConfigEtcdS3ConfigPtrOutput) -} - -// Bucket name for S3 service (string) -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) Bucket() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) string { return v.Bucket }).(pulumi.StringOutput) -} - -// ETCD snapshot S3 cloud credential name (string) -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) CloudCredentialName() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *string { return v.CloudCredentialName }).(pulumi.StringPtrOutput) -} - -// ETCD snapshot S3 endpoint (string) -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) Endpoint() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) string { return v.Endpoint }).(pulumi.StringOutput) -} - -// ETCD snapshot S3 endpoint CA (string) -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) EndpointCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *string { return v.EndpointCa }).(pulumi.StringPtrOutput) -} - -// ETCD snapshot S3 folder (string) -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) Folder() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *string { return v.Folder }).(pulumi.StringPtrOutput) + }).(ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) } -// ETCD snapshot S3 region (string) -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *string { return v.Region }).(pulumi.StringPtrOutput) +// Rolling update max surge. +func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) MaxSurge() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolRollingUpdate) *string { return v.MaxSurge }).(pulumi.StringPtrOutput) } -// Disable ETCD skip ssl verify. Default: `false` (bool) -func (o ClusterV2RkeConfigEtcdS3ConfigOutput) SkipSslVerify() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdS3Config) *bool { return v.SkipSslVerify }).(pulumi.BoolPtrOutput) +// Rolling update max unavailable. +func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) MaxUnavailable() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolRollingUpdate) *string { return v.MaxUnavailable }).(pulumi.StringPtrOutput) } -type ClusterV2RkeConfigEtcdS3ConfigPtrOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigEtcdS3ConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigEtcdS3Config)(nil)).Elem() +func (ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachinePoolRollingUpdate)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) ToClusterV2RkeConfigEtcdS3ConfigPtrOutput() ClusterV2RkeConfigEtcdS3ConfigPtrOutput { +func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { return o } -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) ToClusterV2RkeConfigEtcdS3ConfigPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdS3ConfigPtrOutput { +func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { return o } -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Elem() ClusterV2RkeConfigEtcdS3ConfigOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) ClusterV2RkeConfigEtcdS3Config { +func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) Elem() ClusterV2RkeConfigMachinePoolRollingUpdateOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachinePoolRollingUpdate) ClusterV2RkeConfigMachinePoolRollingUpdate { if v != nil { return *v } - var ret ClusterV2RkeConfigEtcdS3Config + var ret ClusterV2RkeConfigMachinePoolRollingUpdate return ret - }).(ClusterV2RkeConfigEtcdS3ConfigOutput) + }).(ClusterV2RkeConfigMachinePoolRollingUpdateOutput) } -// Bucket name for S3 service (string) -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Bucket() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { +// Rolling update max surge. +func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) MaxSurge() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachinePoolRollingUpdate) *string { if v == nil { return nil } - return &v.Bucket + return v.MaxSurge }).(pulumi.StringPtrOutput) } -// ETCD snapshot S3 cloud credential name (string) -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) CloudCredentialName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { +// Rolling update max unavailable. +func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) MaxUnavailable() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachinePoolRollingUpdate) *string { if v == nil { return nil } - return v.CloudCredentialName + return v.MaxUnavailable }).(pulumi.StringPtrOutput) } -// ETCD snapshot S3 endpoint (string) -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Endpoint() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { - if v == nil { - return nil - } - return &v.Endpoint - }).(pulumi.StringPtrOutput) +type ClusterV2RkeConfigMachinePoolTaint struct { + // The taint effect. Default: `\"NoExecute\"`. + Effect *string `pulumi:"effect"` + // Key is the name of the key of the item to retrieve. + Key string `pulumi:"key"` + // The taint value. + Value string `pulumi:"value"` } -// ETCD snapshot S3 endpoint CA (string) -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) EndpointCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { - if v == nil { - return nil - } - return v.EndpointCa - }).(pulumi.StringPtrOutput) +// ClusterV2RkeConfigMachinePoolTaintInput is an input type that accepts ClusterV2RkeConfigMachinePoolTaintArgs and ClusterV2RkeConfigMachinePoolTaintOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolTaintInput` via: +// +// ClusterV2RkeConfigMachinePoolTaintArgs{...} +type ClusterV2RkeConfigMachinePoolTaintInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachinePoolTaintOutput() ClusterV2RkeConfigMachinePoolTaintOutput + ToClusterV2RkeConfigMachinePoolTaintOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolTaintOutput } -// ETCD snapshot S3 folder (string) -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Folder() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { - if v == nil { - return nil - } - return v.Folder - }).(pulumi.StringPtrOutput) +type ClusterV2RkeConfigMachinePoolTaintArgs struct { + // The taint effect. Default: `\"NoExecute\"`. + Effect pulumi.StringPtrInput `pulumi:"effect"` + // Key is the name of the key of the item to retrieve. + Key pulumi.StringInput `pulumi:"key"` + // The taint value. + Value pulumi.StringInput `pulumi:"value"` } -// ETCD snapshot S3 region (string) -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *string { - if v == nil { - return nil - } - return v.Region - }).(pulumi.StringPtrOutput) +func (ClusterV2RkeConfigMachinePoolTaintArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolTaint)(nil)).Elem() } -// Disable ETCD skip ssl verify. Default: `false` (bool) -func (o ClusterV2RkeConfigEtcdS3ConfigPtrOutput) SkipSslVerify() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdS3Config) *bool { - if v == nil { - return nil - } - return v.SkipSslVerify - }).(pulumi.BoolPtrOutput) +func (i ClusterV2RkeConfigMachinePoolTaintArgs) ToClusterV2RkeConfigMachinePoolTaintOutput() ClusterV2RkeConfigMachinePoolTaintOutput { + return i.ToClusterV2RkeConfigMachinePoolTaintOutputWithContext(context.Background()) } -type ClusterV2RkeConfigEtcdSnapshotCreate struct { - // ETCD snapshot desired generation (int) - Generation int `pulumi:"generation"` +func (i ClusterV2RkeConfigMachinePoolTaintArgs) ToClusterV2RkeConfigMachinePoolTaintOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolTaintOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolTaintOutput) } -// ClusterV2RkeConfigEtcdSnapshotCreateInput is an input type that accepts ClusterV2RkeConfigEtcdSnapshotCreateArgs and ClusterV2RkeConfigEtcdSnapshotCreateOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigEtcdSnapshotCreateInput` via: +// ClusterV2RkeConfigMachinePoolTaintArrayInput is an input type that accepts ClusterV2RkeConfigMachinePoolTaintArray and ClusterV2RkeConfigMachinePoolTaintArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolTaintArrayInput` via: // -// ClusterV2RkeConfigEtcdSnapshotCreateArgs{...} -type ClusterV2RkeConfigEtcdSnapshotCreateInput interface { +// ClusterV2RkeConfigMachinePoolTaintArray{ ClusterV2RkeConfigMachinePoolTaintArgs{...} } +type ClusterV2RkeConfigMachinePoolTaintArrayInput interface { pulumi.Input - ToClusterV2RkeConfigEtcdSnapshotCreateOutput() ClusterV2RkeConfigEtcdSnapshotCreateOutput - ToClusterV2RkeConfigEtcdSnapshotCreateOutputWithContext(context.Context) ClusterV2RkeConfigEtcdSnapshotCreateOutput + ToClusterV2RkeConfigMachinePoolTaintArrayOutput() ClusterV2RkeConfigMachinePoolTaintArrayOutput + ToClusterV2RkeConfigMachinePoolTaintArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolTaintArrayOutput } -type ClusterV2RkeConfigEtcdSnapshotCreateArgs struct { - // ETCD snapshot desired generation (int) - Generation pulumi.IntInput `pulumi:"generation"` +type ClusterV2RkeConfigMachinePoolTaintArray []ClusterV2RkeConfigMachinePoolTaintInput + +func (ClusterV2RkeConfigMachinePoolTaintArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePoolTaint)(nil)).Elem() } -func (ClusterV2RkeConfigEtcdSnapshotCreateArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigEtcdSnapshotCreate)(nil)).Elem() +func (i ClusterV2RkeConfigMachinePoolTaintArray) ToClusterV2RkeConfigMachinePoolTaintArrayOutput() ClusterV2RkeConfigMachinePoolTaintArrayOutput { + return i.ToClusterV2RkeConfigMachinePoolTaintArrayOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigEtcdSnapshotCreateArgs) ToClusterV2RkeConfigEtcdSnapshotCreateOutput() ClusterV2RkeConfigEtcdSnapshotCreateOutput { - return i.ToClusterV2RkeConfigEtcdSnapshotCreateOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachinePoolTaintArray) ToClusterV2RkeConfigMachinePoolTaintArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolTaintArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolTaintArrayOutput) } -func (i ClusterV2RkeConfigEtcdSnapshotCreateArgs) ToClusterV2RkeConfigEtcdSnapshotCreateOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreateOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotCreateOutput) +type ClusterV2RkeConfigMachinePoolTaintOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachinePoolTaintOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolTaint)(nil)).Elem() } -func (i ClusterV2RkeConfigEtcdSnapshotCreateArgs) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return i.ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigMachinePoolTaintOutput) ToClusterV2RkeConfigMachinePoolTaintOutput() ClusterV2RkeConfigMachinePoolTaintOutput { + return o } -func (i ClusterV2RkeConfigEtcdSnapshotCreateArgs) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotCreateOutput).ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx) +func (o ClusterV2RkeConfigMachinePoolTaintOutput) ToClusterV2RkeConfigMachinePoolTaintOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolTaintOutput { + return o } -// ClusterV2RkeConfigEtcdSnapshotCreatePtrInput is an input type that accepts ClusterV2RkeConfigEtcdSnapshotCreateArgs, ClusterV2RkeConfigEtcdSnapshotCreatePtr and ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigEtcdSnapshotCreatePtrInput` via: -// -// ClusterV2RkeConfigEtcdSnapshotCreateArgs{...} -// -// or: +// The taint effect. Default: `\"NoExecute\"`. +func (o ClusterV2RkeConfigMachinePoolTaintOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolTaint) *string { return v.Effect }).(pulumi.StringPtrOutput) +} + +// Key is the name of the key of the item to retrieve. +func (o ClusterV2RkeConfigMachinePoolTaintOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolTaint) string { return v.Key }).(pulumi.StringOutput) +} + +// The taint value. +func (o ClusterV2RkeConfigMachinePoolTaintOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolTaint) string { return v.Value }).(pulumi.StringOutput) +} + +type ClusterV2RkeConfigMachinePoolTaintArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachinePoolTaintArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePoolTaint)(nil)).Elem() +} + +func (o ClusterV2RkeConfigMachinePoolTaintArrayOutput) ToClusterV2RkeConfigMachinePoolTaintArrayOutput() ClusterV2RkeConfigMachinePoolTaintArrayOutput { + return o +} + +func (o ClusterV2RkeConfigMachinePoolTaintArrayOutput) ToClusterV2RkeConfigMachinePoolTaintArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolTaintArrayOutput { + return o +} + +func (o ClusterV2RkeConfigMachinePoolTaintArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachinePoolTaintOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachinePoolTaint { + return vs[0].([]ClusterV2RkeConfigMachinePoolTaint)[vs[1].(int)] + }).(ClusterV2RkeConfigMachinePoolTaintOutput) +} + +type ClusterV2RkeConfigMachineSelectorConfig struct { + // Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) + Config *string `pulumi:"config"` + // Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + MachineLabelSelector *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector `pulumi:"machineLabelSelector"` +} + +// ClusterV2RkeConfigMachineSelectorConfigInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigArgs and ClusterV2RkeConfigMachineSelectorConfigOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigInput` via: // -// nil -type ClusterV2RkeConfigEtcdSnapshotCreatePtrInput interface { +// ClusterV2RkeConfigMachineSelectorConfigArgs{...} +type ClusterV2RkeConfigMachineSelectorConfigInput interface { pulumi.Input - ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput - ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput + ToClusterV2RkeConfigMachineSelectorConfigOutput() ClusterV2RkeConfigMachineSelectorConfigOutput + ToClusterV2RkeConfigMachineSelectorConfigOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigOutput } -type clusterV2RkeConfigEtcdSnapshotCreatePtrType ClusterV2RkeConfigEtcdSnapshotCreateArgs +type ClusterV2RkeConfigMachineSelectorConfigArgs struct { + // Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) + Config pulumi.StringPtrInput `pulumi:"config"` + // Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + MachineLabelSelector ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput `pulumi:"machineLabelSelector"` +} -func ClusterV2RkeConfigEtcdSnapshotCreatePtr(v *ClusterV2RkeConfigEtcdSnapshotCreateArgs) ClusterV2RkeConfigEtcdSnapshotCreatePtrInput { - return (*clusterV2RkeConfigEtcdSnapshotCreatePtrType)(v) +func (ClusterV2RkeConfigMachineSelectorConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfig)(nil)).Elem() } -func (*clusterV2RkeConfigEtcdSnapshotCreatePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigEtcdSnapshotCreate)(nil)).Elem() +func (i ClusterV2RkeConfigMachineSelectorConfigArgs) ToClusterV2RkeConfigMachineSelectorConfigOutput() ClusterV2RkeConfigMachineSelectorConfigOutput { + return i.ToClusterV2RkeConfigMachineSelectorConfigOutputWithContext(context.Background()) } -func (i *clusterV2RkeConfigEtcdSnapshotCreatePtrType) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return i.ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorConfigArgs) ToClusterV2RkeConfigMachineSelectorConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigOutput) } -func (i *clusterV2RkeConfigEtcdSnapshotCreatePtrType) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) +// ClusterV2RkeConfigMachineSelectorConfigArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigArray and ClusterV2RkeConfigMachineSelectorConfigArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigArrayInput` via: +// +// ClusterV2RkeConfigMachineSelectorConfigArray{ ClusterV2RkeConfigMachineSelectorConfigArgs{...} } +type ClusterV2RkeConfigMachineSelectorConfigArrayInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachineSelectorConfigArrayOutput() ClusterV2RkeConfigMachineSelectorConfigArrayOutput + ToClusterV2RkeConfigMachineSelectorConfigArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigArrayOutput } -type ClusterV2RkeConfigEtcdSnapshotCreateOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorConfigArray []ClusterV2RkeConfigMachineSelectorConfigInput -func (ClusterV2RkeConfigEtcdSnapshotCreateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigEtcdSnapshotCreate)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorConfigArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorConfig)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) ToClusterV2RkeConfigEtcdSnapshotCreateOutput() ClusterV2RkeConfigEtcdSnapshotCreateOutput { - return o +func (i ClusterV2RkeConfigMachineSelectorConfigArray) ToClusterV2RkeConfigMachineSelectorConfigArrayOutput() ClusterV2RkeConfigMachineSelectorConfigArrayOutput { + return i.ToClusterV2RkeConfigMachineSelectorConfigArrayOutputWithContext(context.Background()) } -func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) ToClusterV2RkeConfigEtcdSnapshotCreateOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreateOutput { - return o +func (i ClusterV2RkeConfigMachineSelectorConfigArray) ToClusterV2RkeConfigMachineSelectorConfigArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigArrayOutput) } -func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return o.ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(context.Background()) +type ClusterV2RkeConfigMachineSelectorConfigOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfig)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigEtcdSnapshotCreate) *ClusterV2RkeConfigEtcdSnapshotCreate { - return &v - }).(ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) +func (o ClusterV2RkeConfigMachineSelectorConfigOutput) ToClusterV2RkeConfigMachineSelectorConfigOutput() ClusterV2RkeConfigMachineSelectorConfigOutput { + return o } -// ETCD snapshot desired generation (int) -func (o ClusterV2RkeConfigEtcdSnapshotCreateOutput) Generation() pulumi.IntOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdSnapshotCreate) int { return v.Generation }).(pulumi.IntOutput) +func (o ClusterV2RkeConfigMachineSelectorConfigOutput) ToClusterV2RkeConfigMachineSelectorConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigOutput { + return o } -type ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput struct{ *pulumi.OutputState } +// Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) +func (o ClusterV2RkeConfigMachineSelectorConfigOutput) Config() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfig) *string { return v.Config }).(pulumi.StringPtrOutput) +} -func (ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigEtcdSnapshotCreate)(nil)).Elem() +// Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. +func (o ClusterV2RkeConfigMachineSelectorConfigOutput) MachineLabelSelector() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfig) *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { + return v.MachineLabelSelector + }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) } -func (o ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutput() ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { - return o +type ClusterV2RkeConfigMachineSelectorConfigArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorConfigArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorConfig)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) ToClusterV2RkeConfigEtcdSnapshotCreatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput { +func (o ClusterV2RkeConfigMachineSelectorConfigArrayOutput) ToClusterV2RkeConfigMachineSelectorConfigArrayOutput() ClusterV2RkeConfigMachineSelectorConfigArrayOutput { return o } -func (o ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) Elem() ClusterV2RkeConfigEtcdSnapshotCreateOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotCreate) ClusterV2RkeConfigEtcdSnapshotCreate { - if v != nil { - return *v - } - var ret ClusterV2RkeConfigEtcdSnapshotCreate - return ret - }).(ClusterV2RkeConfigEtcdSnapshotCreateOutput) +func (o ClusterV2RkeConfigMachineSelectorConfigArrayOutput) ToClusterV2RkeConfigMachineSelectorConfigArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigArrayOutput { + return o } -// ETCD snapshot desired generation (int) -func (o ClusterV2RkeConfigEtcdSnapshotCreatePtrOutput) Generation() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotCreate) *int { - if v == nil { - return nil - } - return &v.Generation - }).(pulumi.IntPtrOutput) +func (o ClusterV2RkeConfigMachineSelectorConfigArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorConfigOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorConfig { + return vs[0].([]ClusterV2RkeConfigMachineSelectorConfig)[vs[1].(int)] + }).(ClusterV2RkeConfigMachineSelectorConfigOutput) } -type ClusterV2RkeConfigEtcdSnapshotRestore struct { - // ETCD snapshot desired generation (int) - Generation int `pulumi:"generation"` - // The name of the Cluster v2 (string) - Name string `pulumi:"name"` - // ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) - RestoreRkeConfig *string `pulumi:"restoreRkeConfig"` +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector struct { + // Match expressions is a list of label selector requirements. The requirements are ANDed. + MatchExpressions []ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression `pulumi:"matchExpressions"` + // Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + MatchLabels map[string]interface{} `pulumi:"matchLabels"` } -// ClusterV2RkeConfigEtcdSnapshotRestoreInput is an input type that accepts ClusterV2RkeConfigEtcdSnapshotRestoreArgs and ClusterV2RkeConfigEtcdSnapshotRestoreOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigEtcdSnapshotRestoreInput` via: +// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs and ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorInput` via: // -// ClusterV2RkeConfigEtcdSnapshotRestoreArgs{...} -type ClusterV2RkeConfigEtcdSnapshotRestoreInput interface { +// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs{...} +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorInput interface { pulumi.Input - ToClusterV2RkeConfigEtcdSnapshotRestoreOutput() ClusterV2RkeConfigEtcdSnapshotRestoreOutput - ToClusterV2RkeConfigEtcdSnapshotRestoreOutputWithContext(context.Context) ClusterV2RkeConfigEtcdSnapshotRestoreOutput + ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput + ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput } -type ClusterV2RkeConfigEtcdSnapshotRestoreArgs struct { - // ETCD snapshot desired generation (int) - Generation pulumi.IntInput `pulumi:"generation"` - // The name of the Cluster v2 (string) - Name pulumi.StringInput `pulumi:"name"` - // ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) - RestoreRkeConfig pulumi.StringPtrInput `pulumi:"restoreRkeConfig"` +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs struct { + // Match expressions is a list of label selector requirements. The requirements are ANDed. + MatchExpressions ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput `pulumi:"matchExpressions"` + // Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + MatchLabels pulumi.MapInput `pulumi:"matchLabels"` } -func (ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigEtcdSnapshotRestore)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector)(nil)).Elem() } -func (i ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ToClusterV2RkeConfigEtcdSnapshotRestoreOutput() ClusterV2RkeConfigEtcdSnapshotRestoreOutput { - return i.ToClusterV2RkeConfigEtcdSnapshotRestoreOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { + return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ToClusterV2RkeConfigEtcdSnapshotRestoreOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestoreOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotRestoreOutput) +func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) } -func (i ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { - return i.ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { + return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotRestoreOutput).ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx) +func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput).ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx) } -// ClusterV2RkeConfigEtcdSnapshotRestorePtrInput is an input type that accepts ClusterV2RkeConfigEtcdSnapshotRestoreArgs, ClusterV2RkeConfigEtcdSnapshotRestorePtr and ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigEtcdSnapshotRestorePtrInput` via: +// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs, ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtr and ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput` via: // -// ClusterV2RkeConfigEtcdSnapshotRestoreArgs{...} +// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs{...} // // or: // // nil -type ClusterV2RkeConfigEtcdSnapshotRestorePtrInput interface { +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput interface { pulumi.Input - ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput - ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput + ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput + ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput } -type clusterV2RkeConfigEtcdSnapshotRestorePtrType ClusterV2RkeConfigEtcdSnapshotRestoreArgs +type clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs -func ClusterV2RkeConfigEtcdSnapshotRestorePtr(v *ClusterV2RkeConfigEtcdSnapshotRestoreArgs) ClusterV2RkeConfigEtcdSnapshotRestorePtrInput { - return (*clusterV2RkeConfigEtcdSnapshotRestorePtrType)(v) +func ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtr(v *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput { + return (*clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType)(v) } -func (*clusterV2RkeConfigEtcdSnapshotRestorePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigEtcdSnapshotRestore)(nil)).Elem() +func (*clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector)(nil)).Elem() } -func (i *clusterV2RkeConfigEtcdSnapshotRestorePtrType) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { - return i.ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(context.Background()) +func (i *clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { + return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(context.Background()) } -func (i *clusterV2RkeConfigEtcdSnapshotRestorePtrType) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) +func (i *clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) } -type ClusterV2RkeConfigEtcdSnapshotRestoreOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigEtcdSnapshotRestore)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ToClusterV2RkeConfigEtcdSnapshotRestoreOutput() ClusterV2RkeConfigEtcdSnapshotRestoreOutput { +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { return o } -func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ToClusterV2RkeConfigEtcdSnapshotRestoreOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestoreOutput { +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { return o } -func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { - return o.ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(context.Background()) -} - -func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigEtcdSnapshotRestore) *ClusterV2RkeConfigEtcdSnapshotRestore { - return &v - }).(ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { + return o.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(context.Background()) } -// ETCD snapshot desired generation (int) -func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) Generation() pulumi.IntOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdSnapshotRestore) int { return v.Generation }).(pulumi.IntOutput) +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { + return &v + }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) } -// The name of the Cluster v2 (string) -func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdSnapshotRestore) string { return v.Name }).(pulumi.StringOutput) +// Match expressions is a list of label selector requirements. The requirements are ANDed. +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) MatchExpressions() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) []ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { + return v.MatchExpressions + }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) } -// ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) -func (o ClusterV2RkeConfigEtcdSnapshotRestoreOutput) RestoreRkeConfig() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigEtcdSnapshotRestore) *string { return v.RestoreRkeConfig }).(pulumi.StringPtrOutput) +// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) MatchLabels() pulumi.MapOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) map[string]interface{} { + return v.MatchLabels + }).(pulumi.MapOutput) } -type ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigEtcdSnapshotRestore)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector)(nil)).Elem() } -func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutput() ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { return o } -func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) ToClusterV2RkeConfigEtcdSnapshotRestorePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput { +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { return o } -func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) Elem() ClusterV2RkeConfigEtcdSnapshotRestoreOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotRestore) ClusterV2RkeConfigEtcdSnapshotRestore { +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) Elem() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { if v != nil { return *v } - var ret ClusterV2RkeConfigEtcdSnapshotRestore + var ret ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector return ret - }).(ClusterV2RkeConfigEtcdSnapshotRestoreOutput) -} - -// ETCD snapshot desired generation (int) -func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) Generation() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotRestore) *int { - if v == nil { - return nil - } - return &v.Generation - }).(pulumi.IntPtrOutput) + }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) } -// The name of the Cluster v2 (string) -func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotRestore) *string { +// Match expressions is a list of label selector requirements. The requirements are ANDed. +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) MatchExpressions() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) []ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { if v == nil { return nil } - return &v.Name - }).(pulumi.StringPtrOutput) + return v.MatchExpressions + }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) } -// ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) -func (o ClusterV2RkeConfigEtcdSnapshotRestorePtrOutput) RestoreRkeConfig() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigEtcdSnapshotRestore) *string { +// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) MatchLabels() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) map[string]interface{} { if v == nil { return nil } - return v.RestoreRkeConfig - }).(pulumi.StringPtrOutput) + return v.MatchLabels + }).(pulumi.MapOutput) } -type ClusterV2RkeConfigLocalAuthEndpoint struct { - // CA certs for the authorized cluster endpoint (string) - CaCerts *string `pulumi:"caCerts"` - // Drain options enabled? Default `true` (bool) - Enabled *bool `pulumi:"enabled"` - // FQDN for the authorized cluster endpoint (string) - Fqdn *string `pulumi:"fqdn"` +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression struct { + // Key is the name of the key of the item to retrieve. + Key *string `pulumi:"key"` + // Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + Operator *string `pulumi:"operator"` + // Values is a list of string values. + Values []string `pulumi:"values"` } -// ClusterV2RkeConfigLocalAuthEndpointInput is an input type that accepts ClusterV2RkeConfigLocalAuthEndpointArgs and ClusterV2RkeConfigLocalAuthEndpointOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigLocalAuthEndpointInput` via: +// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs and ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput` via: // -// ClusterV2RkeConfigLocalAuthEndpointArgs{...} -type ClusterV2RkeConfigLocalAuthEndpointInput interface { +// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs{...} +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput interface { pulumi.Input - ToClusterV2RkeConfigLocalAuthEndpointOutput() ClusterV2RkeConfigLocalAuthEndpointOutput - ToClusterV2RkeConfigLocalAuthEndpointOutputWithContext(context.Context) ClusterV2RkeConfigLocalAuthEndpointOutput + ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput + ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput } -type ClusterV2RkeConfigLocalAuthEndpointArgs struct { - // CA certs for the authorized cluster endpoint (string) - CaCerts pulumi.StringPtrInput `pulumi:"caCerts"` - // Drain options enabled? Default `true` (bool) - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - // FQDN for the authorized cluster endpoint (string) - Fqdn pulumi.StringPtrInput `pulumi:"fqdn"` +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs struct { + // Key is the name of the key of the item to retrieve. + Key pulumi.StringPtrInput `pulumi:"key"` + // Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + Operator pulumi.StringPtrInput `pulumi:"operator"` + // Values is a list of string values. + Values pulumi.StringArrayInput `pulumi:"values"` } -func (ClusterV2RkeConfigLocalAuthEndpointArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigLocalAuthEndpoint)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)(nil)).Elem() } -func (i ClusterV2RkeConfigLocalAuthEndpointArgs) ToClusterV2RkeConfigLocalAuthEndpointOutput() ClusterV2RkeConfigLocalAuthEndpointOutput { - return i.ToClusterV2RkeConfigLocalAuthEndpointOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { + return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigLocalAuthEndpointArgs) ToClusterV2RkeConfigLocalAuthEndpointOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigLocalAuthEndpointOutput) +func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) } -func (i ClusterV2RkeConfigLocalAuthEndpointArgs) ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { - return i.ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(context.Background()) +// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray and ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput` via: +// +// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray{ ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs{...} } +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput + ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput } -func (i ClusterV2RkeConfigLocalAuthEndpointArgs) ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigLocalAuthEndpointOutput).ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx) +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray []ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput + +func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)(nil)).Elem() } -// ClusterV2RkeConfigLocalAuthEndpointPtrInput is an input type that accepts ClusterV2RkeConfigLocalAuthEndpointArgs, ClusterV2RkeConfigLocalAuthEndpointPtr and ClusterV2RkeConfigLocalAuthEndpointPtrOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigLocalAuthEndpointPtrInput` via: -// -// ClusterV2RkeConfigLocalAuthEndpointArgs{...} -// -// or: -// -// nil -type ClusterV2RkeConfigLocalAuthEndpointPtrInput interface { - pulumi.Input +func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { + return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutputWithContext(context.Background()) +} - ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput - ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput +func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) } -type clusterV2RkeConfigLocalAuthEndpointPtrType ClusterV2RkeConfigLocalAuthEndpointArgs +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput struct{ *pulumi.OutputState } -func ClusterV2RkeConfigLocalAuthEndpointPtr(v *ClusterV2RkeConfigLocalAuthEndpointArgs) ClusterV2RkeConfigLocalAuthEndpointPtrInput { - return (*clusterV2RkeConfigLocalAuthEndpointPtrType)(v) +func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)(nil)).Elem() } -func (*clusterV2RkeConfigLocalAuthEndpointPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigLocalAuthEndpoint)(nil)).Elem() +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { + return o } -func (i *clusterV2RkeConfigLocalAuthEndpointPtrType) ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { - return i.ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { + return o } -func (i *clusterV2RkeConfigLocalAuthEndpointPtrType) ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigLocalAuthEndpointPtrOutput) +// Key is the name of the key of the item to retrieve. +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression) *string { + return v.Key + }).(pulumi.StringPtrOutput) } -type ClusterV2RkeConfigLocalAuthEndpointOutput struct{ *pulumi.OutputState } +// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression) *string { + return v.Operator + }).(pulumi.StringPtrOutput) +} -func (ClusterV2RkeConfigLocalAuthEndpointOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigLocalAuthEndpoint)(nil)).Elem() +// Values is a list of string values. +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression) []string { + return v.Values + }).(pulumi.StringArrayOutput) } -func (o ClusterV2RkeConfigLocalAuthEndpointOutput) ToClusterV2RkeConfigLocalAuthEndpointOutput() ClusterV2RkeConfigLocalAuthEndpointOutput { +type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)(nil)).Elem() +} + +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { return o } -func (o ClusterV2RkeConfigLocalAuthEndpointOutput) ToClusterV2RkeConfigLocalAuthEndpointOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointOutput { +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { return o } -func (o ClusterV2RkeConfigLocalAuthEndpointOutput) ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { - return o.ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { + return vs[0].([]ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)[vs[1].(int)] + }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) } -func (o ClusterV2RkeConfigLocalAuthEndpointOutput) ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigLocalAuthEndpoint) *ClusterV2RkeConfigLocalAuthEndpoint { - return &v - }).(ClusterV2RkeConfigLocalAuthEndpointPtrOutput) +type ClusterV2RkeConfigMachineSelectorFile struct { + // File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + FileSources []ClusterV2RkeConfigMachineSelectorFileFileSource `pulumi:"fileSources"` + // Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + MachineLabelSelector *ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector `pulumi:"machineLabelSelector"` } -// CA certs for the authorized cluster endpoint (string) -func (o ClusterV2RkeConfigLocalAuthEndpointOutput) CaCerts() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigLocalAuthEndpoint) *string { return v.CaCerts }).(pulumi.StringPtrOutput) +// ClusterV2RkeConfigMachineSelectorFileInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileArgs and ClusterV2RkeConfigMachineSelectorFileOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileInput` via: +// +// ClusterV2RkeConfigMachineSelectorFileArgs{...} +type ClusterV2RkeConfigMachineSelectorFileInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachineSelectorFileOutput() ClusterV2RkeConfigMachineSelectorFileOutput + ToClusterV2RkeConfigMachineSelectorFileOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileOutput } -// Drain options enabled? Default `true` (bool) -func (o ClusterV2RkeConfigLocalAuthEndpointOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigLocalAuthEndpoint) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) +type ClusterV2RkeConfigMachineSelectorFileArgs struct { + // File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + FileSources ClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput `pulumi:"fileSources"` + // Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + MachineLabelSelector ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput `pulumi:"machineLabelSelector"` } -// FQDN for the authorized cluster endpoint (string) -func (o ClusterV2RkeConfigLocalAuthEndpointOutput) Fqdn() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigLocalAuthEndpoint) *string { return v.Fqdn }).(pulumi.StringPtrOutput) +func (ClusterV2RkeConfigMachineSelectorFileArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFile)(nil)).Elem() } -type ClusterV2RkeConfigLocalAuthEndpointPtrOutput struct{ *pulumi.OutputState } +func (i ClusterV2RkeConfigMachineSelectorFileArgs) ToClusterV2RkeConfigMachineSelectorFileOutput() ClusterV2RkeConfigMachineSelectorFileOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileOutputWithContext(context.Background()) +} -func (ClusterV2RkeConfigLocalAuthEndpointPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigLocalAuthEndpoint)(nil)).Elem() +func (i ClusterV2RkeConfigMachineSelectorFileArgs) ToClusterV2RkeConfigMachineSelectorFileOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileOutput) } -func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) ToClusterV2RkeConfigLocalAuthEndpointPtrOutput() ClusterV2RkeConfigLocalAuthEndpointPtrOutput { +// ClusterV2RkeConfigMachineSelectorFileArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileArray and ClusterV2RkeConfigMachineSelectorFileArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileArrayInput` via: +// +// ClusterV2RkeConfigMachineSelectorFileArray{ ClusterV2RkeConfigMachineSelectorFileArgs{...} } +type ClusterV2RkeConfigMachineSelectorFileArrayInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachineSelectorFileArrayOutput() ClusterV2RkeConfigMachineSelectorFileArrayOutput + ToClusterV2RkeConfigMachineSelectorFileArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileArrayOutput +} + +type ClusterV2RkeConfigMachineSelectorFileArray []ClusterV2RkeConfigMachineSelectorFileInput + +func (ClusterV2RkeConfigMachineSelectorFileArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFile)(nil)).Elem() +} + +func (i ClusterV2RkeConfigMachineSelectorFileArray) ToClusterV2RkeConfigMachineSelectorFileArrayOutput() ClusterV2RkeConfigMachineSelectorFileArrayOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileArrayOutputWithContext(context.Background()) +} + +func (i ClusterV2RkeConfigMachineSelectorFileArray) ToClusterV2RkeConfigMachineSelectorFileArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileArrayOutput) +} + +type ClusterV2RkeConfigMachineSelectorFileOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorFileOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFile)(nil)).Elem() +} + +func (o ClusterV2RkeConfigMachineSelectorFileOutput) ToClusterV2RkeConfigMachineSelectorFileOutput() ClusterV2RkeConfigMachineSelectorFileOutput { return o } -func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) ToClusterV2RkeConfigLocalAuthEndpointPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigLocalAuthEndpointPtrOutput { +func (o ClusterV2RkeConfigMachineSelectorFileOutput) ToClusterV2RkeConfigMachineSelectorFileOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileOutput { return o } -func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) Elem() ClusterV2RkeConfigLocalAuthEndpointOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigLocalAuthEndpoint) ClusterV2RkeConfigLocalAuthEndpoint { - if v != nil { - return *v - } - var ret ClusterV2RkeConfigLocalAuthEndpoint - return ret - }).(ClusterV2RkeConfigLocalAuthEndpointOutput) +// File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. +func (o ClusterV2RkeConfigMachineSelectorFileOutput) FileSources() ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFile) []ClusterV2RkeConfigMachineSelectorFileFileSource { + return v.FileSources + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) } -// CA certs for the authorized cluster endpoint (string) -func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) CaCerts() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigLocalAuthEndpoint) *string { - if v == nil { - return nil - } - return v.CaCerts - }).(pulumi.StringPtrOutput) +// Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. +func (o ClusterV2RkeConfigMachineSelectorFileOutput) MachineLabelSelector() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFile) *ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + return v.MachineLabelSelector + }).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) } -// Drain options enabled? Default `true` (bool) -func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigLocalAuthEndpoint) *bool { - if v == nil { - return nil - } - return v.Enabled - }).(pulumi.BoolPtrOutput) +type ClusterV2RkeConfigMachineSelectorFileArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorFileArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFile)(nil)).Elem() } -// FQDN for the authorized cluster endpoint (string) -func (o ClusterV2RkeConfigLocalAuthEndpointPtrOutput) Fqdn() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigLocalAuthEndpoint) *string { - if v == nil { - return nil - } - return v.Fqdn - }).(pulumi.StringPtrOutput) +func (o ClusterV2RkeConfigMachineSelectorFileArrayOutput) ToClusterV2RkeConfigMachineSelectorFileArrayOutput() ClusterV2RkeConfigMachineSelectorFileArrayOutput { + return o } -type ClusterV2RkeConfigMachinePool struct { - // Annotations for the Cluster V2 (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // Cluster V2 cloud credential secret name (string) - CloudCredentialSecretName *string `pulumi:"cloudCredentialSecretName"` - // Machine pool control plane role? (bool) - ControlPlaneRole *bool `pulumi:"controlPlaneRole"` - // Machine Pool Drain Before Delete? (bool) - DrainBeforeDelete *bool `pulumi:"drainBeforeDelete"` - // Machine pool etcd role? (bool) - EtcdRole *bool `pulumi:"etcdRole"` - // maximum length for autogenerated hostname - HostnameLengthLimit *int `pulumi:"hostnameLengthLimit"` - // Labels for the Cluster V2 (map) - Labels map[string]interface{} `pulumi:"labels"` - // Machine pool node config (list) - MachineConfig ClusterV2RkeConfigMachinePoolMachineConfig `pulumi:"machineConfig"` - // Labels for Machine pool nodes (map) - MachineLabels map[string]interface{} `pulumi:"machineLabels"` - // Max unhealthy nodes for automated replacement to be allowed (string) - MaxUnhealthy *string `pulumi:"maxUnhealthy"` - // The name of the Cluster v2 (string) - Name string `pulumi:"name"` - // Seconds a machine has to drain before deletion (int) - NodeDrainTimeout *int `pulumi:"nodeDrainTimeout"` - // Seconds a new node has to become active before it is replaced (int) - NodeStartupTimeoutSeconds *int `pulumi:"nodeStartupTimeoutSeconds"` - // Machine pool paused? (bool) - Paused *bool `pulumi:"paused"` - // Machine pool quantity (int) - Quantity *int `pulumi:"quantity"` - // Machine pool rolling update (List maxitems:1) - RollingUpdate *ClusterV2RkeConfigMachinePoolRollingUpdate `pulumi:"rollingUpdate"` - // Machine pool taints (list) - Taints []ClusterV2RkeConfigMachinePoolTaint `pulumi:"taints"` - // Seconds an unhealthy node has to become active before it is replaced (int) - UnhealthyNodeTimeoutSeconds *int `pulumi:"unhealthyNodeTimeoutSeconds"` - // Range of unhealthy nodes for automated replacement to be allowed (string) - UnhealthyRange *string `pulumi:"unhealthyRange"` - // Machine pool worker role? (bool) - WorkerRole *bool `pulumi:"workerRole"` +func (o ClusterV2RkeConfigMachineSelectorFileArrayOutput) ToClusterV2RkeConfigMachineSelectorFileArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileArrayOutput { + return o } -// ClusterV2RkeConfigMachinePoolInput is an input type that accepts ClusterV2RkeConfigMachinePoolArgs and ClusterV2RkeConfigMachinePoolOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolInput` via: +func (o ClusterV2RkeConfigMachineSelectorFileArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorFileOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorFile { + return vs[0].([]ClusterV2RkeConfigMachineSelectorFile)[vs[1].(int)] + }).(ClusterV2RkeConfigMachineSelectorFileOutput) +} + +type ClusterV2RkeConfigMachineSelectorFileFileSource struct { + // Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + Configmap *ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap `pulumi:"configmap"` + // Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + Secret *ClusterV2RkeConfigMachineSelectorFileFileSourceSecret `pulumi:"secret"` +} + +// ClusterV2RkeConfigMachineSelectorFileFileSourceInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceArgs and ClusterV2RkeConfigMachineSelectorFileFileSourceOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceInput` via: // -// ClusterV2RkeConfigMachinePoolArgs{...} -type ClusterV2RkeConfigMachinePoolInput interface { +// ClusterV2RkeConfigMachineSelectorFileFileSourceArgs{...} +type ClusterV2RkeConfigMachineSelectorFileFileSourceInput interface { pulumi.Input - ToClusterV2RkeConfigMachinePoolOutput() ClusterV2RkeConfigMachinePoolOutput - ToClusterV2RkeConfigMachinePoolOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceOutput } -type ClusterV2RkeConfigMachinePoolArgs struct { - // Annotations for the Cluster V2 (map) - Annotations pulumi.MapInput `pulumi:"annotations"` - // Cluster V2 cloud credential secret name (string) - CloudCredentialSecretName pulumi.StringPtrInput `pulumi:"cloudCredentialSecretName"` - // Machine pool control plane role? (bool) - ControlPlaneRole pulumi.BoolPtrInput `pulumi:"controlPlaneRole"` - // Machine Pool Drain Before Delete? (bool) - DrainBeforeDelete pulumi.BoolPtrInput `pulumi:"drainBeforeDelete"` - // Machine pool etcd role? (bool) - EtcdRole pulumi.BoolPtrInput `pulumi:"etcdRole"` - // maximum length for autogenerated hostname - HostnameLengthLimit pulumi.IntPtrInput `pulumi:"hostnameLengthLimit"` - // Labels for the Cluster V2 (map) - Labels pulumi.MapInput `pulumi:"labels"` - // Machine pool node config (list) - MachineConfig ClusterV2RkeConfigMachinePoolMachineConfigInput `pulumi:"machineConfig"` - // Labels for Machine pool nodes (map) - MachineLabels pulumi.MapInput `pulumi:"machineLabels"` - // Max unhealthy nodes for automated replacement to be allowed (string) - MaxUnhealthy pulumi.StringPtrInput `pulumi:"maxUnhealthy"` - // The name of the Cluster v2 (string) - Name pulumi.StringInput `pulumi:"name"` - // Seconds a machine has to drain before deletion (int) - NodeDrainTimeout pulumi.IntPtrInput `pulumi:"nodeDrainTimeout"` - // Seconds a new node has to become active before it is replaced (int) - NodeStartupTimeoutSeconds pulumi.IntPtrInput `pulumi:"nodeStartupTimeoutSeconds"` - // Machine pool paused? (bool) - Paused pulumi.BoolPtrInput `pulumi:"paused"` - // Machine pool quantity (int) - Quantity pulumi.IntPtrInput `pulumi:"quantity"` - // Machine pool rolling update (List maxitems:1) - RollingUpdate ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput `pulumi:"rollingUpdate"` - // Machine pool taints (list) - Taints ClusterV2RkeConfigMachinePoolTaintArrayInput `pulumi:"taints"` - // Seconds an unhealthy node has to become active before it is replaced (int) - UnhealthyNodeTimeoutSeconds pulumi.IntPtrInput `pulumi:"unhealthyNodeTimeoutSeconds"` - // Range of unhealthy nodes for automated replacement to be allowed (string) - UnhealthyRange pulumi.StringPtrInput `pulumi:"unhealthyRange"` - // Machine pool worker role? (bool) - WorkerRole pulumi.BoolPtrInput `pulumi:"workerRole"` +type ClusterV2RkeConfigMachineSelectorFileFileSourceArgs struct { + // Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + Configmap ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput `pulumi:"configmap"` + // Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + Secret ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput `pulumi:"secret"` } -func (ClusterV2RkeConfigMachinePoolArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePool)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSource)(nil)).Elem() } -func (i ClusterV2RkeConfigMachinePoolArgs) ToClusterV2RkeConfigMachinePoolOutput() ClusterV2RkeConfigMachinePoolOutput { - return i.ToClusterV2RkeConfigMachinePoolOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachinePoolArgs) ToClusterV2RkeConfigMachinePoolOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceOutput) } -// ClusterV2RkeConfigMachinePoolArrayInput is an input type that accepts ClusterV2RkeConfigMachinePoolArray and ClusterV2RkeConfigMachinePoolArrayOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolArrayInput` via: +// ClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceArray and ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput` via: // -// ClusterV2RkeConfigMachinePoolArray{ ClusterV2RkeConfigMachinePoolArgs{...} } -type ClusterV2RkeConfigMachinePoolArrayInput interface { +// ClusterV2RkeConfigMachineSelectorFileFileSourceArray{ ClusterV2RkeConfigMachineSelectorFileFileSourceArgs{...} } +type ClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput interface { pulumi.Input - ToClusterV2RkeConfigMachinePoolArrayOutput() ClusterV2RkeConfigMachinePoolArrayOutput - ToClusterV2RkeConfigMachinePoolArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolArrayOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput } -type ClusterV2RkeConfigMachinePoolArray []ClusterV2RkeConfigMachinePoolInput +type ClusterV2RkeConfigMachineSelectorFileFileSourceArray []ClusterV2RkeConfigMachineSelectorFileFileSourceInput -func (ClusterV2RkeConfigMachinePoolArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePool)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFileFileSource)(nil)).Elem() } -func (i ClusterV2RkeConfigMachinePoolArray) ToClusterV2RkeConfigMachinePoolArrayOutput() ClusterV2RkeConfigMachinePoolArrayOutput { - return i.ToClusterV2RkeConfigMachinePoolArrayOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceArray) ToClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachinePoolArray) ToClusterV2RkeConfigMachinePoolArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolArrayOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceArray) ToClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) } -type ClusterV2RkeConfigMachinePoolOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileFileSourceOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachinePoolOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePool)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSource)(nil)).Elem() } -func (o ClusterV2RkeConfigMachinePoolOutput) ToClusterV2RkeConfigMachinePoolOutput() ClusterV2RkeConfigMachinePoolOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceOutput { return o } -func (o ClusterV2RkeConfigMachinePoolOutput) ToClusterV2RkeConfigMachinePoolOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceOutput { return o } -// Annotations for the Cluster V2 (map) -func (o ClusterV2RkeConfigMachinePoolOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) map[string]interface{} { return v.Annotations }).(pulumi.MapOutput) +// Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceOutput) Configmap() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSource) *ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + return v.Configmap + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) } -// Cluster V2 cloud credential secret name (string) -func (o ClusterV2RkeConfigMachinePoolOutput) CloudCredentialSecretName() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *string { return v.CloudCredentialSecretName }).(pulumi.StringPtrOutput) +// Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceOutput) Secret() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSource) *ClusterV2RkeConfigMachineSelectorFileFileSourceSecret { + return v.Secret + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) } -// Machine pool control plane role? (bool) -func (o ClusterV2RkeConfigMachinePoolOutput) ControlPlaneRole() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.ControlPlaneRole }).(pulumi.BoolPtrOutput) -} +type ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput struct{ *pulumi.OutputState } -// Machine Pool Drain Before Delete? (bool) -func (o ClusterV2RkeConfigMachinePoolOutput) DrainBeforeDelete() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.DrainBeforeDelete }).(pulumi.BoolPtrOutput) +func (ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFileFileSource)(nil)).Elem() } -// Machine pool etcd role? (bool) -func (o ClusterV2RkeConfigMachinePoolOutput) EtcdRole() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.EtcdRole }).(pulumi.BoolPtrOutput) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { + return o } -// maximum length for autogenerated hostname -func (o ClusterV2RkeConfigMachinePoolOutput) HostnameLengthLimit() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.HostnameLengthLimit }).(pulumi.IntPtrOutput) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { + return o } -// Labels for the Cluster V2 (map) -func (o ClusterV2RkeConfigMachinePoolOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) map[string]interface{} { return v.Labels }).(pulumi.MapOutput) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorFileFileSourceOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorFileFileSource { + return vs[0].([]ClusterV2RkeConfigMachineSelectorFileFileSource)[vs[1].(int)] + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceOutput) } -// Machine pool node config (list) -func (o ClusterV2RkeConfigMachinePoolOutput) MachineConfig() ClusterV2RkeConfigMachinePoolMachineConfigOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) ClusterV2RkeConfigMachinePoolMachineConfig { - return v.MachineConfig - }).(ClusterV2RkeConfigMachinePoolMachineConfigOutput) +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap struct { + // The numeric representation of the default file permissions for all files defined under the items. + DefaultPermissions *string `pulumi:"defaultPermissions"` + // Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + Items []ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem `pulumi:"items"` + // The name of the cluster. + Name string `pulumi:"name"` } -// Labels for Machine pool nodes (map) -func (o ClusterV2RkeConfigMachinePoolOutput) MachineLabels() pulumi.MapOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) map[string]interface{} { return v.MachineLabels }).(pulumi.MapOutput) +// ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs and ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapInput` via: +// +// ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs{...} +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput } -// Max unhealthy nodes for automated replacement to be allowed (string) -func (o ClusterV2RkeConfigMachinePoolOutput) MaxUnhealthy() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *string { return v.MaxUnhealthy }).(pulumi.StringPtrOutput) +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs struct { + // The numeric representation of the default file permissions for all files defined under the items. + DefaultPermissions pulumi.StringPtrInput `pulumi:"defaultPermissions"` + // Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + Items ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput `pulumi:"items"` + // The name of the cluster. + Name pulumi.StringInput `pulumi:"name"` } -// The name of the Cluster v2 (string) -func (o ClusterV2RkeConfigMachinePoolOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) string { return v.Name }).(pulumi.StringOutput) +func (ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap)(nil)).Elem() } -// Seconds a machine has to drain before deletion (int) -func (o ClusterV2RkeConfigMachinePoolOutput) NodeDrainTimeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.NodeDrainTimeout }).(pulumi.IntPtrOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutputWithContext(context.Background()) } -// Seconds a new node has to become active before it is replaced (int) -func (o ClusterV2RkeConfigMachinePoolOutput) NodeStartupTimeoutSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.NodeStartupTimeoutSeconds }).(pulumi.IntPtrOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) } -// Machine pool paused? (bool) -func (o ClusterV2RkeConfigMachinePoolOutput) Paused() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.Paused }).(pulumi.BoolPtrOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(context.Background()) } -// Machine pool quantity (int) -func (o ClusterV2RkeConfigMachinePoolOutput) Quantity() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.Quantity }).(pulumi.IntPtrOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput).ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx) } -// Machine pool rolling update (List maxitems:1) -func (o ClusterV2RkeConfigMachinePoolOutput) RollingUpdate() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *ClusterV2RkeConfigMachinePoolRollingUpdate { - return v.RollingUpdate - }).(ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) +// ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs, ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtr and ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput` via: +// +// ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs{...} +// +// or: +// +// nil +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput } -// Machine pool taints (list) -func (o ClusterV2RkeConfigMachinePoolOutput) Taints() ClusterV2RkeConfigMachinePoolTaintArrayOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) []ClusterV2RkeConfigMachinePoolTaint { return v.Taints }).(ClusterV2RkeConfigMachinePoolTaintArrayOutput) +type clusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs + +func ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtr(v *ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput { + return (*clusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType)(v) } -// Seconds an unhealthy node has to become active before it is replaced (int) -func (o ClusterV2RkeConfigMachinePoolOutput) UnhealthyNodeTimeoutSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *int { return v.UnhealthyNodeTimeoutSeconds }).(pulumi.IntPtrOutput) +func (*clusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap)(nil)).Elem() } -// Range of unhealthy nodes for automated replacement to be allowed (string) -func (o ClusterV2RkeConfigMachinePoolOutput) UnhealthyRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *string { return v.UnhealthyRange }).(pulumi.StringPtrOutput) +func (i *clusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(context.Background()) } -// Machine pool worker role? (bool) -func (o ClusterV2RkeConfigMachinePoolOutput) WorkerRole() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePool) *bool { return v.WorkerRole }).(pulumi.BoolPtrOutput) +func (i *clusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) } -type ClusterV2RkeConfigMachinePoolArrayOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachinePoolArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePool)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap)(nil)).Elem() } -func (o ClusterV2RkeConfigMachinePoolArrayOutput) ToClusterV2RkeConfigMachinePoolArrayOutput() ClusterV2RkeConfigMachinePoolArrayOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { return o } -func (o ClusterV2RkeConfigMachinePoolArrayOutput) ToClusterV2RkeConfigMachinePoolArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolArrayOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { return o } -func (o ClusterV2RkeConfigMachinePoolArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachinePoolOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachinePool { - return vs[0].([]ClusterV2RkeConfigMachinePool)[vs[1].(int)] - }).(ClusterV2RkeConfigMachinePoolOutput) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return o.ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(context.Background()) } -type ClusterV2RkeConfigMachinePoolDefault struct { - // maximum length for autogenerated hostname - HostnameLengthLimit *int `pulumi:"hostnameLengthLimit"` +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) *ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + return &v + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) } -// ClusterV2RkeConfigMachinePoolDefaultInput is an input type that accepts ClusterV2RkeConfigMachinePoolDefaultArgs and ClusterV2RkeConfigMachinePoolDefaultOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolDefaultInput` via: -// -// ClusterV2RkeConfigMachinePoolDefaultArgs{...} -type ClusterV2RkeConfigMachinePoolDefaultInput interface { - pulumi.Input - - ToClusterV2RkeConfigMachinePoolDefaultOutput() ClusterV2RkeConfigMachinePoolDefaultOutput - ToClusterV2RkeConfigMachinePoolDefaultOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolDefaultOutput +// The numeric representation of the default file permissions for all files defined under the items. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) DefaultPermissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) *string { return v.DefaultPermissions }).(pulumi.StringPtrOutput) } -type ClusterV2RkeConfigMachinePoolDefaultArgs struct { - // maximum length for autogenerated hostname - HostnameLengthLimit pulumi.IntPtrInput `pulumi:"hostnameLengthLimit"` +// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) Items() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) []ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + return v.Items + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) } -func (ClusterV2RkeConfigMachinePoolDefaultArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolDefault)(nil)).Elem() +// The name of the cluster. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) string { return v.Name }).(pulumi.StringOutput) } -func (i ClusterV2RkeConfigMachinePoolDefaultArgs) ToClusterV2RkeConfigMachinePoolDefaultOutput() ClusterV2RkeConfigMachinePoolDefaultOutput { - return i.ToClusterV2RkeConfigMachinePoolDefaultOutputWithContext(context.Background()) +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap)(nil)).Elem() } -func (i ClusterV2RkeConfigMachinePoolDefaultArgs) ToClusterV2RkeConfigMachinePoolDefaultOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolDefaultOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolDefaultOutput) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return o } -// ClusterV2RkeConfigMachinePoolDefaultArrayInput is an input type that accepts ClusterV2RkeConfigMachinePoolDefaultArray and ClusterV2RkeConfigMachinePoolDefaultArrayOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolDefaultArrayInput` via: -// -// ClusterV2RkeConfigMachinePoolDefaultArray{ ClusterV2RkeConfigMachinePoolDefaultArgs{...} } -type ClusterV2RkeConfigMachinePoolDefaultArrayInput interface { - pulumi.Input +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return o +} - ToClusterV2RkeConfigMachinePoolDefaultArrayOutput() ClusterV2RkeConfigMachinePoolDefaultArrayOutput - ToClusterV2RkeConfigMachinePoolDefaultArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolDefaultArrayOutput +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) Elem() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + if v != nil { + return *v + } + var ret ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap + return ret + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) } -type ClusterV2RkeConfigMachinePoolDefaultArray []ClusterV2RkeConfigMachinePoolDefaultInput +// The numeric representation of the default file permissions for all files defined under the items. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) DefaultPermissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) *string { + if v == nil { + return nil + } + return v.DefaultPermissions + }).(pulumi.StringPtrOutput) +} -func (ClusterV2RkeConfigMachinePoolDefaultArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePoolDefault)(nil)).Elem() +// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) Items() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) []ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + if v == nil { + return nil + } + return v.Items + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) } -func (i ClusterV2RkeConfigMachinePoolDefaultArray) ToClusterV2RkeConfigMachinePoolDefaultArrayOutput() ClusterV2RkeConfigMachinePoolDefaultArrayOutput { - return i.ToClusterV2RkeConfigMachinePoolDefaultArrayOutputWithContext(context.Background()) +// The name of the cluster. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -func (i ClusterV2RkeConfigMachinePoolDefaultArray) ToClusterV2RkeConfigMachinePoolDefaultArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolDefaultArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolDefaultArrayOutput) +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem struct { + // If true, the file is ignored when determining whether the node should be drained before updating the node plan. + Dynamic *bool `pulumi:"dynamic"` + // Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + Hash *string `pulumi:"hash"` + // Key is the name of the key of the item to retrieve. + Key string `pulumi:"key"` + // Path is the absolute path to put the file in the target node. + Path string `pulumi:"path"` + // Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + Permissions *string `pulumi:"permissions"` } -type ClusterV2RkeConfigMachinePoolDefaultOutput struct{ *pulumi.OutputState } +// ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs and ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput` via: +// +// ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs{...} +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput interface { + pulumi.Input -func (ClusterV2RkeConfigMachinePoolDefaultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolDefault)(nil)).Elem() + ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput } -func (o ClusterV2RkeConfigMachinePoolDefaultOutput) ToClusterV2RkeConfigMachinePoolDefaultOutput() ClusterV2RkeConfigMachinePoolDefaultOutput { - return o +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs struct { + // If true, the file is ignored when determining whether the node should be drained before updating the node plan. + Dynamic pulumi.BoolPtrInput `pulumi:"dynamic"` + // Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + Hash pulumi.StringPtrInput `pulumi:"hash"` + // Key is the name of the key of the item to retrieve. + Key pulumi.StringInput `pulumi:"key"` + // Path is the absolute path to put the file in the target node. + Path pulumi.StringInput `pulumi:"path"` + // Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + Permissions pulumi.StringPtrInput `pulumi:"permissions"` } -func (o ClusterV2RkeConfigMachinePoolDefaultOutput) ToClusterV2RkeConfigMachinePoolDefaultOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolDefaultOutput { - return o +func (ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)(nil)).Elem() } -// maximum length for autogenerated hostname -func (o ClusterV2RkeConfigMachinePoolDefaultOutput) HostnameLengthLimit() pulumi.IntPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolDefault) *int { return v.HostnameLengthLimit }).(pulumi.IntPtrOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutputWithContext(context.Background()) } -type ClusterV2RkeConfigMachinePoolDefaultArrayOutput struct{ *pulumi.OutputState } - -func (ClusterV2RkeConfigMachinePoolDefaultArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePoolDefault)(nil)).Elem() +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) } -func (o ClusterV2RkeConfigMachinePoolDefaultArrayOutput) ToClusterV2RkeConfigMachinePoolDefaultArrayOutput() ClusterV2RkeConfigMachinePoolDefaultArrayOutput { - return o +// ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray and ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput` via: +// +// ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray{ ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs{...} } +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput interface { + pulumi.Input + + ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput } -func (o ClusterV2RkeConfigMachinePoolDefaultArrayOutput) ToClusterV2RkeConfigMachinePoolDefaultArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolDefaultArrayOutput { - return o +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray []ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput + +func (ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)(nil)).Elem() } -func (o ClusterV2RkeConfigMachinePoolDefaultArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachinePoolDefaultOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachinePoolDefault { - return vs[0].([]ClusterV2RkeConfigMachinePoolDefault)[vs[1].(int)] - }).(ClusterV2RkeConfigMachinePoolDefaultOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutputWithContext(context.Background()) } -type ClusterV2RkeConfigMachinePoolMachineConfig struct { - // Machine config kind (string) - Kind string `pulumi:"kind"` - // The name of the Cluster v2 (string) - Name string `pulumi:"name"` +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) } -// ClusterV2RkeConfigMachinePoolMachineConfigInput is an input type that accepts ClusterV2RkeConfigMachinePoolMachineConfigArgs and ClusterV2RkeConfigMachinePoolMachineConfigOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolMachineConfigInput` via: -// -// ClusterV2RkeConfigMachinePoolMachineConfigArgs{...} -type ClusterV2RkeConfigMachinePoolMachineConfigInput interface { - pulumi.Input +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)(nil)).Elem() +} - ToClusterV2RkeConfigMachinePoolMachineConfigOutput() ClusterV2RkeConfigMachinePoolMachineConfigOutput - ToClusterV2RkeConfigMachinePoolMachineConfigOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolMachineConfigOutput +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { + return o } -type ClusterV2RkeConfigMachinePoolMachineConfigArgs struct { - // Machine config kind (string) - Kind pulumi.StringInput `pulumi:"kind"` - // The name of the Cluster v2 (string) - Name pulumi.StringInput `pulumi:"name"` +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { + return o } -func (ClusterV2RkeConfigMachinePoolMachineConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolMachineConfig)(nil)).Elem() +// If true, the file is ignored when determining whether the node should be drained before updating the node plan. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Dynamic() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) *bool { return v.Dynamic }).(pulumi.BoolPtrOutput) } -func (i ClusterV2RkeConfigMachinePoolMachineConfigArgs) ToClusterV2RkeConfigMachinePoolMachineConfigOutput() ClusterV2RkeConfigMachinePoolMachineConfigOutput { - return i.ToClusterV2RkeConfigMachinePoolMachineConfigOutputWithContext(context.Background()) +// Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Hash() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) *string { return v.Hash }).(pulumi.StringPtrOutput) } -func (i ClusterV2RkeConfigMachinePoolMachineConfigArgs) ToClusterV2RkeConfigMachinePoolMachineConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolMachineConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolMachineConfigOutput) +// Key is the name of the key of the item to retrieve. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) string { return v.Key }).(pulumi.StringOutput) } -type ClusterV2RkeConfigMachinePoolMachineConfigOutput struct{ *pulumi.OutputState } +// Path is the absolute path to put the file in the target node. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Path() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) string { return v.Path }).(pulumi.StringOutput) +} -func (ClusterV2RkeConfigMachinePoolMachineConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolMachineConfig)(nil)).Elem() +// Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Permissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) *string { return v.Permissions }).(pulumi.StringPtrOutput) } -func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) ToClusterV2RkeConfigMachinePoolMachineConfigOutput() ClusterV2RkeConfigMachinePoolMachineConfigOutput { - return o +type ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)(nil)).Elem() } -func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) ToClusterV2RkeConfigMachinePoolMachineConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolMachineConfigOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { return o } -// Machine config kind (string) -func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) Kind() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolMachineConfig) string { return v.Kind }).(pulumi.StringOutput) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return o } -// The name of the Cluster v2 (string) -func (o ClusterV2RkeConfigMachinePoolMachineConfigOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolMachineConfig) string { return v.Name }).(pulumi.StringOutput) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + return vs[0].([]ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)[vs[1].(int)] + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) } -type ClusterV2RkeConfigMachinePoolRollingUpdate struct { - // Rolling update max surge (string) - MaxSurge *string `pulumi:"maxSurge"` - // Rolling update max unavailable (string) - MaxUnavailable *string `pulumi:"maxUnavailable"` +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecret struct { + // The numeric representation of the default file permissions for all files defined under the items. + DefaultPermissions *string `pulumi:"defaultPermissions"` + // Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + Items []ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem `pulumi:"items"` + // The name of the cluster. + Name string `pulumi:"name"` } -// ClusterV2RkeConfigMachinePoolRollingUpdateInput is an input type that accepts ClusterV2RkeConfigMachinePoolRollingUpdateArgs and ClusterV2RkeConfigMachinePoolRollingUpdateOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolRollingUpdateInput` via: +// ClusterV2RkeConfigMachineSelectorFileFileSourceSecretInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs and ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceSecretInput` via: // -// ClusterV2RkeConfigMachinePoolRollingUpdateArgs{...} -type ClusterV2RkeConfigMachinePoolRollingUpdateInput interface { +// ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs{...} +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretInput interface { pulumi.Input - ToClusterV2RkeConfigMachinePoolRollingUpdateOutput() ClusterV2RkeConfigMachinePoolRollingUpdateOutput - ToClusterV2RkeConfigMachinePoolRollingUpdateOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolRollingUpdateOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput } -type ClusterV2RkeConfigMachinePoolRollingUpdateArgs struct { - // Rolling update max surge (string) - MaxSurge pulumi.StringPtrInput `pulumi:"maxSurge"` - // Rolling update max unavailable (string) - MaxUnavailable pulumi.StringPtrInput `pulumi:"maxUnavailable"` +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs struct { + // The numeric representation of the default file permissions for all files defined under the items. + DefaultPermissions pulumi.StringPtrInput `pulumi:"defaultPermissions"` + // Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + Items ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput `pulumi:"items"` + // The name of the cluster. + Name pulumi.StringInput `pulumi:"name"` } -func (ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolRollingUpdate)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceSecret)(nil)).Elem() } -func (i ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ToClusterV2RkeConfigMachinePoolRollingUpdateOutput() ClusterV2RkeConfigMachinePoolRollingUpdateOutput { - return i.ToClusterV2RkeConfigMachinePoolRollingUpdateOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ToClusterV2RkeConfigMachinePoolRollingUpdateOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdateOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolRollingUpdateOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) } -func (i ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { - return i.ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolRollingUpdateOutput).ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput).ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx) } -// ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput is an input type that accepts ClusterV2RkeConfigMachinePoolRollingUpdateArgs, ClusterV2RkeConfigMachinePoolRollingUpdatePtr and ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput` via: +// ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs, ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtr and ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput` via: // -// ClusterV2RkeConfigMachinePoolRollingUpdateArgs{...} +// ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs{...} // // or: // // nil -type ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput interface { +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput interface { pulumi.Input - ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput - ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput } -type clusterV2RkeConfigMachinePoolRollingUpdatePtrType ClusterV2RkeConfigMachinePoolRollingUpdateArgs +type clusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs -func ClusterV2RkeConfigMachinePoolRollingUpdatePtr(v *ClusterV2RkeConfigMachinePoolRollingUpdateArgs) ClusterV2RkeConfigMachinePoolRollingUpdatePtrInput { - return (*clusterV2RkeConfigMachinePoolRollingUpdatePtrType)(v) +func ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtr(v *ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput { + return (*clusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType)(v) } -func (*clusterV2RkeConfigMachinePoolRollingUpdatePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigMachinePoolRollingUpdate)(nil)).Elem() +func (*clusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorFileFileSourceSecret)(nil)).Elem() } -func (i *clusterV2RkeConfigMachinePoolRollingUpdatePtrType) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { - return i.ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(context.Background()) +func (i *clusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(context.Background()) } -func (i *clusterV2RkeConfigMachinePoolRollingUpdatePtrType) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) +func (i *clusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) } -type ClusterV2RkeConfigMachinePoolRollingUpdateOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolRollingUpdate)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceSecret)(nil)).Elem() } -func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ToClusterV2RkeConfigMachinePoolRollingUpdateOutput() ClusterV2RkeConfigMachinePoolRollingUpdateOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { return o } -func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ToClusterV2RkeConfigMachinePoolRollingUpdateOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdateOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { return o } -func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { - return o.ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return o.ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(context.Background()) } -func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigMachinePoolRollingUpdate) *ClusterV2RkeConfigMachinePoolRollingUpdate { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigMachineSelectorFileFileSourceSecret) *ClusterV2RkeConfigMachineSelectorFileFileSourceSecret { return &v - }).(ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) } -// Rolling update max surge (string) -func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) MaxSurge() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolRollingUpdate) *string { return v.MaxSurge }).(pulumi.StringPtrOutput) +// The numeric representation of the default file permissions for all files defined under the items. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) DefaultPermissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceSecret) *string { return v.DefaultPermissions }).(pulumi.StringPtrOutput) } -// Rolling update max unavailable (string) -func (o ClusterV2RkeConfigMachinePoolRollingUpdateOutput) MaxUnavailable() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolRollingUpdate) *string { return v.MaxUnavailable }).(pulumi.StringPtrOutput) +// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) Items() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceSecret) []ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + return v.Items + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) } -type ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput struct{ *pulumi.OutputState } +// The name of the cluster. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceSecret) string { return v.Name }).(pulumi.StringOutput) +} -func (ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigMachinePoolRollingUpdate)(nil)).Elem() +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput struct{ *pulumi.OutputState } + +func (ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorFileFileSourceSecret)(nil)).Elem() } -func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput() ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { return o } -func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) ToClusterV2RkeConfigMachinePoolRollingUpdatePtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { return o } -func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) Elem() ClusterV2RkeConfigMachinePoolRollingUpdateOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigMachinePoolRollingUpdate) ClusterV2RkeConfigMachinePoolRollingUpdate { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) Elem() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileFileSourceSecret) ClusterV2RkeConfigMachineSelectorFileFileSourceSecret { if v != nil { return *v } - var ret ClusterV2RkeConfigMachinePoolRollingUpdate + var ret ClusterV2RkeConfigMachineSelectorFileFileSourceSecret return ret - }).(ClusterV2RkeConfigMachinePoolRollingUpdateOutput) + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) } -// Rolling update max surge (string) -func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) MaxSurge() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigMachinePoolRollingUpdate) *string { +// The numeric representation of the default file permissions for all files defined under the items. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) DefaultPermissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileFileSourceSecret) *string { if v == nil { return nil } - return v.MaxSurge + return v.DefaultPermissions }).(pulumi.StringPtrOutput) } -// Rolling update max unavailable (string) -func (o ClusterV2RkeConfigMachinePoolRollingUpdatePtrOutput) MaxUnavailable() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigMachinePoolRollingUpdate) *string { +// Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) Items() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileFileSourceSecret) []ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { if v == nil { return nil } - return v.MaxUnavailable + return v.Items + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) +} + +// The name of the cluster. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileFileSourceSecret) *string { + if v == nil { + return nil + } + return &v.Name }).(pulumi.StringPtrOutput) } -type ClusterV2RkeConfigMachinePoolTaint struct { - // The taint effect. Default: `\"NoExecute\"` (string) - Effect *string `pulumi:"effect"` - // Machine selector label match expressions key (string) +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem struct { + // If true, the file is ignored when determining whether the node should be drained before updating the node plan. + Dynamic *bool `pulumi:"dynamic"` + // Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + Hash *string `pulumi:"hash"` + // Key is the name of the key of the item to retrieve. Key string `pulumi:"key"` - // The taint value (string) - Value string `pulumi:"value"` + // Path is the absolute path to put the file in the target node. + Path string `pulumi:"path"` + // Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + Permissions *string `pulumi:"permissions"` } -// ClusterV2RkeConfigMachinePoolTaintInput is an input type that accepts ClusterV2RkeConfigMachinePoolTaintArgs and ClusterV2RkeConfigMachinePoolTaintOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolTaintInput` via: +// ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs and ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput` via: // -// ClusterV2RkeConfigMachinePoolTaintArgs{...} -type ClusterV2RkeConfigMachinePoolTaintInput interface { +// ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs{...} +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput interface { pulumi.Input - ToClusterV2RkeConfigMachinePoolTaintOutput() ClusterV2RkeConfigMachinePoolTaintOutput - ToClusterV2RkeConfigMachinePoolTaintOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolTaintOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput } -type ClusterV2RkeConfigMachinePoolTaintArgs struct { - // The taint effect. Default: `\"NoExecute\"` (string) - Effect pulumi.StringPtrInput `pulumi:"effect"` - // Machine selector label match expressions key (string) +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs struct { + // If true, the file is ignored when determining whether the node should be drained before updating the node plan. + Dynamic pulumi.BoolPtrInput `pulumi:"dynamic"` + // Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + Hash pulumi.StringPtrInput `pulumi:"hash"` + // Key is the name of the key of the item to retrieve. Key pulumi.StringInput `pulumi:"key"` - // The taint value (string) - Value pulumi.StringInput `pulumi:"value"` + // Path is the absolute path to put the file in the target node. + Path pulumi.StringInput `pulumi:"path"` + // Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + Permissions pulumi.StringPtrInput `pulumi:"permissions"` } -func (ClusterV2RkeConfigMachinePoolTaintArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolTaint)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)(nil)).Elem() } -func (i ClusterV2RkeConfigMachinePoolTaintArgs) ToClusterV2RkeConfigMachinePoolTaintOutput() ClusterV2RkeConfigMachinePoolTaintOutput { - return i.ToClusterV2RkeConfigMachinePoolTaintOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachinePoolTaintArgs) ToClusterV2RkeConfigMachinePoolTaintOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolTaintOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolTaintOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) } -// ClusterV2RkeConfigMachinePoolTaintArrayInput is an input type that accepts ClusterV2RkeConfigMachinePoolTaintArray and ClusterV2RkeConfigMachinePoolTaintArrayOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachinePoolTaintArrayInput` via: +// ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray and ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput` via: // -// ClusterV2RkeConfigMachinePoolTaintArray{ ClusterV2RkeConfigMachinePoolTaintArgs{...} } -type ClusterV2RkeConfigMachinePoolTaintArrayInput interface { +// ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray{ ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs{...} } +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput interface { pulumi.Input - ToClusterV2RkeConfigMachinePoolTaintArrayOutput() ClusterV2RkeConfigMachinePoolTaintArrayOutput - ToClusterV2RkeConfigMachinePoolTaintArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachinePoolTaintArrayOutput -} - -type ClusterV2RkeConfigMachinePoolTaintArray []ClusterV2RkeConfigMachinePoolTaintInput - -func (ClusterV2RkeConfigMachinePoolTaintArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePoolTaint)(nil)).Elem() -} - -func (i ClusterV2RkeConfigMachinePoolTaintArray) ToClusterV2RkeConfigMachinePoolTaintArrayOutput() ClusterV2RkeConfigMachinePoolTaintArrayOutput { - return i.ToClusterV2RkeConfigMachinePoolTaintArrayOutputWithContext(context.Background()) -} - -func (i ClusterV2RkeConfigMachinePoolTaintArray) ToClusterV2RkeConfigMachinePoolTaintArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolTaintArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachinePoolTaintArrayOutput) -} - -type ClusterV2RkeConfigMachinePoolTaintOutput struct{ *pulumi.OutputState } - -func (ClusterV2RkeConfigMachinePoolTaintOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachinePoolTaint)(nil)).Elem() -} - -func (o ClusterV2RkeConfigMachinePoolTaintOutput) ToClusterV2RkeConfigMachinePoolTaintOutput() ClusterV2RkeConfigMachinePoolTaintOutput { - return o + ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput + ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput } -func (o ClusterV2RkeConfigMachinePoolTaintOutput) ToClusterV2RkeConfigMachinePoolTaintOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolTaintOutput { - return o -} +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray []ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput -// The taint effect. Default: `\"NoExecute\"` (string) -func (o ClusterV2RkeConfigMachinePoolTaintOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolTaint) *string { return v.Effect }).(pulumi.StringPtrOutput) +func (ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)(nil)).Elem() } -// Machine selector label match expressions key (string) -func (o ClusterV2RkeConfigMachinePoolTaintOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolTaint) string { return v.Key }).(pulumi.StringOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutputWithContext(context.Background()) } -// The taint value (string) -func (o ClusterV2RkeConfigMachinePoolTaintOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachinePoolTaint) string { return v.Value }).(pulumi.StringOutput) +func (i ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) } -type ClusterV2RkeConfigMachinePoolTaintArrayOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachinePoolTaintArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachinePoolTaint)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)(nil)).Elem() } -func (o ClusterV2RkeConfigMachinePoolTaintArrayOutput) ToClusterV2RkeConfigMachinePoolTaintArrayOutput() ClusterV2RkeConfigMachinePoolTaintArrayOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { return o } -func (o ClusterV2RkeConfigMachinePoolTaintArrayOutput) ToClusterV2RkeConfigMachinePoolTaintArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachinePoolTaintArrayOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { return o } -func (o ClusterV2RkeConfigMachinePoolTaintArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachinePoolTaintOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachinePoolTaint { - return vs[0].([]ClusterV2RkeConfigMachinePoolTaint)[vs[1].(int)] - }).(ClusterV2RkeConfigMachinePoolTaintOutput) -} - -type ClusterV2RkeConfigMachineSelectorConfig struct { - // Machine selector config. Must be in YAML format (string) - Config *string `pulumi:"config"` - // Machine selector label (list maxitems:1) - MachineLabelSelector *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector `pulumi:"machineLabelSelector"` -} - -// ClusterV2RkeConfigMachineSelectorConfigInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigArgs and ClusterV2RkeConfigMachineSelectorConfigOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigInput` via: -// -// ClusterV2RkeConfigMachineSelectorConfigArgs{...} -type ClusterV2RkeConfigMachineSelectorConfigInput interface { - pulumi.Input - - ToClusterV2RkeConfigMachineSelectorConfigOutput() ClusterV2RkeConfigMachineSelectorConfigOutput - ToClusterV2RkeConfigMachineSelectorConfigOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigOutput -} - -type ClusterV2RkeConfigMachineSelectorConfigArgs struct { - // Machine selector config. Must be in YAML format (string) - Config pulumi.StringPtrInput `pulumi:"config"` - // Machine selector label (list maxitems:1) - MachineLabelSelector ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput `pulumi:"machineLabelSelector"` -} - -func (ClusterV2RkeConfigMachineSelectorConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfig)(nil)).Elem() -} - -func (i ClusterV2RkeConfigMachineSelectorConfigArgs) ToClusterV2RkeConfigMachineSelectorConfigOutput() ClusterV2RkeConfigMachineSelectorConfigOutput { - return i.ToClusterV2RkeConfigMachineSelectorConfigOutputWithContext(context.Background()) -} - -func (i ClusterV2RkeConfigMachineSelectorConfigArgs) ToClusterV2RkeConfigMachineSelectorConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigOutput) -} - -// ClusterV2RkeConfigMachineSelectorConfigArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigArray and ClusterV2RkeConfigMachineSelectorConfigArrayOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigArrayInput` via: -// -// ClusterV2RkeConfigMachineSelectorConfigArray{ ClusterV2RkeConfigMachineSelectorConfigArgs{...} } -type ClusterV2RkeConfigMachineSelectorConfigArrayInput interface { - pulumi.Input - - ToClusterV2RkeConfigMachineSelectorConfigArrayOutput() ClusterV2RkeConfigMachineSelectorConfigArrayOutput - ToClusterV2RkeConfigMachineSelectorConfigArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigArrayOutput -} - -type ClusterV2RkeConfigMachineSelectorConfigArray []ClusterV2RkeConfigMachineSelectorConfigInput - -func (ClusterV2RkeConfigMachineSelectorConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorConfig)(nil)).Elem() -} - -func (i ClusterV2RkeConfigMachineSelectorConfigArray) ToClusterV2RkeConfigMachineSelectorConfigArrayOutput() ClusterV2RkeConfigMachineSelectorConfigArrayOutput { - return i.ToClusterV2RkeConfigMachineSelectorConfigArrayOutputWithContext(context.Background()) -} - -func (i ClusterV2RkeConfigMachineSelectorConfigArray) ToClusterV2RkeConfigMachineSelectorConfigArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigArrayOutput) -} - -type ClusterV2RkeConfigMachineSelectorConfigOutput struct{ *pulumi.OutputState } - -func (ClusterV2RkeConfigMachineSelectorConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfig)(nil)).Elem() +// If true, the file is ignored when determining whether the node should be drained before updating the node plan. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Dynamic() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) *bool { return v.Dynamic }).(pulumi.BoolPtrOutput) } -func (o ClusterV2RkeConfigMachineSelectorConfigOutput) ToClusterV2RkeConfigMachineSelectorConfigOutput() ClusterV2RkeConfigMachineSelectorConfigOutput { - return o +// Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Hash() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) *string { return v.Hash }).(pulumi.StringPtrOutput) } -func (o ClusterV2RkeConfigMachineSelectorConfigOutput) ToClusterV2RkeConfigMachineSelectorConfigOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigOutput { - return o +// Key is the name of the key of the item to retrieve. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) string { return v.Key }).(pulumi.StringOutput) } -// Machine selector config. Must be in YAML format (string) -func (o ClusterV2RkeConfigMachineSelectorConfigOutput) Config() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfig) *string { return v.Config }).(pulumi.StringPtrOutput) +// Path is the absolute path to put the file in the target node. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Path() pulumi.StringOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) string { return v.Path }).(pulumi.StringOutput) } -// Machine selector label (list maxitems:1) -func (o ClusterV2RkeConfigMachineSelectorConfigOutput) MachineLabelSelector() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfig) *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { - return v.MachineLabelSelector - }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) +// Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Permissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) *string { return v.Permissions }).(pulumi.StringPtrOutput) } -type ClusterV2RkeConfigMachineSelectorConfigArrayOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachineSelectorConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorConfig)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)(nil)).Elem() } -func (o ClusterV2RkeConfigMachineSelectorConfigArrayOutput) ToClusterV2RkeConfigMachineSelectorConfigArrayOutput() ClusterV2RkeConfigMachineSelectorConfigArrayOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput() ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigArrayOutput) ToClusterV2RkeConfigMachineSelectorConfigArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigArrayOutput { +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) ToClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorConfig { - return vs[0].([]ClusterV2RkeConfigMachineSelectorConfig)[vs[1].(int)] - }).(ClusterV2RkeConfigMachineSelectorConfigOutput) +func (o ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + return vs[0].([]ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)[vs[1].(int)] + }).(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector struct { - // Machine selector label match expressions (list) - MatchExpressions []ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression `pulumi:"matchExpressions"` - // Machine selector label match labels (map) +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector struct { + // Match expressions is a list of label selector requirements. The requirements are ANDed. + MatchExpressions []ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression `pulumi:"matchExpressions"` + // Machine selector label is a map of {key,value} pairs, the requirements are ANDed. MatchLabels map[string]interface{} `pulumi:"matchLabels"` } -// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs and ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorInput` via: +// ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs and ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorInput` via: // -// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs{...} -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorInput interface { +// ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs{...} +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorInput interface { pulumi.Input - ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput - ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput + ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput + ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs struct { - // Machine selector label match expressions (list) - MatchExpressions ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput `pulumi:"matchExpressions"` - // Machine selector label match labels (map) +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs struct { + // Match expressions is a list of label selector requirements. The requirements are ANDed. + MatchExpressions ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput `pulumi:"matchExpressions"` + // Machine selector label is a map of {key,value} pairs, the requirements are ANDed. MatchLabels pulumi.MapInput `pulumi:"matchLabels"` } -func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector)(nil)).Elem() } -func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { - return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) +func (i ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) } -func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { - return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput).ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx) +func (i ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput).ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx) } -// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs, ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtr and ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput` via: +// ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs, ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtr and ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput` via: // -// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs{...} +// ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs{...} // // or: // // nil -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput interface { +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput interface { pulumi.Input - ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput - ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput + ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput + ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput } -type clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs +type clusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs -func ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtr(v *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput { - return (*clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType)(v) +func ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtr(v *ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput { + return (*clusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType)(v) } -func (*clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector)(nil)).Elem() +func (*clusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector)(nil)).Elem() } -func (i *clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { - return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(context.Background()) +func (i *clusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(context.Background()) } -func (i *clusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrType) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) +func (i *clusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector)(nil)).Elem() } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { - return o.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(context.Background()) +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return o.ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(context.Background()) } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) *ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { return &v - }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) + }).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) } -// Machine selector label match expressions (list) -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) MatchExpressions() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) []ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { +// Match expressions is a list of label selector requirements. The requirements are ANDed. +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) MatchExpressions() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) []ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { return v.MatchExpressions - }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) + }).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) } -// Machine selector label match labels (map) -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) MatchLabels() pulumi.MapOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) map[string]interface{} { +// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) MatchLabels() pulumi.MapOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) map[string]interface{} { return v.MatchLabels }).(pulumi.MapOutput) } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector)(nil)).Elem() } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) Elem() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) Elem() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { if v != nil { return *v } - var ret ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector + var ret ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector return ret - }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorOutput) + }).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) } -// Machine selector label match expressions (list) -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) MatchExpressions() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) []ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { +// Match expressions is a list of label selector requirements. The requirements are ANDed. +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) MatchExpressions() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) []ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { if v == nil { return nil } return v.MatchExpressions - }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) + }).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) } -// Machine selector label match labels (map) -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) MatchLabels() pulumi.MapOutput { - return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector) map[string]interface{} { +// Machine selector label is a map of {key,value} pairs, the requirements are ANDed. +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) MatchLabels() pulumi.MapOutput { + return o.ApplyT(func(v *ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) map[string]interface{} { if v == nil { return nil } @@ -45482,131 +45822,129 @@ func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput) Ma }).(pulumi.MapOutput) } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression struct { - // Machine selector label match expressions key (string) +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression struct { + // Key is the name of the key of the item to retrieve. Key *string `pulumi:"key"` - // Machine selector label match expressions operator (string) + // Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. Operator *string `pulumi:"operator"` - // Machine selector label match expressions values (List string) + // Values is a list of string values. Values []string `pulumi:"values"` } -// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs and ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput` via: +// ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs and ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput` via: // -// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs{...} -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput interface { +// ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs{...} +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput interface { pulumi.Input - ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput - ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput + ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput + ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs struct { - // Machine selector label match expressions key (string) +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs struct { + // Key is the name of the key of the item to retrieve. Key pulumi.StringPtrInput `pulumi:"key"` - // Machine selector label match expressions operator (string) + // Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. Operator pulumi.StringPtrInput `pulumi:"operator"` - // Machine selector label match expressions values (List string) + // Values is a list of string values. Values pulumi.StringArrayInput `pulumi:"values"` } -func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)(nil)).Elem() } -func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { - return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) +func (i ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) } -// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray and ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput values. -// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput` via: +// ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput is an input type that accepts ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray and ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput values. +// You can construct a concrete instance of `ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput` via: // -// ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray{ ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs{...} } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput interface { +// ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray{ ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs{...} } +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput interface { pulumi.Input - ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput - ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput + ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput + ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutputWithContext(context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray []ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray []ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput -func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)(nil)).Elem() } -func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { - return i.ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutputWithContext(context.Background()) +func (i ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return i.ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutputWithContext(context.Background()) } -func (i ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) +func (i ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)(nil)).Elem() } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { return o } -// Machine selector label match expressions key (string) -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression) *string { - return v.Key - }).(pulumi.StringPtrOutput) +// Key is the name of the key of the item to retrieve. +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression) *string { return v.Key }).(pulumi.StringPtrOutput) } -// Machine selector label match expressions operator (string) -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) Operator() pulumi.StringPtrOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression) *string { +// Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression) *string { return v.Operator }).(pulumi.StringPtrOutput) } -// Machine selector label match expressions values (List string) -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) Values() pulumi.StringArrayOutput { - return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression) []string { +// Values is a list of string values. +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression) []string { return v.Values }).(pulumi.StringArrayOutput) } -type ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput struct{ *pulumi.OutputState } +type ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput struct{ *pulumi.OutputState } -func (ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)(nil)).Elem() +func (ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)(nil)).Elem() } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput() ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) ToClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput { +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) ToClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutputWithContext(ctx context.Context) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { return o } -func (o ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { - return vs[0].([]ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression)[vs[1].(int)] - }).(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) +func (o ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) Index(i pulumi.IntInput) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { + return vs[0].([]ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)[vs[1].(int)] + }).(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) } type ClusterV2RkeConfigRegistries struct { - // Cluster V2 docker registries config (list) + // Cluster V2 docker registries config. Configs []ClusterV2RkeConfigRegistriesConfig `pulumi:"configs"` - // Cluster V2 docker registries mirror (list) + // Cluster V2 docker registries mirror. Mirrors []ClusterV2RkeConfigRegistriesMirror `pulumi:"mirrors"` } @@ -45622,9 +45960,9 @@ type ClusterV2RkeConfigRegistriesInput interface { } type ClusterV2RkeConfigRegistriesArgs struct { - // Cluster V2 docker registries config (list) + // Cluster V2 docker registries config. Configs ClusterV2RkeConfigRegistriesConfigArrayInput `pulumi:"configs"` - // Cluster V2 docker registries mirror (list) + // Cluster V2 docker registries mirror. Mirrors ClusterV2RkeConfigRegistriesMirrorArrayInput `pulumi:"mirrors"` } @@ -45705,12 +46043,12 @@ func (o ClusterV2RkeConfigRegistriesOutput) ToClusterV2RkeConfigRegistriesPtrOut }).(ClusterV2RkeConfigRegistriesPtrOutput) } -// Cluster V2 docker registries config (list) +// Cluster V2 docker registries config. func (o ClusterV2RkeConfigRegistriesOutput) Configs() ClusterV2RkeConfigRegistriesConfigArrayOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistries) []ClusterV2RkeConfigRegistriesConfig { return v.Configs }).(ClusterV2RkeConfigRegistriesConfigArrayOutput) } -// Cluster V2 docker registries mirror (list) +// Cluster V2 docker registries mirror. func (o ClusterV2RkeConfigRegistriesOutput) Mirrors() ClusterV2RkeConfigRegistriesMirrorArrayOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistries) []ClusterV2RkeConfigRegistriesMirror { return v.Mirrors }).(ClusterV2RkeConfigRegistriesMirrorArrayOutput) } @@ -45739,7 +46077,7 @@ func (o ClusterV2RkeConfigRegistriesPtrOutput) Elem() ClusterV2RkeConfigRegistri }).(ClusterV2RkeConfigRegistriesOutput) } -// Cluster V2 docker registries config (list) +// Cluster V2 docker registries config. func (o ClusterV2RkeConfigRegistriesPtrOutput) Configs() ClusterV2RkeConfigRegistriesConfigArrayOutput { return o.ApplyT(func(v *ClusterV2RkeConfigRegistries) []ClusterV2RkeConfigRegistriesConfig { if v == nil { @@ -45749,7 +46087,7 @@ func (o ClusterV2RkeConfigRegistriesPtrOutput) Configs() ClusterV2RkeConfigRegis }).(ClusterV2RkeConfigRegistriesConfigArrayOutput) } -// Cluster V2 docker registries mirror (list) +// Cluster V2 docker registries mirror. func (o ClusterV2RkeConfigRegistriesPtrOutput) Mirrors() ClusterV2RkeConfigRegistriesMirrorArrayOutput { return o.ApplyT(func(v *ClusterV2RkeConfigRegistries) []ClusterV2RkeConfigRegistriesMirror { if v == nil { @@ -45760,15 +46098,15 @@ func (o ClusterV2RkeConfigRegistriesPtrOutput) Mirrors() ClusterV2RkeConfigRegis } type ClusterV2RkeConfigRegistriesConfig struct { - // Registry auth config secret name (string) + // Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. AuthConfigSecretName *string `pulumi:"authConfigSecretName"` - // Registry CA bundle (string) + // Registry CA bundle. CaBundle *string `pulumi:"caBundle"` - // Registry hostname (string) + // Registry hostname. Hostname string `pulumi:"hostname"` - // Registry insecure connectivity (bool) + // Registry insecure connectivity. Insecure *bool `pulumi:"insecure"` - // Registry TLS secret name. TLS is a pair of Cert/Key (string) + // Registry TLS secret name. TLS is a pair of Cert/Key. TlsSecretName *string `pulumi:"tlsSecretName"` } @@ -45784,15 +46122,15 @@ type ClusterV2RkeConfigRegistriesConfigInput interface { } type ClusterV2RkeConfigRegistriesConfigArgs struct { - // Registry auth config secret name (string) + // Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. AuthConfigSecretName pulumi.StringPtrInput `pulumi:"authConfigSecretName"` - // Registry CA bundle (string) + // Registry CA bundle. CaBundle pulumi.StringPtrInput `pulumi:"caBundle"` - // Registry hostname (string) + // Registry hostname. Hostname pulumi.StringInput `pulumi:"hostname"` - // Registry insecure connectivity (bool) + // Registry insecure connectivity. Insecure pulumi.BoolPtrInput `pulumi:"insecure"` - // Registry TLS secret name. TLS is a pair of Cert/Key (string) + // Registry TLS secret name. TLS is a pair of Cert/Key. TlsSecretName pulumi.StringPtrInput `pulumi:"tlsSecretName"` } @@ -45847,27 +46185,27 @@ func (o ClusterV2RkeConfigRegistriesConfigOutput) ToClusterV2RkeConfigRegistries return o } -// Registry auth config secret name (string) +// Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. func (o ClusterV2RkeConfigRegistriesConfigOutput) AuthConfigSecretName() pulumi.StringPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistriesConfig) *string { return v.AuthConfigSecretName }).(pulumi.StringPtrOutput) } -// Registry CA bundle (string) +// Registry CA bundle. func (o ClusterV2RkeConfigRegistriesConfigOutput) CaBundle() pulumi.StringPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistriesConfig) *string { return v.CaBundle }).(pulumi.StringPtrOutput) } -// Registry hostname (string) +// Registry hostname. func (o ClusterV2RkeConfigRegistriesConfigOutput) Hostname() pulumi.StringOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistriesConfig) string { return v.Hostname }).(pulumi.StringOutput) } -// Registry insecure connectivity (bool) +// Registry insecure connectivity. func (o ClusterV2RkeConfigRegistriesConfigOutput) Insecure() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistriesConfig) *bool { return v.Insecure }).(pulumi.BoolPtrOutput) } -// Registry TLS secret name. TLS is a pair of Cert/Key (string) +// Registry TLS secret name. TLS is a pair of Cert/Key. func (o ClusterV2RkeConfigRegistriesConfigOutput) TlsSecretName() pulumi.StringPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistriesConfig) *string { return v.TlsSecretName }).(pulumi.StringPtrOutput) } @@ -45893,11 +46231,11 @@ func (o ClusterV2RkeConfigRegistriesConfigArrayOutput) Index(i pulumi.IntInput) } type ClusterV2RkeConfigRegistriesMirror struct { - // Registry mirror endpoints (List) + // Registry mirror endpoints. Endpoints []string `pulumi:"endpoints"` - // Registry hostname (string) + // Registry hostname. Hostname string `pulumi:"hostname"` - // Registry mirror rewrites (map) + // Registry mirror rewrites. Rewrites map[string]interface{} `pulumi:"rewrites"` } @@ -45913,11 +46251,11 @@ type ClusterV2RkeConfigRegistriesMirrorInput interface { } type ClusterV2RkeConfigRegistriesMirrorArgs struct { - // Registry mirror endpoints (List) + // Registry mirror endpoints. Endpoints pulumi.StringArrayInput `pulumi:"endpoints"` - // Registry hostname (string) + // Registry hostname. Hostname pulumi.StringInput `pulumi:"hostname"` - // Registry mirror rewrites (map) + // Registry mirror rewrites. Rewrites pulumi.MapInput `pulumi:"rewrites"` } @@ -45972,17 +46310,17 @@ func (o ClusterV2RkeConfigRegistriesMirrorOutput) ToClusterV2RkeConfigRegistries return o } -// Registry mirror endpoints (List) +// Registry mirror endpoints. func (o ClusterV2RkeConfigRegistriesMirrorOutput) Endpoints() pulumi.StringArrayOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistriesMirror) []string { return v.Endpoints }).(pulumi.StringArrayOutput) } -// Registry hostname (string) +// Registry hostname. func (o ClusterV2RkeConfigRegistriesMirrorOutput) Hostname() pulumi.StringOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistriesMirror) string { return v.Hostname }).(pulumi.StringOutput) } -// Registry mirror rewrites (map) +// Registry mirror rewrites. func (o ClusterV2RkeConfigRegistriesMirrorOutput) Rewrites() pulumi.MapOutput { return o.ApplyT(func(v ClusterV2RkeConfigRegistriesMirror) map[string]interface{} { return v.Rewrites }).(pulumi.MapOutput) } @@ -46008,9 +46346,9 @@ func (o ClusterV2RkeConfigRegistriesMirrorArrayOutput) Index(i pulumi.IntInput) } type ClusterV2RkeConfigRotateCertificates struct { - // ETCD snapshot desired generation (int) + // ETCD snapshot desired generation. Generation int `pulumi:"generation"` - // Service certificates to rotate with this generation (string) + // Service certificates to rotate with this generation. Services []string `pulumi:"services"` } @@ -46026,9 +46364,9 @@ type ClusterV2RkeConfigRotateCertificatesInput interface { } type ClusterV2RkeConfigRotateCertificatesArgs struct { - // ETCD snapshot desired generation (int) + // ETCD snapshot desired generation. Generation pulumi.IntInput `pulumi:"generation"` - // Service certificates to rotate with this generation (string) + // Service certificates to rotate with this generation. Services pulumi.StringArrayInput `pulumi:"services"` } @@ -46109,12 +46447,12 @@ func (o ClusterV2RkeConfigRotateCertificatesOutput) ToClusterV2RkeConfigRotateCe }).(ClusterV2RkeConfigRotateCertificatesPtrOutput) } -// ETCD snapshot desired generation (int) +// ETCD snapshot desired generation. func (o ClusterV2RkeConfigRotateCertificatesOutput) Generation() pulumi.IntOutput { return o.ApplyT(func(v ClusterV2RkeConfigRotateCertificates) int { return v.Generation }).(pulumi.IntOutput) } -// Service certificates to rotate with this generation (string) +// Service certificates to rotate with this generation. func (o ClusterV2RkeConfigRotateCertificatesOutput) Services() pulumi.StringArrayOutput { return o.ApplyT(func(v ClusterV2RkeConfigRotateCertificates) []string { return v.Services }).(pulumi.StringArrayOutput) } @@ -46143,7 +46481,7 @@ func (o ClusterV2RkeConfigRotateCertificatesPtrOutput) Elem() ClusterV2RkeConfig }).(ClusterV2RkeConfigRotateCertificatesOutput) } -// ETCD snapshot desired generation (int) +// ETCD snapshot desired generation. func (o ClusterV2RkeConfigRotateCertificatesPtrOutput) Generation() pulumi.IntPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigRotateCertificates) *int { if v == nil { @@ -46153,7 +46491,7 @@ func (o ClusterV2RkeConfigRotateCertificatesPtrOutput) Generation() pulumi.IntPt }).(pulumi.IntPtrOutput) } -// Service certificates to rotate with this generation (string) +// Service certificates to rotate with this generation. func (o ClusterV2RkeConfigRotateCertificatesPtrOutput) Services() pulumi.StringArrayOutput { return o.ApplyT(func(v *ClusterV2RkeConfigRotateCertificates) []string { if v == nil { @@ -46164,13 +46502,13 @@ func (o ClusterV2RkeConfigRotateCertificatesPtrOutput) Services() pulumi.StringA } type ClusterV2RkeConfigUpgradeStrategy struct { - // How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + // How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. ControlPlaneConcurrency *string `pulumi:"controlPlaneConcurrency"` - // Controlplane nodes drain options (list maxitems:1) + // Controlplane nodes drain options. ControlPlaneDrainOptions *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions `pulumi:"controlPlaneDrainOptions"` - // How many worker nodes should be upgrade at time. Percentages are also accepted (string) + // How many worker nodes should be upgraded at a time. Percentages are also accepted. WorkerConcurrency *string `pulumi:"workerConcurrency"` - // Worker nodes drain options (list maxitems:1) + // Worker nodes drain options. WorkerDrainOptions *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions `pulumi:"workerDrainOptions"` } @@ -46186,13 +46524,13 @@ type ClusterV2RkeConfigUpgradeStrategyInput interface { } type ClusterV2RkeConfigUpgradeStrategyArgs struct { - // How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + // How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. ControlPlaneConcurrency pulumi.StringPtrInput `pulumi:"controlPlaneConcurrency"` - // Controlplane nodes drain options (list maxitems:1) + // Controlplane nodes drain options. ControlPlaneDrainOptions ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput `pulumi:"controlPlaneDrainOptions"` - // How many worker nodes should be upgrade at time. Percentages are also accepted (string) + // How many worker nodes should be upgraded at a time. Percentages are also accepted. WorkerConcurrency pulumi.StringPtrInput `pulumi:"workerConcurrency"` - // Worker nodes drain options (list maxitems:1) + // Worker nodes drain options. WorkerDrainOptions ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput `pulumi:"workerDrainOptions"` } @@ -46273,24 +46611,24 @@ func (o ClusterV2RkeConfigUpgradeStrategyOutput) ToClusterV2RkeConfigUpgradeStra }).(ClusterV2RkeConfigUpgradeStrategyPtrOutput) } -// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) +// How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. func (o ClusterV2RkeConfigUpgradeStrategyOutput) ControlPlaneConcurrency() pulumi.StringPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategy) *string { return v.ControlPlaneConcurrency }).(pulumi.StringPtrOutput) } -// Controlplane nodes drain options (list maxitems:1) +// Controlplane nodes drain options. func (o ClusterV2RkeConfigUpgradeStrategyOutput) ControlPlaneDrainOptions() ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategy) *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { return v.ControlPlaneDrainOptions }).(ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) } -// How many worker nodes should be upgrade at time. Percentages are also accepted (string) +// How many worker nodes should be upgraded at a time. Percentages are also accepted. func (o ClusterV2RkeConfigUpgradeStrategyOutput) WorkerConcurrency() pulumi.StringPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategy) *string { return v.WorkerConcurrency }).(pulumi.StringPtrOutput) } -// Worker nodes drain options (list maxitems:1) +// Worker nodes drain options. func (o ClusterV2RkeConfigUpgradeStrategyOutput) WorkerDrainOptions() ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategy) *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { return v.WorkerDrainOptions @@ -46321,7 +46659,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) Elem() ClusterV2RkeConfigUpg }).(ClusterV2RkeConfigUpgradeStrategyOutput) } -// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) +// How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) ControlPlaneConcurrency() pulumi.StringPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategy) *string { if v == nil { @@ -46331,7 +46669,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) ControlPlaneConcurrency() pu }).(pulumi.StringPtrOutput) } -// Controlplane nodes drain options (list maxitems:1) +// Controlplane nodes drain options. func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) ControlPlaneDrainOptions() ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategy) *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { if v == nil { @@ -46341,7 +46679,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) ControlPlaneDrainOptions() C }).(ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) } -// How many worker nodes should be upgrade at time. Percentages are also accepted (string) +// How many worker nodes should be upgraded at a time. Percentages are also accepted. func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) WorkerConcurrency() pulumi.StringPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategy) *string { if v == nil { @@ -46351,7 +46689,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) WorkerConcurrency() pulumi.S }).(pulumi.StringPtrOutput) } -// Worker nodes drain options (list maxitems:1) +// Worker nodes drain options. func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) WorkerDrainOptions() ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategy) *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { if v == nil { @@ -46362,23 +46700,23 @@ func (o ClusterV2RkeConfigUpgradeStrategyPtrOutput) WorkerDrainOptions() Cluster } type ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions struct { - // Drain options delete empty dir data. Default `false` (bool) + // if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). DeleteEmptyDirData *bool `pulumi:"deleteEmptyDirData"` - // Drain options disable eviction. Default `false` (bool) + // If `disableEviction` is set to true, force drain to use delete rather than evict. DisableEviction *bool `pulumi:"disableEviction"` - // Drain options enabled? Default `true` (bool) + // If `enabled` is set to true, nodes will be drained before upgrade. Enabled *bool `pulumi:"enabled"` - // Drain options force. Default `false` (bool) + // If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. Force *bool `pulumi:"force"` - // Drain options grace period (int) + // Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. GracePeriod *int `pulumi:"gracePeriod"` - // Drain options ignore daemon sets. Default `true` (bool) + // If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. IgnoreDaemonSets *bool `pulumi:"ignoreDaemonSets"` - // Drain options ignore errors. Default `false` (bool) + // If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. IgnoreErrors *bool `pulumi:"ignoreErrors"` - // Drain options skip wait for delete timeout seconds (int) + // Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. SkipWaitForDeleteTimeoutSeconds *int `pulumi:"skipWaitForDeleteTimeoutSeconds"` - // Drain options timeout (int) + // Time to wait (in seconds) before giving up for one try. Timeout *int `pulumi:"timeout"` } @@ -46394,23 +46732,23 @@ type ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsInput interface { } type ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs struct { - // Drain options delete empty dir data. Default `false` (bool) + // if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). DeleteEmptyDirData pulumi.BoolPtrInput `pulumi:"deleteEmptyDirData"` - // Drain options disable eviction. Default `false` (bool) + // If `disableEviction` is set to true, force drain to use delete rather than evict. DisableEviction pulumi.BoolPtrInput `pulumi:"disableEviction"` - // Drain options enabled? Default `true` (bool) + // If `enabled` is set to true, nodes will be drained before upgrade. Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - // Drain options force. Default `false` (bool) + // If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. Force pulumi.BoolPtrInput `pulumi:"force"` - // Drain options grace period (int) + // Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. GracePeriod pulumi.IntPtrInput `pulumi:"gracePeriod"` - // Drain options ignore daemon sets. Default `true` (bool) + // If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. IgnoreDaemonSets pulumi.BoolPtrInput `pulumi:"ignoreDaemonSets"` - // Drain options ignore errors. Default `false` (bool) + // If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. IgnoreErrors pulumi.BoolPtrInput `pulumi:"ignoreErrors"` - // Drain options skip wait for delete timeout seconds (int) + // Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. SkipWaitForDeleteTimeoutSeconds pulumi.IntPtrInput `pulumi:"skipWaitForDeleteTimeoutSeconds"` - // Drain options timeout (int) + // Time to wait (in seconds) before giving up for one try. Timeout pulumi.IntPtrInput `pulumi:"timeout"` } @@ -46491,49 +46829,49 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToClust }).(ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) } -// Drain options delete empty dir data. Default `false` (bool) +// if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.DeleteEmptyDirData }).(pulumi.BoolPtrOutput) } -// Drain options disable eviction. Default `false` (bool) +// If `disableEviction` is set to true, force drain to use delete rather than evict. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) DisableEviction() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.DisableEviction }).(pulumi.BoolPtrOutput) } -// Drain options enabled? Default `true` (bool) +// If `enabled` is set to true, nodes will be drained before upgrade. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } -// Drain options force. Default `false` (bool) +// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Force() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.Force }).(pulumi.BoolPtrOutput) } -// Drain options grace period (int) +// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) GracePeriod() pulumi.IntPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { return v.GracePeriod }).(pulumi.IntPtrOutput) } -// Drain options ignore daemon sets. Default `true` (bool) +// If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.IgnoreDaemonSets }).(pulumi.BoolPtrOutput) } -// Drain options ignore errors. Default `false` (bool) +// If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) IgnoreErrors() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.IgnoreErrors }).(pulumi.BoolPtrOutput) } -// Drain options skip wait for delete timeout seconds (int) +// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { return v.SkipWaitForDeleteTimeoutSeconds }).(pulumi.IntPtrOutput) } -// Drain options timeout (int) +// Time to wait (in seconds) before giving up for one try. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Timeout() pulumi.IntPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { return v.Timeout }).(pulumi.IntPtrOutput) } @@ -46562,7 +46900,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Elem }).(ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) } -// Drain options delete empty dir data. Default `false` (bool) +// if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { if v == nil { @@ -46572,7 +46910,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Dele }).(pulumi.BoolPtrOutput) } -// Drain options disable eviction. Default `false` (bool) +// If `disableEviction` is set to true, force drain to use delete rather than evict. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) DisableEviction() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { if v == nil { @@ -46582,7 +46920,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Disa }).(pulumi.BoolPtrOutput) } -// Drain options enabled? Default `true` (bool) +// If `enabled` is set to true, nodes will be drained before upgrade. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { if v == nil { @@ -46592,7 +46930,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Enab }).(pulumi.BoolPtrOutput) } -// Drain options force. Default `false` (bool) +// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Force() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { if v == nil { @@ -46602,7 +46940,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Forc }).(pulumi.BoolPtrOutput) } -// Drain options grace period (int) +// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) GracePeriod() pulumi.IntPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { if v == nil { @@ -46612,7 +46950,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Grac }).(pulumi.IntPtrOutput) } -// Drain options ignore daemon sets. Default `true` (bool) +// If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { if v == nil { @@ -46622,7 +46960,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Igno }).(pulumi.BoolPtrOutput) } -// Drain options ignore errors. Default `false` (bool) +// If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) IgnoreErrors() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { if v == nil { @@ -46632,7 +46970,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Igno }).(pulumi.BoolPtrOutput) } -// Drain options skip wait for delete timeout seconds (int) +// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { if v == nil { @@ -46642,7 +46980,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Skip }).(pulumi.IntPtrOutput) } -// Drain options timeout (int) +// Time to wait (in seconds) before giving up for one try. func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Timeout() pulumi.IntPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { if v == nil { @@ -46653,23 +46991,23 @@ func (o ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Time } type ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions struct { - // Drain options delete empty dir data. Default `false` (bool) + // if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). DeleteEmptyDirData *bool `pulumi:"deleteEmptyDirData"` - // Drain options disable eviction. Default `false` (bool) + // If `disableEviction` is set to true, force drain to use delete rather than evict. DisableEviction *bool `pulumi:"disableEviction"` - // Drain options enabled? Default `true` (bool) + // If `enabled` is set to true, nodes will be drained before upgrade. Enabled *bool `pulumi:"enabled"` - // Drain options force. Default `false` (bool) + // If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. Force *bool `pulumi:"force"` - // Drain options grace period (int) + // Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. GracePeriod *int `pulumi:"gracePeriod"` - // Drain options ignore daemon sets. Default `true` (bool) + // If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. IgnoreDaemonSets *bool `pulumi:"ignoreDaemonSets"` - // Drain options ignore errors. Default `false` (bool) + // If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. IgnoreErrors *bool `pulumi:"ignoreErrors"` - // Drain options skip wait for delete timeout seconds (int) + // Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. SkipWaitForDeleteTimeoutSeconds *int `pulumi:"skipWaitForDeleteTimeoutSeconds"` - // Drain options timeout (int) + // Time to wait (in seconds) before giving up for one try. Timeout *int `pulumi:"timeout"` } @@ -46685,23 +47023,23 @@ type ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsInput interface { } type ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs struct { - // Drain options delete empty dir data. Default `false` (bool) + // if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). DeleteEmptyDirData pulumi.BoolPtrInput `pulumi:"deleteEmptyDirData"` - // Drain options disable eviction. Default `false` (bool) + // If `disableEviction` is set to true, force drain to use delete rather than evict. DisableEviction pulumi.BoolPtrInput `pulumi:"disableEviction"` - // Drain options enabled? Default `true` (bool) + // If `enabled` is set to true, nodes will be drained before upgrade. Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - // Drain options force. Default `false` (bool) + // If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. Force pulumi.BoolPtrInput `pulumi:"force"` - // Drain options grace period (int) + // Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. GracePeriod pulumi.IntPtrInput `pulumi:"gracePeriod"` - // Drain options ignore daemon sets. Default `true` (bool) + // If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. IgnoreDaemonSets pulumi.BoolPtrInput `pulumi:"ignoreDaemonSets"` - // Drain options ignore errors. Default `false` (bool) + // If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. IgnoreErrors pulumi.BoolPtrInput `pulumi:"ignoreErrors"` - // Drain options skip wait for delete timeout seconds (int) + // Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. SkipWaitForDeleteTimeoutSeconds pulumi.IntPtrInput `pulumi:"skipWaitForDeleteTimeoutSeconds"` - // Drain options timeout (int) + // Time to wait (in seconds) before giving up for one try. Timeout pulumi.IntPtrInput `pulumi:"timeout"` } @@ -46782,49 +47120,49 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToClusterV2Rk }).(ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) } -// Drain options delete empty dir data. Default `false` (bool) +// if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.DeleteEmptyDirData }).(pulumi.BoolPtrOutput) } -// Drain options disable eviction. Default `false` (bool) +// If `disableEviction` is set to true, force drain to use delete rather than evict. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) DisableEviction() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.DisableEviction }).(pulumi.BoolPtrOutput) } -// Drain options enabled? Default `true` (bool) +// If `enabled` is set to true, nodes will be drained before upgrade. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } -// Drain options force. Default `false` (bool) +// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Force() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.Force }).(pulumi.BoolPtrOutput) } -// Drain options grace period (int) +// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) GracePeriod() pulumi.IntPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { return v.GracePeriod }).(pulumi.IntPtrOutput) } -// Drain options ignore daemon sets. Default `true` (bool) +// If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.IgnoreDaemonSets }).(pulumi.BoolPtrOutput) } -// Drain options ignore errors. Default `false` (bool) +// If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) IgnoreErrors() pulumi.BoolPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.IgnoreErrors }).(pulumi.BoolPtrOutput) } -// Drain options skip wait for delete timeout seconds (int) +// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { return v.SkipWaitForDeleteTimeoutSeconds }).(pulumi.IntPtrOutput) } -// Drain options timeout (int) +// Time to wait (in seconds) before giving up for one try. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Timeout() pulumi.IntPtrOutput { return o.ApplyT(func(v ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { return v.Timeout }).(pulumi.IntPtrOutput) } @@ -46853,7 +47191,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Elem() Clu }).(ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) } -// Drain options delete empty dir data. Default `false` (bool) +// if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { if v == nil { @@ -46863,7 +47201,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) DeleteEmpt }).(pulumi.BoolPtrOutput) } -// Drain options disable eviction. Default `false` (bool) +// If `disableEviction` is set to true, force drain to use delete rather than evict. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) DisableEviction() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { if v == nil { @@ -46873,7 +47211,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) DisableEvi }).(pulumi.BoolPtrOutput) } -// Drain options enabled? Default `true` (bool) +// If `enabled` is set to true, nodes will be drained before upgrade. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { if v == nil { @@ -46883,7 +47221,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Enabled() }).(pulumi.BoolPtrOutput) } -// Drain options force. Default `false` (bool) +// If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Force() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { if v == nil { @@ -46893,7 +47231,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Force() pu }).(pulumi.BoolPtrOutput) } -// Drain options grace period (int) +// Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) GracePeriod() pulumi.IntPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { if v == nil { @@ -46903,7 +47241,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) GracePerio }).(pulumi.IntPtrOutput) } -// Drain options ignore daemon sets. Default `true` (bool) +// If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { if v == nil { @@ -46913,7 +47251,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) IgnoreDaem }).(pulumi.BoolPtrOutput) } -// Drain options ignore errors. Default `false` (bool) +// If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) IgnoreErrors() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { if v == nil { @@ -46923,7 +47261,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) IgnoreErro }).(pulumi.BoolPtrOutput) } -// Drain options skip wait for delete timeout seconds (int) +// Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { if v == nil { @@ -46933,7 +47271,7 @@ func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) SkipWaitFo }).(pulumi.IntPtrOutput) } -// Drain options timeout (int) +// Time to wait (in seconds) before giving up for one try. func (o ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Timeout() pulumi.IntPtrOutput { return o.ApplyT(func(v *ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { if v == nil { @@ -51829,6 +52167,8 @@ type MachineConfigV2VsphereConfig struct { DiskSize *string `pulumi:"diskSize"` // vSphere folder for the docker VM. This folder must already exist in the datacenter (string) Folder *string `pulumi:"folder"` + // Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + GracefulShutdownTimeout *string `pulumi:"gracefulShutdownTimeout"` // vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) Hostsystem *string `pulumi:"hostsystem"` // vSphere size of memory for docker VM (in MB). Default `2048` (string) @@ -51905,6 +52245,8 @@ type MachineConfigV2VsphereConfigArgs struct { DiskSize pulumi.StringPtrInput `pulumi:"diskSize"` // vSphere folder for the docker VM. This folder must already exist in the datacenter (string) Folder pulumi.StringPtrInput `pulumi:"folder"` + // Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + GracefulShutdownTimeout pulumi.StringPtrInput `pulumi:"gracefulShutdownTimeout"` // vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) Hostsystem pulumi.StringPtrInput `pulumi:"hostsystem"` // vSphere size of memory for docker VM (in MB). Default `2048` (string) @@ -52088,6 +52430,11 @@ func (o MachineConfigV2VsphereConfigOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v MachineConfigV2VsphereConfig) *string { return v.Folder }).(pulumi.StringPtrOutput) } +// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) +func (o MachineConfigV2VsphereConfigOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v MachineConfigV2VsphereConfig) *string { return v.GracefulShutdownTimeout }).(pulumi.StringPtrOutput) +} + // vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) func (o MachineConfigV2VsphereConfigOutput) Hostsystem() pulumi.StringPtrOutput { return o.ApplyT(func(v MachineConfigV2VsphereConfig) *string { return v.Hostsystem }).(pulumi.StringPtrOutput) @@ -52337,6 +52684,16 @@ func (o MachineConfigV2VsphereConfigPtrOutput) Folder() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) +func (o MachineConfigV2VsphereConfigPtrOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v *MachineConfigV2VsphereConfig) *string { + if v == nil { + return nil + } + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + // vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) func (o MachineConfigV2VsphereConfigPtrOutput) Hostsystem() pulumi.StringPtrOutput { return o.ApplyT(func(v *MachineConfigV2VsphereConfig) *string { @@ -58863,6 +59220,8 @@ type NodeTemplateVsphereConfig struct { DiskSize *string `pulumi:"diskSize"` // vSphere folder for the docker VM. This folder must already exist in the datacenter (string) Folder *string `pulumi:"folder"` + // Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + GracefulShutdownTimeout *string `pulumi:"gracefulShutdownTimeout"` // vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) Hostsystem *string `pulumi:"hostsystem"` // vSphere size of memory for docker VM (in MB). Default `2048` (string) @@ -58939,6 +59298,8 @@ type NodeTemplateVsphereConfigArgs struct { DiskSize pulumi.StringPtrInput `pulumi:"diskSize"` // vSphere folder for the docker VM. This folder must already exist in the datacenter (string) Folder pulumi.StringPtrInput `pulumi:"folder"` + // Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + GracefulShutdownTimeout pulumi.StringPtrInput `pulumi:"gracefulShutdownTimeout"` // vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) Hostsystem pulumi.StringPtrInput `pulumi:"hostsystem"` // vSphere size of memory for docker VM (in MB). Default `2048` (string) @@ -59122,6 +59483,11 @@ func (o NodeTemplateVsphereConfigOutput) Folder() pulumi.StringPtrOutput { return o.ApplyT(func(v NodeTemplateVsphereConfig) *string { return v.Folder }).(pulumi.StringPtrOutput) } +// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero +func (o NodeTemplateVsphereConfigOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v NodeTemplateVsphereConfig) *string { return v.GracefulShutdownTimeout }).(pulumi.StringPtrOutput) +} + // vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) func (o NodeTemplateVsphereConfigOutput) Hostsystem() pulumi.StringPtrOutput { return o.ApplyT(func(v NodeTemplateVsphereConfig) *string { return v.Hostsystem }).(pulumi.StringPtrOutput) @@ -59371,6 +59737,16 @@ func (o NodeTemplateVsphereConfigPtrOutput) Folder() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +// Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero +func (o NodeTemplateVsphereConfigPtrOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v *NodeTemplateVsphereConfig) *string { + if v == nil { + return nil + } + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + // vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) func (o NodeTemplateVsphereConfigPtrOutput) Hostsystem() pulumi.StringPtrOutput { return o.ApplyT(func(v *NodeTemplateVsphereConfig) *string { @@ -64873,139 +65249,6 @@ func (o RegistryRegistryArrayOutput) Index(i pulumi.IntInput) RegistryRegistryOu }).(RegistryRegistryOutput) } -type RoleTempalteRule struct { - // Policy rule api groups (list) - ApiGroups []string `pulumi:"apiGroups"` - // Policy rule non resource urls (list) - NonResourceUrls []string `pulumi:"nonResourceUrls"` - // Policy rule resource names (list) - ResourceNames []string `pulumi:"resourceNames"` - // Policy rule resources (list) - Resources []string `pulumi:"resources"` - // Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - Verbs []string `pulumi:"verbs"` -} - -// RoleTempalteRuleInput is an input type that accepts RoleTempalteRuleArgs and RoleTempalteRuleOutput values. -// You can construct a concrete instance of `RoleTempalteRuleInput` via: -// -// RoleTempalteRuleArgs{...} -type RoleTempalteRuleInput interface { - pulumi.Input - - ToRoleTempalteRuleOutput() RoleTempalteRuleOutput - ToRoleTempalteRuleOutputWithContext(context.Context) RoleTempalteRuleOutput -} - -type RoleTempalteRuleArgs struct { - // Policy rule api groups (list) - ApiGroups pulumi.StringArrayInput `pulumi:"apiGroups"` - // Policy rule non resource urls (list) - NonResourceUrls pulumi.StringArrayInput `pulumi:"nonResourceUrls"` - // Policy rule resource names (list) - ResourceNames pulumi.StringArrayInput `pulumi:"resourceNames"` - // Policy rule resources (list) - Resources pulumi.StringArrayInput `pulumi:"resources"` - // Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - Verbs pulumi.StringArrayInput `pulumi:"verbs"` -} - -func (RoleTempalteRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RoleTempalteRule)(nil)).Elem() -} - -func (i RoleTempalteRuleArgs) ToRoleTempalteRuleOutput() RoleTempalteRuleOutput { - return i.ToRoleTempalteRuleOutputWithContext(context.Background()) -} - -func (i RoleTempalteRuleArgs) ToRoleTempalteRuleOutputWithContext(ctx context.Context) RoleTempalteRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(RoleTempalteRuleOutput) -} - -// RoleTempalteRuleArrayInput is an input type that accepts RoleTempalteRuleArray and RoleTempalteRuleArrayOutput values. -// You can construct a concrete instance of `RoleTempalteRuleArrayInput` via: -// -// RoleTempalteRuleArray{ RoleTempalteRuleArgs{...} } -type RoleTempalteRuleArrayInput interface { - pulumi.Input - - ToRoleTempalteRuleArrayOutput() RoleTempalteRuleArrayOutput - ToRoleTempalteRuleArrayOutputWithContext(context.Context) RoleTempalteRuleArrayOutput -} - -type RoleTempalteRuleArray []RoleTempalteRuleInput - -func (RoleTempalteRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RoleTempalteRule)(nil)).Elem() -} - -func (i RoleTempalteRuleArray) ToRoleTempalteRuleArrayOutput() RoleTempalteRuleArrayOutput { - return i.ToRoleTempalteRuleArrayOutputWithContext(context.Background()) -} - -func (i RoleTempalteRuleArray) ToRoleTempalteRuleArrayOutputWithContext(ctx context.Context) RoleTempalteRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RoleTempalteRuleArrayOutput) -} - -type RoleTempalteRuleOutput struct{ *pulumi.OutputState } - -func (RoleTempalteRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RoleTempalteRule)(nil)).Elem() -} - -func (o RoleTempalteRuleOutput) ToRoleTempalteRuleOutput() RoleTempalteRuleOutput { - return o -} - -func (o RoleTempalteRuleOutput) ToRoleTempalteRuleOutputWithContext(ctx context.Context) RoleTempalteRuleOutput { - return o -} - -// Policy rule api groups (list) -func (o RoleTempalteRuleOutput) ApiGroups() pulumi.StringArrayOutput { - return o.ApplyT(func(v RoleTempalteRule) []string { return v.ApiGroups }).(pulumi.StringArrayOutput) -} - -// Policy rule non resource urls (list) -func (o RoleTempalteRuleOutput) NonResourceUrls() pulumi.StringArrayOutput { - return o.ApplyT(func(v RoleTempalteRule) []string { return v.NonResourceUrls }).(pulumi.StringArrayOutput) -} - -// Policy rule resource names (list) -func (o RoleTempalteRuleOutput) ResourceNames() pulumi.StringArrayOutput { - return o.ApplyT(func(v RoleTempalteRule) []string { return v.ResourceNames }).(pulumi.StringArrayOutput) -} - -// Policy rule resources (list) -func (o RoleTempalteRuleOutput) Resources() pulumi.StringArrayOutput { - return o.ApplyT(func(v RoleTempalteRule) []string { return v.Resources }).(pulumi.StringArrayOutput) -} - -// Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) -func (o RoleTempalteRuleOutput) Verbs() pulumi.StringArrayOutput { - return o.ApplyT(func(v RoleTempalteRule) []string { return v.Verbs }).(pulumi.StringArrayOutput) -} - -type RoleTempalteRuleArrayOutput struct{ *pulumi.OutputState } - -func (RoleTempalteRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RoleTempalteRule)(nil)).Elem() -} - -func (o RoleTempalteRuleArrayOutput) ToRoleTempalteRuleArrayOutput() RoleTempalteRuleArrayOutput { - return o -} - -func (o RoleTempalteRuleArrayOutput) ToRoleTempalteRuleArrayOutputWithContext(ctx context.Context) RoleTempalteRuleArrayOutput { - return o -} - -func (o RoleTempalteRuleArrayOutput) Index(i pulumi.IntInput) RoleTempalteRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RoleTempalteRule { - return vs[0].([]RoleTempalteRule)[vs[1].(int)] - }).(RoleTempalteRuleOutput) -} - type RoleTemplateRule struct { // Policy rule api groups (list) ApiGroups []string `pulumi:"apiGroups"` @@ -66199,68 +66442,68 @@ func (o GetClusterAlertGroupRecipientArrayOutput) Index(i pulumi.IntInput) GetCl }).(GetClusterAlertGroupRecipientOutput) } -type GetClusterAlterRuleEventRule struct { +type GetClusterAlertRuleEventRule struct { // Event type EventType *string `pulumi:"eventType"` // Resource kind ResourceKind string `pulumi:"resourceKind"` } -// GetClusterAlterRuleEventRuleInput is an input type that accepts GetClusterAlterRuleEventRuleArgs and GetClusterAlterRuleEventRuleOutput values. -// You can construct a concrete instance of `GetClusterAlterRuleEventRuleInput` via: +// GetClusterAlertRuleEventRuleInput is an input type that accepts GetClusterAlertRuleEventRuleArgs and GetClusterAlertRuleEventRuleOutput values. +// You can construct a concrete instance of `GetClusterAlertRuleEventRuleInput` via: // -// GetClusterAlterRuleEventRuleArgs{...} -type GetClusterAlterRuleEventRuleInput interface { +// GetClusterAlertRuleEventRuleArgs{...} +type GetClusterAlertRuleEventRuleInput interface { pulumi.Input - ToGetClusterAlterRuleEventRuleOutput() GetClusterAlterRuleEventRuleOutput - ToGetClusterAlterRuleEventRuleOutputWithContext(context.Context) GetClusterAlterRuleEventRuleOutput + ToGetClusterAlertRuleEventRuleOutput() GetClusterAlertRuleEventRuleOutput + ToGetClusterAlertRuleEventRuleOutputWithContext(context.Context) GetClusterAlertRuleEventRuleOutput } -type GetClusterAlterRuleEventRuleArgs struct { +type GetClusterAlertRuleEventRuleArgs struct { // Event type EventType pulumi.StringPtrInput `pulumi:"eventType"` // Resource kind ResourceKind pulumi.StringInput `pulumi:"resourceKind"` } -func (GetClusterAlterRuleEventRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterAlterRuleEventRule)(nil)).Elem() +func (GetClusterAlertRuleEventRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterAlertRuleEventRule)(nil)).Elem() } -func (i GetClusterAlterRuleEventRuleArgs) ToGetClusterAlterRuleEventRuleOutput() GetClusterAlterRuleEventRuleOutput { - return i.ToGetClusterAlterRuleEventRuleOutputWithContext(context.Background()) +func (i GetClusterAlertRuleEventRuleArgs) ToGetClusterAlertRuleEventRuleOutput() GetClusterAlertRuleEventRuleOutput { + return i.ToGetClusterAlertRuleEventRuleOutputWithContext(context.Background()) } -func (i GetClusterAlterRuleEventRuleArgs) ToGetClusterAlterRuleEventRuleOutputWithContext(ctx context.Context) GetClusterAlterRuleEventRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterAlterRuleEventRuleOutput) +func (i GetClusterAlertRuleEventRuleArgs) ToGetClusterAlertRuleEventRuleOutputWithContext(ctx context.Context) GetClusterAlertRuleEventRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterAlertRuleEventRuleOutput) } -type GetClusterAlterRuleEventRuleOutput struct{ *pulumi.OutputState } +type GetClusterAlertRuleEventRuleOutput struct{ *pulumi.OutputState } -func (GetClusterAlterRuleEventRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterAlterRuleEventRule)(nil)).Elem() +func (GetClusterAlertRuleEventRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterAlertRuleEventRule)(nil)).Elem() } -func (o GetClusterAlterRuleEventRuleOutput) ToGetClusterAlterRuleEventRuleOutput() GetClusterAlterRuleEventRuleOutput { +func (o GetClusterAlertRuleEventRuleOutput) ToGetClusterAlertRuleEventRuleOutput() GetClusterAlertRuleEventRuleOutput { return o } -func (o GetClusterAlterRuleEventRuleOutput) ToGetClusterAlterRuleEventRuleOutputWithContext(ctx context.Context) GetClusterAlterRuleEventRuleOutput { +func (o GetClusterAlertRuleEventRuleOutput) ToGetClusterAlertRuleEventRuleOutputWithContext(ctx context.Context) GetClusterAlertRuleEventRuleOutput { return o } // Event type -func (o GetClusterAlterRuleEventRuleOutput) EventType() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterAlterRuleEventRule) *string { return v.EventType }).(pulumi.StringPtrOutput) +func (o GetClusterAlertRuleEventRuleOutput) EventType() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterAlertRuleEventRule) *string { return v.EventType }).(pulumi.StringPtrOutput) } // Resource kind -func (o GetClusterAlterRuleEventRuleOutput) ResourceKind() pulumi.StringOutput { - return o.ApplyT(func(v GetClusterAlterRuleEventRule) string { return v.ResourceKind }).(pulumi.StringOutput) +func (o GetClusterAlertRuleEventRuleOutput) ResourceKind() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterAlertRuleEventRule) string { return v.ResourceKind }).(pulumi.StringOutput) } -type GetClusterAlterRuleMetricRule struct { +type GetClusterAlertRuleMetricRule struct { // Metric rule comparison Comparison *string `pulumi:"comparison"` // Metric rule description @@ -66273,18 +66516,18 @@ type GetClusterAlterRuleMetricRule struct { ThresholdValue float64 `pulumi:"thresholdValue"` } -// GetClusterAlterRuleMetricRuleInput is an input type that accepts GetClusterAlterRuleMetricRuleArgs and GetClusterAlterRuleMetricRuleOutput values. -// You can construct a concrete instance of `GetClusterAlterRuleMetricRuleInput` via: +// GetClusterAlertRuleMetricRuleInput is an input type that accepts GetClusterAlertRuleMetricRuleArgs and GetClusterAlertRuleMetricRuleOutput values. +// You can construct a concrete instance of `GetClusterAlertRuleMetricRuleInput` via: // -// GetClusterAlterRuleMetricRuleArgs{...} -type GetClusterAlterRuleMetricRuleInput interface { +// GetClusterAlertRuleMetricRuleArgs{...} +type GetClusterAlertRuleMetricRuleInput interface { pulumi.Input - ToGetClusterAlterRuleMetricRuleOutput() GetClusterAlterRuleMetricRuleOutput - ToGetClusterAlterRuleMetricRuleOutputWithContext(context.Context) GetClusterAlterRuleMetricRuleOutput + ToGetClusterAlertRuleMetricRuleOutput() GetClusterAlertRuleMetricRuleOutput + ToGetClusterAlertRuleMetricRuleOutputWithContext(context.Context) GetClusterAlertRuleMetricRuleOutput } -type GetClusterAlterRuleMetricRuleArgs struct { +type GetClusterAlertRuleMetricRuleArgs struct { // Metric rule comparison Comparison pulumi.StringPtrInput `pulumi:"comparison"` // Metric rule description @@ -66297,58 +66540,58 @@ type GetClusterAlterRuleMetricRuleArgs struct { ThresholdValue pulumi.Float64Input `pulumi:"thresholdValue"` } -func (GetClusterAlterRuleMetricRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterAlterRuleMetricRule)(nil)).Elem() +func (GetClusterAlertRuleMetricRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterAlertRuleMetricRule)(nil)).Elem() } -func (i GetClusterAlterRuleMetricRuleArgs) ToGetClusterAlterRuleMetricRuleOutput() GetClusterAlterRuleMetricRuleOutput { - return i.ToGetClusterAlterRuleMetricRuleOutputWithContext(context.Background()) +func (i GetClusterAlertRuleMetricRuleArgs) ToGetClusterAlertRuleMetricRuleOutput() GetClusterAlertRuleMetricRuleOutput { + return i.ToGetClusterAlertRuleMetricRuleOutputWithContext(context.Background()) } -func (i GetClusterAlterRuleMetricRuleArgs) ToGetClusterAlterRuleMetricRuleOutputWithContext(ctx context.Context) GetClusterAlterRuleMetricRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterAlterRuleMetricRuleOutput) +func (i GetClusterAlertRuleMetricRuleArgs) ToGetClusterAlertRuleMetricRuleOutputWithContext(ctx context.Context) GetClusterAlertRuleMetricRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterAlertRuleMetricRuleOutput) } -type GetClusterAlterRuleMetricRuleOutput struct{ *pulumi.OutputState } +type GetClusterAlertRuleMetricRuleOutput struct{ *pulumi.OutputState } -func (GetClusterAlterRuleMetricRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterAlterRuleMetricRule)(nil)).Elem() +func (GetClusterAlertRuleMetricRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterAlertRuleMetricRule)(nil)).Elem() } -func (o GetClusterAlterRuleMetricRuleOutput) ToGetClusterAlterRuleMetricRuleOutput() GetClusterAlterRuleMetricRuleOutput { +func (o GetClusterAlertRuleMetricRuleOutput) ToGetClusterAlertRuleMetricRuleOutput() GetClusterAlertRuleMetricRuleOutput { return o } -func (o GetClusterAlterRuleMetricRuleOutput) ToGetClusterAlterRuleMetricRuleOutputWithContext(ctx context.Context) GetClusterAlterRuleMetricRuleOutput { +func (o GetClusterAlertRuleMetricRuleOutput) ToGetClusterAlertRuleMetricRuleOutputWithContext(ctx context.Context) GetClusterAlertRuleMetricRuleOutput { return o } // Metric rule comparison -func (o GetClusterAlterRuleMetricRuleOutput) Comparison() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterAlterRuleMetricRule) *string { return v.Comparison }).(pulumi.StringPtrOutput) +func (o GetClusterAlertRuleMetricRuleOutput) Comparison() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterAlertRuleMetricRule) *string { return v.Comparison }).(pulumi.StringPtrOutput) } // Metric rule description -func (o GetClusterAlterRuleMetricRuleOutput) Description() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterAlterRuleMetricRule) *string { return v.Description }).(pulumi.StringPtrOutput) +func (o GetClusterAlertRuleMetricRuleOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterAlertRuleMetricRule) *string { return v.Description }).(pulumi.StringPtrOutput) } // Metric rule duration -func (o GetClusterAlterRuleMetricRuleOutput) Duration() pulumi.StringOutput { - return o.ApplyT(func(v GetClusterAlterRuleMetricRule) string { return v.Duration }).(pulumi.StringOutput) +func (o GetClusterAlertRuleMetricRuleOutput) Duration() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterAlertRuleMetricRule) string { return v.Duration }).(pulumi.StringOutput) } // Metric rule expression -func (o GetClusterAlterRuleMetricRuleOutput) Expression() pulumi.StringOutput { - return o.ApplyT(func(v GetClusterAlterRuleMetricRule) string { return v.Expression }).(pulumi.StringOutput) +func (o GetClusterAlertRuleMetricRuleOutput) Expression() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterAlertRuleMetricRule) string { return v.Expression }).(pulumi.StringOutput) } // Metric rule threshold value -func (o GetClusterAlterRuleMetricRuleOutput) ThresholdValue() pulumi.Float64Output { - return o.ApplyT(func(v GetClusterAlterRuleMetricRule) float64 { return v.ThresholdValue }).(pulumi.Float64Output) +func (o GetClusterAlertRuleMetricRuleOutput) ThresholdValue() pulumi.Float64Output { + return o.ApplyT(func(v GetClusterAlertRuleMetricRule) float64 { return v.ThresholdValue }).(pulumi.Float64Output) } -type GetClusterAlterRuleNodeRule struct { +type GetClusterAlertRuleNodeRule struct { // Node rule condition Condition *string `pulumi:"condition"` // Node rule cpu threshold @@ -66361,18 +66604,18 @@ type GetClusterAlterRuleNodeRule struct { Selector map[string]interface{} `pulumi:"selector"` } -// GetClusterAlterRuleNodeRuleInput is an input type that accepts GetClusterAlterRuleNodeRuleArgs and GetClusterAlterRuleNodeRuleOutput values. -// You can construct a concrete instance of `GetClusterAlterRuleNodeRuleInput` via: +// GetClusterAlertRuleNodeRuleInput is an input type that accepts GetClusterAlertRuleNodeRuleArgs and GetClusterAlertRuleNodeRuleOutput values. +// You can construct a concrete instance of `GetClusterAlertRuleNodeRuleInput` via: // -// GetClusterAlterRuleNodeRuleArgs{...} -type GetClusterAlterRuleNodeRuleInput interface { +// GetClusterAlertRuleNodeRuleArgs{...} +type GetClusterAlertRuleNodeRuleInput interface { pulumi.Input - ToGetClusterAlterRuleNodeRuleOutput() GetClusterAlterRuleNodeRuleOutput - ToGetClusterAlterRuleNodeRuleOutputWithContext(context.Context) GetClusterAlterRuleNodeRuleOutput + ToGetClusterAlertRuleNodeRuleOutput() GetClusterAlertRuleNodeRuleOutput + ToGetClusterAlertRuleNodeRuleOutputWithContext(context.Context) GetClusterAlertRuleNodeRuleOutput } -type GetClusterAlterRuleNodeRuleArgs struct { +type GetClusterAlertRuleNodeRuleArgs struct { // Node rule condition Condition pulumi.StringPtrInput `pulumi:"condition"` // Node rule cpu threshold @@ -66385,107 +66628,107 @@ type GetClusterAlterRuleNodeRuleArgs struct { Selector pulumi.MapInput `pulumi:"selector"` } -func (GetClusterAlterRuleNodeRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterAlterRuleNodeRule)(nil)).Elem() +func (GetClusterAlertRuleNodeRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterAlertRuleNodeRule)(nil)).Elem() } -func (i GetClusterAlterRuleNodeRuleArgs) ToGetClusterAlterRuleNodeRuleOutput() GetClusterAlterRuleNodeRuleOutput { - return i.ToGetClusterAlterRuleNodeRuleOutputWithContext(context.Background()) +func (i GetClusterAlertRuleNodeRuleArgs) ToGetClusterAlertRuleNodeRuleOutput() GetClusterAlertRuleNodeRuleOutput { + return i.ToGetClusterAlertRuleNodeRuleOutputWithContext(context.Background()) } -func (i GetClusterAlterRuleNodeRuleArgs) ToGetClusterAlterRuleNodeRuleOutputWithContext(ctx context.Context) GetClusterAlterRuleNodeRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterAlterRuleNodeRuleOutput) +func (i GetClusterAlertRuleNodeRuleArgs) ToGetClusterAlertRuleNodeRuleOutputWithContext(ctx context.Context) GetClusterAlertRuleNodeRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterAlertRuleNodeRuleOutput) } -type GetClusterAlterRuleNodeRuleOutput struct{ *pulumi.OutputState } +type GetClusterAlertRuleNodeRuleOutput struct{ *pulumi.OutputState } -func (GetClusterAlterRuleNodeRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterAlterRuleNodeRule)(nil)).Elem() +func (GetClusterAlertRuleNodeRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterAlertRuleNodeRule)(nil)).Elem() } -func (o GetClusterAlterRuleNodeRuleOutput) ToGetClusterAlterRuleNodeRuleOutput() GetClusterAlterRuleNodeRuleOutput { +func (o GetClusterAlertRuleNodeRuleOutput) ToGetClusterAlertRuleNodeRuleOutput() GetClusterAlertRuleNodeRuleOutput { return o } -func (o GetClusterAlterRuleNodeRuleOutput) ToGetClusterAlterRuleNodeRuleOutputWithContext(ctx context.Context) GetClusterAlterRuleNodeRuleOutput { +func (o GetClusterAlertRuleNodeRuleOutput) ToGetClusterAlertRuleNodeRuleOutputWithContext(ctx context.Context) GetClusterAlertRuleNodeRuleOutput { return o } // Node rule condition -func (o GetClusterAlterRuleNodeRuleOutput) Condition() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterAlterRuleNodeRule) *string { return v.Condition }).(pulumi.StringPtrOutput) +func (o GetClusterAlertRuleNodeRuleOutput) Condition() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterAlertRuleNodeRule) *string { return v.Condition }).(pulumi.StringPtrOutput) } // Node rule cpu threshold -func (o GetClusterAlterRuleNodeRuleOutput) CpuThreshold() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetClusterAlterRuleNodeRule) *int { return v.CpuThreshold }).(pulumi.IntPtrOutput) +func (o GetClusterAlertRuleNodeRuleOutput) CpuThreshold() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetClusterAlertRuleNodeRule) *int { return v.CpuThreshold }).(pulumi.IntPtrOutput) } // Node rule mem threshold -func (o GetClusterAlterRuleNodeRuleOutput) MemThreshold() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetClusterAlterRuleNodeRule) *int { return v.MemThreshold }).(pulumi.IntPtrOutput) +func (o GetClusterAlertRuleNodeRuleOutput) MemThreshold() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetClusterAlertRuleNodeRule) *int { return v.MemThreshold }).(pulumi.IntPtrOutput) } // Node ID -func (o GetClusterAlterRuleNodeRuleOutput) NodeId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterAlterRuleNodeRule) *string { return v.NodeId }).(pulumi.StringPtrOutput) +func (o GetClusterAlertRuleNodeRuleOutput) NodeId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterAlertRuleNodeRule) *string { return v.NodeId }).(pulumi.StringPtrOutput) } // Node rule selector -func (o GetClusterAlterRuleNodeRuleOutput) Selector() pulumi.MapOutput { - return o.ApplyT(func(v GetClusterAlterRuleNodeRule) map[string]interface{} { return v.Selector }).(pulumi.MapOutput) +func (o GetClusterAlertRuleNodeRuleOutput) Selector() pulumi.MapOutput { + return o.ApplyT(func(v GetClusterAlertRuleNodeRule) map[string]interface{} { return v.Selector }).(pulumi.MapOutput) } -type GetClusterAlterRuleSystemServiceRule struct { +type GetClusterAlertRuleSystemServiceRule struct { // System service rule condition Condition *string `pulumi:"condition"` } -// GetClusterAlterRuleSystemServiceRuleInput is an input type that accepts GetClusterAlterRuleSystemServiceRuleArgs and GetClusterAlterRuleSystemServiceRuleOutput values. -// You can construct a concrete instance of `GetClusterAlterRuleSystemServiceRuleInput` via: +// GetClusterAlertRuleSystemServiceRuleInput is an input type that accepts GetClusterAlertRuleSystemServiceRuleArgs and GetClusterAlertRuleSystemServiceRuleOutput values. +// You can construct a concrete instance of `GetClusterAlertRuleSystemServiceRuleInput` via: // -// GetClusterAlterRuleSystemServiceRuleArgs{...} -type GetClusterAlterRuleSystemServiceRuleInput interface { +// GetClusterAlertRuleSystemServiceRuleArgs{...} +type GetClusterAlertRuleSystemServiceRuleInput interface { pulumi.Input - ToGetClusterAlterRuleSystemServiceRuleOutput() GetClusterAlterRuleSystemServiceRuleOutput - ToGetClusterAlterRuleSystemServiceRuleOutputWithContext(context.Context) GetClusterAlterRuleSystemServiceRuleOutput + ToGetClusterAlertRuleSystemServiceRuleOutput() GetClusterAlertRuleSystemServiceRuleOutput + ToGetClusterAlertRuleSystemServiceRuleOutputWithContext(context.Context) GetClusterAlertRuleSystemServiceRuleOutput } -type GetClusterAlterRuleSystemServiceRuleArgs struct { +type GetClusterAlertRuleSystemServiceRuleArgs struct { // System service rule condition Condition pulumi.StringPtrInput `pulumi:"condition"` } -func (GetClusterAlterRuleSystemServiceRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterAlterRuleSystemServiceRule)(nil)).Elem() +func (GetClusterAlertRuleSystemServiceRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterAlertRuleSystemServiceRule)(nil)).Elem() } -func (i GetClusterAlterRuleSystemServiceRuleArgs) ToGetClusterAlterRuleSystemServiceRuleOutput() GetClusterAlterRuleSystemServiceRuleOutput { - return i.ToGetClusterAlterRuleSystemServiceRuleOutputWithContext(context.Background()) +func (i GetClusterAlertRuleSystemServiceRuleArgs) ToGetClusterAlertRuleSystemServiceRuleOutput() GetClusterAlertRuleSystemServiceRuleOutput { + return i.ToGetClusterAlertRuleSystemServiceRuleOutputWithContext(context.Background()) } -func (i GetClusterAlterRuleSystemServiceRuleArgs) ToGetClusterAlterRuleSystemServiceRuleOutputWithContext(ctx context.Context) GetClusterAlterRuleSystemServiceRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterAlterRuleSystemServiceRuleOutput) +func (i GetClusterAlertRuleSystemServiceRuleArgs) ToGetClusterAlertRuleSystemServiceRuleOutputWithContext(ctx context.Context) GetClusterAlertRuleSystemServiceRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterAlertRuleSystemServiceRuleOutput) } -type GetClusterAlterRuleSystemServiceRuleOutput struct{ *pulumi.OutputState } +type GetClusterAlertRuleSystemServiceRuleOutput struct{ *pulumi.OutputState } -func (GetClusterAlterRuleSystemServiceRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterAlterRuleSystemServiceRule)(nil)).Elem() +func (GetClusterAlertRuleSystemServiceRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterAlertRuleSystemServiceRule)(nil)).Elem() } -func (o GetClusterAlterRuleSystemServiceRuleOutput) ToGetClusterAlterRuleSystemServiceRuleOutput() GetClusterAlterRuleSystemServiceRuleOutput { +func (o GetClusterAlertRuleSystemServiceRuleOutput) ToGetClusterAlertRuleSystemServiceRuleOutput() GetClusterAlertRuleSystemServiceRuleOutput { return o } -func (o GetClusterAlterRuleSystemServiceRuleOutput) ToGetClusterAlterRuleSystemServiceRuleOutputWithContext(ctx context.Context) GetClusterAlterRuleSystemServiceRuleOutput { +func (o GetClusterAlertRuleSystemServiceRuleOutput) ToGetClusterAlertRuleSystemServiceRuleOutputWithContext(ctx context.Context) GetClusterAlertRuleSystemServiceRuleOutput { return o } // System service rule condition -func (o GetClusterAlterRuleSystemServiceRuleOutput) Condition() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterAlterRuleSystemServiceRule) *string { return v.Condition }).(pulumi.StringPtrOutput) +func (o GetClusterAlertRuleSystemServiceRuleOutput) Condition() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterAlertRuleSystemServiceRule) *string { return v.Condition }).(pulumi.StringPtrOutput) } type GetClusterClusterAuthEndpoint struct { @@ -73221,12 +73464,13 @@ func (o GetClusterRkeConfigCloudProviderVsphereCloudProviderDiskPtrOutput) ScsiC } type GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal struct { - Datacenters string `pulumi:"datacenters"` - InsecureFlag bool `pulumi:"insecureFlag"` - Password string `pulumi:"password"` - Port string `pulumi:"port"` - SoapRoundtripCount int `pulumi:"soapRoundtripCount"` - User string `pulumi:"user"` + Datacenters string `pulumi:"datacenters"` + GracefulShutdownTimeout *string `pulumi:"gracefulShutdownTimeout"` + InsecureFlag bool `pulumi:"insecureFlag"` + Password string `pulumi:"password"` + Port string `pulumi:"port"` + SoapRoundtripCount int `pulumi:"soapRoundtripCount"` + User string `pulumi:"user"` } // GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalInput is an input type that accepts GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs and GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalOutput values. @@ -73241,12 +73485,13 @@ type GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalInput interface { } type GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs struct { - Datacenters pulumi.StringInput `pulumi:"datacenters"` - InsecureFlag pulumi.BoolInput `pulumi:"insecureFlag"` - Password pulumi.StringInput `pulumi:"password"` - Port pulumi.StringInput `pulumi:"port"` - SoapRoundtripCount pulumi.IntInput `pulumi:"soapRoundtripCount"` - User pulumi.StringInput `pulumi:"user"` + Datacenters pulumi.StringInput `pulumi:"datacenters"` + GracefulShutdownTimeout pulumi.StringPtrInput `pulumi:"gracefulShutdownTimeout"` + InsecureFlag pulumi.BoolInput `pulumi:"insecureFlag"` + Password pulumi.StringInput `pulumi:"password"` + Port pulumi.StringInput `pulumi:"port"` + SoapRoundtripCount pulumi.IntInput `pulumi:"soapRoundtripCount"` + User pulumi.StringInput `pulumi:"user"` } func (GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ElementType() reflect.Type { @@ -73330,6 +73575,12 @@ func (o GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) Datace return o.ApplyT(func(v GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) string { return v.Datacenters }).(pulumi.StringOutput) } +func (o GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + func (o GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) InsecureFlag() pulumi.BoolOutput { return o.ApplyT(func(v GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) bool { return v.InsecureFlag }).(pulumi.BoolOutput) } @@ -73383,6 +73634,15 @@ func (o GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) Dat }).(pulumi.StringPtrOutput) } +func (o GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + if v == nil { + return nil + } + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + func (o GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) InsecureFlag() pulumi.BoolPtrOutput { return o.ApplyT(func(v *GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal) *bool { if v == nil { @@ -84155,12 +84415,13 @@ func (o GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsp } type GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal struct { - Datacenters string `pulumi:"datacenters"` - InsecureFlag bool `pulumi:"insecureFlag"` - Password string `pulumi:"password"` - Port string `pulumi:"port"` - SoapRoundtripCount int `pulumi:"soapRoundtripCount"` - User string `pulumi:"user"` + Datacenters string `pulumi:"datacenters"` + GracefulShutdownTimeout *string `pulumi:"gracefulShutdownTimeout"` + InsecureFlag bool `pulumi:"insecureFlag"` + Password string `pulumi:"password"` + Port string `pulumi:"port"` + SoapRoundtripCount int `pulumi:"soapRoundtripCount"` + User string `pulumi:"user"` } // GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalInput is an input type that accepts GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs and GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput values. @@ -84175,12 +84436,13 @@ type GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVspher } type GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs struct { - Datacenters pulumi.StringInput `pulumi:"datacenters"` - InsecureFlag pulumi.BoolInput `pulumi:"insecureFlag"` - Password pulumi.StringInput `pulumi:"password"` - Port pulumi.StringInput `pulumi:"port"` - SoapRoundtripCount pulumi.IntInput `pulumi:"soapRoundtripCount"` - User pulumi.StringInput `pulumi:"user"` + Datacenters pulumi.StringInput `pulumi:"datacenters"` + GracefulShutdownTimeout pulumi.StringPtrInput `pulumi:"gracefulShutdownTimeout"` + InsecureFlag pulumi.BoolInput `pulumi:"insecureFlag"` + Password pulumi.StringInput `pulumi:"password"` + Port pulumi.StringInput `pulumi:"port"` + SoapRoundtripCount pulumi.IntInput `pulumi:"soapRoundtripCount"` + User pulumi.StringInput `pulumi:"user"` } func (GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs) ElementType() reflect.Type { @@ -84266,6 +84528,12 @@ func (o GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsp }).(pulumi.StringOutput) } +func (o GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + func (o GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalOutput) InsecureFlag() pulumi.BoolOutput { return o.ApplyT(func(v GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) bool { return v.InsecureFlag @@ -84329,6 +84597,15 @@ func (o GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsp }).(pulumi.StringPtrOutput) } +func (o GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) GracefulShutdownTimeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *string { + if v == nil { + return nil + } + return v.GracefulShutdownTimeout + }).(pulumi.StringPtrOutput) +} + func (o GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalPtrOutput) InsecureFlag() pulumi.BoolPtrOutput { return o.ApplyT(func(v *GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal) *bool { if v == nil { @@ -92058,6 +92335,8 @@ type GetClusterV2RkeConfig struct { MachinePools []GetClusterV2RkeConfigMachinePool `pulumi:"machinePools"` // Cluster V2 machine selector config MachineSelectorConfigs []GetClusterV2RkeConfigMachineSelectorConfig `pulumi:"machineSelectorConfigs"` + // Cluster V2 machine selector files + MachineSelectorFiles []GetClusterV2RkeConfigMachineSelectorFile `pulumi:"machineSelectorFiles"` // Cluster V2 registries Registries *GetClusterV2RkeConfigRegistries `pulumi:"registries"` // Cluster V2 certificate rotation @@ -92100,6 +92379,8 @@ type GetClusterV2RkeConfigArgs struct { MachinePools GetClusterV2RkeConfigMachinePoolArrayInput `pulumi:"machinePools"` // Cluster V2 machine selector config MachineSelectorConfigs GetClusterV2RkeConfigMachineSelectorConfigArrayInput `pulumi:"machineSelectorConfigs"` + // Cluster V2 machine selector files + MachineSelectorFiles GetClusterV2RkeConfigMachineSelectorFileArrayInput `pulumi:"machineSelectorFiles"` // Cluster V2 registries Registries GetClusterV2RkeConfigRegistriesPtrInput `pulumi:"registries"` // Cluster V2 certificate rotation @@ -92188,6 +92469,13 @@ func (o GetClusterV2RkeConfigOutput) MachineSelectorConfigs() GetClusterV2RkeCon }).(GetClusterV2RkeConfigMachineSelectorConfigArrayOutput) } +// Cluster V2 machine selector files +func (o GetClusterV2RkeConfigOutput) MachineSelectorFiles() GetClusterV2RkeConfigMachineSelectorFileArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfig) []GetClusterV2RkeConfigMachineSelectorFile { + return v.MachineSelectorFiles + }).(GetClusterV2RkeConfigMachineSelectorFileArrayOutput) +} + // Cluster V2 registries func (o GetClusterV2RkeConfigOutput) Registries() GetClusterV2RkeConfigRegistriesPtrOutput { return o.ApplyT(func(v GetClusterV2RkeConfig) *GetClusterV2RkeConfigRegistries { return v.Registries }).(GetClusterV2RkeConfigRegistriesPtrOutput) @@ -93378,6 +93666,8 @@ func (o GetClusterV2RkeConfigMachinePoolDefaultArrayOutput) Index(i pulumi.IntIn } type GetClusterV2RkeConfigMachinePoolMachineConfig struct { + // Machine config API version + ApiVersion *string `pulumi:"apiVersion"` // Machine config kind Kind string `pulumi:"kind"` // The name of the Cluster v2 (string) @@ -93396,6 +93686,8 @@ type GetClusterV2RkeConfigMachinePoolMachineConfigInput interface { } type GetClusterV2RkeConfigMachinePoolMachineConfigArgs struct { + // Machine config API version + ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"` // Machine config kind Kind pulumi.StringInput `pulumi:"kind"` // The name of the Cluster v2 (string) @@ -93428,6 +93720,11 @@ func (o GetClusterV2RkeConfigMachinePoolMachineConfigOutput) ToGetClusterV2RkeCo return o } +// Machine config API version +func (o GetClusterV2RkeConfigMachinePoolMachineConfigOutput) ApiVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachinePoolMachineConfig) *string { return v.ApiVersion }).(pulumi.StringPtrOutput) +} + // Machine config kind func (o GetClusterV2RkeConfigMachinePoolMachineConfigOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v GetClusterV2RkeConfigMachinePoolMachineConfig) string { return v.Kind }).(pulumi.StringOutput) @@ -94089,4864 +94386,4798 @@ func (o GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpre }).(GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput) } -type GetClusterV2RkeConfigRegistries struct { - // Registry config - Configs []GetClusterV2RkeConfigRegistriesConfig `pulumi:"configs"` - // Registry mirrors - Mirrors []GetClusterV2RkeConfigRegistriesMirror `pulumi:"mirrors"` -} - -// GetClusterV2RkeConfigRegistriesInput is an input type that accepts GetClusterV2RkeConfigRegistriesArgs and GetClusterV2RkeConfigRegistriesOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesInput` via: -// -// GetClusterV2RkeConfigRegistriesArgs{...} -type GetClusterV2RkeConfigRegistriesInput interface { - pulumi.Input - - ToGetClusterV2RkeConfigRegistriesOutput() GetClusterV2RkeConfigRegistriesOutput - ToGetClusterV2RkeConfigRegistriesOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesOutput -} - -type GetClusterV2RkeConfigRegistriesArgs struct { - // Registry config - Configs GetClusterV2RkeConfigRegistriesConfigArrayInput `pulumi:"configs"` - // Registry mirrors - Mirrors GetClusterV2RkeConfigRegistriesMirrorArrayInput `pulumi:"mirrors"` -} - -func (GetClusterV2RkeConfigRegistriesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigRegistries)(nil)).Elem() -} - -func (i GetClusterV2RkeConfigRegistriesArgs) ToGetClusterV2RkeConfigRegistriesOutput() GetClusterV2RkeConfigRegistriesOutput { - return i.ToGetClusterV2RkeConfigRegistriesOutputWithContext(context.Background()) -} - -func (i GetClusterV2RkeConfigRegistriesArgs) ToGetClusterV2RkeConfigRegistriesOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesOutput) -} - -func (i GetClusterV2RkeConfigRegistriesArgs) ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput { - return i.ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(context.Background()) -} - -func (i GetClusterV2RkeConfigRegistriesArgs) ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesOutput).ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx) -} - -// GetClusterV2RkeConfigRegistriesPtrInput is an input type that accepts GetClusterV2RkeConfigRegistriesArgs, GetClusterV2RkeConfigRegistriesPtr and GetClusterV2RkeConfigRegistriesPtrOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesPtrInput` via: -// -// GetClusterV2RkeConfigRegistriesArgs{...} -// -// or: -// -// nil -type GetClusterV2RkeConfigRegistriesPtrInput interface { - pulumi.Input - - ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput - ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesPtrOutput -} - -type getClusterV2RkeConfigRegistriesPtrType GetClusterV2RkeConfigRegistriesArgs - -func GetClusterV2RkeConfigRegistriesPtr(v *GetClusterV2RkeConfigRegistriesArgs) GetClusterV2RkeConfigRegistriesPtrInput { - return (*getClusterV2RkeConfigRegistriesPtrType)(v) -} - -func (*getClusterV2RkeConfigRegistriesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigRegistries)(nil)).Elem() -} - -func (i *getClusterV2RkeConfigRegistriesPtrType) ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput { - return i.ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(context.Background()) -} - -func (i *getClusterV2RkeConfigRegistriesPtrType) ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesPtrOutput) -} - -type GetClusterV2RkeConfigRegistriesOutput struct{ *pulumi.OutputState } - -func (GetClusterV2RkeConfigRegistriesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigRegistries)(nil)).Elem() -} - -func (o GetClusterV2RkeConfigRegistriesOutput) ToGetClusterV2RkeConfigRegistriesOutput() GetClusterV2RkeConfigRegistriesOutput { - return o -} - -func (o GetClusterV2RkeConfigRegistriesOutput) ToGetClusterV2RkeConfigRegistriesOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesOutput { - return o -} - -func (o GetClusterV2RkeConfigRegistriesOutput) ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput { - return o.ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(context.Background()) -} - -func (o GetClusterV2RkeConfigRegistriesOutput) ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigRegistries) *GetClusterV2RkeConfigRegistries { - return &v - }).(GetClusterV2RkeConfigRegistriesPtrOutput) -} - -// Registry config -func (o GetClusterV2RkeConfigRegistriesOutput) Configs() GetClusterV2RkeConfigRegistriesConfigArrayOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistries) []GetClusterV2RkeConfigRegistriesConfig { return v.Configs }).(GetClusterV2RkeConfigRegistriesConfigArrayOutput) -} - -// Registry mirrors -func (o GetClusterV2RkeConfigRegistriesOutput) Mirrors() GetClusterV2RkeConfigRegistriesMirrorArrayOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistries) []GetClusterV2RkeConfigRegistriesMirror { return v.Mirrors }).(GetClusterV2RkeConfigRegistriesMirrorArrayOutput) -} - -type GetClusterV2RkeConfigRegistriesPtrOutput struct{ *pulumi.OutputState } - -func (GetClusterV2RkeConfigRegistriesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigRegistries)(nil)).Elem() -} - -func (o GetClusterV2RkeConfigRegistriesPtrOutput) ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput { - return o -} - -func (o GetClusterV2RkeConfigRegistriesPtrOutput) ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesPtrOutput { - return o -} - -func (o GetClusterV2RkeConfigRegistriesPtrOutput) Elem() GetClusterV2RkeConfigRegistriesOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigRegistries) GetClusterV2RkeConfigRegistries { - if v != nil { - return *v - } - var ret GetClusterV2RkeConfigRegistries - return ret - }).(GetClusterV2RkeConfigRegistriesOutput) -} - -// Registry config -func (o GetClusterV2RkeConfigRegistriesPtrOutput) Configs() GetClusterV2RkeConfigRegistriesConfigArrayOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigRegistries) []GetClusterV2RkeConfigRegistriesConfig { - if v == nil { - return nil - } - return v.Configs - }).(GetClusterV2RkeConfigRegistriesConfigArrayOutput) -} - -// Registry mirrors -func (o GetClusterV2RkeConfigRegistriesPtrOutput) Mirrors() GetClusterV2RkeConfigRegistriesMirrorArrayOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigRegistries) []GetClusterV2RkeConfigRegistriesMirror { - if v == nil { - return nil - } - return v.Mirrors - }).(GetClusterV2RkeConfigRegistriesMirrorArrayOutput) -} - -type GetClusterV2RkeConfigRegistriesConfig struct { - // Registry auth config secret name - AuthConfigSecretName *string `pulumi:"authConfigSecretName"` - // Registry CA bundle - CaBundle *string `pulumi:"caBundle"` - // Registry hostname - Hostname string `pulumi:"hostname"` - // Registry insecure connectivity - Insecure *bool `pulumi:"insecure"` - // Registry TLS secret name. TLS is a pair of Cert/Key - TlsSecretName *string `pulumi:"tlsSecretName"` +type GetClusterV2RkeConfigMachineSelectorFile struct { + // File sources + FileSources []GetClusterV2RkeConfigMachineSelectorFileFileSource `pulumi:"fileSources"` + // Machine label selector + MachineLabelSelector *GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector `pulumi:"machineLabelSelector"` } -// GetClusterV2RkeConfigRegistriesConfigInput is an input type that accepts GetClusterV2RkeConfigRegistriesConfigArgs and GetClusterV2RkeConfigRegistriesConfigOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesConfigInput` via: +// GetClusterV2RkeConfigMachineSelectorFileInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileArgs and GetClusterV2RkeConfigMachineSelectorFileOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileInput` via: // -// GetClusterV2RkeConfigRegistriesConfigArgs{...} -type GetClusterV2RkeConfigRegistriesConfigInput interface { +// GetClusterV2RkeConfigMachineSelectorFileArgs{...} +type GetClusterV2RkeConfigMachineSelectorFileInput interface { pulumi.Input - ToGetClusterV2RkeConfigRegistriesConfigOutput() GetClusterV2RkeConfigRegistriesConfigOutput - ToGetClusterV2RkeConfigRegistriesConfigOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesConfigOutput + ToGetClusterV2RkeConfigMachineSelectorFileOutput() GetClusterV2RkeConfigMachineSelectorFileOutput + ToGetClusterV2RkeConfigMachineSelectorFileOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileOutput } -type GetClusterV2RkeConfigRegistriesConfigArgs struct { - // Registry auth config secret name - AuthConfigSecretName pulumi.StringPtrInput `pulumi:"authConfigSecretName"` - // Registry CA bundle - CaBundle pulumi.StringPtrInput `pulumi:"caBundle"` - // Registry hostname - Hostname pulumi.StringInput `pulumi:"hostname"` - // Registry insecure connectivity - Insecure pulumi.BoolPtrInput `pulumi:"insecure"` - // Registry TLS secret name. TLS is a pair of Cert/Key - TlsSecretName pulumi.StringPtrInput `pulumi:"tlsSecretName"` +type GetClusterV2RkeConfigMachineSelectorFileArgs struct { + // File sources + FileSources GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput `pulumi:"fileSources"` + // Machine label selector + MachineLabelSelector GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput `pulumi:"machineLabelSelector"` } -func (GetClusterV2RkeConfigRegistriesConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigRegistriesConfig)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFile)(nil)).Elem() } -func (i GetClusterV2RkeConfigRegistriesConfigArgs) ToGetClusterV2RkeConfigRegistriesConfigOutput() GetClusterV2RkeConfigRegistriesConfigOutput { - return i.ToGetClusterV2RkeConfigRegistriesConfigOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileArgs) ToGetClusterV2RkeConfigMachineSelectorFileOutput() GetClusterV2RkeConfigMachineSelectorFileOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigRegistriesConfigArgs) ToGetClusterV2RkeConfigRegistriesConfigOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesConfigOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileArgs) ToGetClusterV2RkeConfigMachineSelectorFileOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileOutput) } -// GetClusterV2RkeConfigRegistriesConfigArrayInput is an input type that accepts GetClusterV2RkeConfigRegistriesConfigArray and GetClusterV2RkeConfigRegistriesConfigArrayOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesConfigArrayInput` via: +// GetClusterV2RkeConfigMachineSelectorFileArrayInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileArray and GetClusterV2RkeConfigMachineSelectorFileArrayOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileArrayInput` via: // -// GetClusterV2RkeConfigRegistriesConfigArray{ GetClusterV2RkeConfigRegistriesConfigArgs{...} } -type GetClusterV2RkeConfigRegistriesConfigArrayInput interface { +// GetClusterV2RkeConfigMachineSelectorFileArray{ GetClusterV2RkeConfigMachineSelectorFileArgs{...} } +type GetClusterV2RkeConfigMachineSelectorFileArrayInput interface { pulumi.Input - ToGetClusterV2RkeConfigRegistriesConfigArrayOutput() GetClusterV2RkeConfigRegistriesConfigArrayOutput - ToGetClusterV2RkeConfigRegistriesConfigArrayOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesConfigArrayOutput + ToGetClusterV2RkeConfigMachineSelectorFileArrayOutput() GetClusterV2RkeConfigMachineSelectorFileArrayOutput + ToGetClusterV2RkeConfigMachineSelectorFileArrayOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileArrayOutput } -type GetClusterV2RkeConfigRegistriesConfigArray []GetClusterV2RkeConfigRegistriesConfigInput +type GetClusterV2RkeConfigMachineSelectorFileArray []GetClusterV2RkeConfigMachineSelectorFileInput -func (GetClusterV2RkeConfigRegistriesConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetClusterV2RkeConfigRegistriesConfig)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFile)(nil)).Elem() } -func (i GetClusterV2RkeConfigRegistriesConfigArray) ToGetClusterV2RkeConfigRegistriesConfigArrayOutput() GetClusterV2RkeConfigRegistriesConfigArrayOutput { - return i.ToGetClusterV2RkeConfigRegistriesConfigArrayOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileArray) ToGetClusterV2RkeConfigMachineSelectorFileArrayOutput() GetClusterV2RkeConfigMachineSelectorFileArrayOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileArrayOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigRegistriesConfigArray) ToGetClusterV2RkeConfigRegistriesConfigArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesConfigArrayOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileArray) ToGetClusterV2RkeConfigMachineSelectorFileArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileArrayOutput) } -type GetClusterV2RkeConfigRegistriesConfigOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigRegistriesConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigRegistriesConfig)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFile)(nil)).Elem() } -func (o GetClusterV2RkeConfigRegistriesConfigOutput) ToGetClusterV2RkeConfigRegistriesConfigOutput() GetClusterV2RkeConfigRegistriesConfigOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileOutput) ToGetClusterV2RkeConfigMachineSelectorFileOutput() GetClusterV2RkeConfigMachineSelectorFileOutput { return o } -func (o GetClusterV2RkeConfigRegistriesConfigOutput) ToGetClusterV2RkeConfigRegistriesConfigOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesConfigOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileOutput) ToGetClusterV2RkeConfigMachineSelectorFileOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileOutput { return o } -// Registry auth config secret name -func (o GetClusterV2RkeConfigRegistriesConfigOutput) AuthConfigSecretName() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) *string { return v.AuthConfigSecretName }).(pulumi.StringPtrOutput) +// File sources +func (o GetClusterV2RkeConfigMachineSelectorFileOutput) FileSources() GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFile) []GetClusterV2RkeConfigMachineSelectorFileFileSource { + return v.FileSources + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) } -// Registry CA bundle -func (o GetClusterV2RkeConfigRegistriesConfigOutput) CaBundle() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) *string { return v.CaBundle }).(pulumi.StringPtrOutput) -} - -// Registry hostname -func (o GetClusterV2RkeConfigRegistriesConfigOutput) Hostname() pulumi.StringOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) string { return v.Hostname }).(pulumi.StringOutput) -} - -// Registry insecure connectivity -func (o GetClusterV2RkeConfigRegistriesConfigOutput) Insecure() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) *bool { return v.Insecure }).(pulumi.BoolPtrOutput) -} - -// Registry TLS secret name. TLS is a pair of Cert/Key -func (o GetClusterV2RkeConfigRegistriesConfigOutput) TlsSecretName() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) *string { return v.TlsSecretName }).(pulumi.StringPtrOutput) +// Machine label selector +func (o GetClusterV2RkeConfigMachineSelectorFileOutput) MachineLabelSelector() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFile) *GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + return v.MachineLabelSelector + }).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) } -type GetClusterV2RkeConfigRegistriesConfigArrayOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileArrayOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigRegistriesConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetClusterV2RkeConfigRegistriesConfig)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFile)(nil)).Elem() } -func (o GetClusterV2RkeConfigRegistriesConfigArrayOutput) ToGetClusterV2RkeConfigRegistriesConfigArrayOutput() GetClusterV2RkeConfigRegistriesConfigArrayOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileArrayOutput() GetClusterV2RkeConfigMachineSelectorFileArrayOutput { return o } -func (o GetClusterV2RkeConfigRegistriesConfigArrayOutput) ToGetClusterV2RkeConfigRegistriesConfigArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesConfigArrayOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileArrayOutput { return o } -func (o GetClusterV2RkeConfigRegistriesConfigArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigRegistriesConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigRegistriesConfig { - return vs[0].([]GetClusterV2RkeConfigRegistriesConfig)[vs[1].(int)] - }).(GetClusterV2RkeConfigRegistriesConfigOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigMachineSelectorFileOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigMachineSelectorFile { + return vs[0].([]GetClusterV2RkeConfigMachineSelectorFile)[vs[1].(int)] + }).(GetClusterV2RkeConfigMachineSelectorFileOutput) } -type GetClusterV2RkeConfigRegistriesMirror struct { - // Registry mirror endpoints - Endpoints []string `pulumi:"endpoints"` - // Registry hostname - Hostname string `pulumi:"hostname"` - // Registry mirror rewrites - Rewrites map[string]interface{} `pulumi:"rewrites"` +type GetClusterV2RkeConfigMachineSelectorFileFileSource struct { + // The configmap which is the source of files + Configmap *GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap `pulumi:"configmap"` + // The secret which is the source of files + Secret *GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret `pulumi:"secret"` } -// GetClusterV2RkeConfigRegistriesMirrorInput is an input type that accepts GetClusterV2RkeConfigRegistriesMirrorArgs and GetClusterV2RkeConfigRegistriesMirrorOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesMirrorInput` via: +// GetClusterV2RkeConfigMachineSelectorFileFileSourceInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs and GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceInput` via: // -// GetClusterV2RkeConfigRegistriesMirrorArgs{...} -type GetClusterV2RkeConfigRegistriesMirrorInput interface { +// GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs{...} +type GetClusterV2RkeConfigMachineSelectorFileFileSourceInput interface { pulumi.Input - ToGetClusterV2RkeConfigRegistriesMirrorOutput() GetClusterV2RkeConfigRegistriesMirrorOutput - ToGetClusterV2RkeConfigRegistriesMirrorOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesMirrorOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput } -type GetClusterV2RkeConfigRegistriesMirrorArgs struct { - // Registry mirror endpoints - Endpoints pulumi.StringArrayInput `pulumi:"endpoints"` - // Registry hostname - Hostname pulumi.StringInput `pulumi:"hostname"` - // Registry mirror rewrites - Rewrites pulumi.MapInput `pulumi:"rewrites"` +type GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs struct { + // The configmap which is the source of files + Configmap GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput `pulumi:"configmap"` + // The secret which is the source of files + Secret GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput `pulumi:"secret"` } -func (GetClusterV2RkeConfigRegistriesMirrorArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigRegistriesMirror)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSource)(nil)).Elem() } -func (i GetClusterV2RkeConfigRegistriesMirrorArgs) ToGetClusterV2RkeConfigRegistriesMirrorOutput() GetClusterV2RkeConfigRegistriesMirrorOutput { - return i.ToGetClusterV2RkeConfigRegistriesMirrorOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigRegistriesMirrorArgs) ToGetClusterV2RkeConfigRegistriesMirrorOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesMirrorOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesMirrorOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput) } -// GetClusterV2RkeConfigRegistriesMirrorArrayInput is an input type that accepts GetClusterV2RkeConfigRegistriesMirrorArray and GetClusterV2RkeConfigRegistriesMirrorArrayOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesMirrorArrayInput` via: +// GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceArray and GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput` via: // -// GetClusterV2RkeConfigRegistriesMirrorArray{ GetClusterV2RkeConfigRegistriesMirrorArgs{...} } -type GetClusterV2RkeConfigRegistriesMirrorArrayInput interface { +// GetClusterV2RkeConfigMachineSelectorFileFileSourceArray{ GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs{...} } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput interface { pulumi.Input - ToGetClusterV2RkeConfigRegistriesMirrorArrayOutput() GetClusterV2RkeConfigRegistriesMirrorArrayOutput - ToGetClusterV2RkeConfigRegistriesMirrorArrayOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesMirrorArrayOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput } -type GetClusterV2RkeConfigRegistriesMirrorArray []GetClusterV2RkeConfigRegistriesMirrorInput +type GetClusterV2RkeConfigMachineSelectorFileFileSourceArray []GetClusterV2RkeConfigMachineSelectorFileFileSourceInput -func (GetClusterV2RkeConfigRegistriesMirrorArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetClusterV2RkeConfigRegistriesMirror)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFileFileSource)(nil)).Elem() } -func (i GetClusterV2RkeConfigRegistriesMirrorArray) ToGetClusterV2RkeConfigRegistriesMirrorArrayOutput() GetClusterV2RkeConfigRegistriesMirrorArrayOutput { - return i.ToGetClusterV2RkeConfigRegistriesMirrorArrayOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceArray) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigRegistriesMirrorArray) ToGetClusterV2RkeConfigRegistriesMirrorArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesMirrorArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesMirrorArrayOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceArray) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) } -type GetClusterV2RkeConfigRegistriesMirrorOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigRegistriesMirrorOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigRegistriesMirror)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSource)(nil)).Elem() } -func (o GetClusterV2RkeConfigRegistriesMirrorOutput) ToGetClusterV2RkeConfigRegistriesMirrorOutput() GetClusterV2RkeConfigRegistriesMirrorOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput { return o } -func (o GetClusterV2RkeConfigRegistriesMirrorOutput) ToGetClusterV2RkeConfigRegistriesMirrorOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesMirrorOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput { return o } -// Registry mirror endpoints -func (o GetClusterV2RkeConfigRegistriesMirrorOutput) Endpoints() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesMirror) []string { return v.Endpoints }).(pulumi.StringArrayOutput) -} - -// Registry hostname -func (o GetClusterV2RkeConfigRegistriesMirrorOutput) Hostname() pulumi.StringOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesMirror) string { return v.Hostname }).(pulumi.StringOutput) +// The configmap which is the source of files +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput) Configmap() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSource) *GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + return v.Configmap + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) } -// Registry mirror rewrites -func (o GetClusterV2RkeConfigRegistriesMirrorOutput) Rewrites() pulumi.MapOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesMirror) map[string]interface{} { return v.Rewrites }).(pulumi.MapOutput) +// The secret which is the source of files +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput) Secret() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSource) *GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret { + return v.Secret + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) } -type GetClusterV2RkeConfigRegistriesMirrorArrayOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigRegistriesMirrorArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetClusterV2RkeConfigRegistriesMirror)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFileFileSource)(nil)).Elem() } -func (o GetClusterV2RkeConfigRegistriesMirrorArrayOutput) ToGetClusterV2RkeConfigRegistriesMirrorArrayOutput() GetClusterV2RkeConfigRegistriesMirrorArrayOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { return o } -func (o GetClusterV2RkeConfigRegistriesMirrorArrayOutput) ToGetClusterV2RkeConfigRegistriesMirrorArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesMirrorArrayOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput { return o } -func (o GetClusterV2RkeConfigRegistriesMirrorArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigRegistriesMirrorOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigRegistriesMirror { - return vs[0].([]GetClusterV2RkeConfigRegistriesMirror)[vs[1].(int)] - }).(GetClusterV2RkeConfigRegistriesMirrorOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigMachineSelectorFileFileSource { + return vs[0].([]GetClusterV2RkeConfigMachineSelectorFileFileSource)[vs[1].(int)] + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput) } -type GetClusterV2RkeConfigRotateCertificates struct { - // Desired certificate rotation generation. - Generation int `pulumi:"generation"` - // Service certificates to rotate with this generation. - Services []string `pulumi:"services"` +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap struct { + // The default permissions to be applied when they are not set at the item level + DefaultPermissions *string `pulumi:"defaultPermissions"` + // Items(files) to retrieve from the K8s object + Items []GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem `pulumi:"items"` + // The name of the Cluster v2 (string) + Name string `pulumi:"name"` } -// GetClusterV2RkeConfigRotateCertificatesInput is an input type that accepts GetClusterV2RkeConfigRotateCertificatesArgs and GetClusterV2RkeConfigRotateCertificatesOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigRotateCertificatesInput` via: +// GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs and GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapInput` via: // -// GetClusterV2RkeConfigRotateCertificatesArgs{...} -type GetClusterV2RkeConfigRotateCertificatesInput interface { +// GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs{...} +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapInput interface { pulumi.Input - ToGetClusterV2RkeConfigRotateCertificatesOutput() GetClusterV2RkeConfigRotateCertificatesOutput - ToGetClusterV2RkeConfigRotateCertificatesOutputWithContext(context.Context) GetClusterV2RkeConfigRotateCertificatesOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput } -type GetClusterV2RkeConfigRotateCertificatesArgs struct { - // Desired certificate rotation generation. - Generation pulumi.IntInput `pulumi:"generation"` - // Service certificates to rotate with this generation. - Services pulumi.StringArrayInput `pulumi:"services"` +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs struct { + // The default permissions to be applied when they are not set at the item level + DefaultPermissions pulumi.StringPtrInput `pulumi:"defaultPermissions"` + // Items(files) to retrieve from the K8s object + Items GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput `pulumi:"items"` + // The name of the Cluster v2 (string) + Name pulumi.StringInput `pulumi:"name"` } -func (GetClusterV2RkeConfigRotateCertificatesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigRotateCertificates)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap)(nil)).Elem() } -func (i GetClusterV2RkeConfigRotateCertificatesArgs) ToGetClusterV2RkeConfigRotateCertificatesOutput() GetClusterV2RkeConfigRotateCertificatesOutput { - return i.ToGetClusterV2RkeConfigRotateCertificatesOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigRotateCertificatesArgs) ToGetClusterV2RkeConfigRotateCertificatesOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRotateCertificatesOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) } -func (i GetClusterV2RkeConfigRotateCertificatesArgs) ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput { - return i.ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigRotateCertificatesArgs) ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRotateCertificatesOutput).ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput).ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx) } -// GetClusterV2RkeConfigRotateCertificatesPtrInput is an input type that accepts GetClusterV2RkeConfigRotateCertificatesArgs, GetClusterV2RkeConfigRotateCertificatesPtr and GetClusterV2RkeConfigRotateCertificatesPtrOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigRotateCertificatesPtrInput` via: +// GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs, GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtr and GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput` via: // -// GetClusterV2RkeConfigRotateCertificatesArgs{...} +// GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs{...} // // or: // // nil -type GetClusterV2RkeConfigRotateCertificatesPtrInput interface { +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput interface { pulumi.Input - ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput - ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput } -type getClusterV2RkeConfigRotateCertificatesPtrType GetClusterV2RkeConfigRotateCertificatesArgs +type getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs -func GetClusterV2RkeConfigRotateCertificatesPtr(v *GetClusterV2RkeConfigRotateCertificatesArgs) GetClusterV2RkeConfigRotateCertificatesPtrInput { - return (*getClusterV2RkeConfigRotateCertificatesPtrType)(v) +func GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtr(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput { + return (*getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType)(v) } -func (*getClusterV2RkeConfigRotateCertificatesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigRotateCertificates)(nil)).Elem() +func (*getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap)(nil)).Elem() } -func (i *getClusterV2RkeConfigRotateCertificatesPtrType) ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput { - return i.ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(context.Background()) +func (i *getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(context.Background()) } -func (i *getClusterV2RkeConfigRotateCertificatesPtrType) ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRotateCertificatesPtrOutput) +func (i *getClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrType) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) } -type GetClusterV2RkeConfigRotateCertificatesOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigRotateCertificatesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigRotateCertificates)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap)(nil)).Elem() } -func (o GetClusterV2RkeConfigRotateCertificatesOutput) ToGetClusterV2RkeConfigRotateCertificatesOutput() GetClusterV2RkeConfigRotateCertificatesOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { return o } -func (o GetClusterV2RkeConfigRotateCertificatesOutput) ToGetClusterV2RkeConfigRotateCertificatesOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { return o } -func (o GetClusterV2RkeConfigRotateCertificatesOutput) ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput { - return o.ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(context.Background()) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return o.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(context.Background()) } -func (o GetClusterV2RkeConfigRotateCertificatesOutput) ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigRotateCertificates) *GetClusterV2RkeConfigRotateCertificates { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) *GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { return &v - }).(GetClusterV2RkeConfigRotateCertificatesPtrOutput) + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) } -// Desired certificate rotation generation. -func (o GetClusterV2RkeConfigRotateCertificatesOutput) Generation() pulumi.IntOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRotateCertificates) int { return v.Generation }).(pulumi.IntOutput) +// The default permissions to be applied when they are not set at the item level +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) DefaultPermissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) *string { + return v.DefaultPermissions + }).(pulumi.StringPtrOutput) } -// Service certificates to rotate with this generation. -func (o GetClusterV2RkeConfigRotateCertificatesOutput) Services() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigRotateCertificates) []string { return v.Services }).(pulumi.StringArrayOutput) +// Items(files) to retrieve from the K8s object +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) Items() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) []GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + return v.Items + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) } -type GetClusterV2RkeConfigRotateCertificatesPtrOutput struct{ *pulumi.OutputState } +// The name of the Cluster v2 (string) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) string { return v.Name }).(pulumi.StringOutput) +} -func (GetClusterV2RkeConfigRotateCertificatesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigRotateCertificates)(nil)).Elem() +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap)(nil)).Elem() } -func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { return o } -func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput { return o } -func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) Elem() GetClusterV2RkeConfigRotateCertificatesOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigRotateCertificates) GetClusterV2RkeConfigRotateCertificates { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) Elem() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { if v != nil { return *v } - var ret GetClusterV2RkeConfigRotateCertificates + var ret GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap return ret - }).(GetClusterV2RkeConfigRotateCertificatesOutput) + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput) } -// Desired certificate rotation generation. -func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) Generation() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigRotateCertificates) *int { +// The default permissions to be applied when they are not set at the item level +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) DefaultPermissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) *string { if v == nil { return nil } - return &v.Generation - }).(pulumi.IntPtrOutput) + return v.DefaultPermissions + }).(pulumi.StringPtrOutput) } -// Service certificates to rotate with this generation. -func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) Services() pulumi.StringArrayOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigRotateCertificates) []string { +// Items(files) to retrieve from the K8s object +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) Items() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) []GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { if v == nil { return nil } - return v.Services - }).(pulumi.StringArrayOutput) + return v.Items + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) } -type GetClusterV2RkeConfigUpgradeStrategy struct { - // How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted - ControlPlaneConcurrency *string `pulumi:"controlPlaneConcurrency"` - // Controlplane nodes drain options - ControlPlaneDrainOptions *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions `pulumi:"controlPlaneDrainOptions"` - // How many worker nodes should be upgrade at time - WorkerConcurrency *string `pulumi:"workerConcurrency"` - // Worker nodes drain options - WorkerDrainOptions *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions `pulumi:"workerDrainOptions"` +// The name of the Cluster v2 (string) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// GetClusterV2RkeConfigUpgradeStrategyInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyArgs and GetClusterV2RkeConfigUpgradeStrategyOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyInput` via: -// -// GetClusterV2RkeConfigUpgradeStrategyArgs{...} -type GetClusterV2RkeConfigUpgradeStrategyInput interface { - pulumi.Input - - ToGetClusterV2RkeConfigUpgradeStrategyOutput() GetClusterV2RkeConfigUpgradeStrategyOutput - ToGetClusterV2RkeConfigUpgradeStrategyOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyOutput +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem struct { + // If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + Dynamic *bool `pulumi:"dynamic"` + // The base64 encoded value of the SHA256 checksum of the file's content + Hash *string `pulumi:"hash"` + // The key of the item(file) to retrieve + Key string `pulumi:"key"` + // The path to put the file in the target node + Path string `pulumi:"path"` + // The numeric representation of the file permissions + Permissions *string `pulumi:"permissions"` } -type GetClusterV2RkeConfigUpgradeStrategyArgs struct { - // How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted - ControlPlaneConcurrency pulumi.StringPtrInput `pulumi:"controlPlaneConcurrency"` - // Controlplane nodes drain options - ControlPlaneDrainOptions GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput `pulumi:"controlPlaneDrainOptions"` - // How many worker nodes should be upgrade at time - WorkerConcurrency pulumi.StringPtrInput `pulumi:"workerConcurrency"` - // Worker nodes drain options - WorkerDrainOptions GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput `pulumi:"workerDrainOptions"` -} +// GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs and GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput` via: +// +// GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs{...} +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput interface { + pulumi.Input -func (GetClusterV2RkeConfigUpgradeStrategyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategy)(nil)).Elem() + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput } -func (i GetClusterV2RkeConfigUpgradeStrategyArgs) ToGetClusterV2RkeConfigUpgradeStrategyOutput() GetClusterV2RkeConfigUpgradeStrategyOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyOutputWithContext(context.Background()) +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs struct { + // If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + Dynamic pulumi.BoolPtrInput `pulumi:"dynamic"` + // The base64 encoded value of the SHA256 checksum of the file's content + Hash pulumi.StringPtrInput `pulumi:"hash"` + // The key of the item(file) to retrieve + Key pulumi.StringInput `pulumi:"key"` + // The path to put the file in the target node + Path pulumi.StringInput `pulumi:"path"` + // The numeric representation of the file permissions + Permissions pulumi.StringPtrInput `pulumi:"permissions"` } -func (i GetClusterV2RkeConfigUpgradeStrategyArgs) ToGetClusterV2RkeConfigUpgradeStrategyOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyOutput) +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)(nil)).Elem() } -func (i GetClusterV2RkeConfigUpgradeStrategyArgs) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigUpgradeStrategyArgs) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyOutput).ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) } -// GetClusterV2RkeConfigUpgradeStrategyPtrInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyArgs, GetClusterV2RkeConfigUpgradeStrategyPtr and GetClusterV2RkeConfigUpgradeStrategyPtrOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyPtrInput` via: +// GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray and GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput` via: // -// GetClusterV2RkeConfigUpgradeStrategyArgs{...} -// -// or: -// -// nil -type GetClusterV2RkeConfigUpgradeStrategyPtrInput interface { +// GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray{ GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs{...} } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput interface { pulumi.Input - ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput - ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput } -type getClusterV2RkeConfigUpgradeStrategyPtrType GetClusterV2RkeConfigUpgradeStrategyArgs - -func GetClusterV2RkeConfigUpgradeStrategyPtr(v *GetClusterV2RkeConfigUpgradeStrategyArgs) GetClusterV2RkeConfigUpgradeStrategyPtrInput { - return (*getClusterV2RkeConfigUpgradeStrategyPtrType)(v) -} +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray []GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput -func (*getClusterV2RkeConfigUpgradeStrategyPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategy)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)(nil)).Elem() } -func (i *getClusterV2RkeConfigUpgradeStrategyPtrType) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutputWithContext(context.Background()) } -func (i *getClusterV2RkeConfigUpgradeStrategyPtrType) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyPtrOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) } -type GetClusterV2RkeConfigUpgradeStrategyOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigUpgradeStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategy)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)(nil)).Elem() } -func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ToGetClusterV2RkeConfigUpgradeStrategyOutput() GetClusterV2RkeConfigUpgradeStrategyOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ToGetClusterV2RkeConfigUpgradeStrategyOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput { - return o.ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) -} - -func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategy { - return &v - }).(GetClusterV2RkeConfigUpgradeStrategyPtrOutput) +// If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Dynamic() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) *bool { return v.Dynamic }).(pulumi.BoolPtrOutput) } -// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted -func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ControlPlaneConcurrency() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategy) *string { return v.ControlPlaneConcurrency }).(pulumi.StringPtrOutput) +// The base64 encoded value of the SHA256 checksum of the file's content +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Hash() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) *string { return v.Hash }).(pulumi.StringPtrOutput) } -// Controlplane nodes drain options -func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ControlPlaneDrainOptions() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { - return v.ControlPlaneDrainOptions - }).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) +// The key of the item(file) to retrieve +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) string { return v.Key }).(pulumi.StringOutput) } -// How many worker nodes should be upgrade at time -func (o GetClusterV2RkeConfigUpgradeStrategyOutput) WorkerConcurrency() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategy) *string { return v.WorkerConcurrency }).(pulumi.StringPtrOutput) +// The path to put the file in the target node +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Path() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) string { return v.Path }).(pulumi.StringOutput) } -// Worker nodes drain options -func (o GetClusterV2RkeConfigUpgradeStrategyOutput) WorkerDrainOptions() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { - return v.WorkerDrainOptions - }).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) +// The numeric representation of the file permissions +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) Permissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem) *string { return v.Permissions }).(pulumi.StringPtrOutput) } -type GetClusterV2RkeConfigUpgradeStrategyPtrOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategy)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)(nil)).Elem() } -func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) Elem() GetClusterV2RkeConfigUpgradeStrategyOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) GetClusterV2RkeConfigUpgradeStrategy { - if v != nil { - return *v - } - var ret GetClusterV2RkeConfigUpgradeStrategy - return ret - }).(GetClusterV2RkeConfigUpgradeStrategyOutput) -} - -// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted -func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ControlPlaneConcurrency() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) *string { - if v == nil { - return nil - } - return v.ControlPlaneConcurrency - }).(pulumi.StringPtrOutput) -} - -// Controlplane nodes drain options -func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ControlPlaneDrainOptions() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { - if v == nil { - return nil - } - return v.ControlPlaneDrainOptions - }).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) -} - -// How many worker nodes should be upgrade at time -func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) WorkerConcurrency() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) *string { - if v == nil { - return nil - } - return v.WorkerConcurrency - }).(pulumi.StringPtrOutput) -} - -// Worker nodes drain options -func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) WorkerDrainOptions() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { - if v == nil { - return nil - } - return v.WorkerDrainOptions - }).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + return vs[0].([]GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem)[vs[1].(int)] + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput) } -type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions struct { - // Drain options delete empty dir data - DeleteEmptyDirData *bool `pulumi:"deleteEmptyDirData"` - // Drain options disable eviction - DisableEviction *bool `pulumi:"disableEviction"` - // Drain options enabled? - Enabled *bool `pulumi:"enabled"` - // Drain options force - Force *bool `pulumi:"force"` - // Drain options grace period - GracePeriod int `pulumi:"gracePeriod"` - // Drain options ignore daemon sets - IgnoreDaemonSets *bool `pulumi:"ignoreDaemonSets"` - // Drain options ignore errors - IgnoreErrors *bool `pulumi:"ignoreErrors"` - // Drain options skip wait for delete timeout seconds - SkipWaitForDeleteTimeoutSeconds int `pulumi:"skipWaitForDeleteTimeoutSeconds"` - // Drain options timeout - Timeout int `pulumi:"timeout"` +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret struct { + // The default permissions to be applied when they are not set at the item level + DefaultPermissions *string `pulumi:"defaultPermissions"` + // Items(files) to retrieve from the K8s object + Items []GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem `pulumi:"items"` + // The name of the Cluster v2 (string) + Name string `pulumi:"name"` } -// GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs and GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsInput` via: +// GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs and GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretInput` via: // -// GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs{...} -type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsInput interface { +// GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs{...} +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretInput interface { pulumi.Input - ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput - ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput } -type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs struct { - // Drain options delete empty dir data - DeleteEmptyDirData pulumi.BoolPtrInput `pulumi:"deleteEmptyDirData"` - // Drain options disable eviction - DisableEviction pulumi.BoolPtrInput `pulumi:"disableEviction"` - // Drain options enabled? - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - // Drain options force - Force pulumi.BoolPtrInput `pulumi:"force"` - // Drain options grace period - GracePeriod pulumi.IntInput `pulumi:"gracePeriod"` - // Drain options ignore daemon sets - IgnoreDaemonSets pulumi.BoolPtrInput `pulumi:"ignoreDaemonSets"` - // Drain options ignore errors - IgnoreErrors pulumi.BoolPtrInput `pulumi:"ignoreErrors"` - // Drain options skip wait for delete timeout seconds - SkipWaitForDeleteTimeoutSeconds pulumi.IntInput `pulumi:"skipWaitForDeleteTimeoutSeconds"` - // Drain options timeout - Timeout pulumi.IntInput `pulumi:"timeout"` +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs struct { + // The default permissions to be applied when they are not set at the item level + DefaultPermissions pulumi.StringPtrInput `pulumi:"defaultPermissions"` + // Items(files) to retrieve from the K8s object + Items GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput `pulumi:"items"` + // The name of the Cluster v2 (string) + Name pulumi.StringInput `pulumi:"name"` } -func (GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret)(nil)).Elem() } -func (i GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) } -func (i GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput).ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput).ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx) } -// GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs, GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtr and GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput` via: +// GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs, GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtr and GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput` via: // -// GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs{...} +// GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs{...} // // or: // // nil -type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput interface { +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput interface { pulumi.Input - ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput - ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput } -type getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs +type getClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs -func GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtr(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput { - return (*getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType)(v) +func GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtr(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput { + return (*getClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType)(v) } -func (*getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions)(nil)).Elem() +func (*getClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret)(nil)).Elem() } -func (i *getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(context.Background()) +func (i *getClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(context.Background()) } -func (i *getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) +func (i *getClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrType) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) } -type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret)(nil)).Elem() } -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { - return o.ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(context.Background()) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return o.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(context.Background()) } -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret) *GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret { return &v - }).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) -} - -// Drain options delete empty dir data -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { - return v.DeleteEmptyDirData - }).(pulumi.BoolPtrOutput) -} - -// Drain options disable eviction -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) DisableEviction() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.DisableEviction }).(pulumi.BoolPtrOutput) -} - -// Drain options enabled? -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) -} - -// Drain options force -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Force() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.Force }).(pulumi.BoolPtrOutput) -} - -// Drain options grace period -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) GracePeriod() pulumi.IntOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) int { return v.GracePeriod }).(pulumi.IntOutput) -} - -// Drain options ignore daemon sets -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.IgnoreDaemonSets }).(pulumi.BoolPtrOutput) + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) } -// Drain options ignore errors -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) IgnoreErrors() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.IgnoreErrors }).(pulumi.BoolPtrOutput) +// The default permissions to be applied when they are not set at the item level +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) DefaultPermissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret) *string { return v.DefaultPermissions }).(pulumi.StringPtrOutput) } -// Drain options skip wait for delete timeout seconds -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) int { - return v.SkipWaitForDeleteTimeoutSeconds - }).(pulumi.IntOutput) +// Items(files) to retrieve from the K8s object +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) Items() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret) []GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + return v.Items + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) } -// Drain options timeout -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Timeout() pulumi.IntOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) int { return v.Timeout }).(pulumi.IntOutput) +// The name of the Cluster v2 (string) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret) string { return v.Name }).(pulumi.StringOutput) } -type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput struct{ *pulumi.OutputState } -func (GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret)(nil)).Elem() } -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Elem() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) Elem() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret { if v != nil { return *v } - var ret GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions + var ret GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret return ret - }).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) -} - -// Drain options delete empty dir data -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { - if v == nil { - return nil - } - return v.DeleteEmptyDirData - }).(pulumi.BoolPtrOutput) -} - -// Drain options disable eviction -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) DisableEviction() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { - if v == nil { - return nil - } - return v.DisableEviction - }).(pulumi.BoolPtrOutput) -} - -// Drain options enabled? -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { - if v == nil { - return nil - } - return v.Enabled - }).(pulumi.BoolPtrOutput) -} - -// Drain options force -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Force() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { - if v == nil { - return nil - } - return v.Force - }).(pulumi.BoolPtrOutput) -} - -// Drain options grace period -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) GracePeriod() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { - if v == nil { - return nil - } - return &v.GracePeriod - }).(pulumi.IntPtrOutput) -} - -// Drain options ignore daemon sets -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { - if v == nil { - return nil - } - return v.IgnoreDaemonSets - }).(pulumi.BoolPtrOutput) + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput) } -// Drain options ignore errors -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) IgnoreErrors() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { +// The default permissions to be applied when they are not set at the item level +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) DefaultPermissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret) *string { if v == nil { return nil } - return v.IgnoreErrors - }).(pulumi.BoolPtrOutput) + return v.DefaultPermissions + }).(pulumi.StringPtrOutput) } -// Drain options skip wait for delete timeout seconds -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { +// Items(files) to retrieve from the K8s object +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) Items() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret) []GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { if v == nil { return nil } - return &v.SkipWaitForDeleteTimeoutSeconds - }).(pulumi.IntPtrOutput) + return v.Items + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) } -// Drain options timeout -func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { +// The name of the Cluster v2 (string) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret) *string { if v == nil { return nil - } - return &v.Timeout - }).(pulumi.IntPtrOutput) -} - -type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions struct { - // Drain options delete empty dir data - DeleteEmptyDirData *bool `pulumi:"deleteEmptyDirData"` - // Drain options disable eviction - DisableEviction *bool `pulumi:"disableEviction"` - // Drain options enabled? - Enabled *bool `pulumi:"enabled"` - // Drain options force - Force *bool `pulumi:"force"` - // Drain options grace period - GracePeriod int `pulumi:"gracePeriod"` - // Drain options ignore daemon sets - IgnoreDaemonSets *bool `pulumi:"ignoreDaemonSets"` - // Drain options ignore errors - IgnoreErrors *bool `pulumi:"ignoreErrors"` - // Drain options skip wait for delete timeout seconds - SkipWaitForDeleteTimeoutSeconds int `pulumi:"skipWaitForDeleteTimeoutSeconds"` - // Drain options timeout - Timeout int `pulumi:"timeout"` + } + return &v.Name + }).(pulumi.StringPtrOutput) } -// GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs and GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsInput` via: +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem struct { + // If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + Dynamic *bool `pulumi:"dynamic"` + // The base64 encoded value of the SHA256 checksum of the file's content + Hash *string `pulumi:"hash"` + // The key of the item(file) to retrieve + Key string `pulumi:"key"` + // The path to put the file in the target node + Path string `pulumi:"path"` + // The numeric representation of the file permissions + Permissions *string `pulumi:"permissions"` +} + +// GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs and GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput` via: // -// GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs{...} -type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsInput interface { +// GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs{...} +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput interface { pulumi.Input - ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput - ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput } -type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs struct { - // Drain options delete empty dir data - DeleteEmptyDirData pulumi.BoolPtrInput `pulumi:"deleteEmptyDirData"` - // Drain options disable eviction - DisableEviction pulumi.BoolPtrInput `pulumi:"disableEviction"` - // Drain options enabled? - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - // Drain options force - Force pulumi.BoolPtrInput `pulumi:"force"` - // Drain options grace period - GracePeriod pulumi.IntInput `pulumi:"gracePeriod"` - // Drain options ignore daemon sets - IgnoreDaemonSets pulumi.BoolPtrInput `pulumi:"ignoreDaemonSets"` - // Drain options ignore errors - IgnoreErrors pulumi.BoolPtrInput `pulumi:"ignoreErrors"` - // Drain options skip wait for delete timeout seconds - SkipWaitForDeleteTimeoutSeconds pulumi.IntInput `pulumi:"skipWaitForDeleteTimeoutSeconds"` - // Drain options timeout - Timeout pulumi.IntInput `pulumi:"timeout"` +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs struct { + // If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + Dynamic pulumi.BoolPtrInput `pulumi:"dynamic"` + // The base64 encoded value of the SHA256 checksum of the file's content + Hash pulumi.StringPtrInput `pulumi:"hash"` + // The key of the item(file) to retrieve + Key pulumi.StringInput `pulumi:"key"` + // The path to put the file in the target node + Path pulumi.StringInput `pulumi:"path"` + // The numeric representation of the file permissions + Permissions pulumi.StringPtrInput `pulumi:"permissions"` } -func (GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)(nil)).Elem() } -func (i GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutputWithContext(context.Background()) } -func (i GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) } -func (i GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(context.Background()) +// GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray and GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput` via: +// +// GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray{ GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs{...} } +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput interface { + pulumi.Input + + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput + ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput } -func (i GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput).ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx) +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray []GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput + +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)(nil)).Elem() } -// GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs, GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtr and GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput values. -// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput` via: -// -// GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs{...} -// -// or: -// -// nil -type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput interface { - pulumi.Input +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutputWithContext(context.Background()) +} - ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput - ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput +func (i GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) } -type getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput struct{ *pulumi.OutputState } -func GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtr(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput { - return (*getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType)(v) +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)(nil)).Elem() } -func (*getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions)(nil)).Elem() +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { + return o } -func (i *getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { - return i.ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(context.Background()) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { + return o } -func (i *getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) +// If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Dynamic() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) *bool { return v.Dynamic }).(pulumi.BoolPtrOutput) } -type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput struct{ *pulumi.OutputState } +// The base64 encoded value of the SHA256 checksum of the file's content +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Hash() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) *string { return v.Hash }).(pulumi.StringPtrOutput) +} -func (GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions)(nil)).Elem() +// The key of the item(file) to retrieve +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) string { return v.Key }).(pulumi.StringOutput) } -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { +// The path to put the file in the target node +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Path() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) string { return v.Path }).(pulumi.StringOutput) +} + +// The numeric representation of the file permissions +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) Permissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem) *string { return v.Permissions }).(pulumi.StringPtrOutput) +} + +type GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)(nil)).Elem() +} + +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput() GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { - return o.ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(context.Background()) +func (o GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + return vs[0].([]GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem)[vs[1].(int)] + }).(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput) } -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { - return &v - }).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector struct { + // Label selector match expressions + MatchExpressions []GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression `pulumi:"matchExpressions"` + // Label selector match labels + MatchLabels map[string]interface{} `pulumi:"matchLabels"` } -// Drain options delete empty dir data -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.DeleteEmptyDirData }).(pulumi.BoolPtrOutput) +// GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs and GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorInput` via: +// +// GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs{...} +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorInput interface { + pulumi.Input + + ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput + ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput } -// Drain options disable eviction -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) DisableEviction() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.DisableEviction }).(pulumi.BoolPtrOutput) +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs struct { + // Label selector match expressions + MatchExpressions GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput `pulumi:"matchExpressions"` + // Label selector match labels + MatchLabels pulumi.MapInput `pulumi:"matchLabels"` } -// Drain options enabled? -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) +func (GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector)(nil)).Elem() } -// Drain options force -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Force() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.Force }).(pulumi.BoolPtrOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutputWithContext(context.Background()) } -// Drain options grace period -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) GracePeriod() pulumi.IntOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) int { return v.GracePeriod }).(pulumi.IntOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) } -// Drain options ignore daemon sets -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.IgnoreDaemonSets }).(pulumi.BoolPtrOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(context.Background()) } -// Drain options ignore errors -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) IgnoreErrors() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.IgnoreErrors }).(pulumi.BoolPtrOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput).ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx) } -// Drain options skip wait for delete timeout seconds -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) int { - return v.SkipWaitForDeleteTimeoutSeconds - }).(pulumi.IntOutput) +// GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs, GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtr and GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput` via: +// +// GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs{...} +// +// or: +// +// nil +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput interface { + pulumi.Input + + ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput + ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput } -// Drain options timeout -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Timeout() pulumi.IntOutput { - return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) int { return v.Timeout }).(pulumi.IntOutput) +type getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs + +func GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtr(v *GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput { + return (*getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType)(v) } -type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput struct{ *pulumi.OutputState } +func (*getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector)(nil)).Elem() +} -func (GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions)(nil)).Elem() +func (i *getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(context.Background()) } -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { +func (i *getClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrType) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) +} + +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector)(nil)).Elem() +} + +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { return o } -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Elem() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { - if v != nil { - return *v - } - var ret GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions - return ret - }).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return o.ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(context.Background()) } -// Drain options delete empty dir data -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { - if v == nil { - return nil - } - return v.DeleteEmptyDirData - }).(pulumi.BoolPtrOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) *GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + return &v + }).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) } -// Drain options disable eviction -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) DisableEviction() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { - if v == nil { - return nil - } - return v.DisableEviction - }).(pulumi.BoolPtrOutput) +// Label selector match expressions +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) MatchExpressions() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) []GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { + return v.MatchExpressions + }).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) } -// Drain options enabled? -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { - if v == nil { - return nil - } - return v.Enabled - }).(pulumi.BoolPtrOutput) +// Label selector match labels +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) MatchLabels() pulumi.MapOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) map[string]interface{} { + return v.MatchLabels + }).(pulumi.MapOutput) } -// Drain options force -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Force() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { - if v == nil { - return nil - } - return v.Force - }).(pulumi.BoolPtrOutput) +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector)(nil)).Elem() } -// Drain options grace period -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) GracePeriod() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { - if v == nil { - return nil - } - return &v.GracePeriod - }).(pulumi.IntPtrOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return o } -// Drain options ignore daemon sets -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { - if v == nil { - return nil - } - return v.IgnoreDaemonSets - }).(pulumi.BoolPtrOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput { + return o } -// Drain options ignore errors -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) IgnoreErrors() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { - if v == nil { - return nil +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) Elem() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + if v != nil { + return *v } - return v.IgnoreErrors - }).(pulumi.BoolPtrOutput) + var ret GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector + return ret + }).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput) } -// Drain options skip wait for delete timeout seconds -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { +// Label selector match expressions +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) MatchExpressions() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) []GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { if v == nil { return nil } - return &v.SkipWaitForDeleteTimeoutSeconds - }).(pulumi.IntPtrOutput) + return v.MatchExpressions + }).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) } -// Drain options timeout -func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Timeout() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { +// Label selector match labels +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput) MatchLabels() pulumi.MapOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector) map[string]interface{} { if v == nil { return nil } - return &v.Timeout - }).(pulumi.IntPtrOutput) + return v.MatchLabels + }).(pulumi.MapOutput) } -type GetEtcdBackupBackupConfig struct { - Enabled *bool `pulumi:"enabled"` - IntervalHours *int `pulumi:"intervalHours"` - Retention *int `pulumi:"retention"` - S3BackupConfig *GetEtcdBackupBackupConfigS3BackupConfig `pulumi:"s3BackupConfig"` - SafeTimestamp *bool `pulumi:"safeTimestamp"` - Timeout int `pulumi:"timeout"` +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression struct { + // Label selector requirement key + Key *string `pulumi:"key"` + // Label selector operator + Operator *string `pulumi:"operator"` + // Label selector requirement values + Values []string `pulumi:"values"` } -// GetEtcdBackupBackupConfigInput is an input type that accepts GetEtcdBackupBackupConfigArgs and GetEtcdBackupBackupConfigOutput values. -// You can construct a concrete instance of `GetEtcdBackupBackupConfigInput` via: +// GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs and GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput` via: // -// GetEtcdBackupBackupConfigArgs{...} -type GetEtcdBackupBackupConfigInput interface { +// GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs{...} +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput interface { pulumi.Input - ToGetEtcdBackupBackupConfigOutput() GetEtcdBackupBackupConfigOutput - ToGetEtcdBackupBackupConfigOutputWithContext(context.Context) GetEtcdBackupBackupConfigOutput + ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput + ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput } -type GetEtcdBackupBackupConfigArgs struct { - Enabled pulumi.BoolPtrInput `pulumi:"enabled"` - IntervalHours pulumi.IntPtrInput `pulumi:"intervalHours"` - Retention pulumi.IntPtrInput `pulumi:"retention"` - S3BackupConfig GetEtcdBackupBackupConfigS3BackupConfigPtrInput `pulumi:"s3BackupConfig"` - SafeTimestamp pulumi.BoolPtrInput `pulumi:"safeTimestamp"` - Timeout pulumi.IntInput `pulumi:"timeout"` +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs struct { + // Label selector requirement key + Key pulumi.StringPtrInput `pulumi:"key"` + // Label selector operator + Operator pulumi.StringPtrInput `pulumi:"operator"` + // Label selector requirement values + Values pulumi.StringArrayInput `pulumi:"values"` } -func (GetEtcdBackupBackupConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetEtcdBackupBackupConfig)(nil)).Elem() +func (GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)(nil)).Elem() } -func (i GetEtcdBackupBackupConfigArgs) ToGetEtcdBackupBackupConfigOutput() GetEtcdBackupBackupConfigOutput { - return i.ToGetEtcdBackupBackupConfigOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutputWithContext(context.Background()) } -func (i GetEtcdBackupBackupConfigArgs) ToGetEtcdBackupBackupConfigOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetEtcdBackupBackupConfigOutput) +func (i GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) } -type GetEtcdBackupBackupConfigOutput struct{ *pulumi.OutputState } +// GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput is an input type that accepts GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray and GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput` via: +// +// GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray{ GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs{...} } +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput interface { + pulumi.Input -func (GetEtcdBackupBackupConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetEtcdBackupBackupConfig)(nil)).Elem() + ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput + ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutputWithContext(context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput } -func (o GetEtcdBackupBackupConfigOutput) ToGetEtcdBackupBackupConfigOutput() GetEtcdBackupBackupConfigOutput { +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray []GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput + +func (GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)(nil)).Elem() +} + +func (i GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return i.ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutputWithContext(context.Background()) +} + +func (i GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) +} + +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)(nil)).Elem() +} + +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { return o } -func (o GetEtcdBackupBackupConfigOutput) ToGetEtcdBackupBackupConfigOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigOutput { +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { return o } -func (o GetEtcdBackupBackupConfigOutput) Enabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfig) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) +// Label selector requirement key +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression) *string { + return v.Key + }).(pulumi.StringPtrOutput) } -func (o GetEtcdBackupBackupConfigOutput) IntervalHours() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfig) *int { return v.IntervalHours }).(pulumi.IntPtrOutput) +// Label selector operator +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) Operator() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression) *string { + return v.Operator + }).(pulumi.StringPtrOutput) } -func (o GetEtcdBackupBackupConfigOutput) Retention() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfig) *int { return v.Retention }).(pulumi.IntPtrOutput) +// Label selector requirement values +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression) []string { + return v.Values + }).(pulumi.StringArrayOutput) } -func (o GetEtcdBackupBackupConfigOutput) S3BackupConfig() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfig) *GetEtcdBackupBackupConfigS3BackupConfig { return v.S3BackupConfig }).(GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) +type GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)(nil)).Elem() } -func (o GetEtcdBackupBackupConfigOutput) SafeTimestamp() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfig) *bool { return v.SafeTimestamp }).(pulumi.BoolPtrOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput() GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return o } -func (o GetEtcdBackupBackupConfigOutput) Timeout() pulumi.IntOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfig) int { return v.Timeout }).(pulumi.IntOutput) +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) ToGetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput { + return o } -type GetEtcdBackupBackupConfigS3BackupConfig struct { - AccessKey *string `pulumi:"accessKey"` - BucketName string `pulumi:"bucketName"` - CustomCa *string `pulumi:"customCa"` - Endpoint string `pulumi:"endpoint"` - Folder *string `pulumi:"folder"` - Region *string `pulumi:"region"` - SecretKey *string `pulumi:"secretKey"` +func (o GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { + return vs[0].([]GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression)[vs[1].(int)] + }).(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput) } -// GetEtcdBackupBackupConfigS3BackupConfigInput is an input type that accepts GetEtcdBackupBackupConfigS3BackupConfigArgs and GetEtcdBackupBackupConfigS3BackupConfigOutput values. -// You can construct a concrete instance of `GetEtcdBackupBackupConfigS3BackupConfigInput` via: +type GetClusterV2RkeConfigRegistries struct { + // Registry config + Configs []GetClusterV2RkeConfigRegistriesConfig `pulumi:"configs"` + // Registry mirrors + Mirrors []GetClusterV2RkeConfigRegistriesMirror `pulumi:"mirrors"` +} + +// GetClusterV2RkeConfigRegistriesInput is an input type that accepts GetClusterV2RkeConfigRegistriesArgs and GetClusterV2RkeConfigRegistriesOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesInput` via: // -// GetEtcdBackupBackupConfigS3BackupConfigArgs{...} -type GetEtcdBackupBackupConfigS3BackupConfigInput interface { +// GetClusterV2RkeConfigRegistriesArgs{...} +type GetClusterV2RkeConfigRegistriesInput interface { pulumi.Input - ToGetEtcdBackupBackupConfigS3BackupConfigOutput() GetEtcdBackupBackupConfigS3BackupConfigOutput - ToGetEtcdBackupBackupConfigS3BackupConfigOutputWithContext(context.Context) GetEtcdBackupBackupConfigS3BackupConfigOutput + ToGetClusterV2RkeConfigRegistriesOutput() GetClusterV2RkeConfigRegistriesOutput + ToGetClusterV2RkeConfigRegistriesOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesOutput } -type GetEtcdBackupBackupConfigS3BackupConfigArgs struct { - AccessKey pulumi.StringPtrInput `pulumi:"accessKey"` - BucketName pulumi.StringInput `pulumi:"bucketName"` - CustomCa pulumi.StringPtrInput `pulumi:"customCa"` - Endpoint pulumi.StringInput `pulumi:"endpoint"` - Folder pulumi.StringPtrInput `pulumi:"folder"` - Region pulumi.StringPtrInput `pulumi:"region"` - SecretKey pulumi.StringPtrInput `pulumi:"secretKey"` +type GetClusterV2RkeConfigRegistriesArgs struct { + // Registry config + Configs GetClusterV2RkeConfigRegistriesConfigArrayInput `pulumi:"configs"` + // Registry mirrors + Mirrors GetClusterV2RkeConfigRegistriesMirrorArrayInput `pulumi:"mirrors"` } -func (GetEtcdBackupBackupConfigS3BackupConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetEtcdBackupBackupConfigS3BackupConfig)(nil)).Elem() +func (GetClusterV2RkeConfigRegistriesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigRegistries)(nil)).Elem() } -func (i GetEtcdBackupBackupConfigS3BackupConfigArgs) ToGetEtcdBackupBackupConfigS3BackupConfigOutput() GetEtcdBackupBackupConfigS3BackupConfigOutput { - return i.ToGetEtcdBackupBackupConfigS3BackupConfigOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigRegistriesArgs) ToGetClusterV2RkeConfigRegistriesOutput() GetClusterV2RkeConfigRegistriesOutput { + return i.ToGetClusterV2RkeConfigRegistriesOutputWithContext(context.Background()) } -func (i GetEtcdBackupBackupConfigS3BackupConfigArgs) ToGetEtcdBackupBackupConfigS3BackupConfigOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetEtcdBackupBackupConfigS3BackupConfigOutput) +func (i GetClusterV2RkeConfigRegistriesArgs) ToGetClusterV2RkeConfigRegistriesOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesOutput) } -func (i GetEtcdBackupBackupConfigS3BackupConfigArgs) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { - return i.ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigRegistriesArgs) ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput { + return i.ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(context.Background()) } -func (i GetEtcdBackupBackupConfigS3BackupConfigArgs) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetEtcdBackupBackupConfigS3BackupConfigOutput).ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx) +func (i GetClusterV2RkeConfigRegistriesArgs) ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesOutput).ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx) } -// GetEtcdBackupBackupConfigS3BackupConfigPtrInput is an input type that accepts GetEtcdBackupBackupConfigS3BackupConfigArgs, GetEtcdBackupBackupConfigS3BackupConfigPtr and GetEtcdBackupBackupConfigS3BackupConfigPtrOutput values. -// You can construct a concrete instance of `GetEtcdBackupBackupConfigS3BackupConfigPtrInput` via: +// GetClusterV2RkeConfigRegistriesPtrInput is an input type that accepts GetClusterV2RkeConfigRegistriesArgs, GetClusterV2RkeConfigRegistriesPtr and GetClusterV2RkeConfigRegistriesPtrOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesPtrInput` via: // -// GetEtcdBackupBackupConfigS3BackupConfigArgs{...} +// GetClusterV2RkeConfigRegistriesArgs{...} // // or: // // nil -type GetEtcdBackupBackupConfigS3BackupConfigPtrInput interface { +type GetClusterV2RkeConfigRegistriesPtrInput interface { pulumi.Input - ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput - ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput + ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput + ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesPtrOutput } -type getEtcdBackupBackupConfigS3BackupConfigPtrType GetEtcdBackupBackupConfigS3BackupConfigArgs +type getClusterV2RkeConfigRegistriesPtrType GetClusterV2RkeConfigRegistriesArgs -func GetEtcdBackupBackupConfigS3BackupConfigPtr(v *GetEtcdBackupBackupConfigS3BackupConfigArgs) GetEtcdBackupBackupConfigS3BackupConfigPtrInput { - return (*getEtcdBackupBackupConfigS3BackupConfigPtrType)(v) +func GetClusterV2RkeConfigRegistriesPtr(v *GetClusterV2RkeConfigRegistriesArgs) GetClusterV2RkeConfigRegistriesPtrInput { + return (*getClusterV2RkeConfigRegistriesPtrType)(v) } -func (*getEtcdBackupBackupConfigS3BackupConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetEtcdBackupBackupConfigS3BackupConfig)(nil)).Elem() +func (*getClusterV2RkeConfigRegistriesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigRegistries)(nil)).Elem() } -func (i *getEtcdBackupBackupConfigS3BackupConfigPtrType) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { - return i.ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) +func (i *getClusterV2RkeConfigRegistriesPtrType) ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput { + return i.ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(context.Background()) } -func (i *getEtcdBackupBackupConfigS3BackupConfigPtrType) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) +func (i *getClusterV2RkeConfigRegistriesPtrType) ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesPtrOutput) } -type GetEtcdBackupBackupConfigS3BackupConfigOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigRegistriesOutput struct{ *pulumi.OutputState } -func (GetEtcdBackupBackupConfigS3BackupConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetEtcdBackupBackupConfigS3BackupConfig)(nil)).Elem() +func (GetClusterV2RkeConfigRegistriesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigRegistries)(nil)).Elem() } -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) ToGetEtcdBackupBackupConfigS3BackupConfigOutput() GetEtcdBackupBackupConfigS3BackupConfigOutput { +func (o GetClusterV2RkeConfigRegistriesOutput) ToGetClusterV2RkeConfigRegistriesOutput() GetClusterV2RkeConfigRegistriesOutput { return o } -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) ToGetEtcdBackupBackupConfigS3BackupConfigOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigOutput { +func (o GetClusterV2RkeConfigRegistriesOutput) ToGetClusterV2RkeConfigRegistriesOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesOutput { return o } -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { - return o.ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) +func (o GetClusterV2RkeConfigRegistriesOutput) ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput { + return o.ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(context.Background()) } -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetEtcdBackupBackupConfigS3BackupConfig) *GetEtcdBackupBackupConfigS3BackupConfig { +func (o GetClusterV2RkeConfigRegistriesOutput) ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigRegistries) *GetClusterV2RkeConfigRegistries { return &v - }).(GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) AccessKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.AccessKey }).(pulumi.StringPtrOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) BucketName() pulumi.StringOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) string { return v.BucketName }).(pulumi.StringOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) CustomCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.CustomCa }).(pulumi.StringPtrOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) Endpoint() pulumi.StringOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) string { return v.Endpoint }).(pulumi.StringOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) Folder() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.Folder }).(pulumi.StringPtrOutput) + }).(GetClusterV2RkeConfigRegistriesPtrOutput) } -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.Region }).(pulumi.StringPtrOutput) +// Registry config +func (o GetClusterV2RkeConfigRegistriesOutput) Configs() GetClusterV2RkeConfigRegistriesConfigArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistries) []GetClusterV2RkeConfigRegistriesConfig { return v.Configs }).(GetClusterV2RkeConfigRegistriesConfigArrayOutput) } -func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) SecretKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.SecretKey }).(pulumi.StringPtrOutput) +// Registry mirrors +func (o GetClusterV2RkeConfigRegistriesOutput) Mirrors() GetClusterV2RkeConfigRegistriesMirrorArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistries) []GetClusterV2RkeConfigRegistriesMirror { return v.Mirrors }).(GetClusterV2RkeConfigRegistriesMirrorArrayOutput) } -type GetEtcdBackupBackupConfigS3BackupConfigPtrOutput struct{ *pulumi.OutputState } - -func (GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetEtcdBackupBackupConfigS3BackupConfig)(nil)).Elem() -} +type GetClusterV2RkeConfigRegistriesPtrOutput struct{ *pulumi.OutputState } -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { - return o +func (GetClusterV2RkeConfigRegistriesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigRegistries)(nil)).Elem() } -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { +func (o GetClusterV2RkeConfigRegistriesPtrOutput) ToGetClusterV2RkeConfigRegistriesPtrOutput() GetClusterV2RkeConfigRegistriesPtrOutput { return o } -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) Elem() GetEtcdBackupBackupConfigS3BackupConfigOutput { - return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) GetEtcdBackupBackupConfigS3BackupConfig { - if v != nil { - return *v - } - var ret GetEtcdBackupBackupConfigS3BackupConfig - return ret - }).(GetEtcdBackupBackupConfigS3BackupConfigOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) AccessKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { - if v == nil { - return nil - } - return v.AccessKey - }).(pulumi.StringPtrOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) BucketName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { - if v == nil { - return nil - } - return &v.BucketName - }).(pulumi.StringPtrOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) CustomCa() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { - if v == nil { - return nil - } - return v.CustomCa - }).(pulumi.StringPtrOutput) -} - -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) Endpoint() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { - if v == nil { - return nil - } - return &v.Endpoint - }).(pulumi.StringPtrOutput) +func (o GetClusterV2RkeConfigRegistriesPtrOutput) ToGetClusterV2RkeConfigRegistriesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesPtrOutput { + return o } -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) Folder() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { - if v == nil { - return nil +func (o GetClusterV2RkeConfigRegistriesPtrOutput) Elem() GetClusterV2RkeConfigRegistriesOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigRegistries) GetClusterV2RkeConfigRegistries { + if v != nil { + return *v } - return v.Folder - }).(pulumi.StringPtrOutput) + var ret GetClusterV2RkeConfigRegistries + return ret + }).(GetClusterV2RkeConfigRegistriesOutput) } -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { +// Registry config +func (o GetClusterV2RkeConfigRegistriesPtrOutput) Configs() GetClusterV2RkeConfigRegistriesConfigArrayOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigRegistries) []GetClusterV2RkeConfigRegistriesConfig { if v == nil { return nil } - return v.Region - }).(pulumi.StringPtrOutput) + return v.Configs + }).(GetClusterV2RkeConfigRegistriesConfigArrayOutput) } -func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) SecretKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { +// Registry mirrors +func (o GetClusterV2RkeConfigRegistriesPtrOutput) Mirrors() GetClusterV2RkeConfigRegistriesMirrorArrayOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigRegistries) []GetClusterV2RkeConfigRegistriesMirror { if v == nil { return nil } - return v.SecretKey - }).(pulumi.StringPtrOutput) + return v.Mirrors + }).(GetClusterV2RkeConfigRegistriesMirrorArrayOutput) } -type GetGlobalDnsProviderAlidnsConfig struct { - AccessKey string `pulumi:"accessKey"` - SecretKey string `pulumi:"secretKey"` +type GetClusterV2RkeConfigRegistriesConfig struct { + // Registry auth config secret name + AuthConfigSecretName *string `pulumi:"authConfigSecretName"` + // Registry CA bundle + CaBundle *string `pulumi:"caBundle"` + // Registry hostname + Hostname string `pulumi:"hostname"` + // Registry insecure connectivity + Insecure *bool `pulumi:"insecure"` + // Registry TLS secret name. TLS is a pair of Cert/Key + TlsSecretName *string `pulumi:"tlsSecretName"` } -// GetGlobalDnsProviderAlidnsConfigInput is an input type that accepts GetGlobalDnsProviderAlidnsConfigArgs and GetGlobalDnsProviderAlidnsConfigOutput values. -// You can construct a concrete instance of `GetGlobalDnsProviderAlidnsConfigInput` via: +// GetClusterV2RkeConfigRegistriesConfigInput is an input type that accepts GetClusterV2RkeConfigRegistriesConfigArgs and GetClusterV2RkeConfigRegistriesConfigOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesConfigInput` via: // -// GetGlobalDnsProviderAlidnsConfigArgs{...} -type GetGlobalDnsProviderAlidnsConfigInput interface { +// GetClusterV2RkeConfigRegistriesConfigArgs{...} +type GetClusterV2RkeConfigRegistriesConfigInput interface { pulumi.Input - ToGetGlobalDnsProviderAlidnsConfigOutput() GetGlobalDnsProviderAlidnsConfigOutput - ToGetGlobalDnsProviderAlidnsConfigOutputWithContext(context.Context) GetGlobalDnsProviderAlidnsConfigOutput + ToGetClusterV2RkeConfigRegistriesConfigOutput() GetClusterV2RkeConfigRegistriesConfigOutput + ToGetClusterV2RkeConfigRegistriesConfigOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesConfigOutput } -type GetGlobalDnsProviderAlidnsConfigArgs struct { - AccessKey pulumi.StringInput `pulumi:"accessKey"` - SecretKey pulumi.StringInput `pulumi:"secretKey"` +type GetClusterV2RkeConfigRegistriesConfigArgs struct { + // Registry auth config secret name + AuthConfigSecretName pulumi.StringPtrInput `pulumi:"authConfigSecretName"` + // Registry CA bundle + CaBundle pulumi.StringPtrInput `pulumi:"caBundle"` + // Registry hostname + Hostname pulumi.StringInput `pulumi:"hostname"` + // Registry insecure connectivity + Insecure pulumi.BoolPtrInput `pulumi:"insecure"` + // Registry TLS secret name. TLS is a pair of Cert/Key + TlsSecretName pulumi.StringPtrInput `pulumi:"tlsSecretName"` } -func (GetGlobalDnsProviderAlidnsConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetGlobalDnsProviderAlidnsConfig)(nil)).Elem() +func (GetClusterV2RkeConfigRegistriesConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigRegistriesConfig)(nil)).Elem() } -func (i GetGlobalDnsProviderAlidnsConfigArgs) ToGetGlobalDnsProviderAlidnsConfigOutput() GetGlobalDnsProviderAlidnsConfigOutput { - return i.ToGetGlobalDnsProviderAlidnsConfigOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigRegistriesConfigArgs) ToGetClusterV2RkeConfigRegistriesConfigOutput() GetClusterV2RkeConfigRegistriesConfigOutput { + return i.ToGetClusterV2RkeConfigRegistriesConfigOutputWithContext(context.Background()) } -func (i GetGlobalDnsProviderAlidnsConfigArgs) ToGetGlobalDnsProviderAlidnsConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderAlidnsConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetGlobalDnsProviderAlidnsConfigOutput) +func (i GetClusterV2RkeConfigRegistriesConfigArgs) ToGetClusterV2RkeConfigRegistriesConfigOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesConfigOutput) } -type GetGlobalDnsProviderAlidnsConfigOutput struct{ *pulumi.OutputState } +// GetClusterV2RkeConfigRegistriesConfigArrayInput is an input type that accepts GetClusterV2RkeConfigRegistriesConfigArray and GetClusterV2RkeConfigRegistriesConfigArrayOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesConfigArrayInput` via: +// +// GetClusterV2RkeConfigRegistriesConfigArray{ GetClusterV2RkeConfigRegistriesConfigArgs{...} } +type GetClusterV2RkeConfigRegistriesConfigArrayInput interface { + pulumi.Input -func (GetGlobalDnsProviderAlidnsConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetGlobalDnsProviderAlidnsConfig)(nil)).Elem() + ToGetClusterV2RkeConfigRegistriesConfigArrayOutput() GetClusterV2RkeConfigRegistriesConfigArrayOutput + ToGetClusterV2RkeConfigRegistriesConfigArrayOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesConfigArrayOutput } -func (o GetGlobalDnsProviderAlidnsConfigOutput) ToGetGlobalDnsProviderAlidnsConfigOutput() GetGlobalDnsProviderAlidnsConfigOutput { - return o +type GetClusterV2RkeConfigRegistriesConfigArray []GetClusterV2RkeConfigRegistriesConfigInput + +func (GetClusterV2RkeConfigRegistriesConfigArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigRegistriesConfig)(nil)).Elem() } -func (o GetGlobalDnsProviderAlidnsConfigOutput) ToGetGlobalDnsProviderAlidnsConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderAlidnsConfigOutput { - return o +func (i GetClusterV2RkeConfigRegistriesConfigArray) ToGetClusterV2RkeConfigRegistriesConfigArrayOutput() GetClusterV2RkeConfigRegistriesConfigArrayOutput { + return i.ToGetClusterV2RkeConfigRegistriesConfigArrayOutputWithContext(context.Background()) } -func (o GetGlobalDnsProviderAlidnsConfigOutput) AccessKey() pulumi.StringOutput { - return o.ApplyT(func(v GetGlobalDnsProviderAlidnsConfig) string { return v.AccessKey }).(pulumi.StringOutput) +func (i GetClusterV2RkeConfigRegistriesConfigArray) ToGetClusterV2RkeConfigRegistriesConfigArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesConfigArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesConfigArrayOutput) } -func (o GetGlobalDnsProviderAlidnsConfigOutput) SecretKey() pulumi.StringOutput { - return o.ApplyT(func(v GetGlobalDnsProviderAlidnsConfig) string { return v.SecretKey }).(pulumi.StringOutput) +type GetClusterV2RkeConfigRegistriesConfigOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigRegistriesConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigRegistriesConfig)(nil)).Elem() } -type GetGlobalDnsProviderCloudflareConfig struct { - ApiEmail string `pulumi:"apiEmail"` - ApiKey string `pulumi:"apiKey"` - ProxySetting *bool `pulumi:"proxySetting"` +func (o GetClusterV2RkeConfigRegistriesConfigOutput) ToGetClusterV2RkeConfigRegistriesConfigOutput() GetClusterV2RkeConfigRegistriesConfigOutput { + return o } -// GetGlobalDnsProviderCloudflareConfigInput is an input type that accepts GetGlobalDnsProviderCloudflareConfigArgs and GetGlobalDnsProviderCloudflareConfigOutput values. -// You can construct a concrete instance of `GetGlobalDnsProviderCloudflareConfigInput` via: -// -// GetGlobalDnsProviderCloudflareConfigArgs{...} -type GetGlobalDnsProviderCloudflareConfigInput interface { - pulumi.Input +func (o GetClusterV2RkeConfigRegistriesConfigOutput) ToGetClusterV2RkeConfigRegistriesConfigOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesConfigOutput { + return o +} - ToGetGlobalDnsProviderCloudflareConfigOutput() GetGlobalDnsProviderCloudflareConfigOutput - ToGetGlobalDnsProviderCloudflareConfigOutputWithContext(context.Context) GetGlobalDnsProviderCloudflareConfigOutput +// Registry auth config secret name +func (o GetClusterV2RkeConfigRegistriesConfigOutput) AuthConfigSecretName() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) *string { return v.AuthConfigSecretName }).(pulumi.StringPtrOutput) } -type GetGlobalDnsProviderCloudflareConfigArgs struct { - ApiEmail pulumi.StringInput `pulumi:"apiEmail"` - ApiKey pulumi.StringInput `pulumi:"apiKey"` - ProxySetting pulumi.BoolPtrInput `pulumi:"proxySetting"` +// Registry CA bundle +func (o GetClusterV2RkeConfigRegistriesConfigOutput) CaBundle() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) *string { return v.CaBundle }).(pulumi.StringPtrOutput) } -func (GetGlobalDnsProviderCloudflareConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetGlobalDnsProviderCloudflareConfig)(nil)).Elem() +// Registry hostname +func (o GetClusterV2RkeConfigRegistriesConfigOutput) Hostname() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) string { return v.Hostname }).(pulumi.StringOutput) } -func (i GetGlobalDnsProviderCloudflareConfigArgs) ToGetGlobalDnsProviderCloudflareConfigOutput() GetGlobalDnsProviderCloudflareConfigOutput { - return i.ToGetGlobalDnsProviderCloudflareConfigOutputWithContext(context.Background()) +// Registry insecure connectivity +func (o GetClusterV2RkeConfigRegistriesConfigOutput) Insecure() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) *bool { return v.Insecure }).(pulumi.BoolPtrOutput) } -func (i GetGlobalDnsProviderCloudflareConfigArgs) ToGetGlobalDnsProviderCloudflareConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderCloudflareConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetGlobalDnsProviderCloudflareConfigOutput) +// Registry TLS secret name. TLS is a pair of Cert/Key +func (o GetClusterV2RkeConfigRegistriesConfigOutput) TlsSecretName() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesConfig) *string { return v.TlsSecretName }).(pulumi.StringPtrOutput) } -type GetGlobalDnsProviderCloudflareConfigOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigRegistriesConfigArrayOutput struct{ *pulumi.OutputState } -func (GetGlobalDnsProviderCloudflareConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetGlobalDnsProviderCloudflareConfig)(nil)).Elem() +func (GetClusterV2RkeConfigRegistriesConfigArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigRegistriesConfig)(nil)).Elem() } -func (o GetGlobalDnsProviderCloudflareConfigOutput) ToGetGlobalDnsProviderCloudflareConfigOutput() GetGlobalDnsProviderCloudflareConfigOutput { +func (o GetClusterV2RkeConfigRegistriesConfigArrayOutput) ToGetClusterV2RkeConfigRegistriesConfigArrayOutput() GetClusterV2RkeConfigRegistriesConfigArrayOutput { return o } -func (o GetGlobalDnsProviderCloudflareConfigOutput) ToGetGlobalDnsProviderCloudflareConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderCloudflareConfigOutput { +func (o GetClusterV2RkeConfigRegistriesConfigArrayOutput) ToGetClusterV2RkeConfigRegistriesConfigArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesConfigArrayOutput { return o } -func (o GetGlobalDnsProviderCloudflareConfigOutput) ApiEmail() pulumi.StringOutput { - return o.ApplyT(func(v GetGlobalDnsProviderCloudflareConfig) string { return v.ApiEmail }).(pulumi.StringOutput) +func (o GetClusterV2RkeConfigRegistriesConfigArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigRegistriesConfigOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigRegistriesConfig { + return vs[0].([]GetClusterV2RkeConfigRegistriesConfig)[vs[1].(int)] + }).(GetClusterV2RkeConfigRegistriesConfigOutput) } -func (o GetGlobalDnsProviderCloudflareConfigOutput) ApiKey() pulumi.StringOutput { - return o.ApplyT(func(v GetGlobalDnsProviderCloudflareConfig) string { return v.ApiKey }).(pulumi.StringOutput) +type GetClusterV2RkeConfigRegistriesMirror struct { + // Registry mirror endpoints + Endpoints []string `pulumi:"endpoints"` + // Registry hostname + Hostname string `pulumi:"hostname"` + // Registry mirror rewrites + Rewrites map[string]interface{} `pulumi:"rewrites"` } -func (o GetGlobalDnsProviderCloudflareConfigOutput) ProxySetting() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetGlobalDnsProviderCloudflareConfig) *bool { return v.ProxySetting }).(pulumi.BoolPtrOutput) +// GetClusterV2RkeConfigRegistriesMirrorInput is an input type that accepts GetClusterV2RkeConfigRegistriesMirrorArgs and GetClusterV2RkeConfigRegistriesMirrorOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesMirrorInput` via: +// +// GetClusterV2RkeConfigRegistriesMirrorArgs{...} +type GetClusterV2RkeConfigRegistriesMirrorInput interface { + pulumi.Input + + ToGetClusterV2RkeConfigRegistriesMirrorOutput() GetClusterV2RkeConfigRegistriesMirrorOutput + ToGetClusterV2RkeConfigRegistriesMirrorOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesMirrorOutput } -type GetGlobalDnsProviderRoute53Config struct { - AccessKey string `pulumi:"accessKey"` - CredentialsPath *string `pulumi:"credentialsPath"` - Region *string `pulumi:"region"` - RoleArn *string `pulumi:"roleArn"` - SecretKey string `pulumi:"secretKey"` - ZoneType *string `pulumi:"zoneType"` +type GetClusterV2RkeConfigRegistriesMirrorArgs struct { + // Registry mirror endpoints + Endpoints pulumi.StringArrayInput `pulumi:"endpoints"` + // Registry hostname + Hostname pulumi.StringInput `pulumi:"hostname"` + // Registry mirror rewrites + Rewrites pulumi.MapInput `pulumi:"rewrites"` } -// GetGlobalDnsProviderRoute53ConfigInput is an input type that accepts GetGlobalDnsProviderRoute53ConfigArgs and GetGlobalDnsProviderRoute53ConfigOutput values. -// You can construct a concrete instance of `GetGlobalDnsProviderRoute53ConfigInput` via: +func (GetClusterV2RkeConfigRegistriesMirrorArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigRegistriesMirror)(nil)).Elem() +} + +func (i GetClusterV2RkeConfigRegistriesMirrorArgs) ToGetClusterV2RkeConfigRegistriesMirrorOutput() GetClusterV2RkeConfigRegistriesMirrorOutput { + return i.ToGetClusterV2RkeConfigRegistriesMirrorOutputWithContext(context.Background()) +} + +func (i GetClusterV2RkeConfigRegistriesMirrorArgs) ToGetClusterV2RkeConfigRegistriesMirrorOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesMirrorOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesMirrorOutput) +} + +// GetClusterV2RkeConfigRegistriesMirrorArrayInput is an input type that accepts GetClusterV2RkeConfigRegistriesMirrorArray and GetClusterV2RkeConfigRegistriesMirrorArrayOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigRegistriesMirrorArrayInput` via: // -// GetGlobalDnsProviderRoute53ConfigArgs{...} -type GetGlobalDnsProviderRoute53ConfigInput interface { +// GetClusterV2RkeConfigRegistriesMirrorArray{ GetClusterV2RkeConfigRegistriesMirrorArgs{...} } +type GetClusterV2RkeConfigRegistriesMirrorArrayInput interface { pulumi.Input - ToGetGlobalDnsProviderRoute53ConfigOutput() GetGlobalDnsProviderRoute53ConfigOutput - ToGetGlobalDnsProviderRoute53ConfigOutputWithContext(context.Context) GetGlobalDnsProviderRoute53ConfigOutput + ToGetClusterV2RkeConfigRegistriesMirrorArrayOutput() GetClusterV2RkeConfigRegistriesMirrorArrayOutput + ToGetClusterV2RkeConfigRegistriesMirrorArrayOutputWithContext(context.Context) GetClusterV2RkeConfigRegistriesMirrorArrayOutput } -type GetGlobalDnsProviderRoute53ConfigArgs struct { - AccessKey pulumi.StringInput `pulumi:"accessKey"` - CredentialsPath pulumi.StringPtrInput `pulumi:"credentialsPath"` - Region pulumi.StringPtrInput `pulumi:"region"` - RoleArn pulumi.StringPtrInput `pulumi:"roleArn"` - SecretKey pulumi.StringInput `pulumi:"secretKey"` - ZoneType pulumi.StringPtrInput `pulumi:"zoneType"` -} +type GetClusterV2RkeConfigRegistriesMirrorArray []GetClusterV2RkeConfigRegistriesMirrorInput -func (GetGlobalDnsProviderRoute53ConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetGlobalDnsProviderRoute53Config)(nil)).Elem() +func (GetClusterV2RkeConfigRegistriesMirrorArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigRegistriesMirror)(nil)).Elem() } -func (i GetGlobalDnsProviderRoute53ConfigArgs) ToGetGlobalDnsProviderRoute53ConfigOutput() GetGlobalDnsProviderRoute53ConfigOutput { - return i.ToGetGlobalDnsProviderRoute53ConfigOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigRegistriesMirrorArray) ToGetClusterV2RkeConfigRegistriesMirrorArrayOutput() GetClusterV2RkeConfigRegistriesMirrorArrayOutput { + return i.ToGetClusterV2RkeConfigRegistriesMirrorArrayOutputWithContext(context.Background()) } -func (i GetGlobalDnsProviderRoute53ConfigArgs) ToGetGlobalDnsProviderRoute53ConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderRoute53ConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetGlobalDnsProviderRoute53ConfigOutput) +func (i GetClusterV2RkeConfigRegistriesMirrorArray) ToGetClusterV2RkeConfigRegistriesMirrorArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesMirrorArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRegistriesMirrorArrayOutput) } -type GetGlobalDnsProviderRoute53ConfigOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigRegistriesMirrorOutput struct{ *pulumi.OutputState } -func (GetGlobalDnsProviderRoute53ConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetGlobalDnsProviderRoute53Config)(nil)).Elem() +func (GetClusterV2RkeConfigRegistriesMirrorOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigRegistriesMirror)(nil)).Elem() } -func (o GetGlobalDnsProviderRoute53ConfigOutput) ToGetGlobalDnsProviderRoute53ConfigOutput() GetGlobalDnsProviderRoute53ConfigOutput { +func (o GetClusterV2RkeConfigRegistriesMirrorOutput) ToGetClusterV2RkeConfigRegistriesMirrorOutput() GetClusterV2RkeConfigRegistriesMirrorOutput { return o } -func (o GetGlobalDnsProviderRoute53ConfigOutput) ToGetGlobalDnsProviderRoute53ConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderRoute53ConfigOutput { +func (o GetClusterV2RkeConfigRegistriesMirrorOutput) ToGetClusterV2RkeConfigRegistriesMirrorOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesMirrorOutput { return o } -func (o GetGlobalDnsProviderRoute53ConfigOutput) AccessKey() pulumi.StringOutput { - return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) string { return v.AccessKey }).(pulumi.StringOutput) +// Registry mirror endpoints +func (o GetClusterV2RkeConfigRegistriesMirrorOutput) Endpoints() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesMirror) []string { return v.Endpoints }).(pulumi.StringArrayOutput) } -func (o GetGlobalDnsProviderRoute53ConfigOutput) CredentialsPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) *string { return v.CredentialsPath }).(pulumi.StringPtrOutput) +// Registry hostname +func (o GetClusterV2RkeConfigRegistriesMirrorOutput) Hostname() pulumi.StringOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesMirror) string { return v.Hostname }).(pulumi.StringOutput) } -func (o GetGlobalDnsProviderRoute53ConfigOutput) Region() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) *string { return v.Region }).(pulumi.StringPtrOutput) +// Registry mirror rewrites +func (o GetClusterV2RkeConfigRegistriesMirrorOutput) Rewrites() pulumi.MapOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRegistriesMirror) map[string]interface{} { return v.Rewrites }).(pulumi.MapOutput) } -func (o GetGlobalDnsProviderRoute53ConfigOutput) RoleArn() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) *string { return v.RoleArn }).(pulumi.StringPtrOutput) +type GetClusterV2RkeConfigRegistriesMirrorArrayOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigRegistriesMirrorArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetClusterV2RkeConfigRegistriesMirror)(nil)).Elem() } -func (o GetGlobalDnsProviderRoute53ConfigOutput) SecretKey() pulumi.StringOutput { - return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) string { return v.SecretKey }).(pulumi.StringOutput) +func (o GetClusterV2RkeConfigRegistriesMirrorArrayOutput) ToGetClusterV2RkeConfigRegistriesMirrorArrayOutput() GetClusterV2RkeConfigRegistriesMirrorArrayOutput { + return o } -func (o GetGlobalDnsProviderRoute53ConfigOutput) ZoneType() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) *string { return v.ZoneType }).(pulumi.StringPtrOutput) +func (o GetClusterV2RkeConfigRegistriesMirrorArrayOutput) ToGetClusterV2RkeConfigRegistriesMirrorArrayOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRegistriesMirrorArrayOutput { + return o } -type GetGlobalRoleRule struct { - // Policy rule api groups - ApiGroups []string `pulumi:"apiGroups"` - // Policy rule non resource urls - NonResourceUrls []string `pulumi:"nonResourceUrls"` - // Policy rule resource names - ResourceNames []string `pulumi:"resourceNames"` - // Policy rule resources - Resources []string `pulumi:"resources"` - // Policy rule verbs - Verbs []string `pulumi:"verbs"` +func (o GetClusterV2RkeConfigRegistriesMirrorArrayOutput) Index(i pulumi.IntInput) GetClusterV2RkeConfigRegistriesMirrorOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClusterV2RkeConfigRegistriesMirror { + return vs[0].([]GetClusterV2RkeConfigRegistriesMirror)[vs[1].(int)] + }).(GetClusterV2RkeConfigRegistriesMirrorOutput) } -// GetGlobalRoleRuleInput is an input type that accepts GetGlobalRoleRuleArgs and GetGlobalRoleRuleOutput values. -// You can construct a concrete instance of `GetGlobalRoleRuleInput` via: +type GetClusterV2RkeConfigRotateCertificates struct { + // Desired certificate rotation generation. + Generation int `pulumi:"generation"` + // Service certificates to rotate with this generation. + Services []string `pulumi:"services"` +} + +// GetClusterV2RkeConfigRotateCertificatesInput is an input type that accepts GetClusterV2RkeConfigRotateCertificatesArgs and GetClusterV2RkeConfigRotateCertificatesOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigRotateCertificatesInput` via: // -// GetGlobalRoleRuleArgs{...} -type GetGlobalRoleRuleInput interface { +// GetClusterV2RkeConfigRotateCertificatesArgs{...} +type GetClusterV2RkeConfigRotateCertificatesInput interface { pulumi.Input - ToGetGlobalRoleRuleOutput() GetGlobalRoleRuleOutput - ToGetGlobalRoleRuleOutputWithContext(context.Context) GetGlobalRoleRuleOutput + ToGetClusterV2RkeConfigRotateCertificatesOutput() GetClusterV2RkeConfigRotateCertificatesOutput + ToGetClusterV2RkeConfigRotateCertificatesOutputWithContext(context.Context) GetClusterV2RkeConfigRotateCertificatesOutput } -type GetGlobalRoleRuleArgs struct { - // Policy rule api groups - ApiGroups pulumi.StringArrayInput `pulumi:"apiGroups"` - // Policy rule non resource urls - NonResourceUrls pulumi.StringArrayInput `pulumi:"nonResourceUrls"` - // Policy rule resource names - ResourceNames pulumi.StringArrayInput `pulumi:"resourceNames"` - // Policy rule resources - Resources pulumi.StringArrayInput `pulumi:"resources"` - // Policy rule verbs - Verbs pulumi.StringArrayInput `pulumi:"verbs"` +type GetClusterV2RkeConfigRotateCertificatesArgs struct { + // Desired certificate rotation generation. + Generation pulumi.IntInput `pulumi:"generation"` + // Service certificates to rotate with this generation. + Services pulumi.StringArrayInput `pulumi:"services"` } -func (GetGlobalRoleRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetGlobalRoleRule)(nil)).Elem() +func (GetClusterV2RkeConfigRotateCertificatesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigRotateCertificates)(nil)).Elem() } -func (i GetGlobalRoleRuleArgs) ToGetGlobalRoleRuleOutput() GetGlobalRoleRuleOutput { - return i.ToGetGlobalRoleRuleOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigRotateCertificatesArgs) ToGetClusterV2RkeConfigRotateCertificatesOutput() GetClusterV2RkeConfigRotateCertificatesOutput { + return i.ToGetClusterV2RkeConfigRotateCertificatesOutputWithContext(context.Background()) } -func (i GetGlobalRoleRuleArgs) ToGetGlobalRoleRuleOutputWithContext(ctx context.Context) GetGlobalRoleRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetGlobalRoleRuleOutput) +func (i GetClusterV2RkeConfigRotateCertificatesArgs) ToGetClusterV2RkeConfigRotateCertificatesOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRotateCertificatesOutput) } -// GetGlobalRoleRuleArrayInput is an input type that accepts GetGlobalRoleRuleArray and GetGlobalRoleRuleArrayOutput values. -// You can construct a concrete instance of `GetGlobalRoleRuleArrayInput` via: +func (i GetClusterV2RkeConfigRotateCertificatesArgs) ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput { + return i.ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(context.Background()) +} + +func (i GetClusterV2RkeConfigRotateCertificatesArgs) ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRotateCertificatesOutput).ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx) +} + +// GetClusterV2RkeConfigRotateCertificatesPtrInput is an input type that accepts GetClusterV2RkeConfigRotateCertificatesArgs, GetClusterV2RkeConfigRotateCertificatesPtr and GetClusterV2RkeConfigRotateCertificatesPtrOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigRotateCertificatesPtrInput` via: // -// GetGlobalRoleRuleArray{ GetGlobalRoleRuleArgs{...} } -type GetGlobalRoleRuleArrayInput interface { +// GetClusterV2RkeConfigRotateCertificatesArgs{...} +// +// or: +// +// nil +type GetClusterV2RkeConfigRotateCertificatesPtrInput interface { pulumi.Input - ToGetGlobalRoleRuleArrayOutput() GetGlobalRoleRuleArrayOutput - ToGetGlobalRoleRuleArrayOutputWithContext(context.Context) GetGlobalRoleRuleArrayOutput + ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput + ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput } -type GetGlobalRoleRuleArray []GetGlobalRoleRuleInput +type getClusterV2RkeConfigRotateCertificatesPtrType GetClusterV2RkeConfigRotateCertificatesArgs -func (GetGlobalRoleRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetGlobalRoleRule)(nil)).Elem() +func GetClusterV2RkeConfigRotateCertificatesPtr(v *GetClusterV2RkeConfigRotateCertificatesArgs) GetClusterV2RkeConfigRotateCertificatesPtrInput { + return (*getClusterV2RkeConfigRotateCertificatesPtrType)(v) } -func (i GetGlobalRoleRuleArray) ToGetGlobalRoleRuleArrayOutput() GetGlobalRoleRuleArrayOutput { - return i.ToGetGlobalRoleRuleArrayOutputWithContext(context.Background()) +func (*getClusterV2RkeConfigRotateCertificatesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigRotateCertificates)(nil)).Elem() } -func (i GetGlobalRoleRuleArray) ToGetGlobalRoleRuleArrayOutputWithContext(ctx context.Context) GetGlobalRoleRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetGlobalRoleRuleArrayOutput) +func (i *getClusterV2RkeConfigRotateCertificatesPtrType) ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput { + return i.ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(context.Background()) } -type GetGlobalRoleRuleOutput struct{ *pulumi.OutputState } - -func (GetGlobalRoleRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetGlobalRoleRule)(nil)).Elem() +func (i *getClusterV2RkeConfigRotateCertificatesPtrType) ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigRotateCertificatesPtrOutput) } -func (o GetGlobalRoleRuleOutput) ToGetGlobalRoleRuleOutput() GetGlobalRoleRuleOutput { - return o +type GetClusterV2RkeConfigRotateCertificatesOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigRotateCertificatesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigRotateCertificates)(nil)).Elem() } -func (o GetGlobalRoleRuleOutput) ToGetGlobalRoleRuleOutputWithContext(ctx context.Context) GetGlobalRoleRuleOutput { +func (o GetClusterV2RkeConfigRotateCertificatesOutput) ToGetClusterV2RkeConfigRotateCertificatesOutput() GetClusterV2RkeConfigRotateCertificatesOutput { return o } -// Policy rule api groups -func (o GetGlobalRoleRuleOutput) ApiGroups() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.ApiGroups }).(pulumi.StringArrayOutput) +func (o GetClusterV2RkeConfigRotateCertificatesOutput) ToGetClusterV2RkeConfigRotateCertificatesOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesOutput { + return o } -// Policy rule non resource urls -func (o GetGlobalRoleRuleOutput) NonResourceUrls() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.NonResourceUrls }).(pulumi.StringArrayOutput) +func (o GetClusterV2RkeConfigRotateCertificatesOutput) ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput { + return o.ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(context.Background()) } -// Policy rule resource names -func (o GetGlobalRoleRuleOutput) ResourceNames() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.ResourceNames }).(pulumi.StringArrayOutput) +func (o GetClusterV2RkeConfigRotateCertificatesOutput) ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigRotateCertificates) *GetClusterV2RkeConfigRotateCertificates { + return &v + }).(GetClusterV2RkeConfigRotateCertificatesPtrOutput) } -// Policy rule resources -func (o GetGlobalRoleRuleOutput) Resources() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.Resources }).(pulumi.StringArrayOutput) +// Desired certificate rotation generation. +func (o GetClusterV2RkeConfigRotateCertificatesOutput) Generation() pulumi.IntOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRotateCertificates) int { return v.Generation }).(pulumi.IntOutput) } -// Policy rule verbs -func (o GetGlobalRoleRuleOutput) Verbs() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.Verbs }).(pulumi.StringArrayOutput) +// Service certificates to rotate with this generation. +func (o GetClusterV2RkeConfigRotateCertificatesOutput) Services() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigRotateCertificates) []string { return v.Services }).(pulumi.StringArrayOutput) } -type GetGlobalRoleRuleArrayOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigRotateCertificatesPtrOutput struct{ *pulumi.OutputState } -func (GetGlobalRoleRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetGlobalRoleRule)(nil)).Elem() +func (GetClusterV2RkeConfigRotateCertificatesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigRotateCertificates)(nil)).Elem() } -func (o GetGlobalRoleRuleArrayOutput) ToGetGlobalRoleRuleArrayOutput() GetGlobalRoleRuleArrayOutput { +func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) ToGetClusterV2RkeConfigRotateCertificatesPtrOutput() GetClusterV2RkeConfigRotateCertificatesPtrOutput { return o } -func (o GetGlobalRoleRuleArrayOutput) ToGetGlobalRoleRuleArrayOutputWithContext(ctx context.Context) GetGlobalRoleRuleArrayOutput { +func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) ToGetClusterV2RkeConfigRotateCertificatesPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigRotateCertificatesPtrOutput { return o } -func (o GetGlobalRoleRuleArrayOutput) Index(i pulumi.IntInput) GetGlobalRoleRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetGlobalRoleRule { - return vs[0].([]GetGlobalRoleRule)[vs[1].(int)] - }).(GetGlobalRoleRuleOutput) +func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) Elem() GetClusterV2RkeConfigRotateCertificatesOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigRotateCertificates) GetClusterV2RkeConfigRotateCertificates { + if v != nil { + return *v + } + var ret GetClusterV2RkeConfigRotateCertificates + return ret + }).(GetClusterV2RkeConfigRotateCertificatesOutput) } -type GetMultiClusterAppAnswer struct { - // Cluster ID for answer - ClusterId string `pulumi:"clusterId"` - // Project ID for answer - ProjectId string `pulumi:"projectId"` - // Key/values for answer - Values map[string]interface{} `pulumi:"values"` +// Desired certificate rotation generation. +func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) Generation() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigRotateCertificates) *int { + if v == nil { + return nil + } + return &v.Generation + }).(pulumi.IntPtrOutput) +} + +// Service certificates to rotate with this generation. +func (o GetClusterV2RkeConfigRotateCertificatesPtrOutput) Services() pulumi.StringArrayOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigRotateCertificates) []string { + if v == nil { + return nil + } + return v.Services + }).(pulumi.StringArrayOutput) +} + +type GetClusterV2RkeConfigUpgradeStrategy struct { + // How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted + ControlPlaneConcurrency *string `pulumi:"controlPlaneConcurrency"` + // Controlplane nodes drain options + ControlPlaneDrainOptions *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions `pulumi:"controlPlaneDrainOptions"` + // How many worker nodes should be upgrade at time + WorkerConcurrency *string `pulumi:"workerConcurrency"` + // Worker nodes drain options + WorkerDrainOptions *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions `pulumi:"workerDrainOptions"` +} + +// GetClusterV2RkeConfigUpgradeStrategyInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyArgs and GetClusterV2RkeConfigUpgradeStrategyOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyInput` via: +// +// GetClusterV2RkeConfigUpgradeStrategyArgs{...} +type GetClusterV2RkeConfigUpgradeStrategyInput interface { + pulumi.Input + + ToGetClusterV2RkeConfigUpgradeStrategyOutput() GetClusterV2RkeConfigUpgradeStrategyOutput + ToGetClusterV2RkeConfigUpgradeStrategyOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyOutput +} + +type GetClusterV2RkeConfigUpgradeStrategyArgs struct { + // How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted + ControlPlaneConcurrency pulumi.StringPtrInput `pulumi:"controlPlaneConcurrency"` + // Controlplane nodes drain options + ControlPlaneDrainOptions GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput `pulumi:"controlPlaneDrainOptions"` + // How many worker nodes should be upgrade at time + WorkerConcurrency pulumi.StringPtrInput `pulumi:"workerConcurrency"` + // Worker nodes drain options + WorkerDrainOptions GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput `pulumi:"workerDrainOptions"` } -// GetMultiClusterAppAnswerInput is an input type that accepts GetMultiClusterAppAnswerArgs and GetMultiClusterAppAnswerOutput values. -// You can construct a concrete instance of `GetMultiClusterAppAnswerInput` via: -// -// GetMultiClusterAppAnswerArgs{...} -type GetMultiClusterAppAnswerInput interface { - pulumi.Input - - ToGetMultiClusterAppAnswerOutput() GetMultiClusterAppAnswerOutput - ToGetMultiClusterAppAnswerOutputWithContext(context.Context) GetMultiClusterAppAnswerOutput +func (GetClusterV2RkeConfigUpgradeStrategyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategy)(nil)).Elem() } -type GetMultiClusterAppAnswerArgs struct { - // Cluster ID for answer - ClusterId pulumi.StringInput `pulumi:"clusterId"` - // Project ID for answer - ProjectId pulumi.StringInput `pulumi:"projectId"` - // Key/values for answer - Values pulumi.MapInput `pulumi:"values"` +func (i GetClusterV2RkeConfigUpgradeStrategyArgs) ToGetClusterV2RkeConfigUpgradeStrategyOutput() GetClusterV2RkeConfigUpgradeStrategyOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyOutputWithContext(context.Background()) } -func (GetMultiClusterAppAnswerArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppAnswer)(nil)).Elem() +func (i GetClusterV2RkeConfigUpgradeStrategyArgs) ToGetClusterV2RkeConfigUpgradeStrategyOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyOutput) } -func (i GetMultiClusterAppAnswerArgs) ToGetMultiClusterAppAnswerOutput() GetMultiClusterAppAnswerOutput { - return i.ToGetMultiClusterAppAnswerOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigUpgradeStrategyArgs) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) } -func (i GetMultiClusterAppAnswerArgs) ToGetMultiClusterAppAnswerOutputWithContext(ctx context.Context) GetMultiClusterAppAnswerOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppAnswerOutput) +func (i GetClusterV2RkeConfigUpgradeStrategyArgs) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyOutput).ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx) } -// GetMultiClusterAppAnswerArrayInput is an input type that accepts GetMultiClusterAppAnswerArray and GetMultiClusterAppAnswerArrayOutput values. -// You can construct a concrete instance of `GetMultiClusterAppAnswerArrayInput` via: +// GetClusterV2RkeConfigUpgradeStrategyPtrInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyArgs, GetClusterV2RkeConfigUpgradeStrategyPtr and GetClusterV2RkeConfigUpgradeStrategyPtrOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyPtrInput` via: // -// GetMultiClusterAppAnswerArray{ GetMultiClusterAppAnswerArgs{...} } -type GetMultiClusterAppAnswerArrayInput interface { +// GetClusterV2RkeConfigUpgradeStrategyArgs{...} +// +// or: +// +// nil +type GetClusterV2RkeConfigUpgradeStrategyPtrInput interface { pulumi.Input - ToGetMultiClusterAppAnswerArrayOutput() GetMultiClusterAppAnswerArrayOutput - ToGetMultiClusterAppAnswerArrayOutputWithContext(context.Context) GetMultiClusterAppAnswerArrayOutput + ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput + ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput } -type GetMultiClusterAppAnswerArray []GetMultiClusterAppAnswerInput +type getClusterV2RkeConfigUpgradeStrategyPtrType GetClusterV2RkeConfigUpgradeStrategyArgs -func (GetMultiClusterAppAnswerArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetMultiClusterAppAnswer)(nil)).Elem() +func GetClusterV2RkeConfigUpgradeStrategyPtr(v *GetClusterV2RkeConfigUpgradeStrategyArgs) GetClusterV2RkeConfigUpgradeStrategyPtrInput { + return (*getClusterV2RkeConfigUpgradeStrategyPtrType)(v) } -func (i GetMultiClusterAppAnswerArray) ToGetMultiClusterAppAnswerArrayOutput() GetMultiClusterAppAnswerArrayOutput { - return i.ToGetMultiClusterAppAnswerArrayOutputWithContext(context.Background()) +func (*getClusterV2RkeConfigUpgradeStrategyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategy)(nil)).Elem() } -func (i GetMultiClusterAppAnswerArray) ToGetMultiClusterAppAnswerArrayOutputWithContext(ctx context.Context) GetMultiClusterAppAnswerArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppAnswerArrayOutput) +func (i *getClusterV2RkeConfigUpgradeStrategyPtrType) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) } -type GetMultiClusterAppAnswerOutput struct{ *pulumi.OutputState } +func (i *getClusterV2RkeConfigUpgradeStrategyPtrType) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyPtrOutput) +} -func (GetMultiClusterAppAnswerOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppAnswer)(nil)).Elem() +type GetClusterV2RkeConfigUpgradeStrategyOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigUpgradeStrategyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategy)(nil)).Elem() } -func (o GetMultiClusterAppAnswerOutput) ToGetMultiClusterAppAnswerOutput() GetMultiClusterAppAnswerOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ToGetClusterV2RkeConfigUpgradeStrategyOutput() GetClusterV2RkeConfigUpgradeStrategyOutput { return o } -func (o GetMultiClusterAppAnswerOutput) ToGetMultiClusterAppAnswerOutputWithContext(ctx context.Context) GetMultiClusterAppAnswerOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ToGetClusterV2RkeConfigUpgradeStrategyOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyOutput { return o } -// Cluster ID for answer -func (o GetMultiClusterAppAnswerOutput) ClusterId() pulumi.StringOutput { - return o.ApplyT(func(v GetMultiClusterAppAnswer) string { return v.ClusterId }).(pulumi.StringOutput) +func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput { + return o.ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(context.Background()) } -// Project ID for answer -func (o GetMultiClusterAppAnswerOutput) ProjectId() pulumi.StringOutput { - return o.ApplyT(func(v GetMultiClusterAppAnswer) string { return v.ProjectId }).(pulumi.StringOutput) +func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategy { + return &v + }).(GetClusterV2RkeConfigUpgradeStrategyPtrOutput) } -// Key/values for answer -func (o GetMultiClusterAppAnswerOutput) Values() pulumi.MapOutput { - return o.ApplyT(func(v GetMultiClusterAppAnswer) map[string]interface{} { return v.Values }).(pulumi.MapOutput) +// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted +func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ControlPlaneConcurrency() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategy) *string { return v.ControlPlaneConcurrency }).(pulumi.StringPtrOutput) } -type GetMultiClusterAppAnswerArrayOutput struct{ *pulumi.OutputState } +// Controlplane nodes drain options +func (o GetClusterV2RkeConfigUpgradeStrategyOutput) ControlPlaneDrainOptions() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { + return v.ControlPlaneDrainOptions + }).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) +} -func (GetMultiClusterAppAnswerArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetMultiClusterAppAnswer)(nil)).Elem() +// How many worker nodes should be upgrade at time +func (o GetClusterV2RkeConfigUpgradeStrategyOutput) WorkerConcurrency() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategy) *string { return v.WorkerConcurrency }).(pulumi.StringPtrOutput) } -func (o GetMultiClusterAppAnswerArrayOutput) ToGetMultiClusterAppAnswerArrayOutput() GetMultiClusterAppAnswerArrayOutput { - return o +// Worker nodes drain options +func (o GetClusterV2RkeConfigUpgradeStrategyOutput) WorkerDrainOptions() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { + return v.WorkerDrainOptions + }).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) } -func (o GetMultiClusterAppAnswerArrayOutput) ToGetMultiClusterAppAnswerArrayOutputWithContext(ctx context.Context) GetMultiClusterAppAnswerArrayOutput { - return o +type GetClusterV2RkeConfigUpgradeStrategyPtrOutput struct{ *pulumi.OutputState } + +func (GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategy)(nil)).Elem() } -func (o GetMultiClusterAppAnswerArrayOutput) Index(i pulumi.IntInput) GetMultiClusterAppAnswerOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMultiClusterAppAnswer { - return vs[0].([]GetMultiClusterAppAnswer)[vs[1].(int)] - }).(GetMultiClusterAppAnswerOutput) +func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutput() GetClusterV2RkeConfigUpgradeStrategyPtrOutput { + return o } -type GetMultiClusterAppMember struct { - // Member access type: member, owner, read-only - AccessType *string `pulumi:"accessType"` - // Member group principal id - GroupPrincipalId *string `pulumi:"groupPrincipalId"` - // Member user principal id - UserPrincipalId *string `pulumi:"userPrincipalId"` +func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyPtrOutput { + return o } -// GetMultiClusterAppMemberInput is an input type that accepts GetMultiClusterAppMemberArgs and GetMultiClusterAppMemberOutput values. -// You can construct a concrete instance of `GetMultiClusterAppMemberInput` via: -// -// GetMultiClusterAppMemberArgs{...} -type GetMultiClusterAppMemberInput interface { - pulumi.Input +func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) Elem() GetClusterV2RkeConfigUpgradeStrategyOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) GetClusterV2RkeConfigUpgradeStrategy { + if v != nil { + return *v + } + var ret GetClusterV2RkeConfigUpgradeStrategy + return ret + }).(GetClusterV2RkeConfigUpgradeStrategyOutput) +} - ToGetMultiClusterAppMemberOutput() GetMultiClusterAppMemberOutput - ToGetMultiClusterAppMemberOutputWithContext(context.Context) GetMultiClusterAppMemberOutput +// How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted +func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ControlPlaneConcurrency() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) *string { + if v == nil { + return nil + } + return v.ControlPlaneConcurrency + }).(pulumi.StringPtrOutput) } -type GetMultiClusterAppMemberArgs struct { - // Member access type: member, owner, read-only - AccessType pulumi.StringPtrInput `pulumi:"accessType"` - // Member group principal id - GroupPrincipalId pulumi.StringPtrInput `pulumi:"groupPrincipalId"` - // Member user principal id - UserPrincipalId pulumi.StringPtrInput `pulumi:"userPrincipalId"` +// Controlplane nodes drain options +func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) ControlPlaneDrainOptions() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { + if v == nil { + return nil + } + return v.ControlPlaneDrainOptions + }).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) } -func (GetMultiClusterAppMemberArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppMember)(nil)).Elem() +// How many worker nodes should be upgrade at time +func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) WorkerConcurrency() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) *string { + if v == nil { + return nil + } + return v.WorkerConcurrency + }).(pulumi.StringPtrOutput) } -func (i GetMultiClusterAppMemberArgs) ToGetMultiClusterAppMemberOutput() GetMultiClusterAppMemberOutput { - return i.ToGetMultiClusterAppMemberOutputWithContext(context.Background()) +// Worker nodes drain options +func (o GetClusterV2RkeConfigUpgradeStrategyPtrOutput) WorkerDrainOptions() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategy) *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { + if v == nil { + return nil + } + return v.WorkerDrainOptions + }).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) } -func (i GetMultiClusterAppMemberArgs) ToGetMultiClusterAppMemberOutputWithContext(ctx context.Context) GetMultiClusterAppMemberOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppMemberOutput) +type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions struct { + // Drain options delete empty dir data + DeleteEmptyDirData *bool `pulumi:"deleteEmptyDirData"` + // Drain options disable eviction + DisableEviction *bool `pulumi:"disableEviction"` + // Drain options enabled? + Enabled *bool `pulumi:"enabled"` + // Drain options force + Force *bool `pulumi:"force"` + // Drain options grace period + GracePeriod int `pulumi:"gracePeriod"` + // Drain options ignore daemon sets + IgnoreDaemonSets *bool `pulumi:"ignoreDaemonSets"` + // Drain options ignore errors + IgnoreErrors *bool `pulumi:"ignoreErrors"` + // Drain options skip wait for delete timeout seconds + SkipWaitForDeleteTimeoutSeconds int `pulumi:"skipWaitForDeleteTimeoutSeconds"` + // Drain options timeout + Timeout int `pulumi:"timeout"` } -// GetMultiClusterAppMemberArrayInput is an input type that accepts GetMultiClusterAppMemberArray and GetMultiClusterAppMemberArrayOutput values. -// You can construct a concrete instance of `GetMultiClusterAppMemberArrayInput` via: +// GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs and GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsInput` via: // -// GetMultiClusterAppMemberArray{ GetMultiClusterAppMemberArgs{...} } -type GetMultiClusterAppMemberArrayInput interface { +// GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs{...} +type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsInput interface { pulumi.Input - ToGetMultiClusterAppMemberArrayOutput() GetMultiClusterAppMemberArrayOutput - ToGetMultiClusterAppMemberArrayOutputWithContext(context.Context) GetMultiClusterAppMemberArrayOutput + ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput + ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput } -type GetMultiClusterAppMemberArray []GetMultiClusterAppMemberInput +type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs struct { + // Drain options delete empty dir data + DeleteEmptyDirData pulumi.BoolPtrInput `pulumi:"deleteEmptyDirData"` + // Drain options disable eviction + DisableEviction pulumi.BoolPtrInput `pulumi:"disableEviction"` + // Drain options enabled? + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` + // Drain options force + Force pulumi.BoolPtrInput `pulumi:"force"` + // Drain options grace period + GracePeriod pulumi.IntInput `pulumi:"gracePeriod"` + // Drain options ignore daemon sets + IgnoreDaemonSets pulumi.BoolPtrInput `pulumi:"ignoreDaemonSets"` + // Drain options ignore errors + IgnoreErrors pulumi.BoolPtrInput `pulumi:"ignoreErrors"` + // Drain options skip wait for delete timeout seconds + SkipWaitForDeleteTimeoutSeconds pulumi.IntInput `pulumi:"skipWaitForDeleteTimeoutSeconds"` + // Drain options timeout + Timeout pulumi.IntInput `pulumi:"timeout"` +} -func (GetMultiClusterAppMemberArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetMultiClusterAppMember)(nil)).Elem() +func (GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions)(nil)).Elem() } -func (i GetMultiClusterAppMemberArray) ToGetMultiClusterAppMemberArrayOutput() GetMultiClusterAppMemberArrayOutput { - return i.ToGetMultiClusterAppMemberArrayOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutputWithContext(context.Background()) } -func (i GetMultiClusterAppMemberArray) ToGetMultiClusterAppMemberArrayOutputWithContext(ctx context.Context) GetMultiClusterAppMemberArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppMemberArrayOutput) +func (i GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) } -type GetMultiClusterAppMemberOutput struct{ *pulumi.OutputState } +func (i GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(context.Background()) +} -func (GetMultiClusterAppMemberOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppMember)(nil)).Elem() +func (i GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput).ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx) } -func (o GetMultiClusterAppMemberOutput) ToGetMultiClusterAppMemberOutput() GetMultiClusterAppMemberOutput { - return o +// GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs, GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtr and GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput` via: +// +// GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs{...} +// +// or: +// +// nil +type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput interface { + pulumi.Input + + ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput + ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput } -func (o GetMultiClusterAppMemberOutput) ToGetMultiClusterAppMemberOutputWithContext(ctx context.Context) GetMultiClusterAppMemberOutput { - return o +type getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs + +func GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtr(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrInput { + return (*getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType)(v) } -// Member access type: member, owner, read-only -func (o GetMultiClusterAppMemberOutput) AccessType() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetMultiClusterAppMember) *string { return v.AccessType }).(pulumi.StringPtrOutput) +func (*getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions)(nil)).Elem() } -// Member group principal id -func (o GetMultiClusterAppMemberOutput) GroupPrincipalId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetMultiClusterAppMember) *string { return v.GroupPrincipalId }).(pulumi.StringPtrOutput) +func (i *getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(context.Background()) } -// Member user principal id -func (o GetMultiClusterAppMemberOutput) UserPrincipalId() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetMultiClusterAppMember) *string { return v.UserPrincipalId }).(pulumi.StringPtrOutput) +func (i *getClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrType) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) } -type GetMultiClusterAppMemberArrayOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput struct{ *pulumi.OutputState } -func (GetMultiClusterAppMemberArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetMultiClusterAppMember)(nil)).Elem() +func (GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions)(nil)).Elem() } -func (o GetMultiClusterAppMemberArrayOutput) ToGetMultiClusterAppMemberArrayOutput() GetMultiClusterAppMemberArrayOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { return o } -func (o GetMultiClusterAppMemberArrayOutput) ToGetMultiClusterAppMemberArrayOutputWithContext(ctx context.Context) GetMultiClusterAppMemberArrayOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { return o } -func (o GetMultiClusterAppMemberArrayOutput) Index(i pulumi.IntInput) GetMultiClusterAppMemberOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMultiClusterAppMember { - return vs[0].([]GetMultiClusterAppMember)[vs[1].(int)] - }).(GetMultiClusterAppMemberOutput) +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { + return o.ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(context.Background()) } -type GetMultiClusterAppTarget struct { - // App ID for target - AppId string `pulumi:"appId"` - // App health state for target - HealthState string `pulumi:"healthState"` - // Project ID for target - ProjectId string `pulumi:"projectId"` - // App state for target - State string `pulumi:"state"` +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { + return &v + }).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) } -// GetMultiClusterAppTargetInput is an input type that accepts GetMultiClusterAppTargetArgs and GetMultiClusterAppTargetOutput values. -// You can construct a concrete instance of `GetMultiClusterAppTargetInput` via: -// -// GetMultiClusterAppTargetArgs{...} -type GetMultiClusterAppTargetInput interface { - pulumi.Input - - ToGetMultiClusterAppTargetOutput() GetMultiClusterAppTargetOutput - ToGetMultiClusterAppTargetOutputWithContext(context.Context) GetMultiClusterAppTargetOutput +// Drain options delete empty dir data +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { + return v.DeleteEmptyDirData + }).(pulumi.BoolPtrOutput) } -type GetMultiClusterAppTargetArgs struct { - // App ID for target - AppId pulumi.StringInput `pulumi:"appId"` - // App health state for target - HealthState pulumi.StringInput `pulumi:"healthState"` - // Project ID for target - ProjectId pulumi.StringInput `pulumi:"projectId"` - // App state for target - State pulumi.StringInput `pulumi:"state"` +// Drain options disable eviction +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) DisableEviction() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.DisableEviction }).(pulumi.BoolPtrOutput) } -func (GetMultiClusterAppTargetArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppTarget)(nil)).Elem() +// Drain options enabled? +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } -func (i GetMultiClusterAppTargetArgs) ToGetMultiClusterAppTargetOutput() GetMultiClusterAppTargetOutput { - return i.ToGetMultiClusterAppTargetOutputWithContext(context.Background()) +// Drain options force +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Force() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.Force }).(pulumi.BoolPtrOutput) } -func (i GetMultiClusterAppTargetArgs) ToGetMultiClusterAppTargetOutputWithContext(ctx context.Context) GetMultiClusterAppTargetOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppTargetOutput) +// Drain options grace period +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) GracePeriod() pulumi.IntOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) int { return v.GracePeriod }).(pulumi.IntOutput) } -// GetMultiClusterAppTargetArrayInput is an input type that accepts GetMultiClusterAppTargetArray and GetMultiClusterAppTargetArrayOutput values. -// You can construct a concrete instance of `GetMultiClusterAppTargetArrayInput` via: -// -// GetMultiClusterAppTargetArray{ GetMultiClusterAppTargetArgs{...} } -type GetMultiClusterAppTargetArrayInput interface { - pulumi.Input - - ToGetMultiClusterAppTargetArrayOutput() GetMultiClusterAppTargetArrayOutput - ToGetMultiClusterAppTargetArrayOutputWithContext(context.Context) GetMultiClusterAppTargetArrayOutput +// Drain options ignore daemon sets +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.IgnoreDaemonSets }).(pulumi.BoolPtrOutput) } -type GetMultiClusterAppTargetArray []GetMultiClusterAppTargetInput - -func (GetMultiClusterAppTargetArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetMultiClusterAppTarget)(nil)).Elem() +// Drain options ignore errors +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) IgnoreErrors() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { return v.IgnoreErrors }).(pulumi.BoolPtrOutput) } -func (i GetMultiClusterAppTargetArray) ToGetMultiClusterAppTargetArrayOutput() GetMultiClusterAppTargetArrayOutput { - return i.ToGetMultiClusterAppTargetArrayOutputWithContext(context.Background()) +// Drain options skip wait for delete timeout seconds +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) int { + return v.SkipWaitForDeleteTimeoutSeconds + }).(pulumi.IntOutput) } -func (i GetMultiClusterAppTargetArray) ToGetMultiClusterAppTargetArrayOutputWithContext(ctx context.Context) GetMultiClusterAppTargetArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppTargetArrayOutput) +// Drain options timeout +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) Timeout() pulumi.IntOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) int { return v.Timeout }).(pulumi.IntOutput) } -type GetMultiClusterAppTargetOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput struct{ *pulumi.OutputState } -func (GetMultiClusterAppTargetOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppTarget)(nil)).Elem() +func (GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions)(nil)).Elem() } -func (o GetMultiClusterAppTargetOutput) ToGetMultiClusterAppTargetOutput() GetMultiClusterAppTargetOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { return o } -func (o GetMultiClusterAppTargetOutput) ToGetMultiClusterAppTargetOutputWithContext(ctx context.Context) GetMultiClusterAppTargetOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput { return o } -// App ID for target -func (o GetMultiClusterAppTargetOutput) AppId() pulumi.StringOutput { - return o.ApplyT(func(v GetMultiClusterAppTarget) string { return v.AppId }).(pulumi.StringOutput) +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Elem() GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { + if v != nil { + return *v + } + var ret GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions + return ret + }).(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsOutput) } -// App health state for target -func (o GetMultiClusterAppTargetOutput) HealthState() pulumi.StringOutput { - return o.ApplyT(func(v GetMultiClusterAppTarget) string { return v.HealthState }).(pulumi.StringOutput) +// Drain options delete empty dir data +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { + if v == nil { + return nil + } + return v.DeleteEmptyDirData + }).(pulumi.BoolPtrOutput) } -// Project ID for target -func (o GetMultiClusterAppTargetOutput) ProjectId() pulumi.StringOutput { - return o.ApplyT(func(v GetMultiClusterAppTarget) string { return v.ProjectId }).(pulumi.StringOutput) +// Drain options disable eviction +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) DisableEviction() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { + if v == nil { + return nil + } + return v.DisableEviction + }).(pulumi.BoolPtrOutput) } -// App state for target -func (o GetMultiClusterAppTargetOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v GetMultiClusterAppTarget) string { return v.State }).(pulumi.StringOutput) +// Drain options enabled? +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { + if v == nil { + return nil + } + return v.Enabled + }).(pulumi.BoolPtrOutput) } -type GetMultiClusterAppTargetArrayOutput struct{ *pulumi.OutputState } +// Drain options force +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Force() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { + if v == nil { + return nil + } + return v.Force + }).(pulumi.BoolPtrOutput) +} -func (GetMultiClusterAppTargetArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetMultiClusterAppTarget)(nil)).Elem() +// Drain options grace period +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) GracePeriod() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { + if v == nil { + return nil + } + return &v.GracePeriod + }).(pulumi.IntPtrOutput) } -func (o GetMultiClusterAppTargetArrayOutput) ToGetMultiClusterAppTargetArrayOutput() GetMultiClusterAppTargetArrayOutput { - return o +// Drain options ignore daemon sets +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { + if v == nil { + return nil + } + return v.IgnoreDaemonSets + }).(pulumi.BoolPtrOutput) } -func (o GetMultiClusterAppTargetArrayOutput) ToGetMultiClusterAppTargetArrayOutputWithContext(ctx context.Context) GetMultiClusterAppTargetArrayOutput { - return o +// Drain options ignore errors +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) IgnoreErrors() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *bool { + if v == nil { + return nil + } + return v.IgnoreErrors + }).(pulumi.BoolPtrOutput) } -func (o GetMultiClusterAppTargetArrayOutput) Index(i pulumi.IntInput) GetMultiClusterAppTargetOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMultiClusterAppTarget { - return vs[0].([]GetMultiClusterAppTarget)[vs[1].(int)] - }).(GetMultiClusterAppTargetOutput) +// Drain options skip wait for delete timeout seconds +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { + if v == nil { + return nil + } + return &v.SkipWaitForDeleteTimeoutSeconds + }).(pulumi.IntPtrOutput) } -type GetMultiClusterAppUpgradeStrategy struct { - // Rolling update for upgrade strategy - RollingUpdate *GetMultiClusterAppUpgradeStrategyRollingUpdate `pulumi:"rollingUpdate"` +// Drain options timeout +func (o GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsPtrOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions) *int { + if v == nil { + return nil + } + return &v.Timeout + }).(pulumi.IntPtrOutput) } -// GetMultiClusterAppUpgradeStrategyInput is an input type that accepts GetMultiClusterAppUpgradeStrategyArgs and GetMultiClusterAppUpgradeStrategyOutput values. -// You can construct a concrete instance of `GetMultiClusterAppUpgradeStrategyInput` via: +type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions struct { + // Drain options delete empty dir data + DeleteEmptyDirData *bool `pulumi:"deleteEmptyDirData"` + // Drain options disable eviction + DisableEviction *bool `pulumi:"disableEviction"` + // Drain options enabled? + Enabled *bool `pulumi:"enabled"` + // Drain options force + Force *bool `pulumi:"force"` + // Drain options grace period + GracePeriod int `pulumi:"gracePeriod"` + // Drain options ignore daemon sets + IgnoreDaemonSets *bool `pulumi:"ignoreDaemonSets"` + // Drain options ignore errors + IgnoreErrors *bool `pulumi:"ignoreErrors"` + // Drain options skip wait for delete timeout seconds + SkipWaitForDeleteTimeoutSeconds int `pulumi:"skipWaitForDeleteTimeoutSeconds"` + // Drain options timeout + Timeout int `pulumi:"timeout"` +} + +// GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs and GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsInput` via: // -// GetMultiClusterAppUpgradeStrategyArgs{...} -type GetMultiClusterAppUpgradeStrategyInput interface { +// GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs{...} +type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsInput interface { pulumi.Input - ToGetMultiClusterAppUpgradeStrategyOutput() GetMultiClusterAppUpgradeStrategyOutput - ToGetMultiClusterAppUpgradeStrategyOutputWithContext(context.Context) GetMultiClusterAppUpgradeStrategyOutput + ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput + ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput } -type GetMultiClusterAppUpgradeStrategyArgs struct { - // Rolling update for upgrade strategy - RollingUpdate GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput `pulumi:"rollingUpdate"` +type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs struct { + // Drain options delete empty dir data + DeleteEmptyDirData pulumi.BoolPtrInput `pulumi:"deleteEmptyDirData"` + // Drain options disable eviction + DisableEviction pulumi.BoolPtrInput `pulumi:"disableEviction"` + // Drain options enabled? + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` + // Drain options force + Force pulumi.BoolPtrInput `pulumi:"force"` + // Drain options grace period + GracePeriod pulumi.IntInput `pulumi:"gracePeriod"` + // Drain options ignore daemon sets + IgnoreDaemonSets pulumi.BoolPtrInput `pulumi:"ignoreDaemonSets"` + // Drain options ignore errors + IgnoreErrors pulumi.BoolPtrInput `pulumi:"ignoreErrors"` + // Drain options skip wait for delete timeout seconds + SkipWaitForDeleteTimeoutSeconds pulumi.IntInput `pulumi:"skipWaitForDeleteTimeoutSeconds"` + // Drain options timeout + Timeout pulumi.IntInput `pulumi:"timeout"` } -func (GetMultiClusterAppUpgradeStrategyArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppUpgradeStrategy)(nil)).Elem() +func (GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions)(nil)).Elem() } -func (i GetMultiClusterAppUpgradeStrategyArgs) ToGetMultiClusterAppUpgradeStrategyOutput() GetMultiClusterAppUpgradeStrategyOutput { - return i.ToGetMultiClusterAppUpgradeStrategyOutputWithContext(context.Background()) +func (i GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutputWithContext(context.Background()) } -func (i GetMultiClusterAppUpgradeStrategyArgs) ToGetMultiClusterAppUpgradeStrategyOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyOutput) +func (i GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) } -// GetMultiClusterAppUpgradeStrategyArrayInput is an input type that accepts GetMultiClusterAppUpgradeStrategyArray and GetMultiClusterAppUpgradeStrategyArrayOutput values. -// You can construct a concrete instance of `GetMultiClusterAppUpgradeStrategyArrayInput` via: -// -// GetMultiClusterAppUpgradeStrategyArray{ GetMultiClusterAppUpgradeStrategyArgs{...} } -type GetMultiClusterAppUpgradeStrategyArrayInput interface { - pulumi.Input - - ToGetMultiClusterAppUpgradeStrategyArrayOutput() GetMultiClusterAppUpgradeStrategyArrayOutput - ToGetMultiClusterAppUpgradeStrategyArrayOutputWithContext(context.Context) GetMultiClusterAppUpgradeStrategyArrayOutput +func (i GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(context.Background()) } -type GetMultiClusterAppUpgradeStrategyArray []GetMultiClusterAppUpgradeStrategyInput - -func (GetMultiClusterAppUpgradeStrategyArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetMultiClusterAppUpgradeStrategy)(nil)).Elem() +func (i GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput).ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx) } -func (i GetMultiClusterAppUpgradeStrategyArray) ToGetMultiClusterAppUpgradeStrategyArrayOutput() GetMultiClusterAppUpgradeStrategyArrayOutput { - return i.ToGetMultiClusterAppUpgradeStrategyArrayOutputWithContext(context.Background()) -} +// GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput is an input type that accepts GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs, GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtr and GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput values. +// You can construct a concrete instance of `GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput` via: +// +// GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs{...} +// +// or: +// +// nil +type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput interface { + pulumi.Input -func (i GetMultiClusterAppUpgradeStrategyArray) ToGetMultiClusterAppUpgradeStrategyArrayOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyArrayOutput) + ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput + ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput } -type GetMultiClusterAppUpgradeStrategyOutput struct{ *pulumi.OutputState } +type getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs -func (GetMultiClusterAppUpgradeStrategyOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppUpgradeStrategy)(nil)).Elem() +func GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtr(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrInput { + return (*getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType)(v) } -func (o GetMultiClusterAppUpgradeStrategyOutput) ToGetMultiClusterAppUpgradeStrategyOutput() GetMultiClusterAppUpgradeStrategyOutput { - return o +func (*getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions)(nil)).Elem() } -func (o GetMultiClusterAppUpgradeStrategyOutput) ToGetMultiClusterAppUpgradeStrategyOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyOutput { - return o +func (i *getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { + return i.ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(context.Background()) } -// Rolling update for upgrade strategy -func (o GetMultiClusterAppUpgradeStrategyOutput) RollingUpdate() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return o.ApplyT(func(v GetMultiClusterAppUpgradeStrategy) *GetMultiClusterAppUpgradeStrategyRollingUpdate { - return v.RollingUpdate - }).(GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) +func (i *getClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrType) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) } -type GetMultiClusterAppUpgradeStrategyArrayOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput struct{ *pulumi.OutputState } -func (GetMultiClusterAppUpgradeStrategyArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetMultiClusterAppUpgradeStrategy)(nil)).Elem() +func (GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions)(nil)).Elem() } -func (o GetMultiClusterAppUpgradeStrategyArrayOutput) ToGetMultiClusterAppUpgradeStrategyArrayOutput() GetMultiClusterAppUpgradeStrategyArrayOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { return o } -func (o GetMultiClusterAppUpgradeStrategyArrayOutput) ToGetMultiClusterAppUpgradeStrategyArrayOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyArrayOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { return o } -func (o GetMultiClusterAppUpgradeStrategyArrayOutput) Index(i pulumi.IntInput) GetMultiClusterAppUpgradeStrategyOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMultiClusterAppUpgradeStrategy { - return vs[0].([]GetMultiClusterAppUpgradeStrategy)[vs[1].(int)] - }).(GetMultiClusterAppUpgradeStrategyOutput) -} - -type GetMultiClusterAppUpgradeStrategyRollingUpdate struct { - // Rolling update batch size - BatchSize *int `pulumi:"batchSize"` - // Rolling update interval - Interval *int `pulumi:"interval"` -} - -// GetMultiClusterAppUpgradeStrategyRollingUpdateInput is an input type that accepts GetMultiClusterAppUpgradeStrategyRollingUpdateArgs and GetMultiClusterAppUpgradeStrategyRollingUpdateOutput values. -// You can construct a concrete instance of `GetMultiClusterAppUpgradeStrategyRollingUpdateInput` via: -// -// GetMultiClusterAppUpgradeStrategyRollingUpdateArgs{...} -type GetMultiClusterAppUpgradeStrategyRollingUpdateInput interface { - pulumi.Input - - ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutput() GetMultiClusterAppUpgradeStrategyRollingUpdateOutput - ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutputWithContext(context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdateOutput -} - -type GetMultiClusterAppUpgradeStrategyRollingUpdateArgs struct { - // Rolling update batch size - BatchSize pulumi.IntPtrInput `pulumi:"batchSize"` - // Rolling update interval - Interval pulumi.IntPtrInput `pulumi:"interval"` +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { + return o.ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(context.Background()) } -func (GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppUpgradeStrategyRollingUpdate)(nil)).Elem() +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { + return &v + }).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) } -func (i GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutput() GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { - return i.ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutputWithContext(context.Background()) +// Drain options delete empty dir data +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.DeleteEmptyDirData }).(pulumi.BoolPtrOutput) } -func (i GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) +// Drain options disable eviction +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) DisableEviction() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.DisableEviction }).(pulumi.BoolPtrOutput) } -func (i GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return i.ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(context.Background()) +// Drain options enabled? +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } -func (i GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyRollingUpdateOutput).ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx) +// Drain options force +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Force() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.Force }).(pulumi.BoolPtrOutput) } -// GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput is an input type that accepts GetMultiClusterAppUpgradeStrategyRollingUpdateArgs, GetMultiClusterAppUpgradeStrategyRollingUpdatePtr and GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput values. -// You can construct a concrete instance of `GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput` via: -// -// GetMultiClusterAppUpgradeStrategyRollingUpdateArgs{...} -// -// or: -// -// nil -type GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput interface { - pulumi.Input - - ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput - ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput +// Drain options grace period +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) GracePeriod() pulumi.IntOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) int { return v.GracePeriod }).(pulumi.IntOutput) } -type getMultiClusterAppUpgradeStrategyRollingUpdatePtrType GetMultiClusterAppUpgradeStrategyRollingUpdateArgs - -func GetMultiClusterAppUpgradeStrategyRollingUpdatePtr(v *GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput { - return (*getMultiClusterAppUpgradeStrategyRollingUpdatePtrType)(v) +// Drain options ignore daemon sets +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.IgnoreDaemonSets }).(pulumi.BoolPtrOutput) } -func (*getMultiClusterAppUpgradeStrategyRollingUpdatePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetMultiClusterAppUpgradeStrategyRollingUpdate)(nil)).Elem() +// Drain options ignore errors +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) IgnoreErrors() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { return v.IgnoreErrors }).(pulumi.BoolPtrOutput) } -func (i *getMultiClusterAppUpgradeStrategyRollingUpdatePtrType) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return i.ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(context.Background()) +// Drain options skip wait for delete timeout seconds +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) int { + return v.SkipWaitForDeleteTimeoutSeconds + }).(pulumi.IntOutput) } -func (i *getMultiClusterAppUpgradeStrategyRollingUpdatePtrType) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) +// Drain options timeout +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) Timeout() pulumi.IntOutput { + return o.ApplyT(func(v GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) int { return v.Timeout }).(pulumi.IntOutput) } -type GetMultiClusterAppUpgradeStrategyRollingUpdateOutput struct{ *pulumi.OutputState } +type GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput struct{ *pulumi.OutputState } -func (GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetMultiClusterAppUpgradeStrategyRollingUpdate)(nil)).Elem() +func (GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions)(nil)).Elem() } -func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutput() GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { return o } -func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) ToGetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutputWithContext(ctx context.Context) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput { return o } -func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return o.ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(context.Background()) +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Elem() GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { + if v != nil { + return *v + } + var ret GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions + return ret + }).(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsOutput) } -func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetMultiClusterAppUpgradeStrategyRollingUpdate) *GetMultiClusterAppUpgradeStrategyRollingUpdate { - return &v - }).(GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) +// Drain options delete empty dir data +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) DeleteEmptyDirData() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { + if v == nil { + return nil + } + return v.DeleteEmptyDirData + }).(pulumi.BoolPtrOutput) } -// Rolling update batch size -func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) BatchSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetMultiClusterAppUpgradeStrategyRollingUpdate) *int { return v.BatchSize }).(pulumi.IntPtrOutput) +// Drain options disable eviction +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) DisableEviction() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { + if v == nil { + return nil + } + return v.DisableEviction + }).(pulumi.BoolPtrOutput) } -// Rolling update interval -func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) Interval() pulumi.IntPtrOutput { - return o.ApplyT(func(v GetMultiClusterAppUpgradeStrategyRollingUpdate) *int { return v.Interval }).(pulumi.IntPtrOutput) +// Drain options enabled? +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { + if v == nil { + return nil + } + return v.Enabled + }).(pulumi.BoolPtrOutput) } -type GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput struct{ *pulumi.OutputState } - -func (GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetMultiClusterAppUpgradeStrategyRollingUpdate)(nil)).Elem() +// Drain options force +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Force() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { + if v == nil { + return nil + } + return v.Force + }).(pulumi.BoolPtrOutput) } -func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return o +// Drain options grace period +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) GracePeriod() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { + if v == nil { + return nil + } + return &v.GracePeriod + }).(pulumi.IntPtrOutput) } -func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { - return o +// Drain options ignore daemon sets +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) IgnoreDaemonSets() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { + if v == nil { + return nil + } + return v.IgnoreDaemonSets + }).(pulumi.BoolPtrOutput) } -func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) Elem() GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { - return o.ApplyT(func(v *GetMultiClusterAppUpgradeStrategyRollingUpdate) GetMultiClusterAppUpgradeStrategyRollingUpdate { - if v != nil { - return *v +// Drain options ignore errors +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) IgnoreErrors() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *bool { + if v == nil { + return nil } - var ret GetMultiClusterAppUpgradeStrategyRollingUpdate - return ret - }).(GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) + return v.IgnoreErrors + }).(pulumi.BoolPtrOutput) } -// Rolling update batch size -func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) BatchSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetMultiClusterAppUpgradeStrategyRollingUpdate) *int { +// Drain options skip wait for delete timeout seconds +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) SkipWaitForDeleteTimeoutSeconds() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { if v == nil { return nil } - return v.BatchSize + return &v.SkipWaitForDeleteTimeoutSeconds }).(pulumi.IntPtrOutput) } -// Rolling update interval -func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) Interval() pulumi.IntPtrOutput { - return o.ApplyT(func(v *GetMultiClusterAppUpgradeStrategyRollingUpdate) *int { +// Drain options timeout +func (o GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsPtrOutput) Timeout() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions) *int { if v == nil { return nil } - return v.Interval + return &v.Timeout }).(pulumi.IntPtrOutput) } -type GetNamespaceContainerResourceLimit struct { - LimitsCpu *string `pulumi:"limitsCpu"` - LimitsMemory *string `pulumi:"limitsMemory"` - RequestsCpu *string `pulumi:"requestsCpu"` - RequestsMemory *string `pulumi:"requestsMemory"` +type GetEtcdBackupBackupConfig struct { + Enabled *bool `pulumi:"enabled"` + IntervalHours *int `pulumi:"intervalHours"` + Retention *int `pulumi:"retention"` + S3BackupConfig *GetEtcdBackupBackupConfigS3BackupConfig `pulumi:"s3BackupConfig"` + SafeTimestamp *bool `pulumi:"safeTimestamp"` + Timeout int `pulumi:"timeout"` } -// GetNamespaceContainerResourceLimitInput is an input type that accepts GetNamespaceContainerResourceLimitArgs and GetNamespaceContainerResourceLimitOutput values. -// You can construct a concrete instance of `GetNamespaceContainerResourceLimitInput` via: +// GetEtcdBackupBackupConfigInput is an input type that accepts GetEtcdBackupBackupConfigArgs and GetEtcdBackupBackupConfigOutput values. +// You can construct a concrete instance of `GetEtcdBackupBackupConfigInput` via: // -// GetNamespaceContainerResourceLimitArgs{...} -type GetNamespaceContainerResourceLimitInput interface { +// GetEtcdBackupBackupConfigArgs{...} +type GetEtcdBackupBackupConfigInput interface { pulumi.Input - ToGetNamespaceContainerResourceLimitOutput() GetNamespaceContainerResourceLimitOutput - ToGetNamespaceContainerResourceLimitOutputWithContext(context.Context) GetNamespaceContainerResourceLimitOutput + ToGetEtcdBackupBackupConfigOutput() GetEtcdBackupBackupConfigOutput + ToGetEtcdBackupBackupConfigOutputWithContext(context.Context) GetEtcdBackupBackupConfigOutput } -type GetNamespaceContainerResourceLimitArgs struct { - LimitsCpu pulumi.StringPtrInput `pulumi:"limitsCpu"` - LimitsMemory pulumi.StringPtrInput `pulumi:"limitsMemory"` - RequestsCpu pulumi.StringPtrInput `pulumi:"requestsCpu"` - RequestsMemory pulumi.StringPtrInput `pulumi:"requestsMemory"` +type GetEtcdBackupBackupConfigArgs struct { + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` + IntervalHours pulumi.IntPtrInput `pulumi:"intervalHours"` + Retention pulumi.IntPtrInput `pulumi:"retention"` + S3BackupConfig GetEtcdBackupBackupConfigS3BackupConfigPtrInput `pulumi:"s3BackupConfig"` + SafeTimestamp pulumi.BoolPtrInput `pulumi:"safeTimestamp"` + Timeout pulumi.IntInput `pulumi:"timeout"` } -func (GetNamespaceContainerResourceLimitArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNamespaceContainerResourceLimit)(nil)).Elem() +func (GetEtcdBackupBackupConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetEtcdBackupBackupConfig)(nil)).Elem() } -func (i GetNamespaceContainerResourceLimitArgs) ToGetNamespaceContainerResourceLimitOutput() GetNamespaceContainerResourceLimitOutput { - return i.ToGetNamespaceContainerResourceLimitOutputWithContext(context.Background()) +func (i GetEtcdBackupBackupConfigArgs) ToGetEtcdBackupBackupConfigOutput() GetEtcdBackupBackupConfigOutput { + return i.ToGetEtcdBackupBackupConfigOutputWithContext(context.Background()) } -func (i GetNamespaceContainerResourceLimitArgs) ToGetNamespaceContainerResourceLimitOutputWithContext(ctx context.Context) GetNamespaceContainerResourceLimitOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNamespaceContainerResourceLimitOutput) +func (i GetEtcdBackupBackupConfigArgs) ToGetEtcdBackupBackupConfigOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetEtcdBackupBackupConfigOutput) } -type GetNamespaceContainerResourceLimitOutput struct{ *pulumi.OutputState } +type GetEtcdBackupBackupConfigOutput struct{ *pulumi.OutputState } -func (GetNamespaceContainerResourceLimitOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNamespaceContainerResourceLimit)(nil)).Elem() +func (GetEtcdBackupBackupConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetEtcdBackupBackupConfig)(nil)).Elem() } -func (o GetNamespaceContainerResourceLimitOutput) ToGetNamespaceContainerResourceLimitOutput() GetNamespaceContainerResourceLimitOutput { +func (o GetEtcdBackupBackupConfigOutput) ToGetEtcdBackupBackupConfigOutput() GetEtcdBackupBackupConfigOutput { return o } -func (o GetNamespaceContainerResourceLimitOutput) ToGetNamespaceContainerResourceLimitOutputWithContext(ctx context.Context) GetNamespaceContainerResourceLimitOutput { +func (o GetEtcdBackupBackupConfigOutput) ToGetEtcdBackupBackupConfigOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigOutput { return o } -func (o GetNamespaceContainerResourceLimitOutput) LimitsCpu() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceContainerResourceLimit) *string { return v.LimitsCpu }).(pulumi.StringPtrOutput) -} - -func (o GetNamespaceContainerResourceLimitOutput) LimitsMemory() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceContainerResourceLimit) *string { return v.LimitsMemory }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfig) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) } -func (o GetNamespaceContainerResourceLimitOutput) RequestsCpu() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceContainerResourceLimit) *string { return v.RequestsCpu }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigOutput) IntervalHours() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfig) *int { return v.IntervalHours }).(pulumi.IntPtrOutput) } -func (o GetNamespaceContainerResourceLimitOutput) RequestsMemory() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceContainerResourceLimit) *string { return v.RequestsMemory }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigOutput) Retention() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfig) *int { return v.Retention }).(pulumi.IntPtrOutput) } -type GetNamespaceResourceQuota struct { - Limit GetNamespaceResourceQuotaLimit `pulumi:"limit"` +func (o GetEtcdBackupBackupConfigOutput) S3BackupConfig() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfig) *GetEtcdBackupBackupConfigS3BackupConfig { return v.S3BackupConfig }).(GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) } -// GetNamespaceResourceQuotaInput is an input type that accepts GetNamespaceResourceQuotaArgs and GetNamespaceResourceQuotaOutput values. -// You can construct a concrete instance of `GetNamespaceResourceQuotaInput` via: -// -// GetNamespaceResourceQuotaArgs{...} -type GetNamespaceResourceQuotaInput interface { - pulumi.Input - - ToGetNamespaceResourceQuotaOutput() GetNamespaceResourceQuotaOutput - ToGetNamespaceResourceQuotaOutputWithContext(context.Context) GetNamespaceResourceQuotaOutput +func (o GetEtcdBackupBackupConfigOutput) SafeTimestamp() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfig) *bool { return v.SafeTimestamp }).(pulumi.BoolPtrOutput) } -type GetNamespaceResourceQuotaArgs struct { - Limit GetNamespaceResourceQuotaLimitInput `pulumi:"limit"` +func (o GetEtcdBackupBackupConfigOutput) Timeout() pulumi.IntOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfig) int { return v.Timeout }).(pulumi.IntOutput) } -func (GetNamespaceResourceQuotaArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNamespaceResourceQuota)(nil)).Elem() +type GetEtcdBackupBackupConfigS3BackupConfig struct { + AccessKey *string `pulumi:"accessKey"` + BucketName string `pulumi:"bucketName"` + CustomCa *string `pulumi:"customCa"` + Endpoint string `pulumi:"endpoint"` + Folder *string `pulumi:"folder"` + Region *string `pulumi:"region"` + SecretKey *string `pulumi:"secretKey"` } -func (i GetNamespaceResourceQuotaArgs) ToGetNamespaceResourceQuotaOutput() GetNamespaceResourceQuotaOutput { - return i.ToGetNamespaceResourceQuotaOutputWithContext(context.Background()) -} +// GetEtcdBackupBackupConfigS3BackupConfigInput is an input type that accepts GetEtcdBackupBackupConfigS3BackupConfigArgs and GetEtcdBackupBackupConfigS3BackupConfigOutput values. +// You can construct a concrete instance of `GetEtcdBackupBackupConfigS3BackupConfigInput` via: +// +// GetEtcdBackupBackupConfigS3BackupConfigArgs{...} +type GetEtcdBackupBackupConfigS3BackupConfigInput interface { + pulumi.Input -func (i GetNamespaceResourceQuotaArgs) ToGetNamespaceResourceQuotaOutputWithContext(ctx context.Context) GetNamespaceResourceQuotaOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNamespaceResourceQuotaOutput) + ToGetEtcdBackupBackupConfigS3BackupConfigOutput() GetEtcdBackupBackupConfigS3BackupConfigOutput + ToGetEtcdBackupBackupConfigS3BackupConfigOutputWithContext(context.Context) GetEtcdBackupBackupConfigS3BackupConfigOutput } -type GetNamespaceResourceQuotaOutput struct{ *pulumi.OutputState } - -func (GetNamespaceResourceQuotaOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNamespaceResourceQuota)(nil)).Elem() +type GetEtcdBackupBackupConfigS3BackupConfigArgs struct { + AccessKey pulumi.StringPtrInput `pulumi:"accessKey"` + BucketName pulumi.StringInput `pulumi:"bucketName"` + CustomCa pulumi.StringPtrInput `pulumi:"customCa"` + Endpoint pulumi.StringInput `pulumi:"endpoint"` + Folder pulumi.StringPtrInput `pulumi:"folder"` + Region pulumi.StringPtrInput `pulumi:"region"` + SecretKey pulumi.StringPtrInput `pulumi:"secretKey"` } -func (o GetNamespaceResourceQuotaOutput) ToGetNamespaceResourceQuotaOutput() GetNamespaceResourceQuotaOutput { - return o +func (GetEtcdBackupBackupConfigS3BackupConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetEtcdBackupBackupConfigS3BackupConfig)(nil)).Elem() } -func (o GetNamespaceResourceQuotaOutput) ToGetNamespaceResourceQuotaOutputWithContext(ctx context.Context) GetNamespaceResourceQuotaOutput { - return o +func (i GetEtcdBackupBackupConfigS3BackupConfigArgs) ToGetEtcdBackupBackupConfigS3BackupConfigOutput() GetEtcdBackupBackupConfigS3BackupConfigOutput { + return i.ToGetEtcdBackupBackupConfigS3BackupConfigOutputWithContext(context.Background()) } -func (o GetNamespaceResourceQuotaOutput) Limit() GetNamespaceResourceQuotaLimitOutput { - return o.ApplyT(func(v GetNamespaceResourceQuota) GetNamespaceResourceQuotaLimit { return v.Limit }).(GetNamespaceResourceQuotaLimitOutput) +func (i GetEtcdBackupBackupConfigS3BackupConfigArgs) ToGetEtcdBackupBackupConfigS3BackupConfigOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetEtcdBackupBackupConfigS3BackupConfigOutput) } - -type GetNamespaceResourceQuotaLimit struct { - ConfigMaps *string `pulumi:"configMaps"` - LimitsCpu *string `pulumi:"limitsCpu"` - LimitsMemory *string `pulumi:"limitsMemory"` - PersistentVolumeClaims *string `pulumi:"persistentVolumeClaims"` - Pods *string `pulumi:"pods"` - ReplicationControllers *string `pulumi:"replicationControllers"` - RequestsCpu *string `pulumi:"requestsCpu"` - RequestsMemory *string `pulumi:"requestsMemory"` - RequestsStorage *string `pulumi:"requestsStorage"` - Secrets *string `pulumi:"secrets"` - Services *string `pulumi:"services"` - ServicesLoadBalancers *string `pulumi:"servicesLoadBalancers"` - ServicesNodePorts *string `pulumi:"servicesNodePorts"` + +func (i GetEtcdBackupBackupConfigS3BackupConfigArgs) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return i.ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) } -// GetNamespaceResourceQuotaLimitInput is an input type that accepts GetNamespaceResourceQuotaLimitArgs and GetNamespaceResourceQuotaLimitOutput values. -// You can construct a concrete instance of `GetNamespaceResourceQuotaLimitInput` via: +func (i GetEtcdBackupBackupConfigS3BackupConfigArgs) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetEtcdBackupBackupConfigS3BackupConfigOutput).ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx) +} + +// GetEtcdBackupBackupConfigS3BackupConfigPtrInput is an input type that accepts GetEtcdBackupBackupConfigS3BackupConfigArgs, GetEtcdBackupBackupConfigS3BackupConfigPtr and GetEtcdBackupBackupConfigS3BackupConfigPtrOutput values. +// You can construct a concrete instance of `GetEtcdBackupBackupConfigS3BackupConfigPtrInput` via: // -// GetNamespaceResourceQuotaLimitArgs{...} -type GetNamespaceResourceQuotaLimitInput interface { +// GetEtcdBackupBackupConfigS3BackupConfigArgs{...} +// +// or: +// +// nil +type GetEtcdBackupBackupConfigS3BackupConfigPtrInput interface { pulumi.Input - ToGetNamespaceResourceQuotaLimitOutput() GetNamespaceResourceQuotaLimitOutput - ToGetNamespaceResourceQuotaLimitOutputWithContext(context.Context) GetNamespaceResourceQuotaLimitOutput + ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput + ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput } -type GetNamespaceResourceQuotaLimitArgs struct { - ConfigMaps pulumi.StringPtrInput `pulumi:"configMaps"` - LimitsCpu pulumi.StringPtrInput `pulumi:"limitsCpu"` - LimitsMemory pulumi.StringPtrInput `pulumi:"limitsMemory"` - PersistentVolumeClaims pulumi.StringPtrInput `pulumi:"persistentVolumeClaims"` - Pods pulumi.StringPtrInput `pulumi:"pods"` - ReplicationControllers pulumi.StringPtrInput `pulumi:"replicationControllers"` - RequestsCpu pulumi.StringPtrInput `pulumi:"requestsCpu"` - RequestsMemory pulumi.StringPtrInput `pulumi:"requestsMemory"` - RequestsStorage pulumi.StringPtrInput `pulumi:"requestsStorage"` - Secrets pulumi.StringPtrInput `pulumi:"secrets"` - Services pulumi.StringPtrInput `pulumi:"services"` - ServicesLoadBalancers pulumi.StringPtrInput `pulumi:"servicesLoadBalancers"` - ServicesNodePorts pulumi.StringPtrInput `pulumi:"servicesNodePorts"` +type getEtcdBackupBackupConfigS3BackupConfigPtrType GetEtcdBackupBackupConfigS3BackupConfigArgs + +func GetEtcdBackupBackupConfigS3BackupConfigPtr(v *GetEtcdBackupBackupConfigS3BackupConfigArgs) GetEtcdBackupBackupConfigS3BackupConfigPtrInput { + return (*getEtcdBackupBackupConfigS3BackupConfigPtrType)(v) } -func (GetNamespaceResourceQuotaLimitArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNamespaceResourceQuotaLimit)(nil)).Elem() +func (*getEtcdBackupBackupConfigS3BackupConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetEtcdBackupBackupConfigS3BackupConfig)(nil)).Elem() } -func (i GetNamespaceResourceQuotaLimitArgs) ToGetNamespaceResourceQuotaLimitOutput() GetNamespaceResourceQuotaLimitOutput { - return i.ToGetNamespaceResourceQuotaLimitOutputWithContext(context.Background()) +func (i *getEtcdBackupBackupConfigS3BackupConfigPtrType) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return i.ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) } -func (i GetNamespaceResourceQuotaLimitArgs) ToGetNamespaceResourceQuotaLimitOutputWithContext(ctx context.Context) GetNamespaceResourceQuotaLimitOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNamespaceResourceQuotaLimitOutput) +func (i *getEtcdBackupBackupConfigS3BackupConfigPtrType) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) } -type GetNamespaceResourceQuotaLimitOutput struct{ *pulumi.OutputState } +type GetEtcdBackupBackupConfigS3BackupConfigOutput struct{ *pulumi.OutputState } -func (GetNamespaceResourceQuotaLimitOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNamespaceResourceQuotaLimit)(nil)).Elem() +func (GetEtcdBackupBackupConfigS3BackupConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetEtcdBackupBackupConfigS3BackupConfig)(nil)).Elem() } -func (o GetNamespaceResourceQuotaLimitOutput) ToGetNamespaceResourceQuotaLimitOutput() GetNamespaceResourceQuotaLimitOutput { +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) ToGetEtcdBackupBackupConfigS3BackupConfigOutput() GetEtcdBackupBackupConfigS3BackupConfigOutput { return o } -func (o GetNamespaceResourceQuotaLimitOutput) ToGetNamespaceResourceQuotaLimitOutputWithContext(ctx context.Context) GetNamespaceResourceQuotaLimitOutput { +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) ToGetEtcdBackupBackupConfigS3BackupConfigOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigOutput { return o } -func (o GetNamespaceResourceQuotaLimitOutput) ConfigMaps() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.ConfigMaps }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return o.ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(context.Background()) } -func (o GetNamespaceResourceQuotaLimitOutput) LimitsCpu() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.LimitsCpu }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetEtcdBackupBackupConfigS3BackupConfig) *GetEtcdBackupBackupConfigS3BackupConfig { + return &v + }).(GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) } -func (o GetNamespaceResourceQuotaLimitOutput) LimitsMemory() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.LimitsMemory }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) AccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.AccessKey }).(pulumi.StringPtrOutput) } -func (o GetNamespaceResourceQuotaLimitOutput) PersistentVolumeClaims() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.PersistentVolumeClaims }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) BucketName() pulumi.StringOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) string { return v.BucketName }).(pulumi.StringOutput) } -func (o GetNamespaceResourceQuotaLimitOutput) Pods() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.Pods }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) CustomCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.CustomCa }).(pulumi.StringPtrOutput) } -func (o GetNamespaceResourceQuotaLimitOutput) ReplicationControllers() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.ReplicationControllers }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) Endpoint() pulumi.StringOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) string { return v.Endpoint }).(pulumi.StringOutput) } -func (o GetNamespaceResourceQuotaLimitOutput) RequestsCpu() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.RequestsCpu }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) Folder() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.Folder }).(pulumi.StringPtrOutput) } -func (o GetNamespaceResourceQuotaLimitOutput) RequestsMemory() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.RequestsMemory }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.Region }).(pulumi.StringPtrOutput) } -func (o GetNamespaceResourceQuotaLimitOutput) RequestsStorage() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.RequestsStorage }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigOutput) SecretKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetEtcdBackupBackupConfigS3BackupConfig) *string { return v.SecretKey }).(pulumi.StringPtrOutput) } -func (o GetNamespaceResourceQuotaLimitOutput) Secrets() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.Secrets }).(pulumi.StringPtrOutput) +type GetEtcdBackupBackupConfigS3BackupConfigPtrOutput struct{ *pulumi.OutputState } + +func (GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetEtcdBackupBackupConfigS3BackupConfig)(nil)).Elem() } -func (o GetNamespaceResourceQuotaLimitOutput) Services() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.Services }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutput() GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return o } -func (o GetNamespaceResourceQuotaLimitOutput) ServicesLoadBalancers() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.ServicesLoadBalancers }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) ToGetEtcdBackupBackupConfigS3BackupConfigPtrOutputWithContext(ctx context.Context) GetEtcdBackupBackupConfigS3BackupConfigPtrOutput { + return o } -func (o GetNamespaceResourceQuotaLimitOutput) ServicesNodePorts() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.ServicesNodePorts }).(pulumi.StringPtrOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) Elem() GetEtcdBackupBackupConfigS3BackupConfigOutput { + return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) GetEtcdBackupBackupConfigS3BackupConfig { + if v != nil { + return *v + } + var ret GetEtcdBackupBackupConfigS3BackupConfig + return ret + }).(GetEtcdBackupBackupConfigS3BackupConfigOutput) } -type GetNodePoolNodeTaint struct { - Effect *string `pulumi:"effect"` - Key string `pulumi:"key"` - TimeAdded string `pulumi:"timeAdded"` - Value string `pulumi:"value"` +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) AccessKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return v.AccessKey + }).(pulumi.StringPtrOutput) } -// GetNodePoolNodeTaintInput is an input type that accepts GetNodePoolNodeTaintArgs and GetNodePoolNodeTaintOutput values. -// You can construct a concrete instance of `GetNodePoolNodeTaintInput` via: -// -// GetNodePoolNodeTaintArgs{...} -type GetNodePoolNodeTaintInput interface { - pulumi.Input +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) BucketName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return &v.BucketName + }).(pulumi.StringPtrOutput) +} - ToGetNodePoolNodeTaintOutput() GetNodePoolNodeTaintOutput - ToGetNodePoolNodeTaintOutputWithContext(context.Context) GetNodePoolNodeTaintOutput +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) CustomCa() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return v.CustomCa + }).(pulumi.StringPtrOutput) } -type GetNodePoolNodeTaintArgs struct { - Effect pulumi.StringPtrInput `pulumi:"effect"` - Key pulumi.StringInput `pulumi:"key"` - TimeAdded pulumi.StringInput `pulumi:"timeAdded"` - Value pulumi.StringInput `pulumi:"value"` +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) Endpoint() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return &v.Endpoint + }).(pulumi.StringPtrOutput) } -func (GetNodePoolNodeTaintArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNodePoolNodeTaint)(nil)).Elem() +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) Folder() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return v.Folder + }).(pulumi.StringPtrOutput) } -func (i GetNodePoolNodeTaintArgs) ToGetNodePoolNodeTaintOutput() GetNodePoolNodeTaintOutput { - return i.ToGetNodePoolNodeTaintOutputWithContext(context.Background()) +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return v.Region + }).(pulumi.StringPtrOutput) } -func (i GetNodePoolNodeTaintArgs) ToGetNodePoolNodeTaintOutputWithContext(ctx context.Context) GetNodePoolNodeTaintOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNodePoolNodeTaintOutput) +func (o GetEtcdBackupBackupConfigS3BackupConfigPtrOutput) SecretKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetEtcdBackupBackupConfigS3BackupConfig) *string { + if v == nil { + return nil + } + return v.SecretKey + }).(pulumi.StringPtrOutput) } -// GetNodePoolNodeTaintArrayInput is an input type that accepts GetNodePoolNodeTaintArray and GetNodePoolNodeTaintArrayOutput values. -// You can construct a concrete instance of `GetNodePoolNodeTaintArrayInput` via: +type GetGlobalDnsProviderAlidnsConfig struct { + AccessKey string `pulumi:"accessKey"` + SecretKey string `pulumi:"secretKey"` +} + +// GetGlobalDnsProviderAlidnsConfigInput is an input type that accepts GetGlobalDnsProviderAlidnsConfigArgs and GetGlobalDnsProviderAlidnsConfigOutput values. +// You can construct a concrete instance of `GetGlobalDnsProviderAlidnsConfigInput` via: // -// GetNodePoolNodeTaintArray{ GetNodePoolNodeTaintArgs{...} } -type GetNodePoolNodeTaintArrayInput interface { +// GetGlobalDnsProviderAlidnsConfigArgs{...} +type GetGlobalDnsProviderAlidnsConfigInput interface { pulumi.Input - ToGetNodePoolNodeTaintArrayOutput() GetNodePoolNodeTaintArrayOutput - ToGetNodePoolNodeTaintArrayOutputWithContext(context.Context) GetNodePoolNodeTaintArrayOutput + ToGetGlobalDnsProviderAlidnsConfigOutput() GetGlobalDnsProviderAlidnsConfigOutput + ToGetGlobalDnsProviderAlidnsConfigOutputWithContext(context.Context) GetGlobalDnsProviderAlidnsConfigOutput } -type GetNodePoolNodeTaintArray []GetNodePoolNodeTaintInput +type GetGlobalDnsProviderAlidnsConfigArgs struct { + AccessKey pulumi.StringInput `pulumi:"accessKey"` + SecretKey pulumi.StringInput `pulumi:"secretKey"` +} -func (GetNodePoolNodeTaintArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetNodePoolNodeTaint)(nil)).Elem() +func (GetGlobalDnsProviderAlidnsConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalDnsProviderAlidnsConfig)(nil)).Elem() } -func (i GetNodePoolNodeTaintArray) ToGetNodePoolNodeTaintArrayOutput() GetNodePoolNodeTaintArrayOutput { - return i.ToGetNodePoolNodeTaintArrayOutputWithContext(context.Background()) +func (i GetGlobalDnsProviderAlidnsConfigArgs) ToGetGlobalDnsProviderAlidnsConfigOutput() GetGlobalDnsProviderAlidnsConfigOutput { + return i.ToGetGlobalDnsProviderAlidnsConfigOutputWithContext(context.Background()) } -func (i GetNodePoolNodeTaintArray) ToGetNodePoolNodeTaintArrayOutputWithContext(ctx context.Context) GetNodePoolNodeTaintArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNodePoolNodeTaintArrayOutput) +func (i GetGlobalDnsProviderAlidnsConfigArgs) ToGetGlobalDnsProviderAlidnsConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderAlidnsConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalDnsProviderAlidnsConfigOutput) } -type GetNodePoolNodeTaintOutput struct{ *pulumi.OutputState } +type GetGlobalDnsProviderAlidnsConfigOutput struct{ *pulumi.OutputState } -func (GetNodePoolNodeTaintOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNodePoolNodeTaint)(nil)).Elem() +func (GetGlobalDnsProviderAlidnsConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalDnsProviderAlidnsConfig)(nil)).Elem() } -func (o GetNodePoolNodeTaintOutput) ToGetNodePoolNodeTaintOutput() GetNodePoolNodeTaintOutput { +func (o GetGlobalDnsProviderAlidnsConfigOutput) ToGetGlobalDnsProviderAlidnsConfigOutput() GetGlobalDnsProviderAlidnsConfigOutput { return o } -func (o GetNodePoolNodeTaintOutput) ToGetNodePoolNodeTaintOutputWithContext(ctx context.Context) GetNodePoolNodeTaintOutput { +func (o GetGlobalDnsProviderAlidnsConfigOutput) ToGetGlobalDnsProviderAlidnsConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderAlidnsConfigOutput { return o } -func (o GetNodePoolNodeTaintOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNodePoolNodeTaint) *string { return v.Effect }).(pulumi.StringPtrOutput) +func (o GetGlobalDnsProviderAlidnsConfigOutput) AccessKey() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalDnsProviderAlidnsConfig) string { return v.AccessKey }).(pulumi.StringOutput) } -func (o GetNodePoolNodeTaintOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v GetNodePoolNodeTaint) string { return v.Key }).(pulumi.StringOutput) +func (o GetGlobalDnsProviderAlidnsConfigOutput) SecretKey() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalDnsProviderAlidnsConfig) string { return v.SecretKey }).(pulumi.StringOutput) } -func (o GetNodePoolNodeTaintOutput) TimeAdded() pulumi.StringOutput { - return o.ApplyT(func(v GetNodePoolNodeTaint) string { return v.TimeAdded }).(pulumi.StringOutput) +type GetGlobalDnsProviderCloudflareConfig struct { + ApiEmail string `pulumi:"apiEmail"` + ApiKey string `pulumi:"apiKey"` + ProxySetting *bool `pulumi:"proxySetting"` } -func (o GetNodePoolNodeTaintOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v GetNodePoolNodeTaint) string { return v.Value }).(pulumi.StringOutput) -} +// GetGlobalDnsProviderCloudflareConfigInput is an input type that accepts GetGlobalDnsProviderCloudflareConfigArgs and GetGlobalDnsProviderCloudflareConfigOutput values. +// You can construct a concrete instance of `GetGlobalDnsProviderCloudflareConfigInput` via: +// +// GetGlobalDnsProviderCloudflareConfigArgs{...} +type GetGlobalDnsProviderCloudflareConfigInput interface { + pulumi.Input -type GetNodePoolNodeTaintArrayOutput struct{ *pulumi.OutputState } + ToGetGlobalDnsProviderCloudflareConfigOutput() GetGlobalDnsProviderCloudflareConfigOutput + ToGetGlobalDnsProviderCloudflareConfigOutputWithContext(context.Context) GetGlobalDnsProviderCloudflareConfigOutput +} -func (GetNodePoolNodeTaintArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetNodePoolNodeTaint)(nil)).Elem() +type GetGlobalDnsProviderCloudflareConfigArgs struct { + ApiEmail pulumi.StringInput `pulumi:"apiEmail"` + ApiKey pulumi.StringInput `pulumi:"apiKey"` + ProxySetting pulumi.BoolPtrInput `pulumi:"proxySetting"` } -func (o GetNodePoolNodeTaintArrayOutput) ToGetNodePoolNodeTaintArrayOutput() GetNodePoolNodeTaintArrayOutput { - return o +func (GetGlobalDnsProviderCloudflareConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalDnsProviderCloudflareConfig)(nil)).Elem() } -func (o GetNodePoolNodeTaintArrayOutput) ToGetNodePoolNodeTaintArrayOutputWithContext(ctx context.Context) GetNodePoolNodeTaintArrayOutput { - return o +func (i GetGlobalDnsProviderCloudflareConfigArgs) ToGetGlobalDnsProviderCloudflareConfigOutput() GetGlobalDnsProviderCloudflareConfigOutput { + return i.ToGetGlobalDnsProviderCloudflareConfigOutputWithContext(context.Background()) } -func (o GetNodePoolNodeTaintArrayOutput) Index(i pulumi.IntInput) GetNodePoolNodeTaintOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetNodePoolNodeTaint { - return vs[0].([]GetNodePoolNodeTaint)[vs[1].(int)] - }).(GetNodePoolNodeTaintOutput) +func (i GetGlobalDnsProviderCloudflareConfigArgs) ToGetGlobalDnsProviderCloudflareConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderCloudflareConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalDnsProviderCloudflareConfigOutput) } -type GetNodeTemplateNodeTaint struct { - Effect *string `pulumi:"effect"` - Key string `pulumi:"key"` - TimeAdded string `pulumi:"timeAdded"` - Value string `pulumi:"value"` +type GetGlobalDnsProviderCloudflareConfigOutput struct{ *pulumi.OutputState } + +func (GetGlobalDnsProviderCloudflareConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalDnsProviderCloudflareConfig)(nil)).Elem() } -// GetNodeTemplateNodeTaintInput is an input type that accepts GetNodeTemplateNodeTaintArgs and GetNodeTemplateNodeTaintOutput values. -// You can construct a concrete instance of `GetNodeTemplateNodeTaintInput` via: -// -// GetNodeTemplateNodeTaintArgs{...} -type GetNodeTemplateNodeTaintInput interface { - pulumi.Input +func (o GetGlobalDnsProviderCloudflareConfigOutput) ToGetGlobalDnsProviderCloudflareConfigOutput() GetGlobalDnsProviderCloudflareConfigOutput { + return o +} - ToGetNodeTemplateNodeTaintOutput() GetNodeTemplateNodeTaintOutput - ToGetNodeTemplateNodeTaintOutputWithContext(context.Context) GetNodeTemplateNodeTaintOutput +func (o GetGlobalDnsProviderCloudflareConfigOutput) ToGetGlobalDnsProviderCloudflareConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderCloudflareConfigOutput { + return o } -type GetNodeTemplateNodeTaintArgs struct { - Effect pulumi.StringPtrInput `pulumi:"effect"` - Key pulumi.StringInput `pulumi:"key"` - TimeAdded pulumi.StringInput `pulumi:"timeAdded"` - Value pulumi.StringInput `pulumi:"value"` +func (o GetGlobalDnsProviderCloudflareConfigOutput) ApiEmail() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalDnsProviderCloudflareConfig) string { return v.ApiEmail }).(pulumi.StringOutput) } -func (GetNodeTemplateNodeTaintArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNodeTemplateNodeTaint)(nil)).Elem() +func (o GetGlobalDnsProviderCloudflareConfigOutput) ApiKey() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalDnsProviderCloudflareConfig) string { return v.ApiKey }).(pulumi.StringOutput) } -func (i GetNodeTemplateNodeTaintArgs) ToGetNodeTemplateNodeTaintOutput() GetNodeTemplateNodeTaintOutput { - return i.ToGetNodeTemplateNodeTaintOutputWithContext(context.Background()) +func (o GetGlobalDnsProviderCloudflareConfigOutput) ProxySetting() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetGlobalDnsProviderCloudflareConfig) *bool { return v.ProxySetting }).(pulumi.BoolPtrOutput) } -func (i GetNodeTemplateNodeTaintArgs) ToGetNodeTemplateNodeTaintOutputWithContext(ctx context.Context) GetNodeTemplateNodeTaintOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNodeTemplateNodeTaintOutput) +type GetGlobalDnsProviderRoute53Config struct { + AccessKey string `pulumi:"accessKey"` + CredentialsPath *string `pulumi:"credentialsPath"` + Region *string `pulumi:"region"` + RoleArn *string `pulumi:"roleArn"` + SecretKey string `pulumi:"secretKey"` + ZoneType *string `pulumi:"zoneType"` } -// GetNodeTemplateNodeTaintArrayInput is an input type that accepts GetNodeTemplateNodeTaintArray and GetNodeTemplateNodeTaintArrayOutput values. -// You can construct a concrete instance of `GetNodeTemplateNodeTaintArrayInput` via: +// GetGlobalDnsProviderRoute53ConfigInput is an input type that accepts GetGlobalDnsProviderRoute53ConfigArgs and GetGlobalDnsProviderRoute53ConfigOutput values. +// You can construct a concrete instance of `GetGlobalDnsProviderRoute53ConfigInput` via: // -// GetNodeTemplateNodeTaintArray{ GetNodeTemplateNodeTaintArgs{...} } -type GetNodeTemplateNodeTaintArrayInput interface { +// GetGlobalDnsProviderRoute53ConfigArgs{...} +type GetGlobalDnsProviderRoute53ConfigInput interface { pulumi.Input - ToGetNodeTemplateNodeTaintArrayOutput() GetNodeTemplateNodeTaintArrayOutput - ToGetNodeTemplateNodeTaintArrayOutputWithContext(context.Context) GetNodeTemplateNodeTaintArrayOutput + ToGetGlobalDnsProviderRoute53ConfigOutput() GetGlobalDnsProviderRoute53ConfigOutput + ToGetGlobalDnsProviderRoute53ConfigOutputWithContext(context.Context) GetGlobalDnsProviderRoute53ConfigOutput } -type GetNodeTemplateNodeTaintArray []GetNodeTemplateNodeTaintInput +type GetGlobalDnsProviderRoute53ConfigArgs struct { + AccessKey pulumi.StringInput `pulumi:"accessKey"` + CredentialsPath pulumi.StringPtrInput `pulumi:"credentialsPath"` + Region pulumi.StringPtrInput `pulumi:"region"` + RoleArn pulumi.StringPtrInput `pulumi:"roleArn"` + SecretKey pulumi.StringInput `pulumi:"secretKey"` + ZoneType pulumi.StringPtrInput `pulumi:"zoneType"` +} -func (GetNodeTemplateNodeTaintArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetNodeTemplateNodeTaint)(nil)).Elem() +func (GetGlobalDnsProviderRoute53ConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalDnsProviderRoute53Config)(nil)).Elem() } -func (i GetNodeTemplateNodeTaintArray) ToGetNodeTemplateNodeTaintArrayOutput() GetNodeTemplateNodeTaintArrayOutput { - return i.ToGetNodeTemplateNodeTaintArrayOutputWithContext(context.Background()) +func (i GetGlobalDnsProviderRoute53ConfigArgs) ToGetGlobalDnsProviderRoute53ConfigOutput() GetGlobalDnsProviderRoute53ConfigOutput { + return i.ToGetGlobalDnsProviderRoute53ConfigOutputWithContext(context.Background()) } -func (i GetNodeTemplateNodeTaintArray) ToGetNodeTemplateNodeTaintArrayOutputWithContext(ctx context.Context) GetNodeTemplateNodeTaintArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNodeTemplateNodeTaintArrayOutput) +func (i GetGlobalDnsProviderRoute53ConfigArgs) ToGetGlobalDnsProviderRoute53ConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderRoute53ConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalDnsProviderRoute53ConfigOutput) } -type GetNodeTemplateNodeTaintOutput struct{ *pulumi.OutputState } +type GetGlobalDnsProviderRoute53ConfigOutput struct{ *pulumi.OutputState } -func (GetNodeTemplateNodeTaintOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNodeTemplateNodeTaint)(nil)).Elem() +func (GetGlobalDnsProviderRoute53ConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalDnsProviderRoute53Config)(nil)).Elem() } -func (o GetNodeTemplateNodeTaintOutput) ToGetNodeTemplateNodeTaintOutput() GetNodeTemplateNodeTaintOutput { +func (o GetGlobalDnsProviderRoute53ConfigOutput) ToGetGlobalDnsProviderRoute53ConfigOutput() GetGlobalDnsProviderRoute53ConfigOutput { return o } -func (o GetNodeTemplateNodeTaintOutput) ToGetNodeTemplateNodeTaintOutputWithContext(ctx context.Context) GetNodeTemplateNodeTaintOutput { +func (o GetGlobalDnsProviderRoute53ConfigOutput) ToGetGlobalDnsProviderRoute53ConfigOutputWithContext(ctx context.Context) GetGlobalDnsProviderRoute53ConfigOutput { return o } -func (o GetNodeTemplateNodeTaintOutput) Effect() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNodeTemplateNodeTaint) *string { return v.Effect }).(pulumi.StringPtrOutput) -} - -func (o GetNodeTemplateNodeTaintOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v GetNodeTemplateNodeTaint) string { return v.Key }).(pulumi.StringOutput) -} - -func (o GetNodeTemplateNodeTaintOutput) TimeAdded() pulumi.StringOutput { - return o.ApplyT(func(v GetNodeTemplateNodeTaint) string { return v.TimeAdded }).(pulumi.StringOutput) +func (o GetGlobalDnsProviderRoute53ConfigOutput) AccessKey() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) string { return v.AccessKey }).(pulumi.StringOutput) } -func (o GetNodeTemplateNodeTaintOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v GetNodeTemplateNodeTaint) string { return v.Value }).(pulumi.StringOutput) +func (o GetGlobalDnsProviderRoute53ConfigOutput) CredentialsPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) *string { return v.CredentialsPath }).(pulumi.StringPtrOutput) } -type GetNodeTemplateNodeTaintArrayOutput struct{ *pulumi.OutputState } - -func (GetNodeTemplateNodeTaintArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetNodeTemplateNodeTaint)(nil)).Elem() +func (o GetGlobalDnsProviderRoute53ConfigOutput) Region() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) *string { return v.Region }).(pulumi.StringPtrOutput) } -func (o GetNodeTemplateNodeTaintArrayOutput) ToGetNodeTemplateNodeTaintArrayOutput() GetNodeTemplateNodeTaintArrayOutput { - return o +func (o GetGlobalDnsProviderRoute53ConfigOutput) RoleArn() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) *string { return v.RoleArn }).(pulumi.StringPtrOutput) } -func (o GetNodeTemplateNodeTaintArrayOutput) ToGetNodeTemplateNodeTaintArrayOutputWithContext(ctx context.Context) GetNodeTemplateNodeTaintArrayOutput { - return o +func (o GetGlobalDnsProviderRoute53ConfigOutput) SecretKey() pulumi.StringOutput { + return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) string { return v.SecretKey }).(pulumi.StringOutput) } -func (o GetNodeTemplateNodeTaintArrayOutput) Index(i pulumi.IntInput) GetNodeTemplateNodeTaintOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetNodeTemplateNodeTaint { - return vs[0].([]GetNodeTemplateNodeTaint)[vs[1].(int)] - }).(GetNodeTemplateNodeTaintOutput) +func (o GetGlobalDnsProviderRoute53ConfigOutput) ZoneType() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetGlobalDnsProviderRoute53Config) *string { return v.ZoneType }).(pulumi.StringPtrOutput) } -type GetNotifierDingtalkConfig struct { - // Dingtalk proxy URL - ProxyUrl *string `pulumi:"proxyUrl"` - // Required for webhook with sign enabled - Secret *string `pulumi:"secret"` - // Webhook URL - Url string `pulumi:"url"` +type GetGlobalRoleRule struct { + // Policy rule api groups + ApiGroups []string `pulumi:"apiGroups"` + // Policy rule non resource urls + NonResourceUrls []string `pulumi:"nonResourceUrls"` + // Policy rule resource names + ResourceNames []string `pulumi:"resourceNames"` + // Policy rule resources + Resources []string `pulumi:"resources"` + // Policy rule verbs + Verbs []string `pulumi:"verbs"` } -// GetNotifierDingtalkConfigInput is an input type that accepts GetNotifierDingtalkConfigArgs and GetNotifierDingtalkConfigOutput values. -// You can construct a concrete instance of `GetNotifierDingtalkConfigInput` via: +// GetGlobalRoleRuleInput is an input type that accepts GetGlobalRoleRuleArgs and GetGlobalRoleRuleOutput values. +// You can construct a concrete instance of `GetGlobalRoleRuleInput` via: // -// GetNotifierDingtalkConfigArgs{...} -type GetNotifierDingtalkConfigInput interface { +// GetGlobalRoleRuleArgs{...} +type GetGlobalRoleRuleInput interface { pulumi.Input - ToGetNotifierDingtalkConfigOutput() GetNotifierDingtalkConfigOutput - ToGetNotifierDingtalkConfigOutputWithContext(context.Context) GetNotifierDingtalkConfigOutput -} - -type GetNotifierDingtalkConfigArgs struct { - // Dingtalk proxy URL - ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` - // Required for webhook with sign enabled - Secret pulumi.StringPtrInput `pulumi:"secret"` - // Webhook URL - Url pulumi.StringInput `pulumi:"url"` -} - -func (GetNotifierDingtalkConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierDingtalkConfig)(nil)).Elem() + ToGetGlobalRoleRuleOutput() GetGlobalRoleRuleOutput + ToGetGlobalRoleRuleOutputWithContext(context.Context) GetGlobalRoleRuleOutput } -func (i GetNotifierDingtalkConfigArgs) ToGetNotifierDingtalkConfigOutput() GetNotifierDingtalkConfigOutput { - return i.ToGetNotifierDingtalkConfigOutputWithContext(context.Background()) +type GetGlobalRoleRuleArgs struct { + // Policy rule api groups + ApiGroups pulumi.StringArrayInput `pulumi:"apiGroups"` + // Policy rule non resource urls + NonResourceUrls pulumi.StringArrayInput `pulumi:"nonResourceUrls"` + // Policy rule resource names + ResourceNames pulumi.StringArrayInput `pulumi:"resourceNames"` + // Policy rule resources + Resources pulumi.StringArrayInput `pulumi:"resources"` + // Policy rule verbs + Verbs pulumi.StringArrayInput `pulumi:"verbs"` } -func (i GetNotifierDingtalkConfigArgs) ToGetNotifierDingtalkConfigOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierDingtalkConfigOutput) +func (GetGlobalRoleRuleArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalRoleRule)(nil)).Elem() } -func (i GetNotifierDingtalkConfigArgs) ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput { - return i.ToGetNotifierDingtalkConfigPtrOutputWithContext(context.Background()) +func (i GetGlobalRoleRuleArgs) ToGetGlobalRoleRuleOutput() GetGlobalRoleRuleOutput { + return i.ToGetGlobalRoleRuleOutputWithContext(context.Background()) } -func (i GetNotifierDingtalkConfigArgs) ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierDingtalkConfigOutput).ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx) +func (i GetGlobalRoleRuleArgs) ToGetGlobalRoleRuleOutputWithContext(ctx context.Context) GetGlobalRoleRuleOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalRoleRuleOutput) } -// GetNotifierDingtalkConfigPtrInput is an input type that accepts GetNotifierDingtalkConfigArgs, GetNotifierDingtalkConfigPtr and GetNotifierDingtalkConfigPtrOutput values. -// You can construct a concrete instance of `GetNotifierDingtalkConfigPtrInput` via: -// -// GetNotifierDingtalkConfigArgs{...} -// -// or: +// GetGlobalRoleRuleArrayInput is an input type that accepts GetGlobalRoleRuleArray and GetGlobalRoleRuleArrayOutput values. +// You can construct a concrete instance of `GetGlobalRoleRuleArrayInput` via: // -// nil -type GetNotifierDingtalkConfigPtrInput interface { +// GetGlobalRoleRuleArray{ GetGlobalRoleRuleArgs{...} } +type GetGlobalRoleRuleArrayInput interface { pulumi.Input - ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput - ToGetNotifierDingtalkConfigPtrOutputWithContext(context.Context) GetNotifierDingtalkConfigPtrOutput + ToGetGlobalRoleRuleArrayOutput() GetGlobalRoleRuleArrayOutput + ToGetGlobalRoleRuleArrayOutputWithContext(context.Context) GetGlobalRoleRuleArrayOutput } -type getNotifierDingtalkConfigPtrType GetNotifierDingtalkConfigArgs - -func GetNotifierDingtalkConfigPtr(v *GetNotifierDingtalkConfigArgs) GetNotifierDingtalkConfigPtrInput { - return (*getNotifierDingtalkConfigPtrType)(v) -} +type GetGlobalRoleRuleArray []GetGlobalRoleRuleInput -func (*getNotifierDingtalkConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetNotifierDingtalkConfig)(nil)).Elem() +func (GetGlobalRoleRuleArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetGlobalRoleRule)(nil)).Elem() } - -func (i *getNotifierDingtalkConfigPtrType) ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput { - return i.ToGetNotifierDingtalkConfigPtrOutputWithContext(context.Background()) + +func (i GetGlobalRoleRuleArray) ToGetGlobalRoleRuleArrayOutput() GetGlobalRoleRuleArrayOutput { + return i.ToGetGlobalRoleRuleArrayOutputWithContext(context.Background()) } -func (i *getNotifierDingtalkConfigPtrType) ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierDingtalkConfigPtrOutput) +func (i GetGlobalRoleRuleArray) ToGetGlobalRoleRuleArrayOutputWithContext(ctx context.Context) GetGlobalRoleRuleArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetGlobalRoleRuleArrayOutput) } -type GetNotifierDingtalkConfigOutput struct{ *pulumi.OutputState } +type GetGlobalRoleRuleOutput struct{ *pulumi.OutputState } -func (GetNotifierDingtalkConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierDingtalkConfig)(nil)).Elem() +func (GetGlobalRoleRuleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetGlobalRoleRule)(nil)).Elem() } -func (o GetNotifierDingtalkConfigOutput) ToGetNotifierDingtalkConfigOutput() GetNotifierDingtalkConfigOutput { +func (o GetGlobalRoleRuleOutput) ToGetGlobalRoleRuleOutput() GetGlobalRoleRuleOutput { return o } -func (o GetNotifierDingtalkConfigOutput) ToGetNotifierDingtalkConfigOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigOutput { +func (o GetGlobalRoleRuleOutput) ToGetGlobalRoleRuleOutputWithContext(ctx context.Context) GetGlobalRoleRuleOutput { return o } -func (o GetNotifierDingtalkConfigOutput) ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput { - return o.ToGetNotifierDingtalkConfigPtrOutputWithContext(context.Background()) +// Policy rule api groups +func (o GetGlobalRoleRuleOutput) ApiGroups() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.ApiGroups }).(pulumi.StringArrayOutput) } -func (o GetNotifierDingtalkConfigOutput) ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetNotifierDingtalkConfig) *GetNotifierDingtalkConfig { - return &v - }).(GetNotifierDingtalkConfigPtrOutput) +// Policy rule non resource urls +func (o GetGlobalRoleRuleOutput) NonResourceUrls() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.NonResourceUrls }).(pulumi.StringArrayOutput) } -// Dingtalk proxy URL -func (o GetNotifierDingtalkConfigOutput) ProxyUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierDingtalkConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) +// Policy rule resource names +func (o GetGlobalRoleRuleOutput) ResourceNames() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.ResourceNames }).(pulumi.StringArrayOutput) } -// Required for webhook with sign enabled -func (o GetNotifierDingtalkConfigOutput) Secret() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierDingtalkConfig) *string { return v.Secret }).(pulumi.StringPtrOutput) +// Policy rule resources +func (o GetGlobalRoleRuleOutput) Resources() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.Resources }).(pulumi.StringArrayOutput) } -// Webhook URL -func (o GetNotifierDingtalkConfigOutput) Url() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierDingtalkConfig) string { return v.Url }).(pulumi.StringOutput) +// Policy rule verbs +func (o GetGlobalRoleRuleOutput) Verbs() pulumi.StringArrayOutput { + return o.ApplyT(func(v GetGlobalRoleRule) []string { return v.Verbs }).(pulumi.StringArrayOutput) } -type GetNotifierDingtalkConfigPtrOutput struct{ *pulumi.OutputState } +type GetGlobalRoleRuleArrayOutput struct{ *pulumi.OutputState } -func (GetNotifierDingtalkConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetNotifierDingtalkConfig)(nil)).Elem() +func (GetGlobalRoleRuleArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetGlobalRoleRule)(nil)).Elem() } -func (o GetNotifierDingtalkConfigPtrOutput) ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput { +func (o GetGlobalRoleRuleArrayOutput) ToGetGlobalRoleRuleArrayOutput() GetGlobalRoleRuleArrayOutput { return o } -func (o GetNotifierDingtalkConfigPtrOutput) ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigPtrOutput { +func (o GetGlobalRoleRuleArrayOutput) ToGetGlobalRoleRuleArrayOutputWithContext(ctx context.Context) GetGlobalRoleRuleArrayOutput { return o } -func (o GetNotifierDingtalkConfigPtrOutput) Elem() GetNotifierDingtalkConfigOutput { - return o.ApplyT(func(v *GetNotifierDingtalkConfig) GetNotifierDingtalkConfig { - if v != nil { - return *v - } - var ret GetNotifierDingtalkConfig - return ret - }).(GetNotifierDingtalkConfigOutput) -} - -// Dingtalk proxy URL -func (o GetNotifierDingtalkConfigPtrOutput) ProxyUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetNotifierDingtalkConfig) *string { - if v == nil { - return nil - } - return v.ProxyUrl - }).(pulumi.StringPtrOutput) -} - -// Required for webhook with sign enabled -func (o GetNotifierDingtalkConfigPtrOutput) Secret() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetNotifierDingtalkConfig) *string { - if v == nil { - return nil - } - return v.Secret - }).(pulumi.StringPtrOutput) -} - -// Webhook URL -func (o GetNotifierDingtalkConfigPtrOutput) Url() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetNotifierDingtalkConfig) *string { - if v == nil { - return nil - } - return &v.Url - }).(pulumi.StringPtrOutput) +func (o GetGlobalRoleRuleArrayOutput) Index(i pulumi.IntInput) GetGlobalRoleRuleOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetGlobalRoleRule { + return vs[0].([]GetGlobalRoleRule)[vs[1].(int)] + }).(GetGlobalRoleRuleOutput) } -type GetNotifierMsteamsConfig struct { - // MS teams proxy URL - ProxyUrl *string `pulumi:"proxyUrl"` - // Webhook URL - Url string `pulumi:"url"` +type GetMultiClusterAppAnswer struct { + // Cluster ID for answer + ClusterId string `pulumi:"clusterId"` + // Project ID for answer + ProjectId string `pulumi:"projectId"` + // Key/values for answer + Values map[string]interface{} `pulumi:"values"` } -// GetNotifierMsteamsConfigInput is an input type that accepts GetNotifierMsteamsConfigArgs and GetNotifierMsteamsConfigOutput values. -// You can construct a concrete instance of `GetNotifierMsteamsConfigInput` via: +// GetMultiClusterAppAnswerInput is an input type that accepts GetMultiClusterAppAnswerArgs and GetMultiClusterAppAnswerOutput values. +// You can construct a concrete instance of `GetMultiClusterAppAnswerInput` via: // -// GetNotifierMsteamsConfigArgs{...} -type GetNotifierMsteamsConfigInput interface { +// GetMultiClusterAppAnswerArgs{...} +type GetMultiClusterAppAnswerInput interface { pulumi.Input - ToGetNotifierMsteamsConfigOutput() GetNotifierMsteamsConfigOutput - ToGetNotifierMsteamsConfigOutputWithContext(context.Context) GetNotifierMsteamsConfigOutput -} - -type GetNotifierMsteamsConfigArgs struct { - // MS teams proxy URL - ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` - // Webhook URL - Url pulumi.StringInput `pulumi:"url"` -} - -func (GetNotifierMsteamsConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierMsteamsConfig)(nil)).Elem() + ToGetMultiClusterAppAnswerOutput() GetMultiClusterAppAnswerOutput + ToGetMultiClusterAppAnswerOutputWithContext(context.Context) GetMultiClusterAppAnswerOutput } -func (i GetNotifierMsteamsConfigArgs) ToGetNotifierMsteamsConfigOutput() GetNotifierMsteamsConfigOutput { - return i.ToGetNotifierMsteamsConfigOutputWithContext(context.Background()) +type GetMultiClusterAppAnswerArgs struct { + // Cluster ID for answer + ClusterId pulumi.StringInput `pulumi:"clusterId"` + // Project ID for answer + ProjectId pulumi.StringInput `pulumi:"projectId"` + // Key/values for answer + Values pulumi.MapInput `pulumi:"values"` } -func (i GetNotifierMsteamsConfigArgs) ToGetNotifierMsteamsConfigOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierMsteamsConfigOutput) +func (GetMultiClusterAppAnswerArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppAnswer)(nil)).Elem() } -func (i GetNotifierMsteamsConfigArgs) ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput { - return i.ToGetNotifierMsteamsConfigPtrOutputWithContext(context.Background()) +func (i GetMultiClusterAppAnswerArgs) ToGetMultiClusterAppAnswerOutput() GetMultiClusterAppAnswerOutput { + return i.ToGetMultiClusterAppAnswerOutputWithContext(context.Background()) } -func (i GetNotifierMsteamsConfigArgs) ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierMsteamsConfigOutput).ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx) +func (i GetMultiClusterAppAnswerArgs) ToGetMultiClusterAppAnswerOutputWithContext(ctx context.Context) GetMultiClusterAppAnswerOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppAnswerOutput) } -// GetNotifierMsteamsConfigPtrInput is an input type that accepts GetNotifierMsteamsConfigArgs, GetNotifierMsteamsConfigPtr and GetNotifierMsteamsConfigPtrOutput values. -// You can construct a concrete instance of `GetNotifierMsteamsConfigPtrInput` via: -// -// GetNotifierMsteamsConfigArgs{...} -// -// or: +// GetMultiClusterAppAnswerArrayInput is an input type that accepts GetMultiClusterAppAnswerArray and GetMultiClusterAppAnswerArrayOutput values. +// You can construct a concrete instance of `GetMultiClusterAppAnswerArrayInput` via: // -// nil -type GetNotifierMsteamsConfigPtrInput interface { +// GetMultiClusterAppAnswerArray{ GetMultiClusterAppAnswerArgs{...} } +type GetMultiClusterAppAnswerArrayInput interface { pulumi.Input - ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput - ToGetNotifierMsteamsConfigPtrOutputWithContext(context.Context) GetNotifierMsteamsConfigPtrOutput + ToGetMultiClusterAppAnswerArrayOutput() GetMultiClusterAppAnswerArrayOutput + ToGetMultiClusterAppAnswerArrayOutputWithContext(context.Context) GetMultiClusterAppAnswerArrayOutput } -type getNotifierMsteamsConfigPtrType GetNotifierMsteamsConfigArgs - -func GetNotifierMsteamsConfigPtr(v *GetNotifierMsteamsConfigArgs) GetNotifierMsteamsConfigPtrInput { - return (*getNotifierMsteamsConfigPtrType)(v) -} +type GetMultiClusterAppAnswerArray []GetMultiClusterAppAnswerInput -func (*getNotifierMsteamsConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetNotifierMsteamsConfig)(nil)).Elem() +func (GetMultiClusterAppAnswerArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetMultiClusterAppAnswer)(nil)).Elem() } -func (i *getNotifierMsteamsConfigPtrType) ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput { - return i.ToGetNotifierMsteamsConfigPtrOutputWithContext(context.Background()) +func (i GetMultiClusterAppAnswerArray) ToGetMultiClusterAppAnswerArrayOutput() GetMultiClusterAppAnswerArrayOutput { + return i.ToGetMultiClusterAppAnswerArrayOutputWithContext(context.Background()) } -func (i *getNotifierMsteamsConfigPtrType) ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierMsteamsConfigPtrOutput) +func (i GetMultiClusterAppAnswerArray) ToGetMultiClusterAppAnswerArrayOutputWithContext(ctx context.Context) GetMultiClusterAppAnswerArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppAnswerArrayOutput) } -type GetNotifierMsteamsConfigOutput struct{ *pulumi.OutputState } +type GetMultiClusterAppAnswerOutput struct{ *pulumi.OutputState } -func (GetNotifierMsteamsConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierMsteamsConfig)(nil)).Elem() +func (GetMultiClusterAppAnswerOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppAnswer)(nil)).Elem() } -func (o GetNotifierMsteamsConfigOutput) ToGetNotifierMsteamsConfigOutput() GetNotifierMsteamsConfigOutput { +func (o GetMultiClusterAppAnswerOutput) ToGetMultiClusterAppAnswerOutput() GetMultiClusterAppAnswerOutput { return o } -func (o GetNotifierMsteamsConfigOutput) ToGetNotifierMsteamsConfigOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigOutput { +func (o GetMultiClusterAppAnswerOutput) ToGetMultiClusterAppAnswerOutputWithContext(ctx context.Context) GetMultiClusterAppAnswerOutput { return o } -func (o GetNotifierMsteamsConfigOutput) ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput { - return o.ToGetNotifierMsteamsConfigPtrOutputWithContext(context.Background()) -} - -func (o GetNotifierMsteamsConfigOutput) ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetNotifierMsteamsConfig) *GetNotifierMsteamsConfig { - return &v - }).(GetNotifierMsteamsConfigPtrOutput) +// Cluster ID for answer +func (o GetMultiClusterAppAnswerOutput) ClusterId() pulumi.StringOutput { + return o.ApplyT(func(v GetMultiClusterAppAnswer) string { return v.ClusterId }).(pulumi.StringOutput) } -// MS teams proxy URL -func (o GetNotifierMsteamsConfigOutput) ProxyUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierMsteamsConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) +// Project ID for answer +func (o GetMultiClusterAppAnswerOutput) ProjectId() pulumi.StringOutput { + return o.ApplyT(func(v GetMultiClusterAppAnswer) string { return v.ProjectId }).(pulumi.StringOutput) } -// Webhook URL -func (o GetNotifierMsteamsConfigOutput) Url() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierMsteamsConfig) string { return v.Url }).(pulumi.StringOutput) +// Key/values for answer +func (o GetMultiClusterAppAnswerOutput) Values() pulumi.MapOutput { + return o.ApplyT(func(v GetMultiClusterAppAnswer) map[string]interface{} { return v.Values }).(pulumi.MapOutput) } -type GetNotifierMsteamsConfigPtrOutput struct{ *pulumi.OutputState } +type GetMultiClusterAppAnswerArrayOutput struct{ *pulumi.OutputState } -func (GetNotifierMsteamsConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetNotifierMsteamsConfig)(nil)).Elem() +func (GetMultiClusterAppAnswerArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetMultiClusterAppAnswer)(nil)).Elem() } -func (o GetNotifierMsteamsConfigPtrOutput) ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput { +func (o GetMultiClusterAppAnswerArrayOutput) ToGetMultiClusterAppAnswerArrayOutput() GetMultiClusterAppAnswerArrayOutput { return o } -func (o GetNotifierMsteamsConfigPtrOutput) ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigPtrOutput { +func (o GetMultiClusterAppAnswerArrayOutput) ToGetMultiClusterAppAnswerArrayOutputWithContext(ctx context.Context) GetMultiClusterAppAnswerArrayOutput { return o } -func (o GetNotifierMsteamsConfigPtrOutput) Elem() GetNotifierMsteamsConfigOutput { - return o.ApplyT(func(v *GetNotifierMsteamsConfig) GetNotifierMsteamsConfig { - if v != nil { - return *v - } - var ret GetNotifierMsteamsConfig - return ret - }).(GetNotifierMsteamsConfigOutput) -} - -// MS teams proxy URL -func (o GetNotifierMsteamsConfigPtrOutput) ProxyUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetNotifierMsteamsConfig) *string { - if v == nil { - return nil - } - return v.ProxyUrl - }).(pulumi.StringPtrOutput) -} - -// Webhook URL -func (o GetNotifierMsteamsConfigPtrOutput) Url() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetNotifierMsteamsConfig) *string { - if v == nil { - return nil - } - return &v.Url - }).(pulumi.StringPtrOutput) +func (o GetMultiClusterAppAnswerArrayOutput) Index(i pulumi.IntInput) GetMultiClusterAppAnswerOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMultiClusterAppAnswer { + return vs[0].([]GetMultiClusterAppAnswer)[vs[1].(int)] + }).(GetMultiClusterAppAnswerOutput) } -type GetNotifierPagerdutyConfig struct { - // Pagerduty proxy URL - ProxyUrl *string `pulumi:"proxyUrl"` - // Pagerduty service key - ServiceKey string `pulumi:"serviceKey"` +type GetMultiClusterAppMember struct { + // Member access type: member, owner, read-only + AccessType *string `pulumi:"accessType"` + // Member group principal id + GroupPrincipalId *string `pulumi:"groupPrincipalId"` + // Member user principal id + UserPrincipalId *string `pulumi:"userPrincipalId"` } -// GetNotifierPagerdutyConfigInput is an input type that accepts GetNotifierPagerdutyConfigArgs and GetNotifierPagerdutyConfigOutput values. -// You can construct a concrete instance of `GetNotifierPagerdutyConfigInput` via: +// GetMultiClusterAppMemberInput is an input type that accepts GetMultiClusterAppMemberArgs and GetMultiClusterAppMemberOutput values. +// You can construct a concrete instance of `GetMultiClusterAppMemberInput` via: // -// GetNotifierPagerdutyConfigArgs{...} -type GetNotifierPagerdutyConfigInput interface { +// GetMultiClusterAppMemberArgs{...} +type GetMultiClusterAppMemberInput interface { pulumi.Input - ToGetNotifierPagerdutyConfigOutput() GetNotifierPagerdutyConfigOutput - ToGetNotifierPagerdutyConfigOutputWithContext(context.Context) GetNotifierPagerdutyConfigOutput + ToGetMultiClusterAppMemberOutput() GetMultiClusterAppMemberOutput + ToGetMultiClusterAppMemberOutputWithContext(context.Context) GetMultiClusterAppMemberOutput } -type GetNotifierPagerdutyConfigArgs struct { - // Pagerduty proxy URL - ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` - // Pagerduty service key - ServiceKey pulumi.StringInput `pulumi:"serviceKey"` +type GetMultiClusterAppMemberArgs struct { + // Member access type: member, owner, read-only + AccessType pulumi.StringPtrInput `pulumi:"accessType"` + // Member group principal id + GroupPrincipalId pulumi.StringPtrInput `pulumi:"groupPrincipalId"` + // Member user principal id + UserPrincipalId pulumi.StringPtrInput `pulumi:"userPrincipalId"` } -func (GetNotifierPagerdutyConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierPagerdutyConfig)(nil)).Elem() +func (GetMultiClusterAppMemberArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppMember)(nil)).Elem() } -func (i GetNotifierPagerdutyConfigArgs) ToGetNotifierPagerdutyConfigOutput() GetNotifierPagerdutyConfigOutput { - return i.ToGetNotifierPagerdutyConfigOutputWithContext(context.Background()) +func (i GetMultiClusterAppMemberArgs) ToGetMultiClusterAppMemberOutput() GetMultiClusterAppMemberOutput { + return i.ToGetMultiClusterAppMemberOutputWithContext(context.Background()) } -func (i GetNotifierPagerdutyConfigArgs) ToGetNotifierPagerdutyConfigOutputWithContext(ctx context.Context) GetNotifierPagerdutyConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierPagerdutyConfigOutput) +func (i GetMultiClusterAppMemberArgs) ToGetMultiClusterAppMemberOutputWithContext(ctx context.Context) GetMultiClusterAppMemberOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppMemberOutput) } -type GetNotifierPagerdutyConfigOutput struct{ *pulumi.OutputState } +// GetMultiClusterAppMemberArrayInput is an input type that accepts GetMultiClusterAppMemberArray and GetMultiClusterAppMemberArrayOutput values. +// You can construct a concrete instance of `GetMultiClusterAppMemberArrayInput` via: +// +// GetMultiClusterAppMemberArray{ GetMultiClusterAppMemberArgs{...} } +type GetMultiClusterAppMemberArrayInput interface { + pulumi.Input -func (GetNotifierPagerdutyConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierPagerdutyConfig)(nil)).Elem() + ToGetMultiClusterAppMemberArrayOutput() GetMultiClusterAppMemberArrayOutput + ToGetMultiClusterAppMemberArrayOutputWithContext(context.Context) GetMultiClusterAppMemberArrayOutput } -func (o GetNotifierPagerdutyConfigOutput) ToGetNotifierPagerdutyConfigOutput() GetNotifierPagerdutyConfigOutput { - return o -} +type GetMultiClusterAppMemberArray []GetMultiClusterAppMemberInput -func (o GetNotifierPagerdutyConfigOutput) ToGetNotifierPagerdutyConfigOutputWithContext(ctx context.Context) GetNotifierPagerdutyConfigOutput { - return o +func (GetMultiClusterAppMemberArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetMultiClusterAppMember)(nil)).Elem() } -// Pagerduty proxy URL -func (o GetNotifierPagerdutyConfigOutput) ProxyUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierPagerdutyConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) +func (i GetMultiClusterAppMemberArray) ToGetMultiClusterAppMemberArrayOutput() GetMultiClusterAppMemberArrayOutput { + return i.ToGetMultiClusterAppMemberArrayOutputWithContext(context.Background()) } -// Pagerduty service key -func (o GetNotifierPagerdutyConfigOutput) ServiceKey() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierPagerdutyConfig) string { return v.ServiceKey }).(pulumi.StringOutput) +func (i GetMultiClusterAppMemberArray) ToGetMultiClusterAppMemberArrayOutputWithContext(ctx context.Context) GetMultiClusterAppMemberArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppMemberArrayOutput) } -type GetNotifierSlackConfig struct { - // Slack default channel - DefaultRecipient string `pulumi:"defaultRecipient"` - // Slack proxy URL - ProxyUrl *string `pulumi:"proxyUrl"` - // Slack URL - Url string `pulumi:"url"` -} +type GetMultiClusterAppMemberOutput struct{ *pulumi.OutputState } -// GetNotifierSlackConfigInput is an input type that accepts GetNotifierSlackConfigArgs and GetNotifierSlackConfigOutput values. -// You can construct a concrete instance of `GetNotifierSlackConfigInput` via: -// -// GetNotifierSlackConfigArgs{...} -type GetNotifierSlackConfigInput interface { - pulumi.Input +func (GetMultiClusterAppMemberOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppMember)(nil)).Elem() +} - ToGetNotifierSlackConfigOutput() GetNotifierSlackConfigOutput - ToGetNotifierSlackConfigOutputWithContext(context.Context) GetNotifierSlackConfigOutput +func (o GetMultiClusterAppMemberOutput) ToGetMultiClusterAppMemberOutput() GetMultiClusterAppMemberOutput { + return o } -type GetNotifierSlackConfigArgs struct { - // Slack default channel - DefaultRecipient pulumi.StringInput `pulumi:"defaultRecipient"` - // Slack proxy URL - ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` - // Slack URL - Url pulumi.StringInput `pulumi:"url"` +func (o GetMultiClusterAppMemberOutput) ToGetMultiClusterAppMemberOutputWithContext(ctx context.Context) GetMultiClusterAppMemberOutput { + return o } -func (GetNotifierSlackConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierSlackConfig)(nil)).Elem() +// Member access type: member, owner, read-only +func (o GetMultiClusterAppMemberOutput) AccessType() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetMultiClusterAppMember) *string { return v.AccessType }).(pulumi.StringPtrOutput) } -func (i GetNotifierSlackConfigArgs) ToGetNotifierSlackConfigOutput() GetNotifierSlackConfigOutput { - return i.ToGetNotifierSlackConfigOutputWithContext(context.Background()) +// Member group principal id +func (o GetMultiClusterAppMemberOutput) GroupPrincipalId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetMultiClusterAppMember) *string { return v.GroupPrincipalId }).(pulumi.StringPtrOutput) } -func (i GetNotifierSlackConfigArgs) ToGetNotifierSlackConfigOutputWithContext(ctx context.Context) GetNotifierSlackConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierSlackConfigOutput) +// Member user principal id +func (o GetMultiClusterAppMemberOutput) UserPrincipalId() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetMultiClusterAppMember) *string { return v.UserPrincipalId }).(pulumi.StringPtrOutput) } -type GetNotifierSlackConfigOutput struct{ *pulumi.OutputState } +type GetMultiClusterAppMemberArrayOutput struct{ *pulumi.OutputState } -func (GetNotifierSlackConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierSlackConfig)(nil)).Elem() +func (GetMultiClusterAppMemberArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetMultiClusterAppMember)(nil)).Elem() } -func (o GetNotifierSlackConfigOutput) ToGetNotifierSlackConfigOutput() GetNotifierSlackConfigOutput { +func (o GetMultiClusterAppMemberArrayOutput) ToGetMultiClusterAppMemberArrayOutput() GetMultiClusterAppMemberArrayOutput { return o } -func (o GetNotifierSlackConfigOutput) ToGetNotifierSlackConfigOutputWithContext(ctx context.Context) GetNotifierSlackConfigOutput { +func (o GetMultiClusterAppMemberArrayOutput) ToGetMultiClusterAppMemberArrayOutputWithContext(ctx context.Context) GetMultiClusterAppMemberArrayOutput { return o } -// Slack default channel -func (o GetNotifierSlackConfigOutput) DefaultRecipient() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierSlackConfig) string { return v.DefaultRecipient }).(pulumi.StringOutput) -} - -// Slack proxy URL -func (o GetNotifierSlackConfigOutput) ProxyUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierSlackConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) -} - -// Slack URL -func (o GetNotifierSlackConfigOutput) Url() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierSlackConfig) string { return v.Url }).(pulumi.StringOutput) +func (o GetMultiClusterAppMemberArrayOutput) Index(i pulumi.IntInput) GetMultiClusterAppMemberOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMultiClusterAppMember { + return vs[0].([]GetMultiClusterAppMember)[vs[1].(int)] + }).(GetMultiClusterAppMemberOutput) } -type GetNotifierSmtpConfig struct { - // SMTP default recipient address - DefaultRecipient string `pulumi:"defaultRecipient"` - // SMTP host - Host string `pulumi:"host"` - // SMTP password - Password *string `pulumi:"password"` - // SMTP port - Port int `pulumi:"port"` - // SMTP sender - Sender string `pulumi:"sender"` - // SMTP TLS - Tls *bool `pulumi:"tls"` - // SMTP username - Username *string `pulumi:"username"` +type GetMultiClusterAppTarget struct { + // App ID for target + AppId string `pulumi:"appId"` + // App health state for target + HealthState string `pulumi:"healthState"` + // Project ID for target + ProjectId string `pulumi:"projectId"` + // App state for target + State string `pulumi:"state"` } -// GetNotifierSmtpConfigInput is an input type that accepts GetNotifierSmtpConfigArgs and GetNotifierSmtpConfigOutput values. -// You can construct a concrete instance of `GetNotifierSmtpConfigInput` via: +// GetMultiClusterAppTargetInput is an input type that accepts GetMultiClusterAppTargetArgs and GetMultiClusterAppTargetOutput values. +// You can construct a concrete instance of `GetMultiClusterAppTargetInput` via: // -// GetNotifierSmtpConfigArgs{...} -type GetNotifierSmtpConfigInput interface { +// GetMultiClusterAppTargetArgs{...} +type GetMultiClusterAppTargetInput interface { pulumi.Input - ToGetNotifierSmtpConfigOutput() GetNotifierSmtpConfigOutput - ToGetNotifierSmtpConfigOutputWithContext(context.Context) GetNotifierSmtpConfigOutput + ToGetMultiClusterAppTargetOutput() GetMultiClusterAppTargetOutput + ToGetMultiClusterAppTargetOutputWithContext(context.Context) GetMultiClusterAppTargetOutput } -type GetNotifierSmtpConfigArgs struct { - // SMTP default recipient address - DefaultRecipient pulumi.StringInput `pulumi:"defaultRecipient"` - // SMTP host - Host pulumi.StringInput `pulumi:"host"` - // SMTP password - Password pulumi.StringPtrInput `pulumi:"password"` - // SMTP port - Port pulumi.IntInput `pulumi:"port"` - // SMTP sender - Sender pulumi.StringInput `pulumi:"sender"` - // SMTP TLS - Tls pulumi.BoolPtrInput `pulumi:"tls"` - // SMTP username - Username pulumi.StringPtrInput `pulumi:"username"` +type GetMultiClusterAppTargetArgs struct { + // App ID for target + AppId pulumi.StringInput `pulumi:"appId"` + // App health state for target + HealthState pulumi.StringInput `pulumi:"healthState"` + // Project ID for target + ProjectId pulumi.StringInput `pulumi:"projectId"` + // App state for target + State pulumi.StringInput `pulumi:"state"` } -func (GetNotifierSmtpConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierSmtpConfig)(nil)).Elem() +func (GetMultiClusterAppTargetArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppTarget)(nil)).Elem() } -func (i GetNotifierSmtpConfigArgs) ToGetNotifierSmtpConfigOutput() GetNotifierSmtpConfigOutput { - return i.ToGetNotifierSmtpConfigOutputWithContext(context.Background()) +func (i GetMultiClusterAppTargetArgs) ToGetMultiClusterAppTargetOutput() GetMultiClusterAppTargetOutput { + return i.ToGetMultiClusterAppTargetOutputWithContext(context.Background()) } -func (i GetNotifierSmtpConfigArgs) ToGetNotifierSmtpConfigOutputWithContext(ctx context.Context) GetNotifierSmtpConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierSmtpConfigOutput) +func (i GetMultiClusterAppTargetArgs) ToGetMultiClusterAppTargetOutputWithContext(ctx context.Context) GetMultiClusterAppTargetOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppTargetOutput) } -type GetNotifierSmtpConfigOutput struct{ *pulumi.OutputState } +// GetMultiClusterAppTargetArrayInput is an input type that accepts GetMultiClusterAppTargetArray and GetMultiClusterAppTargetArrayOutput values. +// You can construct a concrete instance of `GetMultiClusterAppTargetArrayInput` via: +// +// GetMultiClusterAppTargetArray{ GetMultiClusterAppTargetArgs{...} } +type GetMultiClusterAppTargetArrayInput interface { + pulumi.Input -func (GetNotifierSmtpConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierSmtpConfig)(nil)).Elem() + ToGetMultiClusterAppTargetArrayOutput() GetMultiClusterAppTargetArrayOutput + ToGetMultiClusterAppTargetArrayOutputWithContext(context.Context) GetMultiClusterAppTargetArrayOutput } -func (o GetNotifierSmtpConfigOutput) ToGetNotifierSmtpConfigOutput() GetNotifierSmtpConfigOutput { - return o +type GetMultiClusterAppTargetArray []GetMultiClusterAppTargetInput + +func (GetMultiClusterAppTargetArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetMultiClusterAppTarget)(nil)).Elem() } -func (o GetNotifierSmtpConfigOutput) ToGetNotifierSmtpConfigOutputWithContext(ctx context.Context) GetNotifierSmtpConfigOutput { - return o +func (i GetMultiClusterAppTargetArray) ToGetMultiClusterAppTargetArrayOutput() GetMultiClusterAppTargetArrayOutput { + return i.ToGetMultiClusterAppTargetArrayOutputWithContext(context.Background()) } -// SMTP default recipient address -func (o GetNotifierSmtpConfigOutput) DefaultRecipient() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierSmtpConfig) string { return v.DefaultRecipient }).(pulumi.StringOutput) +func (i GetMultiClusterAppTargetArray) ToGetMultiClusterAppTargetArrayOutputWithContext(ctx context.Context) GetMultiClusterAppTargetArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppTargetArrayOutput) } -// SMTP host -func (o GetNotifierSmtpConfigOutput) Host() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierSmtpConfig) string { return v.Host }).(pulumi.StringOutput) +type GetMultiClusterAppTargetOutput struct{ *pulumi.OutputState } + +func (GetMultiClusterAppTargetOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppTarget)(nil)).Elem() } -// SMTP password -func (o GetNotifierSmtpConfigOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierSmtpConfig) *string { return v.Password }).(pulumi.StringPtrOutput) +func (o GetMultiClusterAppTargetOutput) ToGetMultiClusterAppTargetOutput() GetMultiClusterAppTargetOutput { + return o } -// SMTP port -func (o GetNotifierSmtpConfigOutput) Port() pulumi.IntOutput { - return o.ApplyT(func(v GetNotifierSmtpConfig) int { return v.Port }).(pulumi.IntOutput) +func (o GetMultiClusterAppTargetOutput) ToGetMultiClusterAppTargetOutputWithContext(ctx context.Context) GetMultiClusterAppTargetOutput { + return o } -// SMTP sender -func (o GetNotifierSmtpConfigOutput) Sender() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierSmtpConfig) string { return v.Sender }).(pulumi.StringOutput) +// App ID for target +func (o GetMultiClusterAppTargetOutput) AppId() pulumi.StringOutput { + return o.ApplyT(func(v GetMultiClusterAppTarget) string { return v.AppId }).(pulumi.StringOutput) } -// SMTP TLS -func (o GetNotifierSmtpConfigOutput) Tls() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetNotifierSmtpConfig) *bool { return v.Tls }).(pulumi.BoolPtrOutput) +// App health state for target +func (o GetMultiClusterAppTargetOutput) HealthState() pulumi.StringOutput { + return o.ApplyT(func(v GetMultiClusterAppTarget) string { return v.HealthState }).(pulumi.StringOutput) } -// SMTP username -func (o GetNotifierSmtpConfigOutput) Username() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierSmtpConfig) *string { return v.Username }).(pulumi.StringPtrOutput) +// Project ID for target +func (o GetMultiClusterAppTargetOutput) ProjectId() pulumi.StringOutput { + return o.ApplyT(func(v GetMultiClusterAppTarget) string { return v.ProjectId }).(pulumi.StringOutput) } -type GetNotifierWebhookConfig struct { - // Webhook proxy URL - ProxyUrl *string `pulumi:"proxyUrl"` - // Webhook URL - Url string `pulumi:"url"` +// App state for target +func (o GetMultiClusterAppTargetOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v GetMultiClusterAppTarget) string { return v.State }).(pulumi.StringOutput) } -// GetNotifierWebhookConfigInput is an input type that accepts GetNotifierWebhookConfigArgs and GetNotifierWebhookConfigOutput values. -// You can construct a concrete instance of `GetNotifierWebhookConfigInput` via: -// -// GetNotifierWebhookConfigArgs{...} -type GetNotifierWebhookConfigInput interface { - pulumi.Input +type GetMultiClusterAppTargetArrayOutput struct{ *pulumi.OutputState } - ToGetNotifierWebhookConfigOutput() GetNotifierWebhookConfigOutput - ToGetNotifierWebhookConfigOutputWithContext(context.Context) GetNotifierWebhookConfigOutput +func (GetMultiClusterAppTargetArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetMultiClusterAppTarget)(nil)).Elem() } -type GetNotifierWebhookConfigArgs struct { - // Webhook proxy URL - ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` - // Webhook URL - Url pulumi.StringInput `pulumi:"url"` +func (o GetMultiClusterAppTargetArrayOutput) ToGetMultiClusterAppTargetArrayOutput() GetMultiClusterAppTargetArrayOutput { + return o } -func (GetNotifierWebhookConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierWebhookConfig)(nil)).Elem() +func (o GetMultiClusterAppTargetArrayOutput) ToGetMultiClusterAppTargetArrayOutputWithContext(ctx context.Context) GetMultiClusterAppTargetArrayOutput { + return o } -func (i GetNotifierWebhookConfigArgs) ToGetNotifierWebhookConfigOutput() GetNotifierWebhookConfigOutput { - return i.ToGetNotifierWebhookConfigOutputWithContext(context.Background()) +func (o GetMultiClusterAppTargetArrayOutput) Index(i pulumi.IntInput) GetMultiClusterAppTargetOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMultiClusterAppTarget { + return vs[0].([]GetMultiClusterAppTarget)[vs[1].(int)] + }).(GetMultiClusterAppTargetOutput) } -func (i GetNotifierWebhookConfigArgs) ToGetNotifierWebhookConfigOutputWithContext(ctx context.Context) GetNotifierWebhookConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierWebhookConfigOutput) +type GetMultiClusterAppUpgradeStrategy struct { + // Rolling update for upgrade strategy + RollingUpdate *GetMultiClusterAppUpgradeStrategyRollingUpdate `pulumi:"rollingUpdate"` } -type GetNotifierWebhookConfigOutput struct{ *pulumi.OutputState } - -func (GetNotifierWebhookConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierWebhookConfig)(nil)).Elem() -} +// GetMultiClusterAppUpgradeStrategyInput is an input type that accepts GetMultiClusterAppUpgradeStrategyArgs and GetMultiClusterAppUpgradeStrategyOutput values. +// You can construct a concrete instance of `GetMultiClusterAppUpgradeStrategyInput` via: +// +// GetMultiClusterAppUpgradeStrategyArgs{...} +type GetMultiClusterAppUpgradeStrategyInput interface { + pulumi.Input -func (o GetNotifierWebhookConfigOutput) ToGetNotifierWebhookConfigOutput() GetNotifierWebhookConfigOutput { - return o + ToGetMultiClusterAppUpgradeStrategyOutput() GetMultiClusterAppUpgradeStrategyOutput + ToGetMultiClusterAppUpgradeStrategyOutputWithContext(context.Context) GetMultiClusterAppUpgradeStrategyOutput } -func (o GetNotifierWebhookConfigOutput) ToGetNotifierWebhookConfigOutputWithContext(ctx context.Context) GetNotifierWebhookConfigOutput { - return o +type GetMultiClusterAppUpgradeStrategyArgs struct { + // Rolling update for upgrade strategy + RollingUpdate GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput `pulumi:"rollingUpdate"` } -// Webhook proxy URL -func (o GetNotifierWebhookConfigOutput) ProxyUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierWebhookConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) +func (GetMultiClusterAppUpgradeStrategyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppUpgradeStrategy)(nil)).Elem() } -// Webhook URL -func (o GetNotifierWebhookConfigOutput) Url() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierWebhookConfig) string { return v.Url }).(pulumi.StringOutput) +func (i GetMultiClusterAppUpgradeStrategyArgs) ToGetMultiClusterAppUpgradeStrategyOutput() GetMultiClusterAppUpgradeStrategyOutput { + return i.ToGetMultiClusterAppUpgradeStrategyOutputWithContext(context.Background()) } -type GetNotifierWechatConfig struct { - // Wechat application agent ID - Agent string `pulumi:"agent"` - // Wechat corporation ID - Corp string `pulumi:"corp"` - // Wechat default channel - DefaultRecipient string `pulumi:"defaultRecipient"` - // Wechat proxy URL - ProxyUrl *string `pulumi:"proxyUrl"` - // Wechat recipient type - RecipientType *string `pulumi:"recipientType"` - // Wechat application secret - Secret string `pulumi:"secret"` +func (i GetMultiClusterAppUpgradeStrategyArgs) ToGetMultiClusterAppUpgradeStrategyOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyOutput) } -// GetNotifierWechatConfigInput is an input type that accepts GetNotifierWechatConfigArgs and GetNotifierWechatConfigOutput values. -// You can construct a concrete instance of `GetNotifierWechatConfigInput` via: +// GetMultiClusterAppUpgradeStrategyArrayInput is an input type that accepts GetMultiClusterAppUpgradeStrategyArray and GetMultiClusterAppUpgradeStrategyArrayOutput values. +// You can construct a concrete instance of `GetMultiClusterAppUpgradeStrategyArrayInput` via: // -// GetNotifierWechatConfigArgs{...} -type GetNotifierWechatConfigInput interface { +// GetMultiClusterAppUpgradeStrategyArray{ GetMultiClusterAppUpgradeStrategyArgs{...} } +type GetMultiClusterAppUpgradeStrategyArrayInput interface { pulumi.Input - ToGetNotifierWechatConfigOutput() GetNotifierWechatConfigOutput - ToGetNotifierWechatConfigOutputWithContext(context.Context) GetNotifierWechatConfigOutput + ToGetMultiClusterAppUpgradeStrategyArrayOutput() GetMultiClusterAppUpgradeStrategyArrayOutput + ToGetMultiClusterAppUpgradeStrategyArrayOutputWithContext(context.Context) GetMultiClusterAppUpgradeStrategyArrayOutput } -type GetNotifierWechatConfigArgs struct { - // Wechat application agent ID - Agent pulumi.StringInput `pulumi:"agent"` - // Wechat corporation ID - Corp pulumi.StringInput `pulumi:"corp"` - // Wechat default channel - DefaultRecipient pulumi.StringInput `pulumi:"defaultRecipient"` - // Wechat proxy URL - ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` - // Wechat recipient type - RecipientType pulumi.StringPtrInput `pulumi:"recipientType"` - // Wechat application secret - Secret pulumi.StringInput `pulumi:"secret"` -} +type GetMultiClusterAppUpgradeStrategyArray []GetMultiClusterAppUpgradeStrategyInput -func (GetNotifierWechatConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierWechatConfig)(nil)).Elem() +func (GetMultiClusterAppUpgradeStrategyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetMultiClusterAppUpgradeStrategy)(nil)).Elem() } -func (i GetNotifierWechatConfigArgs) ToGetNotifierWechatConfigOutput() GetNotifierWechatConfigOutput { - return i.ToGetNotifierWechatConfigOutputWithContext(context.Background()) +func (i GetMultiClusterAppUpgradeStrategyArray) ToGetMultiClusterAppUpgradeStrategyArrayOutput() GetMultiClusterAppUpgradeStrategyArrayOutput { + return i.ToGetMultiClusterAppUpgradeStrategyArrayOutputWithContext(context.Background()) } -func (i GetNotifierWechatConfigArgs) ToGetNotifierWechatConfigOutputWithContext(ctx context.Context) GetNotifierWechatConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetNotifierWechatConfigOutput) +func (i GetMultiClusterAppUpgradeStrategyArray) ToGetMultiClusterAppUpgradeStrategyArrayOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyArrayOutput) } -type GetNotifierWechatConfigOutput struct{ *pulumi.OutputState } +type GetMultiClusterAppUpgradeStrategyOutput struct{ *pulumi.OutputState } -func (GetNotifierWechatConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetNotifierWechatConfig)(nil)).Elem() +func (GetMultiClusterAppUpgradeStrategyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppUpgradeStrategy)(nil)).Elem() } -func (o GetNotifierWechatConfigOutput) ToGetNotifierWechatConfigOutput() GetNotifierWechatConfigOutput { +func (o GetMultiClusterAppUpgradeStrategyOutput) ToGetMultiClusterAppUpgradeStrategyOutput() GetMultiClusterAppUpgradeStrategyOutput { return o } -func (o GetNotifierWechatConfigOutput) ToGetNotifierWechatConfigOutputWithContext(ctx context.Context) GetNotifierWechatConfigOutput { +func (o GetMultiClusterAppUpgradeStrategyOutput) ToGetMultiClusterAppUpgradeStrategyOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyOutput { return o } -// Wechat application agent ID -func (o GetNotifierWechatConfigOutput) Agent() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierWechatConfig) string { return v.Agent }).(pulumi.StringOutput) +// Rolling update for upgrade strategy +func (o GetMultiClusterAppUpgradeStrategyOutput) RollingUpdate() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return o.ApplyT(func(v GetMultiClusterAppUpgradeStrategy) *GetMultiClusterAppUpgradeStrategyRollingUpdate { + return v.RollingUpdate + }).(GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) } -// Wechat corporation ID -func (o GetNotifierWechatConfigOutput) Corp() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierWechatConfig) string { return v.Corp }).(pulumi.StringOutput) -} +type GetMultiClusterAppUpgradeStrategyArrayOutput struct{ *pulumi.OutputState } -// Wechat default channel -func (o GetNotifierWechatConfigOutput) DefaultRecipient() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierWechatConfig) string { return v.DefaultRecipient }).(pulumi.StringOutput) +func (GetMultiClusterAppUpgradeStrategyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetMultiClusterAppUpgradeStrategy)(nil)).Elem() } -// Wechat proxy URL -func (o GetNotifierWechatConfigOutput) ProxyUrl() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierWechatConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) +func (o GetMultiClusterAppUpgradeStrategyArrayOutput) ToGetMultiClusterAppUpgradeStrategyArrayOutput() GetMultiClusterAppUpgradeStrategyArrayOutput { + return o } -// Wechat recipient type -func (o GetNotifierWechatConfigOutput) RecipientType() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetNotifierWechatConfig) *string { return v.RecipientType }).(pulumi.StringPtrOutput) +func (o GetMultiClusterAppUpgradeStrategyArrayOutput) ToGetMultiClusterAppUpgradeStrategyArrayOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyArrayOutput { + return o } -// Wechat application secret -func (o GetNotifierWechatConfigOutput) Secret() pulumi.StringOutput { - return o.ApplyT(func(v GetNotifierWechatConfig) string { return v.Secret }).(pulumi.StringOutput) +func (o GetMultiClusterAppUpgradeStrategyArrayOutput) Index(i pulumi.IntInput) GetMultiClusterAppUpgradeStrategyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMultiClusterAppUpgradeStrategy { + return vs[0].([]GetMultiClusterAppUpgradeStrategy)[vs[1].(int)] + }).(GetMultiClusterAppUpgradeStrategyOutput) } -type GetPodSecurityPolicyTemplateAllowedCsiDriver struct { - // The name of the PodSecurityPolicyTemplate (string) - Name string `pulumi:"name"` +type GetMultiClusterAppUpgradeStrategyRollingUpdate struct { + // Rolling update batch size + BatchSize *int `pulumi:"batchSize"` + // Rolling update interval + Interval *int `pulumi:"interval"` } -// GetPodSecurityPolicyTemplateAllowedCsiDriverInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedCsiDriverArgs and GetPodSecurityPolicyTemplateAllowedCsiDriverOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedCsiDriverInput` via: +// GetMultiClusterAppUpgradeStrategyRollingUpdateInput is an input type that accepts GetMultiClusterAppUpgradeStrategyRollingUpdateArgs and GetMultiClusterAppUpgradeStrategyRollingUpdateOutput values. +// You can construct a concrete instance of `GetMultiClusterAppUpgradeStrategyRollingUpdateInput` via: // -// GetPodSecurityPolicyTemplateAllowedCsiDriverArgs{...} -type GetPodSecurityPolicyTemplateAllowedCsiDriverInput interface { +// GetMultiClusterAppUpgradeStrategyRollingUpdateArgs{...} +type GetMultiClusterAppUpgradeStrategyRollingUpdateInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverOutput - ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverOutput + ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutput() GetMultiClusterAppUpgradeStrategyRollingUpdateOutput + ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutputWithContext(context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdateOutput } -type GetPodSecurityPolicyTemplateAllowedCsiDriverArgs struct { - // The name of the PodSecurityPolicyTemplate (string) - Name pulumi.StringInput `pulumi:"name"` +type GetMultiClusterAppUpgradeStrategyRollingUpdateArgs struct { + // Rolling update batch size + BatchSize pulumi.IntPtrInput `pulumi:"batchSize"` + // Rolling update interval + Interval pulumi.IntPtrInput `pulumi:"interval"` } -func (GetPodSecurityPolicyTemplateAllowedCsiDriverArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedCsiDriver)(nil)).Elem() +func (GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppUpgradeStrategyRollingUpdate)(nil)).Elem() +} + +func (i GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutput() GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { + return i.ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutputWithContext(context.Background()) +} + +func (i GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) } -func (i GetPodSecurityPolicyTemplateAllowedCsiDriverArgs) ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { - return i.ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutputWithContext(context.Background()) +func (i GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return i.ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateAllowedCsiDriverArgs) ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) +func (i GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyRollingUpdateOutput).ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx) } -// GetPodSecurityPolicyTemplateAllowedCsiDriverArrayInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedCsiDriverArray and GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedCsiDriverArrayInput` via: +// GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput is an input type that accepts GetMultiClusterAppUpgradeStrategyRollingUpdateArgs, GetMultiClusterAppUpgradeStrategyRollingUpdatePtr and GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput values. +// You can construct a concrete instance of `GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput` via: // -// GetPodSecurityPolicyTemplateAllowedCsiDriverArray{ GetPodSecurityPolicyTemplateAllowedCsiDriverArgs{...} } -type GetPodSecurityPolicyTemplateAllowedCsiDriverArrayInput interface { +// GetMultiClusterAppUpgradeStrategyRollingUpdateArgs{...} +// +// or: +// +// nil +type GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput - ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput + ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput + ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput } -type GetPodSecurityPolicyTemplateAllowedCsiDriverArray []GetPodSecurityPolicyTemplateAllowedCsiDriverInput +type getMultiClusterAppUpgradeStrategyRollingUpdatePtrType GetMultiClusterAppUpgradeStrategyRollingUpdateArgs + +func GetMultiClusterAppUpgradeStrategyRollingUpdatePtr(v *GetMultiClusterAppUpgradeStrategyRollingUpdateArgs) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrInput { + return (*getMultiClusterAppUpgradeStrategyRollingUpdatePtrType)(v) +} -func (GetPodSecurityPolicyTemplateAllowedCsiDriverArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedCsiDriver)(nil)).Elem() +func (*getMultiClusterAppUpgradeStrategyRollingUpdatePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetMultiClusterAppUpgradeStrategyRollingUpdate)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateAllowedCsiDriverArray) ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput { - return i.ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutputWithContext(context.Background()) +func (i *getMultiClusterAppUpgradeStrategyRollingUpdatePtrType) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return i.ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateAllowedCsiDriverArray) ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) +func (i *getMultiClusterAppUpgradeStrategyRollingUpdatePtrType) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) } -type GetPodSecurityPolicyTemplateAllowedCsiDriverOutput struct{ *pulumi.OutputState } +type GetMultiClusterAppUpgradeStrategyRollingUpdateOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedCsiDriver)(nil)).Elem() +func (GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetMultiClusterAppUpgradeStrategyRollingUpdate)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { +func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutput() GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { return o } -func (o GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { +func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdateOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { return o } -// The name of the PodSecurityPolicyTemplate (string) -func (o GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateAllowedCsiDriver) string { return v.Name }).(pulumi.StringOutput) +func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return o.ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(context.Background()) } -type GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput struct{ *pulumi.OutputState } - -func (GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedCsiDriver)(nil)).Elem() +func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetMultiClusterAppUpgradeStrategyRollingUpdate) *GetMultiClusterAppUpgradeStrategyRollingUpdate { + return &v + }).(GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) } -func (o GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput { - return o +// Rolling update batch size +func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) BatchSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetMultiClusterAppUpgradeStrategyRollingUpdate) *int { return v.BatchSize }).(pulumi.IntPtrOutput) } -func (o GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput { - return o +// Rolling update interval +func (o GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) Interval() pulumi.IntPtrOutput { + return o.ApplyT(func(v GetMultiClusterAppUpgradeStrategyRollingUpdate) *int { return v.Interval }).(pulumi.IntPtrOutput) } -func (o GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateAllowedCsiDriver { - return vs[0].([]GetPodSecurityPolicyTemplateAllowedCsiDriver)[vs[1].(int)] - }).(GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) -} +type GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput struct{ *pulumi.OutputState } -type GetPodSecurityPolicyTemplateAllowedFlexVolume struct { - // driver is the name of the Flexvolume driver. - Driver string `pulumi:"driver"` +func (GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetMultiClusterAppUpgradeStrategyRollingUpdate)(nil)).Elem() } -// GetPodSecurityPolicyTemplateAllowedFlexVolumeInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs and GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedFlexVolumeInput` via: -// -// GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs{...} -type GetPodSecurityPolicyTemplateAllowedFlexVolumeInput interface { - pulumi.Input +func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput() GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return o +} - ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput - ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput +func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) ToGetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutputWithContext(ctx context.Context) GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput { + return o } -type GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs struct { - // driver is the name of the Flexvolume driver. - Driver pulumi.StringInput `pulumi:"driver"` +func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) Elem() GetMultiClusterAppUpgradeStrategyRollingUpdateOutput { + return o.ApplyT(func(v *GetMultiClusterAppUpgradeStrategyRollingUpdate) GetMultiClusterAppUpgradeStrategyRollingUpdate { + if v != nil { + return *v + } + var ret GetMultiClusterAppUpgradeStrategyRollingUpdate + return ret + }).(GetMultiClusterAppUpgradeStrategyRollingUpdateOutput) } -func (GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedFlexVolume)(nil)).Elem() +// Rolling update batch size +func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) BatchSize() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetMultiClusterAppUpgradeStrategyRollingUpdate) *int { + if v == nil { + return nil + } + return v.BatchSize + }).(pulumi.IntPtrOutput) } -func (i GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { - return i.ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutputWithContext(context.Background()) +// Rolling update interval +func (o GetMultiClusterAppUpgradeStrategyRollingUpdatePtrOutput) Interval() pulumi.IntPtrOutput { + return o.ApplyT(func(v *GetMultiClusterAppUpgradeStrategyRollingUpdate) *int { + if v == nil { + return nil + } + return v.Interval + }).(pulumi.IntPtrOutput) } -func (i GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) +type GetNamespaceContainerResourceLimit struct { + LimitsCpu *string `pulumi:"limitsCpu"` + LimitsMemory *string `pulumi:"limitsMemory"` + RequestsCpu *string `pulumi:"requestsCpu"` + RequestsMemory *string `pulumi:"requestsMemory"` } -// GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedFlexVolumeArray and GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayInput` via: +// GetNamespaceContainerResourceLimitInput is an input type that accepts GetNamespaceContainerResourceLimitArgs and GetNamespaceContainerResourceLimitOutput values. +// You can construct a concrete instance of `GetNamespaceContainerResourceLimitInput` via: // -// GetPodSecurityPolicyTemplateAllowedFlexVolumeArray{ GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs{...} } -type GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayInput interface { +// GetNamespaceContainerResourceLimitArgs{...} +type GetNamespaceContainerResourceLimitInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput - ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput + ToGetNamespaceContainerResourceLimitOutput() GetNamespaceContainerResourceLimitOutput + ToGetNamespaceContainerResourceLimitOutputWithContext(context.Context) GetNamespaceContainerResourceLimitOutput } -type GetPodSecurityPolicyTemplateAllowedFlexVolumeArray []GetPodSecurityPolicyTemplateAllowedFlexVolumeInput +type GetNamespaceContainerResourceLimitArgs struct { + LimitsCpu pulumi.StringPtrInput `pulumi:"limitsCpu"` + LimitsMemory pulumi.StringPtrInput `pulumi:"limitsMemory"` + RequestsCpu pulumi.StringPtrInput `pulumi:"requestsCpu"` + RequestsMemory pulumi.StringPtrInput `pulumi:"requestsMemory"` +} -func (GetPodSecurityPolicyTemplateAllowedFlexVolumeArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedFlexVolume)(nil)).Elem() +func (GetNamespaceContainerResourceLimitArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNamespaceContainerResourceLimit)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateAllowedFlexVolumeArray) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput { - return i.ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutputWithContext(context.Background()) +func (i GetNamespaceContainerResourceLimitArgs) ToGetNamespaceContainerResourceLimitOutput() GetNamespaceContainerResourceLimitOutput { + return i.ToGetNamespaceContainerResourceLimitOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateAllowedFlexVolumeArray) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) +func (i GetNamespaceContainerResourceLimitArgs) ToGetNamespaceContainerResourceLimitOutputWithContext(ctx context.Context) GetNamespaceContainerResourceLimitOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNamespaceContainerResourceLimitOutput) } -type GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput struct{ *pulumi.OutputState } +type GetNamespaceContainerResourceLimitOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedFlexVolume)(nil)).Elem() +func (GetNamespaceContainerResourceLimitOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNamespaceContainerResourceLimit)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { +func (o GetNamespaceContainerResourceLimitOutput) ToGetNamespaceContainerResourceLimitOutput() GetNamespaceContainerResourceLimitOutput { return o } -func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { +func (o GetNamespaceContainerResourceLimitOutput) ToGetNamespaceContainerResourceLimitOutputWithContext(ctx context.Context) GetNamespaceContainerResourceLimitOutput { return o } -// driver is the name of the Flexvolume driver. -func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) Driver() pulumi.StringOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateAllowedFlexVolume) string { return v.Driver }).(pulumi.StringOutput) +func (o GetNamespaceContainerResourceLimitOutput) LimitsCpu() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceContainerResourceLimit) *string { return v.LimitsCpu }).(pulumi.StringPtrOutput) +} + +func (o GetNamespaceContainerResourceLimitOutput) LimitsMemory() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceContainerResourceLimit) *string { return v.LimitsMemory }).(pulumi.StringPtrOutput) } -type GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput struct{ *pulumi.OutputState } +func (o GetNamespaceContainerResourceLimitOutput) RequestsCpu() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceContainerResourceLimit) *string { return v.RequestsCpu }).(pulumi.StringPtrOutput) +} -func (GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedFlexVolume)(nil)).Elem() +func (o GetNamespaceContainerResourceLimitOutput) RequestsMemory() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceContainerResourceLimit) *string { return v.RequestsMemory }).(pulumi.StringPtrOutput) } -func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput { - return o +type GetNamespaceResourceQuota struct { + Limit GetNamespaceResourceQuotaLimit `pulumi:"limit"` } -func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput { - return o +// GetNamespaceResourceQuotaInput is an input type that accepts GetNamespaceResourceQuotaArgs and GetNamespaceResourceQuotaOutput values. +// You can construct a concrete instance of `GetNamespaceResourceQuotaInput` via: +// +// GetNamespaceResourceQuotaArgs{...} +type GetNamespaceResourceQuotaInput interface { + pulumi.Input + + ToGetNamespaceResourceQuotaOutput() GetNamespaceResourceQuotaOutput + ToGetNamespaceResourceQuotaOutputWithContext(context.Context) GetNamespaceResourceQuotaOutput } -func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateAllowedFlexVolume { - return vs[0].([]GetPodSecurityPolicyTemplateAllowedFlexVolume)[vs[1].(int)] - }).(GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) +type GetNamespaceResourceQuotaArgs struct { + Limit GetNamespaceResourceQuotaLimitInput `pulumi:"limit"` } -type GetPodSecurityPolicyTemplateAllowedHostPath struct { - // pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - PathPrefix string `pulumi:"pathPrefix"` - // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - ReadOnly *bool `pulumi:"readOnly"` +func (GetNamespaceResourceQuotaArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNamespaceResourceQuota)(nil)).Elem() } -// GetPodSecurityPolicyTemplateAllowedHostPathInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedHostPathArgs and GetPodSecurityPolicyTemplateAllowedHostPathOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedHostPathInput` via: -// -// GetPodSecurityPolicyTemplateAllowedHostPathArgs{...} -type GetPodSecurityPolicyTemplateAllowedHostPathInput interface { - pulumi.Input +func (i GetNamespaceResourceQuotaArgs) ToGetNamespaceResourceQuotaOutput() GetNamespaceResourceQuotaOutput { + return i.ToGetNamespaceResourceQuotaOutputWithContext(context.Background()) +} + +func (i GetNamespaceResourceQuotaArgs) ToGetNamespaceResourceQuotaOutputWithContext(ctx context.Context) GetNamespaceResourceQuotaOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNamespaceResourceQuotaOutput) +} + +type GetNamespaceResourceQuotaOutput struct{ *pulumi.OutputState } - ToGetPodSecurityPolicyTemplateAllowedHostPathOutput() GetPodSecurityPolicyTemplateAllowedHostPathOutput - ToGetPodSecurityPolicyTemplateAllowedHostPathOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedHostPathOutput +func (GetNamespaceResourceQuotaOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNamespaceResourceQuota)(nil)).Elem() } -type GetPodSecurityPolicyTemplateAllowedHostPathArgs struct { - // pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - PathPrefix pulumi.StringInput `pulumi:"pathPrefix"` - // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - ReadOnly pulumi.BoolPtrInput `pulumi:"readOnly"` +func (o GetNamespaceResourceQuotaOutput) ToGetNamespaceResourceQuotaOutput() GetNamespaceResourceQuotaOutput { + return o } -func (GetPodSecurityPolicyTemplateAllowedHostPathArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedHostPath)(nil)).Elem() +func (o GetNamespaceResourceQuotaOutput) ToGetNamespaceResourceQuotaOutputWithContext(ctx context.Context) GetNamespaceResourceQuotaOutput { + return o } -func (i GetPodSecurityPolicyTemplateAllowedHostPathArgs) ToGetPodSecurityPolicyTemplateAllowedHostPathOutput() GetPodSecurityPolicyTemplateAllowedHostPathOutput { - return i.ToGetPodSecurityPolicyTemplateAllowedHostPathOutputWithContext(context.Background()) +func (o GetNamespaceResourceQuotaOutput) Limit() GetNamespaceResourceQuotaLimitOutput { + return o.ApplyT(func(v GetNamespaceResourceQuota) GetNamespaceResourceQuotaLimit { return v.Limit }).(GetNamespaceResourceQuotaLimitOutput) } -func (i GetPodSecurityPolicyTemplateAllowedHostPathArgs) ToGetPodSecurityPolicyTemplateAllowedHostPathOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedHostPathOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedHostPathOutput) +type GetNamespaceResourceQuotaLimit struct { + ConfigMaps *string `pulumi:"configMaps"` + LimitsCpu *string `pulumi:"limitsCpu"` + LimitsMemory *string `pulumi:"limitsMemory"` + PersistentVolumeClaims *string `pulumi:"persistentVolumeClaims"` + Pods *string `pulumi:"pods"` + ReplicationControllers *string `pulumi:"replicationControllers"` + RequestsCpu *string `pulumi:"requestsCpu"` + RequestsMemory *string `pulumi:"requestsMemory"` + RequestsStorage *string `pulumi:"requestsStorage"` + Secrets *string `pulumi:"secrets"` + Services *string `pulumi:"services"` + ServicesLoadBalancers *string `pulumi:"servicesLoadBalancers"` + ServicesNodePorts *string `pulumi:"servicesNodePorts"` } -// GetPodSecurityPolicyTemplateAllowedHostPathArrayInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedHostPathArray and GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedHostPathArrayInput` via: +// GetNamespaceResourceQuotaLimitInput is an input type that accepts GetNamespaceResourceQuotaLimitArgs and GetNamespaceResourceQuotaLimitOutput values. +// You can construct a concrete instance of `GetNamespaceResourceQuotaLimitInput` via: // -// GetPodSecurityPolicyTemplateAllowedHostPathArray{ GetPodSecurityPolicyTemplateAllowedHostPathArgs{...} } -type GetPodSecurityPolicyTemplateAllowedHostPathArrayInput interface { +// GetNamespaceResourceQuotaLimitArgs{...} +type GetNamespaceResourceQuotaLimitInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutput() GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput - ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput + ToGetNamespaceResourceQuotaLimitOutput() GetNamespaceResourceQuotaLimitOutput + ToGetNamespaceResourceQuotaLimitOutputWithContext(context.Context) GetNamespaceResourceQuotaLimitOutput } -type GetPodSecurityPolicyTemplateAllowedHostPathArray []GetPodSecurityPolicyTemplateAllowedHostPathInput +type GetNamespaceResourceQuotaLimitArgs struct { + ConfigMaps pulumi.StringPtrInput `pulumi:"configMaps"` + LimitsCpu pulumi.StringPtrInput `pulumi:"limitsCpu"` + LimitsMemory pulumi.StringPtrInput `pulumi:"limitsMemory"` + PersistentVolumeClaims pulumi.StringPtrInput `pulumi:"persistentVolumeClaims"` + Pods pulumi.StringPtrInput `pulumi:"pods"` + ReplicationControllers pulumi.StringPtrInput `pulumi:"replicationControllers"` + RequestsCpu pulumi.StringPtrInput `pulumi:"requestsCpu"` + RequestsMemory pulumi.StringPtrInput `pulumi:"requestsMemory"` + RequestsStorage pulumi.StringPtrInput `pulumi:"requestsStorage"` + Secrets pulumi.StringPtrInput `pulumi:"secrets"` + Services pulumi.StringPtrInput `pulumi:"services"` + ServicesLoadBalancers pulumi.StringPtrInput `pulumi:"servicesLoadBalancers"` + ServicesNodePorts pulumi.StringPtrInput `pulumi:"servicesNodePorts"` +} -func (GetPodSecurityPolicyTemplateAllowedHostPathArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedHostPath)(nil)).Elem() +func (GetNamespaceResourceQuotaLimitArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNamespaceResourceQuotaLimit)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateAllowedHostPathArray) ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutput() GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput { - return i.ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutputWithContext(context.Background()) +func (i GetNamespaceResourceQuotaLimitArgs) ToGetNamespaceResourceQuotaLimitOutput() GetNamespaceResourceQuotaLimitOutput { + return i.ToGetNamespaceResourceQuotaLimitOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateAllowedHostPathArray) ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) +func (i GetNamespaceResourceQuotaLimitArgs) ToGetNamespaceResourceQuotaLimitOutputWithContext(ctx context.Context) GetNamespaceResourceQuotaLimitOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNamespaceResourceQuotaLimitOutput) } -type GetPodSecurityPolicyTemplateAllowedHostPathOutput struct{ *pulumi.OutputState } +type GetNamespaceResourceQuotaLimitOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateAllowedHostPathOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedHostPath)(nil)).Elem() +func (GetNamespaceResourceQuotaLimitOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNamespaceResourceQuotaLimit)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateAllowedHostPathOutput) ToGetPodSecurityPolicyTemplateAllowedHostPathOutput() GetPodSecurityPolicyTemplateAllowedHostPathOutput { +func (o GetNamespaceResourceQuotaLimitOutput) ToGetNamespaceResourceQuotaLimitOutput() GetNamespaceResourceQuotaLimitOutput { return o } -func (o GetPodSecurityPolicyTemplateAllowedHostPathOutput) ToGetPodSecurityPolicyTemplateAllowedHostPathOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedHostPathOutput { +func (o GetNamespaceResourceQuotaLimitOutput) ToGetNamespaceResourceQuotaLimitOutputWithContext(ctx context.Context) GetNamespaceResourceQuotaLimitOutput { return o } -// pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. -func (o GetPodSecurityPolicyTemplateAllowedHostPathOutput) PathPrefix() pulumi.StringOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateAllowedHostPath) string { return v.PathPrefix }).(pulumi.StringOutput) +func (o GetNamespaceResourceQuotaLimitOutput) ConfigMaps() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.ConfigMaps }).(pulumi.StringPtrOutput) } -// when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. -func (o GetPodSecurityPolicyTemplateAllowedHostPathOutput) ReadOnly() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateAllowedHostPath) *bool { return v.ReadOnly }).(pulumi.BoolPtrOutput) +func (o GetNamespaceResourceQuotaLimitOutput) LimitsCpu() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.LimitsCpu }).(pulumi.StringPtrOutput) } -type GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput struct{ *pulumi.OutputState } - -func (GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedHostPath)(nil)).Elem() +func (o GetNamespaceResourceQuotaLimitOutput) LimitsMemory() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.LimitsMemory }).(pulumi.StringPtrOutput) } -func (o GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutput() GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput { - return o +func (o GetNamespaceResourceQuotaLimitOutput) PersistentVolumeClaims() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.PersistentVolumeClaims }).(pulumi.StringPtrOutput) } -func (o GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput { - return o +func (o GetNamespaceResourceQuotaLimitOutput) Pods() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.Pods }).(pulumi.StringPtrOutput) } -func (o GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateAllowedHostPathOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateAllowedHostPath { - return vs[0].([]GetPodSecurityPolicyTemplateAllowedHostPath)[vs[1].(int)] - }).(GetPodSecurityPolicyTemplateAllowedHostPathOutput) +func (o GetNamespaceResourceQuotaLimitOutput) ReplicationControllers() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.ReplicationControllers }).(pulumi.StringPtrOutput) } -type GetPodSecurityPolicyTemplateFsGroup struct { - // ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - Ranges []GetPodSecurityPolicyTemplateFsGroupRange `pulumi:"ranges"` - // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - Rule *string `pulumi:"rule"` +func (o GetNamespaceResourceQuotaLimitOutput) RequestsCpu() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.RequestsCpu }).(pulumi.StringPtrOutput) } -// GetPodSecurityPolicyTemplateFsGroupInput is an input type that accepts GetPodSecurityPolicyTemplateFsGroupArgs and GetPodSecurityPolicyTemplateFsGroupOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateFsGroupInput` via: -// -// GetPodSecurityPolicyTemplateFsGroupArgs{...} -type GetPodSecurityPolicyTemplateFsGroupInput interface { - pulumi.Input - - ToGetPodSecurityPolicyTemplateFsGroupOutput() GetPodSecurityPolicyTemplateFsGroupOutput - ToGetPodSecurityPolicyTemplateFsGroupOutputWithContext(context.Context) GetPodSecurityPolicyTemplateFsGroupOutput +func (o GetNamespaceResourceQuotaLimitOutput) RequestsMemory() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.RequestsMemory }).(pulumi.StringPtrOutput) } -type GetPodSecurityPolicyTemplateFsGroupArgs struct { - // ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - Ranges GetPodSecurityPolicyTemplateFsGroupRangeArrayInput `pulumi:"ranges"` - // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - Rule pulumi.StringPtrInput `pulumi:"rule"` +func (o GetNamespaceResourceQuotaLimitOutput) RequestsStorage() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.RequestsStorage }).(pulumi.StringPtrOutput) } -func (GetPodSecurityPolicyTemplateFsGroupArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroup)(nil)).Elem() +func (o GetNamespaceResourceQuotaLimitOutput) Secrets() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.Secrets }).(pulumi.StringPtrOutput) } -func (i GetPodSecurityPolicyTemplateFsGroupArgs) ToGetPodSecurityPolicyTemplateFsGroupOutput() GetPodSecurityPolicyTemplateFsGroupOutput { - return i.ToGetPodSecurityPolicyTemplateFsGroupOutputWithContext(context.Background()) +func (o GetNamespaceResourceQuotaLimitOutput) Services() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.Services }).(pulumi.StringPtrOutput) } -func (i GetPodSecurityPolicyTemplateFsGroupArgs) ToGetPodSecurityPolicyTemplateFsGroupOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupOutput) +func (o GetNamespaceResourceQuotaLimitOutput) ServicesLoadBalancers() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.ServicesLoadBalancers }).(pulumi.StringPtrOutput) } -func (i GetPodSecurityPolicyTemplateFsGroupArgs) ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput { - return i.ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(context.Background()) +func (o GetNamespaceResourceQuotaLimitOutput) ServicesNodePorts() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNamespaceResourceQuotaLimit) *string { return v.ServicesNodePorts }).(pulumi.StringPtrOutput) } -func (i GetPodSecurityPolicyTemplateFsGroupArgs) ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupOutput).ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx) +type GetNodePoolNodeTaint struct { + Effect *string `pulumi:"effect"` + Key string `pulumi:"key"` + TimeAdded string `pulumi:"timeAdded"` + Value string `pulumi:"value"` } -// GetPodSecurityPolicyTemplateFsGroupPtrInput is an input type that accepts GetPodSecurityPolicyTemplateFsGroupArgs, GetPodSecurityPolicyTemplateFsGroupPtr and GetPodSecurityPolicyTemplateFsGroupPtrOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateFsGroupPtrInput` via: -// -// GetPodSecurityPolicyTemplateFsGroupArgs{...} -// -// or: +// GetNodePoolNodeTaintInput is an input type that accepts GetNodePoolNodeTaintArgs and GetNodePoolNodeTaintOutput values. +// You can construct a concrete instance of `GetNodePoolNodeTaintInput` via: // -// nil -type GetPodSecurityPolicyTemplateFsGroupPtrInput interface { +// GetNodePoolNodeTaintArgs{...} +type GetNodePoolNodeTaintInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput - ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput + ToGetNodePoolNodeTaintOutput() GetNodePoolNodeTaintOutput + ToGetNodePoolNodeTaintOutputWithContext(context.Context) GetNodePoolNodeTaintOutput } -type getPodSecurityPolicyTemplateFsGroupPtrType GetPodSecurityPolicyTemplateFsGroupArgs +type GetNodePoolNodeTaintArgs struct { + Effect pulumi.StringPtrInput `pulumi:"effect"` + Key pulumi.StringInput `pulumi:"key"` + TimeAdded pulumi.StringInput `pulumi:"timeAdded"` + Value pulumi.StringInput `pulumi:"value"` +} -func GetPodSecurityPolicyTemplateFsGroupPtr(v *GetPodSecurityPolicyTemplateFsGroupArgs) GetPodSecurityPolicyTemplateFsGroupPtrInput { - return (*getPodSecurityPolicyTemplateFsGroupPtrType)(v) +func (GetNodePoolNodeTaintArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNodePoolNodeTaint)(nil)).Elem() } -func (*getPodSecurityPolicyTemplateFsGroupPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetPodSecurityPolicyTemplateFsGroup)(nil)).Elem() +func (i GetNodePoolNodeTaintArgs) ToGetNodePoolNodeTaintOutput() GetNodePoolNodeTaintOutput { + return i.ToGetNodePoolNodeTaintOutputWithContext(context.Background()) } -func (i *getPodSecurityPolicyTemplateFsGroupPtrType) ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput { - return i.ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(context.Background()) +func (i GetNodePoolNodeTaintArgs) ToGetNodePoolNodeTaintOutputWithContext(ctx context.Context) GetNodePoolNodeTaintOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNodePoolNodeTaintOutput) } -func (i *getPodSecurityPolicyTemplateFsGroupPtrType) ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupPtrOutput) +// GetNodePoolNodeTaintArrayInput is an input type that accepts GetNodePoolNodeTaintArray and GetNodePoolNodeTaintArrayOutput values. +// You can construct a concrete instance of `GetNodePoolNodeTaintArrayInput` via: +// +// GetNodePoolNodeTaintArray{ GetNodePoolNodeTaintArgs{...} } +type GetNodePoolNodeTaintArrayInput interface { + pulumi.Input + + ToGetNodePoolNodeTaintArrayOutput() GetNodePoolNodeTaintArrayOutput + ToGetNodePoolNodeTaintArrayOutputWithContext(context.Context) GetNodePoolNodeTaintArrayOutput } -type GetPodSecurityPolicyTemplateFsGroupOutput struct{ *pulumi.OutputState } +type GetNodePoolNodeTaintArray []GetNodePoolNodeTaintInput -func (GetPodSecurityPolicyTemplateFsGroupOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroup)(nil)).Elem() +func (GetNodePoolNodeTaintArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetNodePoolNodeTaint)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateFsGroupOutput) ToGetPodSecurityPolicyTemplateFsGroupOutput() GetPodSecurityPolicyTemplateFsGroupOutput { - return o +func (i GetNodePoolNodeTaintArray) ToGetNodePoolNodeTaintArrayOutput() GetNodePoolNodeTaintArrayOutput { + return i.ToGetNodePoolNodeTaintArrayOutputWithContext(context.Background()) } -func (o GetPodSecurityPolicyTemplateFsGroupOutput) ToGetPodSecurityPolicyTemplateFsGroupOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupOutput { - return o +func (i GetNodePoolNodeTaintArray) ToGetNodePoolNodeTaintArrayOutputWithContext(ctx context.Context) GetNodePoolNodeTaintArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNodePoolNodeTaintArrayOutput) } -func (o GetPodSecurityPolicyTemplateFsGroupOutput) ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput { - return o.ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(context.Background()) +type GetNodePoolNodeTaintOutput struct{ *pulumi.OutputState } + +func (GetNodePoolNodeTaintOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNodePoolNodeTaint)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateFsGroupOutput) ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetPodSecurityPolicyTemplateFsGroup) *GetPodSecurityPolicyTemplateFsGroup { - return &v - }).(GetPodSecurityPolicyTemplateFsGroupPtrOutput) +func (o GetNodePoolNodeTaintOutput) ToGetNodePoolNodeTaintOutput() GetNodePoolNodeTaintOutput { + return o } -// ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. -func (o GetPodSecurityPolicyTemplateFsGroupOutput) Ranges() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateFsGroup) []GetPodSecurityPolicyTemplateFsGroupRange { - return v.Ranges - }).(GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) +func (o GetNodePoolNodeTaintOutput) ToGetNodePoolNodeTaintOutputWithContext(ctx context.Context) GetNodePoolNodeTaintOutput { + return o } -// rule is the strategy that will dictate what FSGroup is used in the SecurityContext. -func (o GetPodSecurityPolicyTemplateFsGroupOutput) Rule() pulumi.StringPtrOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateFsGroup) *string { return v.Rule }).(pulumi.StringPtrOutput) +func (o GetNodePoolNodeTaintOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNodePoolNodeTaint) *string { return v.Effect }).(pulumi.StringPtrOutput) } -type GetPodSecurityPolicyTemplateFsGroupPtrOutput struct{ *pulumi.OutputState } +func (o GetNodePoolNodeTaintOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v GetNodePoolNodeTaint) string { return v.Key }).(pulumi.StringOutput) +} -func (GetPodSecurityPolicyTemplateFsGroupPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetPodSecurityPolicyTemplateFsGroup)(nil)).Elem() +func (o GetNodePoolNodeTaintOutput) TimeAdded() pulumi.StringOutput { + return o.ApplyT(func(v GetNodePoolNodeTaint) string { return v.TimeAdded }).(pulumi.StringOutput) } -func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput { - return o +func (o GetNodePoolNodeTaintOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v GetNodePoolNodeTaint) string { return v.Value }).(pulumi.StringOutput) } -func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput { - return o +type GetNodePoolNodeTaintArrayOutput struct{ *pulumi.OutputState } + +func (GetNodePoolNodeTaintArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetNodePoolNodeTaint)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) Elem() GetPodSecurityPolicyTemplateFsGroupOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateFsGroup) GetPodSecurityPolicyTemplateFsGroup { - if v != nil { - return *v - } - var ret GetPodSecurityPolicyTemplateFsGroup - return ret - }).(GetPodSecurityPolicyTemplateFsGroupOutput) +func (o GetNodePoolNodeTaintArrayOutput) ToGetNodePoolNodeTaintArrayOutput() GetNodePoolNodeTaintArrayOutput { + return o } -// ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. -func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) Ranges() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateFsGroup) []GetPodSecurityPolicyTemplateFsGroupRange { - if v == nil { - return nil - } - return v.Ranges - }).(GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) +func (o GetNodePoolNodeTaintArrayOutput) ToGetNodePoolNodeTaintArrayOutputWithContext(ctx context.Context) GetNodePoolNodeTaintArrayOutput { + return o } -// rule is the strategy that will dictate what FSGroup is used in the SecurityContext. -func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) Rule() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateFsGroup) *string { - if v == nil { - return nil - } - return v.Rule - }).(pulumi.StringPtrOutput) +func (o GetNodePoolNodeTaintArrayOutput) Index(i pulumi.IntInput) GetNodePoolNodeTaintOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetNodePoolNodeTaint { + return vs[0].([]GetNodePoolNodeTaint)[vs[1].(int)] + }).(GetNodePoolNodeTaintOutput) } -type GetPodSecurityPolicyTemplateFsGroupRange struct { - // max is the end of the range, inclusive. - Max int `pulumi:"max"` - // min is the start of the range, inclusive. - Min int `pulumi:"min"` +type GetNodeTemplateNodeTaint struct { + Effect *string `pulumi:"effect"` + Key string `pulumi:"key"` + TimeAdded string `pulumi:"timeAdded"` + Value string `pulumi:"value"` } -// GetPodSecurityPolicyTemplateFsGroupRangeInput is an input type that accepts GetPodSecurityPolicyTemplateFsGroupRangeArgs and GetPodSecurityPolicyTemplateFsGroupRangeOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateFsGroupRangeInput` via: +// GetNodeTemplateNodeTaintInput is an input type that accepts GetNodeTemplateNodeTaintArgs and GetNodeTemplateNodeTaintOutput values. +// You can construct a concrete instance of `GetNodeTemplateNodeTaintInput` via: // -// GetPodSecurityPolicyTemplateFsGroupRangeArgs{...} -type GetPodSecurityPolicyTemplateFsGroupRangeInput interface { +// GetNodeTemplateNodeTaintArgs{...} +type GetNodeTemplateNodeTaintInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateFsGroupRangeOutput() GetPodSecurityPolicyTemplateFsGroupRangeOutput - ToGetPodSecurityPolicyTemplateFsGroupRangeOutputWithContext(context.Context) GetPodSecurityPolicyTemplateFsGroupRangeOutput + ToGetNodeTemplateNodeTaintOutput() GetNodeTemplateNodeTaintOutput + ToGetNodeTemplateNodeTaintOutputWithContext(context.Context) GetNodeTemplateNodeTaintOutput } -type GetPodSecurityPolicyTemplateFsGroupRangeArgs struct { - // max is the end of the range, inclusive. - Max pulumi.IntInput `pulumi:"max"` - // min is the start of the range, inclusive. - Min pulumi.IntInput `pulumi:"min"` +type GetNodeTemplateNodeTaintArgs struct { + Effect pulumi.StringPtrInput `pulumi:"effect"` + Key pulumi.StringInput `pulumi:"key"` + TimeAdded pulumi.StringInput `pulumi:"timeAdded"` + Value pulumi.StringInput `pulumi:"value"` } -func (GetPodSecurityPolicyTemplateFsGroupRangeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupRange)(nil)).Elem() +func (GetNodeTemplateNodeTaintArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNodeTemplateNodeTaint)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateFsGroupRangeArgs) ToGetPodSecurityPolicyTemplateFsGroupRangeOutput() GetPodSecurityPolicyTemplateFsGroupRangeOutput { - return i.ToGetPodSecurityPolicyTemplateFsGroupRangeOutputWithContext(context.Background()) +func (i GetNodeTemplateNodeTaintArgs) ToGetNodeTemplateNodeTaintOutput() GetNodeTemplateNodeTaintOutput { + return i.ToGetNodeTemplateNodeTaintOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateFsGroupRangeArgs) ToGetPodSecurityPolicyTemplateFsGroupRangeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupRangeOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupRangeOutput) +func (i GetNodeTemplateNodeTaintArgs) ToGetNodeTemplateNodeTaintOutputWithContext(ctx context.Context) GetNodeTemplateNodeTaintOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNodeTemplateNodeTaintOutput) } -// GetPodSecurityPolicyTemplateFsGroupRangeArrayInput is an input type that accepts GetPodSecurityPolicyTemplateFsGroupRangeArray and GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateFsGroupRangeArrayInput` via: +// GetNodeTemplateNodeTaintArrayInput is an input type that accepts GetNodeTemplateNodeTaintArray and GetNodeTemplateNodeTaintArrayOutput values. +// You can construct a concrete instance of `GetNodeTemplateNodeTaintArrayInput` via: // -// GetPodSecurityPolicyTemplateFsGroupRangeArray{ GetPodSecurityPolicyTemplateFsGroupRangeArgs{...} } -type GetPodSecurityPolicyTemplateFsGroupRangeArrayInput interface { +// GetNodeTemplateNodeTaintArray{ GetNodeTemplateNodeTaintArgs{...} } +type GetNodeTemplateNodeTaintArrayInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput - ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput + ToGetNodeTemplateNodeTaintArrayOutput() GetNodeTemplateNodeTaintArrayOutput + ToGetNodeTemplateNodeTaintArrayOutputWithContext(context.Context) GetNodeTemplateNodeTaintArrayOutput } -type GetPodSecurityPolicyTemplateFsGroupRangeArray []GetPodSecurityPolicyTemplateFsGroupRangeInput +type GetNodeTemplateNodeTaintArray []GetNodeTemplateNodeTaintInput -func (GetPodSecurityPolicyTemplateFsGroupRangeArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateFsGroupRange)(nil)).Elem() +func (GetNodeTemplateNodeTaintArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetNodeTemplateNodeTaint)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateFsGroupRangeArray) ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { - return i.ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutputWithContext(context.Background()) +func (i GetNodeTemplateNodeTaintArray) ToGetNodeTemplateNodeTaintArrayOutput() GetNodeTemplateNodeTaintArrayOutput { + return i.ToGetNodeTemplateNodeTaintArrayOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateFsGroupRangeArray) ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) +func (i GetNodeTemplateNodeTaintArray) ToGetNodeTemplateNodeTaintArrayOutputWithContext(ctx context.Context) GetNodeTemplateNodeTaintArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNodeTemplateNodeTaintArrayOutput) } -type GetPodSecurityPolicyTemplateFsGroupRangeOutput struct{ *pulumi.OutputState } +type GetNodeTemplateNodeTaintOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateFsGroupRangeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupRange)(nil)).Elem() +func (GetNodeTemplateNodeTaintOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNodeTemplateNodeTaint)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateFsGroupRangeOutput) ToGetPodSecurityPolicyTemplateFsGroupRangeOutput() GetPodSecurityPolicyTemplateFsGroupRangeOutput { +func (o GetNodeTemplateNodeTaintOutput) ToGetNodeTemplateNodeTaintOutput() GetNodeTemplateNodeTaintOutput { return o } -func (o GetPodSecurityPolicyTemplateFsGroupRangeOutput) ToGetPodSecurityPolicyTemplateFsGroupRangeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupRangeOutput { +func (o GetNodeTemplateNodeTaintOutput) ToGetNodeTemplateNodeTaintOutputWithContext(ctx context.Context) GetNodeTemplateNodeTaintOutput { return o } -// max is the end of the range, inclusive. -func (o GetPodSecurityPolicyTemplateFsGroupRangeOutput) Max() pulumi.IntOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateFsGroupRange) int { return v.Max }).(pulumi.IntOutput) +func (o GetNodeTemplateNodeTaintOutput) Effect() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNodeTemplateNodeTaint) *string { return v.Effect }).(pulumi.StringPtrOutput) +} + +func (o GetNodeTemplateNodeTaintOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v GetNodeTemplateNodeTaint) string { return v.Key }).(pulumi.StringOutput) +} + +func (o GetNodeTemplateNodeTaintOutput) TimeAdded() pulumi.StringOutput { + return o.ApplyT(func(v GetNodeTemplateNodeTaint) string { return v.TimeAdded }).(pulumi.StringOutput) } -// min is the start of the range, inclusive. -func (o GetPodSecurityPolicyTemplateFsGroupRangeOutput) Min() pulumi.IntOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateFsGroupRange) int { return v.Min }).(pulumi.IntOutput) +func (o GetNodeTemplateNodeTaintOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v GetNodeTemplateNodeTaint) string { return v.Value }).(pulumi.StringOutput) } -type GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput struct{ *pulumi.OutputState } +type GetNodeTemplateNodeTaintArrayOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateFsGroupRange)(nil)).Elem() +func (GetNodeTemplateNodeTaintArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetNodeTemplateNodeTaint)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { +func (o GetNodeTemplateNodeTaintArrayOutput) ToGetNodeTemplateNodeTaintArrayOutput() GetNodeTemplateNodeTaintArrayOutput { return o } -func (o GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { +func (o GetNodeTemplateNodeTaintArrayOutput) ToGetNodeTemplateNodeTaintArrayOutputWithContext(ctx context.Context) GetNodeTemplateNodeTaintArrayOutput { return o } -func (o GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateFsGroupRangeOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateFsGroupRange { - return vs[0].([]GetPodSecurityPolicyTemplateFsGroupRange)[vs[1].(int)] - }).(GetPodSecurityPolicyTemplateFsGroupRangeOutput) +func (o GetNodeTemplateNodeTaintArrayOutput) Index(i pulumi.IntInput) GetNodeTemplateNodeTaintOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetNodeTemplateNodeTaint { + return vs[0].([]GetNodeTemplateNodeTaint)[vs[1].(int)] + }).(GetNodeTemplateNodeTaintOutput) } -type GetPodSecurityPolicyTemplateHostPort struct { - // max is the end of the range, inclusive. - Max int `pulumi:"max"` - // min is the start of the range, inclusive. - Min int `pulumi:"min"` +type GetNotifierDingtalkConfig struct { + // Dingtalk proxy URL + ProxyUrl *string `pulumi:"proxyUrl"` + // Required for webhook with sign enabled + Secret *string `pulumi:"secret"` + // Webhook URL + Url string `pulumi:"url"` } -// GetPodSecurityPolicyTemplateHostPortInput is an input type that accepts GetPodSecurityPolicyTemplateHostPortArgs and GetPodSecurityPolicyTemplateHostPortOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateHostPortInput` via: +// GetNotifierDingtalkConfigInput is an input type that accepts GetNotifierDingtalkConfigArgs and GetNotifierDingtalkConfigOutput values. +// You can construct a concrete instance of `GetNotifierDingtalkConfigInput` via: // -// GetPodSecurityPolicyTemplateHostPortArgs{...} -type GetPodSecurityPolicyTemplateHostPortInput interface { +// GetNotifierDingtalkConfigArgs{...} +type GetNotifierDingtalkConfigInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateHostPortOutput() GetPodSecurityPolicyTemplateHostPortOutput - ToGetPodSecurityPolicyTemplateHostPortOutputWithContext(context.Context) GetPodSecurityPolicyTemplateHostPortOutput + ToGetNotifierDingtalkConfigOutput() GetNotifierDingtalkConfigOutput + ToGetNotifierDingtalkConfigOutputWithContext(context.Context) GetNotifierDingtalkConfigOutput } -type GetPodSecurityPolicyTemplateHostPortArgs struct { - // max is the end of the range, inclusive. - Max pulumi.IntInput `pulumi:"max"` - // min is the start of the range, inclusive. - Min pulumi.IntInput `pulumi:"min"` +type GetNotifierDingtalkConfigArgs struct { + // Dingtalk proxy URL + ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` + // Required for webhook with sign enabled + Secret pulumi.StringPtrInput `pulumi:"secret"` + // Webhook URL + Url pulumi.StringInput `pulumi:"url"` +} + +func (GetNotifierDingtalkConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierDingtalkConfig)(nil)).Elem() +} + +func (i GetNotifierDingtalkConfigArgs) ToGetNotifierDingtalkConfigOutput() GetNotifierDingtalkConfigOutput { + return i.ToGetNotifierDingtalkConfigOutputWithContext(context.Background()) } -func (GetPodSecurityPolicyTemplateHostPortArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateHostPort)(nil)).Elem() +func (i GetNotifierDingtalkConfigArgs) ToGetNotifierDingtalkConfigOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierDingtalkConfigOutput) } -func (i GetPodSecurityPolicyTemplateHostPortArgs) ToGetPodSecurityPolicyTemplateHostPortOutput() GetPodSecurityPolicyTemplateHostPortOutput { - return i.ToGetPodSecurityPolicyTemplateHostPortOutputWithContext(context.Background()) +func (i GetNotifierDingtalkConfigArgs) ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput { + return i.ToGetNotifierDingtalkConfigPtrOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateHostPortArgs) ToGetPodSecurityPolicyTemplateHostPortOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateHostPortOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateHostPortOutput) +func (i GetNotifierDingtalkConfigArgs) ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierDingtalkConfigOutput).ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx) } -// GetPodSecurityPolicyTemplateHostPortArrayInput is an input type that accepts GetPodSecurityPolicyTemplateHostPortArray and GetPodSecurityPolicyTemplateHostPortArrayOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateHostPortArrayInput` via: +// GetNotifierDingtalkConfigPtrInput is an input type that accepts GetNotifierDingtalkConfigArgs, GetNotifierDingtalkConfigPtr and GetNotifierDingtalkConfigPtrOutput values. +// You can construct a concrete instance of `GetNotifierDingtalkConfigPtrInput` via: +// +// GetNotifierDingtalkConfigArgs{...} +// +// or: // -// GetPodSecurityPolicyTemplateHostPortArray{ GetPodSecurityPolicyTemplateHostPortArgs{...} } -type GetPodSecurityPolicyTemplateHostPortArrayInput interface { +// nil +type GetNotifierDingtalkConfigPtrInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateHostPortArrayOutput() GetPodSecurityPolicyTemplateHostPortArrayOutput - ToGetPodSecurityPolicyTemplateHostPortArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateHostPortArrayOutput + ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput + ToGetNotifierDingtalkConfigPtrOutputWithContext(context.Context) GetNotifierDingtalkConfigPtrOutput } -type GetPodSecurityPolicyTemplateHostPortArray []GetPodSecurityPolicyTemplateHostPortInput +type getNotifierDingtalkConfigPtrType GetNotifierDingtalkConfigArgs + +func GetNotifierDingtalkConfigPtr(v *GetNotifierDingtalkConfigArgs) GetNotifierDingtalkConfigPtrInput { + return (*getNotifierDingtalkConfigPtrType)(v) +} -func (GetPodSecurityPolicyTemplateHostPortArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateHostPort)(nil)).Elem() +func (*getNotifierDingtalkConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetNotifierDingtalkConfig)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateHostPortArray) ToGetPodSecurityPolicyTemplateHostPortArrayOutput() GetPodSecurityPolicyTemplateHostPortArrayOutput { - return i.ToGetPodSecurityPolicyTemplateHostPortArrayOutputWithContext(context.Background()) +func (i *getNotifierDingtalkConfigPtrType) ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput { + return i.ToGetNotifierDingtalkConfigPtrOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateHostPortArray) ToGetPodSecurityPolicyTemplateHostPortArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateHostPortArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateHostPortArrayOutput) +func (i *getNotifierDingtalkConfigPtrType) ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierDingtalkConfigPtrOutput) } -type GetPodSecurityPolicyTemplateHostPortOutput struct{ *pulumi.OutputState } +type GetNotifierDingtalkConfigOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateHostPortOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateHostPort)(nil)).Elem() +func (GetNotifierDingtalkConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierDingtalkConfig)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateHostPortOutput) ToGetPodSecurityPolicyTemplateHostPortOutput() GetPodSecurityPolicyTemplateHostPortOutput { +func (o GetNotifierDingtalkConfigOutput) ToGetNotifierDingtalkConfigOutput() GetNotifierDingtalkConfigOutput { return o } -func (o GetPodSecurityPolicyTemplateHostPortOutput) ToGetPodSecurityPolicyTemplateHostPortOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateHostPortOutput { +func (o GetNotifierDingtalkConfigOutput) ToGetNotifierDingtalkConfigOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigOutput { return o } -// max is the end of the range, inclusive. -func (o GetPodSecurityPolicyTemplateHostPortOutput) Max() pulumi.IntOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateHostPort) int { return v.Max }).(pulumi.IntOutput) +func (o GetNotifierDingtalkConfigOutput) ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput { + return o.ToGetNotifierDingtalkConfigPtrOutputWithContext(context.Background()) +} + +func (o GetNotifierDingtalkConfigOutput) ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetNotifierDingtalkConfig) *GetNotifierDingtalkConfig { + return &v + }).(GetNotifierDingtalkConfigPtrOutput) +} + +// Dingtalk proxy URL +func (o GetNotifierDingtalkConfigOutput) ProxyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierDingtalkConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) +} + +// Required for webhook with sign enabled +func (o GetNotifierDingtalkConfigOutput) Secret() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierDingtalkConfig) *string { return v.Secret }).(pulumi.StringPtrOutput) } -// min is the start of the range, inclusive. -func (o GetPodSecurityPolicyTemplateHostPortOutput) Min() pulumi.IntOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateHostPort) int { return v.Min }).(pulumi.IntOutput) +// Webhook URL +func (o GetNotifierDingtalkConfigOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierDingtalkConfig) string { return v.Url }).(pulumi.StringOutput) } -type GetPodSecurityPolicyTemplateHostPortArrayOutput struct{ *pulumi.OutputState } +type GetNotifierDingtalkConfigPtrOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateHostPortArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateHostPort)(nil)).Elem() +func (GetNotifierDingtalkConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetNotifierDingtalkConfig)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateHostPortArrayOutput) ToGetPodSecurityPolicyTemplateHostPortArrayOutput() GetPodSecurityPolicyTemplateHostPortArrayOutput { +func (o GetNotifierDingtalkConfigPtrOutput) ToGetNotifierDingtalkConfigPtrOutput() GetNotifierDingtalkConfigPtrOutput { return o } -func (o GetPodSecurityPolicyTemplateHostPortArrayOutput) ToGetPodSecurityPolicyTemplateHostPortArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateHostPortArrayOutput { +func (o GetNotifierDingtalkConfigPtrOutput) ToGetNotifierDingtalkConfigPtrOutputWithContext(ctx context.Context) GetNotifierDingtalkConfigPtrOutput { return o } -func (o GetPodSecurityPolicyTemplateHostPortArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateHostPortOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateHostPort { - return vs[0].([]GetPodSecurityPolicyTemplateHostPort)[vs[1].(int)] - }).(GetPodSecurityPolicyTemplateHostPortOutput) +func (o GetNotifierDingtalkConfigPtrOutput) Elem() GetNotifierDingtalkConfigOutput { + return o.ApplyT(func(v *GetNotifierDingtalkConfig) GetNotifierDingtalkConfig { + if v != nil { + return *v + } + var ret GetNotifierDingtalkConfig + return ret + }).(GetNotifierDingtalkConfigOutput) } -type GetPodSecurityPolicyTemplateRunAsGroup struct { - // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - Ranges []GetPodSecurityPolicyTemplateRunAsGroupRange `pulumi:"ranges"` - // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - Rule string `pulumi:"rule"` +// Dingtalk proxy URL +func (o GetNotifierDingtalkConfigPtrOutput) ProxyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetNotifierDingtalkConfig) *string { + if v == nil { + return nil + } + return v.ProxyUrl + }).(pulumi.StringPtrOutput) +} + +// Required for webhook with sign enabled +func (o GetNotifierDingtalkConfigPtrOutput) Secret() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetNotifierDingtalkConfig) *string { + if v == nil { + return nil + } + return v.Secret + }).(pulumi.StringPtrOutput) } -// GetPodSecurityPolicyTemplateRunAsGroupInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsGroupArgs and GetPodSecurityPolicyTemplateRunAsGroupOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsGroupInput` via: +// Webhook URL +func (o GetNotifierDingtalkConfigPtrOutput) Url() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetNotifierDingtalkConfig) *string { + if v == nil { + return nil + } + return &v.Url + }).(pulumi.StringPtrOutput) +} + +type GetNotifierMsteamsConfig struct { + // MS teams proxy URL + ProxyUrl *string `pulumi:"proxyUrl"` + // Webhook URL + Url string `pulumi:"url"` +} + +// GetNotifierMsteamsConfigInput is an input type that accepts GetNotifierMsteamsConfigArgs and GetNotifierMsteamsConfigOutput values. +// You can construct a concrete instance of `GetNotifierMsteamsConfigInput` via: // -// GetPodSecurityPolicyTemplateRunAsGroupArgs{...} -type GetPodSecurityPolicyTemplateRunAsGroupInput interface { +// GetNotifierMsteamsConfigArgs{...} +type GetNotifierMsteamsConfigInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateRunAsGroupOutput() GetPodSecurityPolicyTemplateRunAsGroupOutput - ToGetPodSecurityPolicyTemplateRunAsGroupOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsGroupOutput + ToGetNotifierMsteamsConfigOutput() GetNotifierMsteamsConfigOutput + ToGetNotifierMsteamsConfigOutputWithContext(context.Context) GetNotifierMsteamsConfigOutput } -type GetPodSecurityPolicyTemplateRunAsGroupArgs struct { - // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - Ranges GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput `pulumi:"ranges"` - // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - Rule pulumi.StringInput `pulumi:"rule"` +type GetNotifierMsteamsConfigArgs struct { + // MS teams proxy URL + ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` + // Webhook URL + Url pulumi.StringInput `pulumi:"url"` } -func (GetPodSecurityPolicyTemplateRunAsGroupArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroup)(nil)).Elem() +func (GetNotifierMsteamsConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierMsteamsConfig)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateRunAsGroupArgs) ToGetPodSecurityPolicyTemplateRunAsGroupOutput() GetPodSecurityPolicyTemplateRunAsGroupOutput { - return i.ToGetPodSecurityPolicyTemplateRunAsGroupOutputWithContext(context.Background()) +func (i GetNotifierMsteamsConfigArgs) ToGetNotifierMsteamsConfigOutput() GetNotifierMsteamsConfigOutput { + return i.ToGetNotifierMsteamsConfigOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateRunAsGroupArgs) ToGetPodSecurityPolicyTemplateRunAsGroupOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupOutput) +func (i GetNotifierMsteamsConfigArgs) ToGetNotifierMsteamsConfigOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierMsteamsConfigOutput) } -func (i GetPodSecurityPolicyTemplateRunAsGroupArgs) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { - return i.ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(context.Background()) +func (i GetNotifierMsteamsConfigArgs) ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput { + return i.ToGetNotifierMsteamsConfigPtrOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateRunAsGroupArgs) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupOutput).ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx) +func (i GetNotifierMsteamsConfigArgs) ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierMsteamsConfigOutput).ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx) } -// GetPodSecurityPolicyTemplateRunAsGroupPtrInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsGroupArgs, GetPodSecurityPolicyTemplateRunAsGroupPtr and GetPodSecurityPolicyTemplateRunAsGroupPtrOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsGroupPtrInput` via: +// GetNotifierMsteamsConfigPtrInput is an input type that accepts GetNotifierMsteamsConfigArgs, GetNotifierMsteamsConfigPtr and GetNotifierMsteamsConfigPtrOutput values. +// You can construct a concrete instance of `GetNotifierMsteamsConfigPtrInput` via: // -// GetPodSecurityPolicyTemplateRunAsGroupArgs{...} +// GetNotifierMsteamsConfigArgs{...} // // or: // // nil -type GetPodSecurityPolicyTemplateRunAsGroupPtrInput interface { +type GetNotifierMsteamsConfigPtrInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput - ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput + ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput + ToGetNotifierMsteamsConfigPtrOutputWithContext(context.Context) GetNotifierMsteamsConfigPtrOutput } -type getPodSecurityPolicyTemplateRunAsGroupPtrType GetPodSecurityPolicyTemplateRunAsGroupArgs +type getNotifierMsteamsConfigPtrType GetNotifierMsteamsConfigArgs -func GetPodSecurityPolicyTemplateRunAsGroupPtr(v *GetPodSecurityPolicyTemplateRunAsGroupArgs) GetPodSecurityPolicyTemplateRunAsGroupPtrInput { - return (*getPodSecurityPolicyTemplateRunAsGroupPtrType)(v) +func GetNotifierMsteamsConfigPtr(v *GetNotifierMsteamsConfigArgs) GetNotifierMsteamsConfigPtrInput { + return (*getNotifierMsteamsConfigPtrType)(v) } -func (*getPodSecurityPolicyTemplateRunAsGroupPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetPodSecurityPolicyTemplateRunAsGroup)(nil)).Elem() +func (*getNotifierMsteamsConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetNotifierMsteamsConfig)(nil)).Elem() } -func (i *getPodSecurityPolicyTemplateRunAsGroupPtrType) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { - return i.ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(context.Background()) +func (i *getNotifierMsteamsConfigPtrType) ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput { + return i.ToGetNotifierMsteamsConfigPtrOutputWithContext(context.Background()) } -func (i *getPodSecurityPolicyTemplateRunAsGroupPtrType) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) +func (i *getNotifierMsteamsConfigPtrType) ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierMsteamsConfigPtrOutput) } -type GetPodSecurityPolicyTemplateRunAsGroupOutput struct{ *pulumi.OutputState } +type GetNotifierMsteamsConfigOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateRunAsGroupOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroup)(nil)).Elem() +func (GetNotifierMsteamsConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierMsteamsConfig)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) ToGetPodSecurityPolicyTemplateRunAsGroupOutput() GetPodSecurityPolicyTemplateRunAsGroupOutput { +func (o GetNotifierMsteamsConfigOutput) ToGetNotifierMsteamsConfigOutput() GetNotifierMsteamsConfigOutput { return o } -func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) ToGetPodSecurityPolicyTemplateRunAsGroupOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupOutput { +func (o GetNotifierMsteamsConfigOutput) ToGetNotifierMsteamsConfigOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigOutput { return o } -func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { - return o.ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(context.Background()) +func (o GetNotifierMsteamsConfigOutput) ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput { + return o.ToGetNotifierMsteamsConfigPtrOutputWithContext(context.Background()) } -func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetPodSecurityPolicyTemplateRunAsGroup) *GetPodSecurityPolicyTemplateRunAsGroup { +func (o GetNotifierMsteamsConfigOutput) ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetNotifierMsteamsConfig) *GetNotifierMsteamsConfig { return &v - }).(GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) + }).(GetNotifierMsteamsConfigPtrOutput) } -// ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. -func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) Ranges() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsGroup) []GetPodSecurityPolicyTemplateRunAsGroupRange { - return v.Ranges - }).(GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) +// MS teams proxy URL +func (o GetNotifierMsteamsConfigOutput) ProxyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierMsteamsConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) } -// rule is the strategy that will dictate the allowable RunAsGroup values that may be set. -func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) Rule() pulumi.StringOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsGroup) string { return v.Rule }).(pulumi.StringOutput) +// Webhook URL +func (o GetNotifierMsteamsConfigOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierMsteamsConfig) string { return v.Url }).(pulumi.StringOutput) } -type GetPodSecurityPolicyTemplateRunAsGroupPtrOutput struct{ *pulumi.OutputState } +type GetNotifierMsteamsConfigPtrOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetPodSecurityPolicyTemplateRunAsGroup)(nil)).Elem() +func (GetNotifierMsteamsConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetNotifierMsteamsConfig)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { +func (o GetNotifierMsteamsConfigPtrOutput) ToGetNotifierMsteamsConfigPtrOutput() GetNotifierMsteamsConfigPtrOutput { return o } -func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { +func (o GetNotifierMsteamsConfigPtrOutput) ToGetNotifierMsteamsConfigPtrOutputWithContext(ctx context.Context) GetNotifierMsteamsConfigPtrOutput { return o } -func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) Elem() GetPodSecurityPolicyTemplateRunAsGroupOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsGroup) GetPodSecurityPolicyTemplateRunAsGroup { +func (o GetNotifierMsteamsConfigPtrOutput) Elem() GetNotifierMsteamsConfigOutput { + return o.ApplyT(func(v *GetNotifierMsteamsConfig) GetNotifierMsteamsConfig { if v != nil { return *v } - var ret GetPodSecurityPolicyTemplateRunAsGroup + var ret GetNotifierMsteamsConfig return ret - }).(GetPodSecurityPolicyTemplateRunAsGroupOutput) + }).(GetNotifierMsteamsConfigOutput) } -// ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. -func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) Ranges() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsGroup) []GetPodSecurityPolicyTemplateRunAsGroupRange { +// MS teams proxy URL +func (o GetNotifierMsteamsConfigPtrOutput) ProxyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetNotifierMsteamsConfig) *string { if v == nil { return nil } - return v.Ranges - }).(GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) + return v.ProxyUrl + }).(pulumi.StringPtrOutput) } -// rule is the strategy that will dictate the allowable RunAsGroup values that may be set. -func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) Rule() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsGroup) *string { +// Webhook URL +func (o GetNotifierMsteamsConfigPtrOutput) Url() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetNotifierMsteamsConfig) *string { if v == nil { return nil } - return &v.Rule + return &v.Url }).(pulumi.StringPtrOutput) } -type GetPodSecurityPolicyTemplateRunAsGroupRange struct { - // max is the end of the range, inclusive. - Max int `pulumi:"max"` - // min is the start of the range, inclusive. - Min int `pulumi:"min"` +type GetNotifierPagerdutyConfig struct { + // Pagerduty proxy URL + ProxyUrl *string `pulumi:"proxyUrl"` + // Pagerduty service key + ServiceKey string `pulumi:"serviceKey"` } -// GetPodSecurityPolicyTemplateRunAsGroupRangeInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsGroupRangeArgs and GetPodSecurityPolicyTemplateRunAsGroupRangeOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsGroupRangeInput` via: +// GetNotifierPagerdutyConfigInput is an input type that accepts GetNotifierPagerdutyConfigArgs and GetNotifierPagerdutyConfigOutput values. +// You can construct a concrete instance of `GetNotifierPagerdutyConfigInput` via: // -// GetPodSecurityPolicyTemplateRunAsGroupRangeArgs{...} -type GetPodSecurityPolicyTemplateRunAsGroupRangeInput interface { +// GetNotifierPagerdutyConfigArgs{...} +type GetNotifierPagerdutyConfigInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeOutput - ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeOutput + ToGetNotifierPagerdutyConfigOutput() GetNotifierPagerdutyConfigOutput + ToGetNotifierPagerdutyConfigOutputWithContext(context.Context) GetNotifierPagerdutyConfigOutput } -type GetPodSecurityPolicyTemplateRunAsGroupRangeArgs struct { - // max is the end of the range, inclusive. - Max pulumi.IntInput `pulumi:"max"` - // min is the start of the range, inclusive. - Min pulumi.IntInput `pulumi:"min"` +type GetNotifierPagerdutyConfigArgs struct { + // Pagerduty proxy URL + ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` + // Pagerduty service key + ServiceKey pulumi.StringInput `pulumi:"serviceKey"` } -func (GetPodSecurityPolicyTemplateRunAsGroupRangeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupRange)(nil)).Elem() +func (GetNotifierPagerdutyConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierPagerdutyConfig)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateRunAsGroupRangeArgs) ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { - return i.ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutputWithContext(context.Background()) +func (i GetNotifierPagerdutyConfigArgs) ToGetNotifierPagerdutyConfigOutput() GetNotifierPagerdutyConfigOutput { + return i.ToGetNotifierPagerdutyConfigOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateRunAsGroupRangeArgs) ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) +func (i GetNotifierPagerdutyConfigArgs) ToGetNotifierPagerdutyConfigOutputWithContext(ctx context.Context) GetNotifierPagerdutyConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierPagerdutyConfigOutput) } -// GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsGroupRangeArray and GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput` via: -// -// GetPodSecurityPolicyTemplateRunAsGroupRangeArray{ GetPodSecurityPolicyTemplateRunAsGroupRangeArgs{...} } -type GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput interface { - pulumi.Input +type GetNotifierPagerdutyConfigOutput struct{ *pulumi.OutputState } - ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput - ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput +func (GetNotifierPagerdutyConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierPagerdutyConfig)(nil)).Elem() +} + +func (o GetNotifierPagerdutyConfigOutput) ToGetNotifierPagerdutyConfigOutput() GetNotifierPagerdutyConfigOutput { + return o } -type GetPodSecurityPolicyTemplateRunAsGroupRangeArray []GetPodSecurityPolicyTemplateRunAsGroupRangeInput +func (o GetNotifierPagerdutyConfigOutput) ToGetNotifierPagerdutyConfigOutputWithContext(ctx context.Context) GetNotifierPagerdutyConfigOutput { + return o +} -func (GetPodSecurityPolicyTemplateRunAsGroupRangeArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateRunAsGroupRange)(nil)).Elem() +// Pagerduty proxy URL +func (o GetNotifierPagerdutyConfigOutput) ProxyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierPagerdutyConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) } -func (i GetPodSecurityPolicyTemplateRunAsGroupRangeArray) ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { - return i.ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutputWithContext(context.Background()) +// Pagerduty service key +func (o GetNotifierPagerdutyConfigOutput) ServiceKey() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierPagerdutyConfig) string { return v.ServiceKey }).(pulumi.StringOutput) } -func (i GetPodSecurityPolicyTemplateRunAsGroupRangeArray) ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) +type GetNotifierSlackConfig struct { + // Slack default channel + DefaultRecipient string `pulumi:"defaultRecipient"` + // Slack proxy URL + ProxyUrl *string `pulumi:"proxyUrl"` + // Slack URL + Url string `pulumi:"url"` } -type GetPodSecurityPolicyTemplateRunAsGroupRangeOutput struct{ *pulumi.OutputState } +// GetNotifierSlackConfigInput is an input type that accepts GetNotifierSlackConfigArgs and GetNotifierSlackConfigOutput values. +// You can construct a concrete instance of `GetNotifierSlackConfigInput` via: +// +// GetNotifierSlackConfigArgs{...} +type GetNotifierSlackConfigInput interface { + pulumi.Input -func (GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupRange)(nil)).Elem() + ToGetNotifierSlackConfigOutput() GetNotifierSlackConfigOutput + ToGetNotifierSlackConfigOutputWithContext(context.Context) GetNotifierSlackConfigOutput } -func (o GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { - return o +type GetNotifierSlackConfigArgs struct { + // Slack default channel + DefaultRecipient pulumi.StringInput `pulumi:"defaultRecipient"` + // Slack proxy URL + ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` + // Slack URL + Url pulumi.StringInput `pulumi:"url"` } -func (o GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { - return o +func (GetNotifierSlackConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierSlackConfig)(nil)).Elem() } -// max is the end of the range, inclusive. -func (o GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) Max() pulumi.IntOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsGroupRange) int { return v.Max }).(pulumi.IntOutput) +func (i GetNotifierSlackConfigArgs) ToGetNotifierSlackConfigOutput() GetNotifierSlackConfigOutput { + return i.ToGetNotifierSlackConfigOutputWithContext(context.Background()) } -// min is the start of the range, inclusive. -func (o GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) Min() pulumi.IntOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsGroupRange) int { return v.Min }).(pulumi.IntOutput) +func (i GetNotifierSlackConfigArgs) ToGetNotifierSlackConfigOutputWithContext(ctx context.Context) GetNotifierSlackConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierSlackConfigOutput) } -type GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput struct{ *pulumi.OutputState } +type GetNotifierSlackConfigOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateRunAsGroupRange)(nil)).Elem() +func (GetNotifierSlackConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierSlackConfig)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { +func (o GetNotifierSlackConfigOutput) ToGetNotifierSlackConfigOutput() GetNotifierSlackConfigOutput { return o } -func (o GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { +func (o GetNotifierSlackConfigOutput) ToGetNotifierSlackConfigOutputWithContext(ctx context.Context) GetNotifierSlackConfigOutput { return o } -func (o GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateRunAsGroupRange { - return vs[0].([]GetPodSecurityPolicyTemplateRunAsGroupRange)[vs[1].(int)] - }).(GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) +// Slack default channel +func (o GetNotifierSlackConfigOutput) DefaultRecipient() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierSlackConfig) string { return v.DefaultRecipient }).(pulumi.StringOutput) } -type GetPodSecurityPolicyTemplateRunAsUser struct { - // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - Ranges []GetPodSecurityPolicyTemplateRunAsUserRange `pulumi:"ranges"` - // rule is the strategy that will dictate the allowable RunAsUser values that may be set. - Rule string `pulumi:"rule"` +// Slack proxy URL +func (o GetNotifierSlackConfigOutput) ProxyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierSlackConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) +} + +// Slack URL +func (o GetNotifierSlackConfigOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierSlackConfig) string { return v.Url }).(pulumi.StringOutput) +} + +type GetNotifierSmtpConfig struct { + // SMTP default recipient address + DefaultRecipient string `pulumi:"defaultRecipient"` + // SMTP host + Host string `pulumi:"host"` + // SMTP password + Password *string `pulumi:"password"` + // SMTP port + Port int `pulumi:"port"` + // SMTP sender + Sender string `pulumi:"sender"` + // SMTP TLS + Tls *bool `pulumi:"tls"` + // SMTP username + Username *string `pulumi:"username"` } -// GetPodSecurityPolicyTemplateRunAsUserInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsUserArgs and GetPodSecurityPolicyTemplateRunAsUserOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsUserInput` via: +// GetNotifierSmtpConfigInput is an input type that accepts GetNotifierSmtpConfigArgs and GetNotifierSmtpConfigOutput values. +// You can construct a concrete instance of `GetNotifierSmtpConfigInput` via: // -// GetPodSecurityPolicyTemplateRunAsUserArgs{...} -type GetPodSecurityPolicyTemplateRunAsUserInput interface { +// GetNotifierSmtpConfigArgs{...} +type GetNotifierSmtpConfigInput interface { pulumi.Input - ToGetPodSecurityPolicyTemplateRunAsUserOutput() GetPodSecurityPolicyTemplateRunAsUserOutput - ToGetPodSecurityPolicyTemplateRunAsUserOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsUserOutput + ToGetNotifierSmtpConfigOutput() GetNotifierSmtpConfigOutput + ToGetNotifierSmtpConfigOutputWithContext(context.Context) GetNotifierSmtpConfigOutput } -type GetPodSecurityPolicyTemplateRunAsUserArgs struct { - // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - Ranges GetPodSecurityPolicyTemplateRunAsUserRangeArrayInput `pulumi:"ranges"` - // rule is the strategy that will dictate the allowable RunAsUser values that may be set. - Rule pulumi.StringInput `pulumi:"rule"` +type GetNotifierSmtpConfigArgs struct { + // SMTP default recipient address + DefaultRecipient pulumi.StringInput `pulumi:"defaultRecipient"` + // SMTP host + Host pulumi.StringInput `pulumi:"host"` + // SMTP password + Password pulumi.StringPtrInput `pulumi:"password"` + // SMTP port + Port pulumi.IntInput `pulumi:"port"` + // SMTP sender + Sender pulumi.StringInput `pulumi:"sender"` + // SMTP TLS + Tls pulumi.BoolPtrInput `pulumi:"tls"` + // SMTP username + Username pulumi.StringPtrInput `pulumi:"username"` } -func (GetPodSecurityPolicyTemplateRunAsUserArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUser)(nil)).Elem() +func (GetNotifierSmtpConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierSmtpConfig)(nil)).Elem() } -func (i GetPodSecurityPolicyTemplateRunAsUserArgs) ToGetPodSecurityPolicyTemplateRunAsUserOutput() GetPodSecurityPolicyTemplateRunAsUserOutput { - return i.ToGetPodSecurityPolicyTemplateRunAsUserOutputWithContext(context.Background()) +func (i GetNotifierSmtpConfigArgs) ToGetNotifierSmtpConfigOutput() GetNotifierSmtpConfigOutput { + return i.ToGetNotifierSmtpConfigOutputWithContext(context.Background()) } -func (i GetPodSecurityPolicyTemplateRunAsUserArgs) ToGetPodSecurityPolicyTemplateRunAsUserOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsUserOutput) +func (i GetNotifierSmtpConfigArgs) ToGetNotifierSmtpConfigOutputWithContext(ctx context.Context) GetNotifierSmtpConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierSmtpConfigOutput) } -func (i GetPodSecurityPolicyTemplateRunAsUserArgs) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput { - return i.ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(context.Background()) -} +type GetNotifierSmtpConfigOutput struct{ *pulumi.OutputState } -func (i GetPodSecurityPolicyTemplateRunAsUserArgs) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsUserOutput).ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx) +func (GetNotifierSmtpConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierSmtpConfig)(nil)).Elem() } -// GetPodSecurityPolicyTemplateRunAsUserPtrInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsUserArgs, GetPodSecurityPolicyTemplateRunAsUserPtr and GetPodSecurityPolicyTemplateRunAsUserPtrOutput values. -// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsUserPtrInput` via: -// -// GetPodSecurityPolicyTemplateRunAsUserArgs{...} -// -// or: -// -// nil -type GetPodSecurityPolicyTemplateRunAsUserPtrInput interface { - pulumi.Input +func (o GetNotifierSmtpConfigOutput) ToGetNotifierSmtpConfigOutput() GetNotifierSmtpConfigOutput { + return o +} - ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput - ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput +func (o GetNotifierSmtpConfigOutput) ToGetNotifierSmtpConfigOutputWithContext(ctx context.Context) GetNotifierSmtpConfigOutput { + return o } -type getPodSecurityPolicyTemplateRunAsUserPtrType GetPodSecurityPolicyTemplateRunAsUserArgs +// SMTP default recipient address +func (o GetNotifierSmtpConfigOutput) DefaultRecipient() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierSmtpConfig) string { return v.DefaultRecipient }).(pulumi.StringOutput) +} -func GetPodSecurityPolicyTemplateRunAsUserPtr(v *GetPodSecurityPolicyTemplateRunAsUserArgs) GetPodSecurityPolicyTemplateRunAsUserPtrInput { - return (*getPodSecurityPolicyTemplateRunAsUserPtrType)(v) +// SMTP host +func (o GetNotifierSmtpConfigOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierSmtpConfig) string { return v.Host }).(pulumi.StringOutput) } -func (*getPodSecurityPolicyTemplateRunAsUserPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetPodSecurityPolicyTemplateRunAsUser)(nil)).Elem() +// SMTP password +func (o GetNotifierSmtpConfigOutput) Password() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierSmtpConfig) *string { return v.Password }).(pulumi.StringPtrOutput) } -func (i *getPodSecurityPolicyTemplateRunAsUserPtrType) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput { - return i.ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(context.Background()) +// SMTP port +func (o GetNotifierSmtpConfigOutput) Port() pulumi.IntOutput { + return o.ApplyT(func(v GetNotifierSmtpConfig) int { return v.Port }).(pulumi.IntOutput) } -func (i *getPodSecurityPolicyTemplateRunAsUserPtrType) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsUserPtrOutput) +// SMTP sender +func (o GetNotifierSmtpConfigOutput) Sender() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierSmtpConfig) string { return v.Sender }).(pulumi.StringOutput) } -type GetPodSecurityPolicyTemplateRunAsUserOutput struct{ *pulumi.OutputState } +// SMTP TLS +func (o GetNotifierSmtpConfigOutput) Tls() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetNotifierSmtpConfig) *bool { return v.Tls }).(pulumi.BoolPtrOutput) +} -func (GetPodSecurityPolicyTemplateRunAsUserOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUser)(nil)).Elem() +// SMTP username +func (o GetNotifierSmtpConfigOutput) Username() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierSmtpConfig) *string { return v.Username }).(pulumi.StringPtrOutput) } -func (o GetPodSecurityPolicyTemplateRunAsUserOutput) ToGetPodSecurityPolicyTemplateRunAsUserOutput() GetPodSecurityPolicyTemplateRunAsUserOutput { - return o +type GetNotifierWebhookConfig struct { + // Webhook proxy URL + ProxyUrl *string `pulumi:"proxyUrl"` + // Webhook URL + Url string `pulumi:"url"` } -func (o GetPodSecurityPolicyTemplateRunAsUserOutput) ToGetPodSecurityPolicyTemplateRunAsUserOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserOutput { - return o +// GetNotifierWebhookConfigInput is an input type that accepts GetNotifierWebhookConfigArgs and GetNotifierWebhookConfigOutput values. +// You can construct a concrete instance of `GetNotifierWebhookConfigInput` via: +// +// GetNotifierWebhookConfigArgs{...} +type GetNotifierWebhookConfigInput interface { + pulumi.Input + + ToGetNotifierWebhookConfigOutput() GetNotifierWebhookConfigOutput + ToGetNotifierWebhookConfigOutputWithContext(context.Context) GetNotifierWebhookConfigOutput } -func (o GetPodSecurityPolicyTemplateRunAsUserOutput) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput { - return o.ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(context.Background()) +type GetNotifierWebhookConfigArgs struct { + // Webhook proxy URL + ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` + // Webhook URL + Url pulumi.StringInput `pulumi:"url"` } -func (o GetPodSecurityPolicyTemplateRunAsUserOutput) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetPodSecurityPolicyTemplateRunAsUser) *GetPodSecurityPolicyTemplateRunAsUser { - return &v - }).(GetPodSecurityPolicyTemplateRunAsUserPtrOutput) +func (GetNotifierWebhookConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierWebhookConfig)(nil)).Elem() } -// ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. -func (o GetPodSecurityPolicyTemplateRunAsUserOutput) Ranges() GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsUser) []GetPodSecurityPolicyTemplateRunAsUserRange { - return v.Ranges - }).(GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput) +func (i GetNotifierWebhookConfigArgs) ToGetNotifierWebhookConfigOutput() GetNotifierWebhookConfigOutput { + return i.ToGetNotifierWebhookConfigOutputWithContext(context.Background()) } -// rule is the strategy that will dictate the allowable RunAsUser values that may be set. -func (o GetPodSecurityPolicyTemplateRunAsUserOutput) Rule() pulumi.StringOutput { - return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsUser) string { return v.Rule }).(pulumi.StringOutput) +func (i GetNotifierWebhookConfigArgs) ToGetNotifierWebhookConfigOutputWithContext(ctx context.Context) GetNotifierWebhookConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierWebhookConfigOutput) } -type GetPodSecurityPolicyTemplateRunAsUserPtrOutput struct{ *pulumi.OutputState } +type GetNotifierWebhookConfigOutput struct{ *pulumi.OutputState } -func (GetPodSecurityPolicyTemplateRunAsUserPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetPodSecurityPolicyTemplateRunAsUser)(nil)).Elem() +func (GetNotifierWebhookConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierWebhookConfig)(nil)).Elem() } -func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput { +func (o GetNotifierWebhookConfigOutput) ToGetNotifierWebhookConfigOutput() GetNotifierWebhookConfigOutput { return o } -func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput { +func (o GetNotifierWebhookConfigOutput) ToGetNotifierWebhookConfigOutputWithContext(ctx context.Context) GetNotifierWebhookConfigOutput { return o } -func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) Elem() GetPodSecurityPolicyTemplateRunAsUserOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsUser) GetPodSecurityPolicyTemplateRunAsUser { - if v != nil { - return *v - } - var ret GetPodSecurityPolicyTemplateRunAsUser - return ret - }).(GetPodSecurityPolicyTemplateRunAsUserOutput) -} - -// ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. -func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) Ranges() GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsUser) []GetPodSecurityPolicyTemplateRunAsUserRange { - if v == nil { - return nil - } - return v.Ranges - }).(GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput) +// Webhook proxy URL +func (o GetNotifierWebhookConfigOutput) ProxyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierWebhookConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) } -// rule is the strategy that will dictate the allowable RunAsUser values that may be set. -func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) Rule() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsUser) *string { - if v == nil { - return nil - } - return &v.Rule - }).(pulumi.StringPtrOutput) +// Webhook URL +func (o GetNotifierWebhookConfigOutput) Url() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierWebhookConfig) string { return v.Url }).(pulumi.StringOutput) } func init() { @@ -98986,16 +99217,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlertRuleNodeRulePtrInput)(nil)).Elem(), ClusterAlertRuleNodeRuleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlertRuleSystemServiceRuleInput)(nil)).Elem(), ClusterAlertRuleSystemServiceRuleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlertRuleSystemServiceRulePtrInput)(nil)).Elem(), ClusterAlertRuleSystemServiceRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterGroupRecipientInput)(nil)).Elem(), ClusterAlterGroupRecipientArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterGroupRecipientArrayInput)(nil)).Elem(), ClusterAlterGroupRecipientArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleEventRuleInput)(nil)).Elem(), ClusterAlterRuleEventRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleEventRulePtrInput)(nil)).Elem(), ClusterAlterRuleEventRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleMetricRuleInput)(nil)).Elem(), ClusterAlterRuleMetricRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleMetricRulePtrInput)(nil)).Elem(), ClusterAlterRuleMetricRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleNodeRuleInput)(nil)).Elem(), ClusterAlterRuleNodeRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleNodeRulePtrInput)(nil)).Elem(), ClusterAlterRuleNodeRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleSystemServiceRuleInput)(nil)).Elem(), ClusterAlterRuleSystemServiceRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*ClusterAlterRuleSystemServiceRulePtrInput)(nil)).Elem(), ClusterAlterRuleSystemServiceRuleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationInput)(nil)).Elem(), ClusterClusterAgentDeploymentCustomizationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationArrayInput)(nil)).Elem(), ClusterClusterAgentDeploymentCustomizationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterClusterAgentDeploymentCustomizationAppendTolerationInput)(nil)).Elem(), ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs{}) @@ -99363,6 +99584,22 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileArrayInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceSecretInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput)(nil)).Elem(), ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigRegistriesInput)(nil)).Elem(), ClusterV2RkeConfigRegistriesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigRegistriesPtrInput)(nil)).Elem(), ClusterV2RkeConfigRegistriesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ClusterV2RkeConfigRegistriesConfigInput)(nil)).Elem(), ClusterV2RkeConfigRegistriesConfigArgs{}) @@ -99507,8 +99744,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProjectResourceQuotaProjectLimitPtrInput)(nil)).Elem(), ProjectResourceQuotaProjectLimitArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryRegistryInput)(nil)).Elem(), RegistryRegistryArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryRegistryArrayInput)(nil)).Elem(), RegistryRegistryArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*RoleTempalteRuleInput)(nil)).Elem(), RoleTempalteRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RoleTempalteRuleArrayInput)(nil)).Elem(), RoleTempalteRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RoleTemplateRuleInput)(nil)).Elem(), RoleTemplateRuleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RoleTemplateRuleArrayInput)(nil)).Elem(), RoleTemplateRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAksConfigInput)(nil)).Elem(), GetClusterAksConfigArgs{}) @@ -99517,10 +99752,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAksConfigV2NodePoolArrayInput)(nil)).Elem(), GetClusterAksConfigV2NodePoolArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlertGroupRecipientInput)(nil)).Elem(), GetClusterAlertGroupRecipientArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlertGroupRecipientArrayInput)(nil)).Elem(), GetClusterAlertGroupRecipientArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlterRuleEventRuleInput)(nil)).Elem(), GetClusterAlterRuleEventRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlterRuleMetricRuleInput)(nil)).Elem(), GetClusterAlterRuleMetricRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlterRuleNodeRuleInput)(nil)).Elem(), GetClusterAlterRuleNodeRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlterRuleSystemServiceRuleInput)(nil)).Elem(), GetClusterAlterRuleSystemServiceRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlertRuleEventRuleInput)(nil)).Elem(), GetClusterAlertRuleEventRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlertRuleMetricRuleInput)(nil)).Elem(), GetClusterAlertRuleMetricRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlertRuleNodeRuleInput)(nil)).Elem(), GetClusterAlertRuleNodeRuleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterAlertRuleSystemServiceRuleInput)(nil)).Elem(), GetClusterAlertRuleSystemServiceRuleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterClusterAuthEndpointInput)(nil)).Elem(), GetClusterClusterAuthEndpointArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterClusterMonitoringInputInput)(nil)).Elem(), GetClusterClusterMonitoringInputArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterClusterRegistrationTokenInput)(nil)).Elem(), GetClusterClusterRegistrationTokenArgs{}) @@ -99799,6 +100034,22 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileArrayInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayInput)(nil)).Elem(), GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigRegistriesInput)(nil)).Elem(), GetClusterV2RkeConfigRegistriesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigRegistriesPtrInput)(nil)).Elem(), GetClusterV2RkeConfigRegistriesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetClusterV2RkeConfigRegistriesConfigInput)(nil)).Elem(), GetClusterV2RkeConfigRegistriesConfigArgs{}) @@ -99846,25 +100097,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GetNotifierSlackConfigInput)(nil)).Elem(), GetNotifierSlackConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetNotifierSmtpConfigInput)(nil)).Elem(), GetNotifierSmtpConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetNotifierWebhookConfigInput)(nil)).Elem(), GetNotifierWebhookConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetNotifierWechatConfigInput)(nil)).Elem(), GetNotifierWechatConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedCsiDriverInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedCsiDriverArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedCsiDriverArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedCsiDriverArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedFlexVolumeInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedFlexVolumeArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedHostPathInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedHostPathArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedHostPathArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedHostPathArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupInput)(nil)).Elem(), GetPodSecurityPolicyTemplateFsGroupArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupPtrInput)(nil)).Elem(), GetPodSecurityPolicyTemplateFsGroupArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupRangeInput)(nil)).Elem(), GetPodSecurityPolicyTemplateFsGroupRangeArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupRangeArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateFsGroupRangeArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateHostPortInput)(nil)).Elem(), GetPodSecurityPolicyTemplateHostPortArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateHostPortArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateHostPortArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsGroupArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupPtrInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsGroupArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupRangeInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsGroupRangeArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsGroupRangeArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUserInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsUserArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUserPtrInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsUserArgs{}) pulumi.RegisterOutputType(CloudCredentialAmazonec2CredentialConfigOutput{}) pulumi.RegisterOutputType(CloudCredentialAmazonec2CredentialConfigPtrOutput{}) pulumi.RegisterOutputType(CloudCredentialAzureCredentialConfigOutput{}) @@ -99901,16 +100133,6 @@ func init() { pulumi.RegisterOutputType(ClusterAlertRuleNodeRulePtrOutput{}) pulumi.RegisterOutputType(ClusterAlertRuleSystemServiceRuleOutput{}) pulumi.RegisterOutputType(ClusterAlertRuleSystemServiceRulePtrOutput{}) - pulumi.RegisterOutputType(ClusterAlterGroupRecipientOutput{}) - pulumi.RegisterOutputType(ClusterAlterGroupRecipientArrayOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleEventRuleOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleEventRulePtrOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleMetricRuleOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleMetricRulePtrOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleNodeRuleOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleNodeRulePtrOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleSystemServiceRuleOutput{}) - pulumi.RegisterOutputType(ClusterAlterRuleSystemServiceRulePtrOutput{}) pulumi.RegisterOutputType(ClusterClusterAgentDeploymentCustomizationOutput{}) pulumi.RegisterOutputType(ClusterClusterAgentDeploymentCustomizationArrayOutput{}) pulumi.RegisterOutputType(ClusterClusterAgentDeploymentCustomizationAppendTolerationOutput{}) @@ -100278,6 +100500,22 @@ func init() { pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput{}) pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput{}) pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileArrayOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput{}) + pulumi.RegisterOutputType(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput{}) pulumi.RegisterOutputType(ClusterV2RkeConfigRegistriesOutput{}) pulumi.RegisterOutputType(ClusterV2RkeConfigRegistriesPtrOutput{}) pulumi.RegisterOutputType(ClusterV2RkeConfigRegistriesConfigOutput{}) @@ -100422,8 +100660,6 @@ func init() { pulumi.RegisterOutputType(ProjectResourceQuotaProjectLimitPtrOutput{}) pulumi.RegisterOutputType(RegistryRegistryOutput{}) pulumi.RegisterOutputType(RegistryRegistryArrayOutput{}) - pulumi.RegisterOutputType(RoleTempalteRuleOutput{}) - pulumi.RegisterOutputType(RoleTempalteRuleArrayOutput{}) pulumi.RegisterOutputType(RoleTemplateRuleOutput{}) pulumi.RegisterOutputType(RoleTemplateRuleArrayOutput{}) pulumi.RegisterOutputType(GetClusterAksConfigOutput{}) @@ -100432,10 +100668,10 @@ func init() { pulumi.RegisterOutputType(GetClusterAksConfigV2NodePoolArrayOutput{}) pulumi.RegisterOutputType(GetClusterAlertGroupRecipientOutput{}) pulumi.RegisterOutputType(GetClusterAlertGroupRecipientArrayOutput{}) - pulumi.RegisterOutputType(GetClusterAlterRuleEventRuleOutput{}) - pulumi.RegisterOutputType(GetClusterAlterRuleMetricRuleOutput{}) - pulumi.RegisterOutputType(GetClusterAlterRuleNodeRuleOutput{}) - pulumi.RegisterOutputType(GetClusterAlterRuleSystemServiceRuleOutput{}) + pulumi.RegisterOutputType(GetClusterAlertRuleEventRuleOutput{}) + pulumi.RegisterOutputType(GetClusterAlertRuleMetricRuleOutput{}) + pulumi.RegisterOutputType(GetClusterAlertRuleNodeRuleOutput{}) + pulumi.RegisterOutputType(GetClusterAlertRuleSystemServiceRuleOutput{}) pulumi.RegisterOutputType(GetClusterClusterAuthEndpointOutput{}) pulumi.RegisterOutputType(GetClusterClusterMonitoringInputOutput{}) pulumi.RegisterOutputType(GetClusterClusterRegistrationTokenOutput{}) @@ -100714,6 +100950,22 @@ func init() { pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorPtrOutput{}) pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionOutput{}) pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArrayOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileArrayOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceArrayOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapPtrOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArrayOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretPtrOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArrayOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorPtrOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionOutput{}) + pulumi.RegisterOutputType(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArrayOutput{}) pulumi.RegisterOutputType(GetClusterV2RkeConfigRegistriesOutput{}) pulumi.RegisterOutputType(GetClusterV2RkeConfigRegistriesPtrOutput{}) pulumi.RegisterOutputType(GetClusterV2RkeConfigRegistriesConfigOutput{}) @@ -100761,23 +101013,4 @@ func init() { pulumi.RegisterOutputType(GetNotifierSlackConfigOutput{}) pulumi.RegisterOutputType(GetNotifierSmtpConfigOutput{}) pulumi.RegisterOutputType(GetNotifierWebhookConfigOutput{}) - pulumi.RegisterOutputType(GetNotifierWechatConfigOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedCsiDriverOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedHostPathOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateFsGroupOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateFsGroupPtrOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateFsGroupRangeOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateHostPortOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateHostPortArrayOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsGroupOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsGroupPtrOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsGroupRangeOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsUserOutput{}) - pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsUserPtrOutput{}) } diff --git a/sdk/go/rancher2/pulumiTypes1.go b/sdk/go/rancher2/pulumiTypes1.go index cd8fbef0f..38b9158cd 100644 --- a/sdk/go/rancher2/pulumiTypes1.go +++ b/sdk/go/rancher2/pulumiTypes1.go @@ -7,12 +7,1201 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) var _ = internal.GetEnvOrDefault +type GetNotifierWechatConfig struct { + // Wechat application agent ID + Agent string `pulumi:"agent"` + // Wechat corporation ID + Corp string `pulumi:"corp"` + // Wechat default channel + DefaultRecipient string `pulumi:"defaultRecipient"` + // Wechat proxy URL + ProxyUrl *string `pulumi:"proxyUrl"` + // Wechat recipient type + RecipientType *string `pulumi:"recipientType"` + // Wechat application secret + Secret string `pulumi:"secret"` +} + +// GetNotifierWechatConfigInput is an input type that accepts GetNotifierWechatConfigArgs and GetNotifierWechatConfigOutput values. +// You can construct a concrete instance of `GetNotifierWechatConfigInput` via: +// +// GetNotifierWechatConfigArgs{...} +type GetNotifierWechatConfigInput interface { + pulumi.Input + + ToGetNotifierWechatConfigOutput() GetNotifierWechatConfigOutput + ToGetNotifierWechatConfigOutputWithContext(context.Context) GetNotifierWechatConfigOutput +} + +type GetNotifierWechatConfigArgs struct { + // Wechat application agent ID + Agent pulumi.StringInput `pulumi:"agent"` + // Wechat corporation ID + Corp pulumi.StringInput `pulumi:"corp"` + // Wechat default channel + DefaultRecipient pulumi.StringInput `pulumi:"defaultRecipient"` + // Wechat proxy URL + ProxyUrl pulumi.StringPtrInput `pulumi:"proxyUrl"` + // Wechat recipient type + RecipientType pulumi.StringPtrInput `pulumi:"recipientType"` + // Wechat application secret + Secret pulumi.StringInput `pulumi:"secret"` +} + +func (GetNotifierWechatConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierWechatConfig)(nil)).Elem() +} + +func (i GetNotifierWechatConfigArgs) ToGetNotifierWechatConfigOutput() GetNotifierWechatConfigOutput { + return i.ToGetNotifierWechatConfigOutputWithContext(context.Background()) +} + +func (i GetNotifierWechatConfigArgs) ToGetNotifierWechatConfigOutputWithContext(ctx context.Context) GetNotifierWechatConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetNotifierWechatConfigOutput) +} + +type GetNotifierWechatConfigOutput struct{ *pulumi.OutputState } + +func (GetNotifierWechatConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetNotifierWechatConfig)(nil)).Elem() +} + +func (o GetNotifierWechatConfigOutput) ToGetNotifierWechatConfigOutput() GetNotifierWechatConfigOutput { + return o +} + +func (o GetNotifierWechatConfigOutput) ToGetNotifierWechatConfigOutputWithContext(ctx context.Context) GetNotifierWechatConfigOutput { + return o +} + +// Wechat application agent ID +func (o GetNotifierWechatConfigOutput) Agent() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierWechatConfig) string { return v.Agent }).(pulumi.StringOutput) +} + +// Wechat corporation ID +func (o GetNotifierWechatConfigOutput) Corp() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierWechatConfig) string { return v.Corp }).(pulumi.StringOutput) +} + +// Wechat default channel +func (o GetNotifierWechatConfigOutput) DefaultRecipient() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierWechatConfig) string { return v.DefaultRecipient }).(pulumi.StringOutput) +} + +// Wechat proxy URL +func (o GetNotifierWechatConfigOutput) ProxyUrl() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierWechatConfig) *string { return v.ProxyUrl }).(pulumi.StringPtrOutput) +} + +// Wechat recipient type +func (o GetNotifierWechatConfigOutput) RecipientType() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetNotifierWechatConfig) *string { return v.RecipientType }).(pulumi.StringPtrOutput) +} + +// Wechat application secret +func (o GetNotifierWechatConfigOutput) Secret() pulumi.StringOutput { + return o.ApplyT(func(v GetNotifierWechatConfig) string { return v.Secret }).(pulumi.StringOutput) +} + +type GetPodSecurityPolicyTemplateAllowedCsiDriver struct { + // The name of the PodSecurityPolicyTemplate (string) + Name string `pulumi:"name"` +} + +// GetPodSecurityPolicyTemplateAllowedCsiDriverInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedCsiDriverArgs and GetPodSecurityPolicyTemplateAllowedCsiDriverOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedCsiDriverInput` via: +// +// GetPodSecurityPolicyTemplateAllowedCsiDriverArgs{...} +type GetPodSecurityPolicyTemplateAllowedCsiDriverInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverOutput + ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverOutput +} + +type GetPodSecurityPolicyTemplateAllowedCsiDriverArgs struct { + // The name of the PodSecurityPolicyTemplate (string) + Name pulumi.StringInput `pulumi:"name"` +} + +func (GetPodSecurityPolicyTemplateAllowedCsiDriverArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedCsiDriver)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateAllowedCsiDriverArgs) ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { + return i.ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateAllowedCsiDriverArgs) ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) +} + +// GetPodSecurityPolicyTemplateAllowedCsiDriverArrayInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedCsiDriverArray and GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedCsiDriverArrayInput` via: +// +// GetPodSecurityPolicyTemplateAllowedCsiDriverArray{ GetPodSecurityPolicyTemplateAllowedCsiDriverArgs{...} } +type GetPodSecurityPolicyTemplateAllowedCsiDriverArrayInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput + ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput +} + +type GetPodSecurityPolicyTemplateAllowedCsiDriverArray []GetPodSecurityPolicyTemplateAllowedCsiDriverInput + +func (GetPodSecurityPolicyTemplateAllowedCsiDriverArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedCsiDriver)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateAllowedCsiDriverArray) ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput { + return i.ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateAllowedCsiDriverArray) ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) +} + +type GetPodSecurityPolicyTemplateAllowedCsiDriverOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedCsiDriver)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) ToGetPodSecurityPolicyTemplateAllowedCsiDriverOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { + return o +} + +// The name of the PodSecurityPolicyTemplate (string) +func (o GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateAllowedCsiDriver) string { return v.Name }).(pulumi.StringOutput) +} + +type GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedCsiDriver)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput() GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) ToGetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateAllowedCsiDriverOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateAllowedCsiDriver { + return vs[0].([]GetPodSecurityPolicyTemplateAllowedCsiDriver)[vs[1].(int)] + }).(GetPodSecurityPolicyTemplateAllowedCsiDriverOutput) +} + +type GetPodSecurityPolicyTemplateAllowedFlexVolume struct { + // driver is the name of the Flexvolume driver. + Driver string `pulumi:"driver"` +} + +// GetPodSecurityPolicyTemplateAllowedFlexVolumeInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs and GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedFlexVolumeInput` via: +// +// GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs{...} +type GetPodSecurityPolicyTemplateAllowedFlexVolumeInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput + ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput +} + +type GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs struct { + // driver is the name of the Flexvolume driver. + Driver pulumi.StringInput `pulumi:"driver"` +} + +func (GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedFlexVolume)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { + return i.ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) +} + +// GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedFlexVolumeArray and GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayInput` via: +// +// GetPodSecurityPolicyTemplateAllowedFlexVolumeArray{ GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs{...} } +type GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput + ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput +} + +type GetPodSecurityPolicyTemplateAllowedFlexVolumeArray []GetPodSecurityPolicyTemplateAllowedFlexVolumeInput + +func (GetPodSecurityPolicyTemplateAllowedFlexVolumeArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedFlexVolume)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateAllowedFlexVolumeArray) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput { + return i.ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateAllowedFlexVolumeArray) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) +} + +type GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedFlexVolume)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { + return o +} + +// driver is the name of the Flexvolume driver. +func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) Driver() pulumi.StringOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateAllowedFlexVolume) string { return v.Driver }).(pulumi.StringOutput) +} + +type GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedFlexVolume)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput() GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) ToGetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateAllowedFlexVolume { + return vs[0].([]GetPodSecurityPolicyTemplateAllowedFlexVolume)[vs[1].(int)] + }).(GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput) +} + +type GetPodSecurityPolicyTemplateAllowedHostPath struct { + // pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + PathPrefix string `pulumi:"pathPrefix"` + // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + ReadOnly *bool `pulumi:"readOnly"` +} + +// GetPodSecurityPolicyTemplateAllowedHostPathInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedHostPathArgs and GetPodSecurityPolicyTemplateAllowedHostPathOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedHostPathInput` via: +// +// GetPodSecurityPolicyTemplateAllowedHostPathArgs{...} +type GetPodSecurityPolicyTemplateAllowedHostPathInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateAllowedHostPathOutput() GetPodSecurityPolicyTemplateAllowedHostPathOutput + ToGetPodSecurityPolicyTemplateAllowedHostPathOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedHostPathOutput +} + +type GetPodSecurityPolicyTemplateAllowedHostPathArgs struct { + // pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + PathPrefix pulumi.StringInput `pulumi:"pathPrefix"` + // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + ReadOnly pulumi.BoolPtrInput `pulumi:"readOnly"` +} + +func (GetPodSecurityPolicyTemplateAllowedHostPathArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedHostPath)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateAllowedHostPathArgs) ToGetPodSecurityPolicyTemplateAllowedHostPathOutput() GetPodSecurityPolicyTemplateAllowedHostPathOutput { + return i.ToGetPodSecurityPolicyTemplateAllowedHostPathOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateAllowedHostPathArgs) ToGetPodSecurityPolicyTemplateAllowedHostPathOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedHostPathOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedHostPathOutput) +} + +// GetPodSecurityPolicyTemplateAllowedHostPathArrayInput is an input type that accepts GetPodSecurityPolicyTemplateAllowedHostPathArray and GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateAllowedHostPathArrayInput` via: +// +// GetPodSecurityPolicyTemplateAllowedHostPathArray{ GetPodSecurityPolicyTemplateAllowedHostPathArgs{...} } +type GetPodSecurityPolicyTemplateAllowedHostPathArrayInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutput() GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput + ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput +} + +type GetPodSecurityPolicyTemplateAllowedHostPathArray []GetPodSecurityPolicyTemplateAllowedHostPathInput + +func (GetPodSecurityPolicyTemplateAllowedHostPathArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedHostPath)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateAllowedHostPathArray) ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutput() GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput { + return i.ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateAllowedHostPathArray) ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) +} + +type GetPodSecurityPolicyTemplateAllowedHostPathOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateAllowedHostPathOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedHostPath)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateAllowedHostPathOutput) ToGetPodSecurityPolicyTemplateAllowedHostPathOutput() GetPodSecurityPolicyTemplateAllowedHostPathOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedHostPathOutput) ToGetPodSecurityPolicyTemplateAllowedHostPathOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedHostPathOutput { + return o +} + +// pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. +func (o GetPodSecurityPolicyTemplateAllowedHostPathOutput) PathPrefix() pulumi.StringOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateAllowedHostPath) string { return v.PathPrefix }).(pulumi.StringOutput) +} + +// when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. +func (o GetPodSecurityPolicyTemplateAllowedHostPathOutput) ReadOnly() pulumi.BoolPtrOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateAllowedHostPath) *bool { return v.ReadOnly }).(pulumi.BoolPtrOutput) +} + +type GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateAllowedHostPath)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutput() GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) ToGetPodSecurityPolicyTemplateAllowedHostPathArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateAllowedHostPathOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateAllowedHostPath { + return vs[0].([]GetPodSecurityPolicyTemplateAllowedHostPath)[vs[1].(int)] + }).(GetPodSecurityPolicyTemplateAllowedHostPathOutput) +} + +type GetPodSecurityPolicyTemplateFsGroup struct { + // ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + Ranges []GetPodSecurityPolicyTemplateFsGroupRange `pulumi:"ranges"` + // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + Rule *string `pulumi:"rule"` +} + +// GetPodSecurityPolicyTemplateFsGroupInput is an input type that accepts GetPodSecurityPolicyTemplateFsGroupArgs and GetPodSecurityPolicyTemplateFsGroupOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateFsGroupInput` via: +// +// GetPodSecurityPolicyTemplateFsGroupArgs{...} +type GetPodSecurityPolicyTemplateFsGroupInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateFsGroupOutput() GetPodSecurityPolicyTemplateFsGroupOutput + ToGetPodSecurityPolicyTemplateFsGroupOutputWithContext(context.Context) GetPodSecurityPolicyTemplateFsGroupOutput +} + +type GetPodSecurityPolicyTemplateFsGroupArgs struct { + // ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + Ranges GetPodSecurityPolicyTemplateFsGroupRangeArrayInput `pulumi:"ranges"` + // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + Rule pulumi.StringPtrInput `pulumi:"rule"` +} + +func (GetPodSecurityPolicyTemplateFsGroupArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroup)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateFsGroupArgs) ToGetPodSecurityPolicyTemplateFsGroupOutput() GetPodSecurityPolicyTemplateFsGroupOutput { + return i.ToGetPodSecurityPolicyTemplateFsGroupOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateFsGroupArgs) ToGetPodSecurityPolicyTemplateFsGroupOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupOutput) +} + +func (i GetPodSecurityPolicyTemplateFsGroupArgs) ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput { + return i.ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateFsGroupArgs) ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupOutput).ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx) +} + +// GetPodSecurityPolicyTemplateFsGroupPtrInput is an input type that accepts GetPodSecurityPolicyTemplateFsGroupArgs, GetPodSecurityPolicyTemplateFsGroupPtr and GetPodSecurityPolicyTemplateFsGroupPtrOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateFsGroupPtrInput` via: +// +// GetPodSecurityPolicyTemplateFsGroupArgs{...} +// +// or: +// +// nil +type GetPodSecurityPolicyTemplateFsGroupPtrInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput + ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput +} + +type getPodSecurityPolicyTemplateFsGroupPtrType GetPodSecurityPolicyTemplateFsGroupArgs + +func GetPodSecurityPolicyTemplateFsGroupPtr(v *GetPodSecurityPolicyTemplateFsGroupArgs) GetPodSecurityPolicyTemplateFsGroupPtrInput { + return (*getPodSecurityPolicyTemplateFsGroupPtrType)(v) +} + +func (*getPodSecurityPolicyTemplateFsGroupPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetPodSecurityPolicyTemplateFsGroup)(nil)).Elem() +} + +func (i *getPodSecurityPolicyTemplateFsGroupPtrType) ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput { + return i.ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(context.Background()) +} + +func (i *getPodSecurityPolicyTemplateFsGroupPtrType) ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupPtrOutput) +} + +type GetPodSecurityPolicyTemplateFsGroupOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateFsGroupOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroup)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateFsGroupOutput) ToGetPodSecurityPolicyTemplateFsGroupOutput() GetPodSecurityPolicyTemplateFsGroupOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateFsGroupOutput) ToGetPodSecurityPolicyTemplateFsGroupOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateFsGroupOutput) ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput { + return o.ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(context.Background()) +} + +func (o GetPodSecurityPolicyTemplateFsGroupOutput) ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetPodSecurityPolicyTemplateFsGroup) *GetPodSecurityPolicyTemplateFsGroup { + return &v + }).(GetPodSecurityPolicyTemplateFsGroupPtrOutput) +} + +// ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. +func (o GetPodSecurityPolicyTemplateFsGroupOutput) Ranges() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateFsGroup) []GetPodSecurityPolicyTemplateFsGroupRange { + return v.Ranges + }).(GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) +} + +// rule is the strategy that will dictate what FSGroup is used in the SecurityContext. +func (o GetPodSecurityPolicyTemplateFsGroupOutput) Rule() pulumi.StringPtrOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateFsGroup) *string { return v.Rule }).(pulumi.StringPtrOutput) +} + +type GetPodSecurityPolicyTemplateFsGroupPtrOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateFsGroupPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetPodSecurityPolicyTemplateFsGroup)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) ToGetPodSecurityPolicyTemplateFsGroupPtrOutput() GetPodSecurityPolicyTemplateFsGroupPtrOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) ToGetPodSecurityPolicyTemplateFsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupPtrOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) Elem() GetPodSecurityPolicyTemplateFsGroupOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateFsGroup) GetPodSecurityPolicyTemplateFsGroup { + if v != nil { + return *v + } + var ret GetPodSecurityPolicyTemplateFsGroup + return ret + }).(GetPodSecurityPolicyTemplateFsGroupOutput) +} + +// ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. +func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) Ranges() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateFsGroup) []GetPodSecurityPolicyTemplateFsGroupRange { + if v == nil { + return nil + } + return v.Ranges + }).(GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) +} + +// rule is the strategy that will dictate what FSGroup is used in the SecurityContext. +func (o GetPodSecurityPolicyTemplateFsGroupPtrOutput) Rule() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateFsGroup) *string { + if v == nil { + return nil + } + return v.Rule + }).(pulumi.StringPtrOutput) +} + +type GetPodSecurityPolicyTemplateFsGroupRange struct { + // max is the end of the range, inclusive. + Max int `pulumi:"max"` + // min is the start of the range, inclusive. + Min int `pulumi:"min"` +} + +// GetPodSecurityPolicyTemplateFsGroupRangeInput is an input type that accepts GetPodSecurityPolicyTemplateFsGroupRangeArgs and GetPodSecurityPolicyTemplateFsGroupRangeOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateFsGroupRangeInput` via: +// +// GetPodSecurityPolicyTemplateFsGroupRangeArgs{...} +type GetPodSecurityPolicyTemplateFsGroupRangeInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateFsGroupRangeOutput() GetPodSecurityPolicyTemplateFsGroupRangeOutput + ToGetPodSecurityPolicyTemplateFsGroupRangeOutputWithContext(context.Context) GetPodSecurityPolicyTemplateFsGroupRangeOutput +} + +type GetPodSecurityPolicyTemplateFsGroupRangeArgs struct { + // max is the end of the range, inclusive. + Max pulumi.IntInput `pulumi:"max"` + // min is the start of the range, inclusive. + Min pulumi.IntInput `pulumi:"min"` +} + +func (GetPodSecurityPolicyTemplateFsGroupRangeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupRange)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateFsGroupRangeArgs) ToGetPodSecurityPolicyTemplateFsGroupRangeOutput() GetPodSecurityPolicyTemplateFsGroupRangeOutput { + return i.ToGetPodSecurityPolicyTemplateFsGroupRangeOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateFsGroupRangeArgs) ToGetPodSecurityPolicyTemplateFsGroupRangeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupRangeOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupRangeOutput) +} + +// GetPodSecurityPolicyTemplateFsGroupRangeArrayInput is an input type that accepts GetPodSecurityPolicyTemplateFsGroupRangeArray and GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateFsGroupRangeArrayInput` via: +// +// GetPodSecurityPolicyTemplateFsGroupRangeArray{ GetPodSecurityPolicyTemplateFsGroupRangeArgs{...} } +type GetPodSecurityPolicyTemplateFsGroupRangeArrayInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput + ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput +} + +type GetPodSecurityPolicyTemplateFsGroupRangeArray []GetPodSecurityPolicyTemplateFsGroupRangeInput + +func (GetPodSecurityPolicyTemplateFsGroupRangeArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateFsGroupRange)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateFsGroupRangeArray) ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { + return i.ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateFsGroupRangeArray) ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) +} + +type GetPodSecurityPolicyTemplateFsGroupRangeOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateFsGroupRangeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupRange)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateFsGroupRangeOutput) ToGetPodSecurityPolicyTemplateFsGroupRangeOutput() GetPodSecurityPolicyTemplateFsGroupRangeOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateFsGroupRangeOutput) ToGetPodSecurityPolicyTemplateFsGroupRangeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupRangeOutput { + return o +} + +// max is the end of the range, inclusive. +func (o GetPodSecurityPolicyTemplateFsGroupRangeOutput) Max() pulumi.IntOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateFsGroupRange) int { return v.Max }).(pulumi.IntOutput) +} + +// min is the start of the range, inclusive. +func (o GetPodSecurityPolicyTemplateFsGroupRangeOutput) Min() pulumi.IntOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateFsGroupRange) int { return v.Min }).(pulumi.IntOutput) +} + +type GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateFsGroupRange)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) ToGetPodSecurityPolicyTemplateFsGroupRangeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateFsGroupRangeOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateFsGroupRange { + return vs[0].([]GetPodSecurityPolicyTemplateFsGroupRange)[vs[1].(int)] + }).(GetPodSecurityPolicyTemplateFsGroupRangeOutput) +} + +type GetPodSecurityPolicyTemplateHostPort struct { + // max is the end of the range, inclusive. + Max int `pulumi:"max"` + // min is the start of the range, inclusive. + Min int `pulumi:"min"` +} + +// GetPodSecurityPolicyTemplateHostPortInput is an input type that accepts GetPodSecurityPolicyTemplateHostPortArgs and GetPodSecurityPolicyTemplateHostPortOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateHostPortInput` via: +// +// GetPodSecurityPolicyTemplateHostPortArgs{...} +type GetPodSecurityPolicyTemplateHostPortInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateHostPortOutput() GetPodSecurityPolicyTemplateHostPortOutput + ToGetPodSecurityPolicyTemplateHostPortOutputWithContext(context.Context) GetPodSecurityPolicyTemplateHostPortOutput +} + +type GetPodSecurityPolicyTemplateHostPortArgs struct { + // max is the end of the range, inclusive. + Max pulumi.IntInput `pulumi:"max"` + // min is the start of the range, inclusive. + Min pulumi.IntInput `pulumi:"min"` +} + +func (GetPodSecurityPolicyTemplateHostPortArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateHostPort)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateHostPortArgs) ToGetPodSecurityPolicyTemplateHostPortOutput() GetPodSecurityPolicyTemplateHostPortOutput { + return i.ToGetPodSecurityPolicyTemplateHostPortOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateHostPortArgs) ToGetPodSecurityPolicyTemplateHostPortOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateHostPortOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateHostPortOutput) +} + +// GetPodSecurityPolicyTemplateHostPortArrayInput is an input type that accepts GetPodSecurityPolicyTemplateHostPortArray and GetPodSecurityPolicyTemplateHostPortArrayOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateHostPortArrayInput` via: +// +// GetPodSecurityPolicyTemplateHostPortArray{ GetPodSecurityPolicyTemplateHostPortArgs{...} } +type GetPodSecurityPolicyTemplateHostPortArrayInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateHostPortArrayOutput() GetPodSecurityPolicyTemplateHostPortArrayOutput + ToGetPodSecurityPolicyTemplateHostPortArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateHostPortArrayOutput +} + +type GetPodSecurityPolicyTemplateHostPortArray []GetPodSecurityPolicyTemplateHostPortInput + +func (GetPodSecurityPolicyTemplateHostPortArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateHostPort)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateHostPortArray) ToGetPodSecurityPolicyTemplateHostPortArrayOutput() GetPodSecurityPolicyTemplateHostPortArrayOutput { + return i.ToGetPodSecurityPolicyTemplateHostPortArrayOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateHostPortArray) ToGetPodSecurityPolicyTemplateHostPortArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateHostPortArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateHostPortArrayOutput) +} + +type GetPodSecurityPolicyTemplateHostPortOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateHostPortOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateHostPort)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateHostPortOutput) ToGetPodSecurityPolicyTemplateHostPortOutput() GetPodSecurityPolicyTemplateHostPortOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateHostPortOutput) ToGetPodSecurityPolicyTemplateHostPortOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateHostPortOutput { + return o +} + +// max is the end of the range, inclusive. +func (o GetPodSecurityPolicyTemplateHostPortOutput) Max() pulumi.IntOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateHostPort) int { return v.Max }).(pulumi.IntOutput) +} + +// min is the start of the range, inclusive. +func (o GetPodSecurityPolicyTemplateHostPortOutput) Min() pulumi.IntOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateHostPort) int { return v.Min }).(pulumi.IntOutput) +} + +type GetPodSecurityPolicyTemplateHostPortArrayOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateHostPortArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateHostPort)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateHostPortArrayOutput) ToGetPodSecurityPolicyTemplateHostPortArrayOutput() GetPodSecurityPolicyTemplateHostPortArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateHostPortArrayOutput) ToGetPodSecurityPolicyTemplateHostPortArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateHostPortArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateHostPortArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateHostPortOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateHostPort { + return vs[0].([]GetPodSecurityPolicyTemplateHostPort)[vs[1].(int)] + }).(GetPodSecurityPolicyTemplateHostPortOutput) +} + +type GetPodSecurityPolicyTemplateRunAsGroup struct { + // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + Ranges []GetPodSecurityPolicyTemplateRunAsGroupRange `pulumi:"ranges"` + // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + Rule string `pulumi:"rule"` +} + +// GetPodSecurityPolicyTemplateRunAsGroupInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsGroupArgs and GetPodSecurityPolicyTemplateRunAsGroupOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsGroupInput` via: +// +// GetPodSecurityPolicyTemplateRunAsGroupArgs{...} +type GetPodSecurityPolicyTemplateRunAsGroupInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateRunAsGroupOutput() GetPodSecurityPolicyTemplateRunAsGroupOutput + ToGetPodSecurityPolicyTemplateRunAsGroupOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsGroupOutput +} + +type GetPodSecurityPolicyTemplateRunAsGroupArgs struct { + // ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + Ranges GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput `pulumi:"ranges"` + // rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + Rule pulumi.StringInput `pulumi:"rule"` +} + +func (GetPodSecurityPolicyTemplateRunAsGroupArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroup)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateRunAsGroupArgs) ToGetPodSecurityPolicyTemplateRunAsGroupOutput() GetPodSecurityPolicyTemplateRunAsGroupOutput { + return i.ToGetPodSecurityPolicyTemplateRunAsGroupOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateRunAsGroupArgs) ToGetPodSecurityPolicyTemplateRunAsGroupOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupOutput) +} + +func (i GetPodSecurityPolicyTemplateRunAsGroupArgs) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { + return i.ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateRunAsGroupArgs) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupOutput).ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx) +} + +// GetPodSecurityPolicyTemplateRunAsGroupPtrInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsGroupArgs, GetPodSecurityPolicyTemplateRunAsGroupPtr and GetPodSecurityPolicyTemplateRunAsGroupPtrOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsGroupPtrInput` via: +// +// GetPodSecurityPolicyTemplateRunAsGroupArgs{...} +// +// or: +// +// nil +type GetPodSecurityPolicyTemplateRunAsGroupPtrInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput + ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput +} + +type getPodSecurityPolicyTemplateRunAsGroupPtrType GetPodSecurityPolicyTemplateRunAsGroupArgs + +func GetPodSecurityPolicyTemplateRunAsGroupPtr(v *GetPodSecurityPolicyTemplateRunAsGroupArgs) GetPodSecurityPolicyTemplateRunAsGroupPtrInput { + return (*getPodSecurityPolicyTemplateRunAsGroupPtrType)(v) +} + +func (*getPodSecurityPolicyTemplateRunAsGroupPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetPodSecurityPolicyTemplateRunAsGroup)(nil)).Elem() +} + +func (i *getPodSecurityPolicyTemplateRunAsGroupPtrType) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { + return i.ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(context.Background()) +} + +func (i *getPodSecurityPolicyTemplateRunAsGroupPtrType) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) +} + +type GetPodSecurityPolicyTemplateRunAsGroupOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateRunAsGroupOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroup)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) ToGetPodSecurityPolicyTemplateRunAsGroupOutput() GetPodSecurityPolicyTemplateRunAsGroupOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) ToGetPodSecurityPolicyTemplateRunAsGroupOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { + return o.ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(context.Background()) +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetPodSecurityPolicyTemplateRunAsGroup) *GetPodSecurityPolicyTemplateRunAsGroup { + return &v + }).(GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) +} + +// ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. +func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) Ranges() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsGroup) []GetPodSecurityPolicyTemplateRunAsGroupRange { + return v.Ranges + }).(GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) +} + +// rule is the strategy that will dictate the allowable RunAsGroup values that may be set. +func (o GetPodSecurityPolicyTemplateRunAsGroupOutput) Rule() pulumi.StringOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsGroup) string { return v.Rule }).(pulumi.StringOutput) +} + +type GetPodSecurityPolicyTemplateRunAsGroupPtrOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetPodSecurityPolicyTemplateRunAsGroup)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutput() GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) ToGetPodSecurityPolicyTemplateRunAsGroupPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupPtrOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) Elem() GetPodSecurityPolicyTemplateRunAsGroupOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsGroup) GetPodSecurityPolicyTemplateRunAsGroup { + if v != nil { + return *v + } + var ret GetPodSecurityPolicyTemplateRunAsGroup + return ret + }).(GetPodSecurityPolicyTemplateRunAsGroupOutput) +} + +// ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. +func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) Ranges() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsGroup) []GetPodSecurityPolicyTemplateRunAsGroupRange { + if v == nil { + return nil + } + return v.Ranges + }).(GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) +} + +// rule is the strategy that will dictate the allowable RunAsGroup values that may be set. +func (o GetPodSecurityPolicyTemplateRunAsGroupPtrOutput) Rule() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsGroup) *string { + if v == nil { + return nil + } + return &v.Rule + }).(pulumi.StringPtrOutput) +} + +type GetPodSecurityPolicyTemplateRunAsGroupRange struct { + // max is the end of the range, inclusive. + Max int `pulumi:"max"` + // min is the start of the range, inclusive. + Min int `pulumi:"min"` +} + +// GetPodSecurityPolicyTemplateRunAsGroupRangeInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsGroupRangeArgs and GetPodSecurityPolicyTemplateRunAsGroupRangeOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsGroupRangeInput` via: +// +// GetPodSecurityPolicyTemplateRunAsGroupRangeArgs{...} +type GetPodSecurityPolicyTemplateRunAsGroupRangeInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeOutput + ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeOutput +} + +type GetPodSecurityPolicyTemplateRunAsGroupRangeArgs struct { + // max is the end of the range, inclusive. + Max pulumi.IntInput `pulumi:"max"` + // min is the start of the range, inclusive. + Min pulumi.IntInput `pulumi:"min"` +} + +func (GetPodSecurityPolicyTemplateRunAsGroupRangeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupRange)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateRunAsGroupRangeArgs) ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { + return i.ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateRunAsGroupRangeArgs) ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) +} + +// GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsGroupRangeArray and GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput` via: +// +// GetPodSecurityPolicyTemplateRunAsGroupRangeArray{ GetPodSecurityPolicyTemplateRunAsGroupRangeArgs{...} } +type GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput + ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput +} + +type GetPodSecurityPolicyTemplateRunAsGroupRangeArray []GetPodSecurityPolicyTemplateRunAsGroupRangeInput + +func (GetPodSecurityPolicyTemplateRunAsGroupRangeArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateRunAsGroupRange)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateRunAsGroupRangeArray) ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { + return i.ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateRunAsGroupRangeArray) ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) +} + +type GetPodSecurityPolicyTemplateRunAsGroupRangeOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupRange)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) ToGetPodSecurityPolicyTemplateRunAsGroupRangeOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { + return o +} + +// max is the end of the range, inclusive. +func (o GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) Max() pulumi.IntOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsGroupRange) int { return v.Max }).(pulumi.IntOutput) +} + +// min is the start of the range, inclusive. +func (o GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) Min() pulumi.IntOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsGroupRange) int { return v.Min }).(pulumi.IntOutput) +} + +type GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetPodSecurityPolicyTemplateRunAsGroupRange)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput() GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) ToGetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput) Index(i pulumi.IntInput) GetPodSecurityPolicyTemplateRunAsGroupRangeOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetPodSecurityPolicyTemplateRunAsGroupRange { + return vs[0].([]GetPodSecurityPolicyTemplateRunAsGroupRange)[vs[1].(int)] + }).(GetPodSecurityPolicyTemplateRunAsGroupRangeOutput) +} + +type GetPodSecurityPolicyTemplateRunAsUser struct { + // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + Ranges []GetPodSecurityPolicyTemplateRunAsUserRange `pulumi:"ranges"` + // rule is the strategy that will dictate the allowable RunAsUser values that may be set. + Rule string `pulumi:"rule"` +} + +// GetPodSecurityPolicyTemplateRunAsUserInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsUserArgs and GetPodSecurityPolicyTemplateRunAsUserOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsUserInput` via: +// +// GetPodSecurityPolicyTemplateRunAsUserArgs{...} +type GetPodSecurityPolicyTemplateRunAsUserInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateRunAsUserOutput() GetPodSecurityPolicyTemplateRunAsUserOutput + ToGetPodSecurityPolicyTemplateRunAsUserOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsUserOutput +} + +type GetPodSecurityPolicyTemplateRunAsUserArgs struct { + // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + Ranges GetPodSecurityPolicyTemplateRunAsUserRangeArrayInput `pulumi:"ranges"` + // rule is the strategy that will dictate the allowable RunAsUser values that may be set. + Rule pulumi.StringInput `pulumi:"rule"` +} + +func (GetPodSecurityPolicyTemplateRunAsUserArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUser)(nil)).Elem() +} + +func (i GetPodSecurityPolicyTemplateRunAsUserArgs) ToGetPodSecurityPolicyTemplateRunAsUserOutput() GetPodSecurityPolicyTemplateRunAsUserOutput { + return i.ToGetPodSecurityPolicyTemplateRunAsUserOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateRunAsUserArgs) ToGetPodSecurityPolicyTemplateRunAsUserOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsUserOutput) +} + +func (i GetPodSecurityPolicyTemplateRunAsUserArgs) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput { + return i.ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(context.Background()) +} + +func (i GetPodSecurityPolicyTemplateRunAsUserArgs) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsUserOutput).ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx) +} + +// GetPodSecurityPolicyTemplateRunAsUserPtrInput is an input type that accepts GetPodSecurityPolicyTemplateRunAsUserArgs, GetPodSecurityPolicyTemplateRunAsUserPtr and GetPodSecurityPolicyTemplateRunAsUserPtrOutput values. +// You can construct a concrete instance of `GetPodSecurityPolicyTemplateRunAsUserPtrInput` via: +// +// GetPodSecurityPolicyTemplateRunAsUserArgs{...} +// +// or: +// +// nil +type GetPodSecurityPolicyTemplateRunAsUserPtrInput interface { + pulumi.Input + + ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput + ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput +} + +type getPodSecurityPolicyTemplateRunAsUserPtrType GetPodSecurityPolicyTemplateRunAsUserArgs + +func GetPodSecurityPolicyTemplateRunAsUserPtr(v *GetPodSecurityPolicyTemplateRunAsUserArgs) GetPodSecurityPolicyTemplateRunAsUserPtrInput { + return (*getPodSecurityPolicyTemplateRunAsUserPtrType)(v) +} + +func (*getPodSecurityPolicyTemplateRunAsUserPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**GetPodSecurityPolicyTemplateRunAsUser)(nil)).Elem() +} + +func (i *getPodSecurityPolicyTemplateRunAsUserPtrType) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput { + return i.ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(context.Background()) +} + +func (i *getPodSecurityPolicyTemplateRunAsUserPtrType) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetPodSecurityPolicyTemplateRunAsUserPtrOutput) +} + +type GetPodSecurityPolicyTemplateRunAsUserOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateRunAsUserOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUser)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateRunAsUserOutput) ToGetPodSecurityPolicyTemplateRunAsUserOutput() GetPodSecurityPolicyTemplateRunAsUserOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsUserOutput) ToGetPodSecurityPolicyTemplateRunAsUserOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsUserOutput) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput { + return o.ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(context.Background()) +} + +func (o GetPodSecurityPolicyTemplateRunAsUserOutput) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v GetPodSecurityPolicyTemplateRunAsUser) *GetPodSecurityPolicyTemplateRunAsUser { + return &v + }).(GetPodSecurityPolicyTemplateRunAsUserPtrOutput) +} + +// ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. +func (o GetPodSecurityPolicyTemplateRunAsUserOutput) Ranges() GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsUser) []GetPodSecurityPolicyTemplateRunAsUserRange { + return v.Ranges + }).(GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput) +} + +// rule is the strategy that will dictate the allowable RunAsUser values that may be set. +func (o GetPodSecurityPolicyTemplateRunAsUserOutput) Rule() pulumi.StringOutput { + return o.ApplyT(func(v GetPodSecurityPolicyTemplateRunAsUser) string { return v.Rule }).(pulumi.StringOutput) +} + +type GetPodSecurityPolicyTemplateRunAsUserPtrOutput struct{ *pulumi.OutputState } + +func (GetPodSecurityPolicyTemplateRunAsUserPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**GetPodSecurityPolicyTemplateRunAsUser)(nil)).Elem() +} + +func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutput() GetPodSecurityPolicyTemplateRunAsUserPtrOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) ToGetPodSecurityPolicyTemplateRunAsUserPtrOutputWithContext(ctx context.Context) GetPodSecurityPolicyTemplateRunAsUserPtrOutput { + return o +} + +func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) Elem() GetPodSecurityPolicyTemplateRunAsUserOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsUser) GetPodSecurityPolicyTemplateRunAsUser { + if v != nil { + return *v + } + var ret GetPodSecurityPolicyTemplateRunAsUser + return ret + }).(GetPodSecurityPolicyTemplateRunAsUserOutput) +} + +// ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. +func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) Ranges() GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsUser) []GetPodSecurityPolicyTemplateRunAsUserRange { + if v == nil { + return nil + } + return v.Ranges + }).(GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput) +} + +// rule is the strategy that will dictate the allowable RunAsUser values that may be set. +func (o GetPodSecurityPolicyTemplateRunAsUserPtrOutput) Rule() pulumi.StringPtrOutput { + return o.ApplyT(func(v *GetPodSecurityPolicyTemplateRunAsUser) *string { + if v == nil { + return nil + } + return &v.Rule + }).(pulumi.StringPtrOutput) +} + type GetPodSecurityPolicyTemplateRunAsUserRange struct { // max is the end of the range, inclusive. Max int `pulumi:"max"` @@ -1724,139 +2913,6 @@ func (o GetRegistryRegistryArrayOutput) Index(i pulumi.IntInput) GetRegistryRegi }).(GetRegistryRegistryOutput) } -type GetRoleTempalteRule struct { - // Policy rule api groups - ApiGroups []string `pulumi:"apiGroups"` - // Policy rule non resource urls - NonResourceUrls []string `pulumi:"nonResourceUrls"` - // Policy rule resource names - ResourceNames []string `pulumi:"resourceNames"` - // Policy rule resources - Resources []string `pulumi:"resources"` - // Policy rule verbs - Verbs []string `pulumi:"verbs"` -} - -// GetRoleTempalteRuleInput is an input type that accepts GetRoleTempalteRuleArgs and GetRoleTempalteRuleOutput values. -// You can construct a concrete instance of `GetRoleTempalteRuleInput` via: -// -// GetRoleTempalteRuleArgs{...} -type GetRoleTempalteRuleInput interface { - pulumi.Input - - ToGetRoleTempalteRuleOutput() GetRoleTempalteRuleOutput - ToGetRoleTempalteRuleOutputWithContext(context.Context) GetRoleTempalteRuleOutput -} - -type GetRoleTempalteRuleArgs struct { - // Policy rule api groups - ApiGroups pulumi.StringArrayInput `pulumi:"apiGroups"` - // Policy rule non resource urls - NonResourceUrls pulumi.StringArrayInput `pulumi:"nonResourceUrls"` - // Policy rule resource names - ResourceNames pulumi.StringArrayInput `pulumi:"resourceNames"` - // Policy rule resources - Resources pulumi.StringArrayInput `pulumi:"resources"` - // Policy rule verbs - Verbs pulumi.StringArrayInput `pulumi:"verbs"` -} - -func (GetRoleTempalteRuleArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetRoleTempalteRule)(nil)).Elem() -} - -func (i GetRoleTempalteRuleArgs) ToGetRoleTempalteRuleOutput() GetRoleTempalteRuleOutput { - return i.ToGetRoleTempalteRuleOutputWithContext(context.Background()) -} - -func (i GetRoleTempalteRuleArgs) ToGetRoleTempalteRuleOutputWithContext(ctx context.Context) GetRoleTempalteRuleOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetRoleTempalteRuleOutput) -} - -// GetRoleTempalteRuleArrayInput is an input type that accepts GetRoleTempalteRuleArray and GetRoleTempalteRuleArrayOutput values. -// You can construct a concrete instance of `GetRoleTempalteRuleArrayInput` via: -// -// GetRoleTempalteRuleArray{ GetRoleTempalteRuleArgs{...} } -type GetRoleTempalteRuleArrayInput interface { - pulumi.Input - - ToGetRoleTempalteRuleArrayOutput() GetRoleTempalteRuleArrayOutput - ToGetRoleTempalteRuleArrayOutputWithContext(context.Context) GetRoleTempalteRuleArrayOutput -} - -type GetRoleTempalteRuleArray []GetRoleTempalteRuleInput - -func (GetRoleTempalteRuleArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetRoleTempalteRule)(nil)).Elem() -} - -func (i GetRoleTempalteRuleArray) ToGetRoleTempalteRuleArrayOutput() GetRoleTempalteRuleArrayOutput { - return i.ToGetRoleTempalteRuleArrayOutputWithContext(context.Background()) -} - -func (i GetRoleTempalteRuleArray) ToGetRoleTempalteRuleArrayOutputWithContext(ctx context.Context) GetRoleTempalteRuleArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetRoleTempalteRuleArrayOutput) -} - -type GetRoleTempalteRuleOutput struct{ *pulumi.OutputState } - -func (GetRoleTempalteRuleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetRoleTempalteRule)(nil)).Elem() -} - -func (o GetRoleTempalteRuleOutput) ToGetRoleTempalteRuleOutput() GetRoleTempalteRuleOutput { - return o -} - -func (o GetRoleTempalteRuleOutput) ToGetRoleTempalteRuleOutputWithContext(ctx context.Context) GetRoleTempalteRuleOutput { - return o -} - -// Policy rule api groups -func (o GetRoleTempalteRuleOutput) ApiGroups() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetRoleTempalteRule) []string { return v.ApiGroups }).(pulumi.StringArrayOutput) -} - -// Policy rule non resource urls -func (o GetRoleTempalteRuleOutput) NonResourceUrls() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetRoleTempalteRule) []string { return v.NonResourceUrls }).(pulumi.StringArrayOutput) -} - -// Policy rule resource names -func (o GetRoleTempalteRuleOutput) ResourceNames() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetRoleTempalteRule) []string { return v.ResourceNames }).(pulumi.StringArrayOutput) -} - -// Policy rule resources -func (o GetRoleTempalteRuleOutput) Resources() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetRoleTempalteRule) []string { return v.Resources }).(pulumi.StringArrayOutput) -} - -// Policy rule verbs -func (o GetRoleTempalteRuleOutput) Verbs() pulumi.StringArrayOutput { - return o.ApplyT(func(v GetRoleTempalteRule) []string { return v.Verbs }).(pulumi.StringArrayOutput) -} - -type GetRoleTempalteRuleArrayOutput struct{ *pulumi.OutputState } - -func (GetRoleTempalteRuleArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetRoleTempalteRule)(nil)).Elem() -} - -func (o GetRoleTempalteRuleArrayOutput) ToGetRoleTempalteRuleArrayOutput() GetRoleTempalteRuleArrayOutput { - return o -} - -func (o GetRoleTempalteRuleArrayOutput) ToGetRoleTempalteRuleArrayOutputWithContext(ctx context.Context) GetRoleTempalteRuleArrayOutput { - return o -} - -func (o GetRoleTempalteRuleArrayOutput) Index(i pulumi.IntInput) GetRoleTempalteRuleOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetRoleTempalteRule { - return vs[0].([]GetRoleTempalteRule)[vs[1].(int)] - }).(GetRoleTempalteRuleOutput) -} - type GetRoleTemplateRule struct { // Policy rule api groups ApiGroups []string `pulumi:"apiGroups"` @@ -1991,6 +3047,25 @@ func (o GetRoleTemplateRuleArrayOutput) Index(i pulumi.IntInput) GetRoleTemplate } func init() { + pulumi.RegisterInputType(reflect.TypeOf((*GetNotifierWechatConfigInput)(nil)).Elem(), GetNotifierWechatConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedCsiDriverInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedCsiDriverArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedCsiDriverArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedCsiDriverArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedFlexVolumeInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedFlexVolumeArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedHostPathInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedHostPathArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateAllowedHostPathArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateAllowedHostPathArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupInput)(nil)).Elem(), GetPodSecurityPolicyTemplateFsGroupArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupPtrInput)(nil)).Elem(), GetPodSecurityPolicyTemplateFsGroupArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupRangeInput)(nil)).Elem(), GetPodSecurityPolicyTemplateFsGroupRangeArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateFsGroupRangeArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateFsGroupRangeArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateHostPortInput)(nil)).Elem(), GetPodSecurityPolicyTemplateHostPortArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateHostPortArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateHostPortArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsGroupArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupPtrInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsGroupArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupRangeInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsGroupRangeArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsGroupRangeArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsGroupRangeArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUserInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsUserArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUserPtrInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsUserArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUserRangeInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsUserRangeArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRunAsUserRangeArrayInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRunAsUserRangeArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetPodSecurityPolicyTemplateRuntimeClassInput)(nil)).Elem(), GetPodSecurityPolicyTemplateRuntimeClassArgs{}) @@ -2014,10 +3089,27 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GetProjectResourceQuotaProjectLimitInput)(nil)).Elem(), GetProjectResourceQuotaProjectLimitArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetRegistryRegistryInput)(nil)).Elem(), GetRegistryRegistryArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetRegistryRegistryArrayInput)(nil)).Elem(), GetRegistryRegistryArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetRoleTempalteRuleInput)(nil)).Elem(), GetRoleTempalteRuleArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetRoleTempalteRuleArrayInput)(nil)).Elem(), GetRoleTempalteRuleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetRoleTemplateRuleInput)(nil)).Elem(), GetRoleTemplateRuleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetRoleTemplateRuleArrayInput)(nil)).Elem(), GetRoleTemplateRuleArray{}) + pulumi.RegisterOutputType(GetNotifierWechatConfigOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedCsiDriverOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedCsiDriverArrayOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedFlexVolumeOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedFlexVolumeArrayOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedHostPathOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateAllowedHostPathArrayOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateFsGroupOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateFsGroupPtrOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateFsGroupRangeOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateFsGroupRangeArrayOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateHostPortOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateHostPortArrayOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsGroupOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsGroupPtrOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsGroupRangeOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsGroupRangeArrayOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsUserOutput{}) + pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsUserPtrOutput{}) pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsUserRangeOutput{}) pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRunAsUserRangeArrayOutput{}) pulumi.RegisterOutputType(GetPodSecurityPolicyTemplateRuntimeClassOutput{}) @@ -2041,8 +3133,6 @@ func init() { pulumi.RegisterOutputType(GetProjectResourceQuotaProjectLimitOutput{}) pulumi.RegisterOutputType(GetRegistryRegistryOutput{}) pulumi.RegisterOutputType(GetRegistryRegistryArrayOutput{}) - pulumi.RegisterOutputType(GetRoleTempalteRuleOutput{}) - pulumi.RegisterOutputType(GetRoleTempalteRuleArrayOutput{}) pulumi.RegisterOutputType(GetRoleTemplateRuleOutput{}) pulumi.RegisterOutputType(GetRoleTemplateRuleArrayOutput{}) } diff --git a/sdk/go/rancher2/registry.go b/sdk/go/rancher2/registry.go index c30cf8979..f74adfa2d 100644 --- a/sdk/go/rancher2/registry.go +++ b/sdk/go/rancher2/registry.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -25,7 +25,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -57,7 +57,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/roleTempalte.go b/sdk/go/rancher2/roleTempalte.go deleted file mode 100644 index e2d4ab2fb..000000000 --- a/sdk/go/rancher2/roleTempalte.go +++ /dev/null @@ -1,485 +0,0 @@ -// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. -// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** - -package rancher2 - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -// Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. -// -// `cluster` and `project` scopes are supported for role templates. -// -// ## Example Usage -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := rancher2.NewRoleTemplate(ctx, "foo", &rancher2.RoleTemplateArgs{ -// Context: pulumi.String("cluster"), -// DefaultRole: pulumi.Bool(true), -// Description: pulumi.String("Terraform role template acceptance test"), -// Rules: rancher2.RoleTemplateRuleArray{ -// &rancher2.RoleTemplateRuleArgs{ -// ApiGroups: pulumi.StringArray{ -// pulumi.String("*"), -// }, -// Resources: pulumi.StringArray{ -// pulumi.String("secrets"), -// }, -// Verbs: pulumi.StringArray{ -// pulumi.String("create"), -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := rancher2.NewRoleTemplate(ctx, "foo", &rancher2.RoleTemplateArgs{ -// Context: pulumi.String("project"), -// DefaultRole: pulumi.Bool(true), -// Description: pulumi.String("Terraform role template acceptance test"), -// Rules: rancher2.RoleTemplateRuleArray{ -// &rancher2.RoleTemplateRuleArgs{ -// ApiGroups: pulumi.StringArray{ -// pulumi.String("*"), -// }, -// Resources: pulumi.StringArray{ -// pulumi.String("secrets"), -// }, -// Verbs: pulumi.StringArray{ -// pulumi.String("create"), -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// -// ## Import -// -// # Role Template can be imported using the Rancher Role Template ID -// -// ```sh -// -// $ pulumi import rancher2:index/roleTempalte:RoleTempalte foo <role_template_id> -// -// ``` -// -// Deprecated: rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate -type RoleTempalte struct { - pulumi.CustomResourceState - - // Administrative role template. Default `false` (bool) - Administrative pulumi.BoolPtrOutput `pulumi:"administrative"` - // Annotations for role template object (map) - Annotations pulumi.MapOutput `pulumi:"annotations"` - // (Computed) Builtin role template (string) - Builtin pulumi.BoolOutput `pulumi:"builtin"` - // Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - Context pulumi.StringPtrOutput `pulumi:"context"` - // Default role template for new created cluster or project. Default `false` (bool) - DefaultRole pulumi.BoolPtrOutput `pulumi:"defaultRole"` - // Role template description (string) - Description pulumi.StringOutput `pulumi:"description"` - // External role template. Default `false` (bool) - External pulumi.BoolPtrOutput `pulumi:"external"` - // Hidden role template. Default `false` (bool) - Hidden pulumi.BoolPtrOutput `pulumi:"hidden"` - // Labels for role template object (map) - Labels pulumi.MapOutput `pulumi:"labels"` - // Locked role template. Default `false` (bool) - Locked pulumi.BoolPtrOutput `pulumi:"locked"` - // Role template name (string) - Name pulumi.StringOutput `pulumi:"name"` - // Inherit role template IDs (list) - RoleTemplateIds pulumi.StringArrayOutput `pulumi:"roleTemplateIds"` - // Role template policy rules (list) - Rules RoleTempalteRuleArrayOutput `pulumi:"rules"` -} - -// NewRoleTempalte registers a new resource with the given unique name, arguments, and options. -func NewRoleTempalte(ctx *pulumi.Context, - name string, args *RoleTempalteArgs, opts ...pulumi.ResourceOption) (*RoleTempalte, error) { - if args == nil { - args = &RoleTempalteArgs{} - } - - opts = internal.PkgResourceDefaultOpts(opts) - var resource RoleTempalte - err := ctx.RegisterResource("rancher2:index/roleTempalte:RoleTempalte", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetRoleTempalte gets an existing RoleTempalte resource's state with the given name, ID, and optional -// state properties that are used to uniquely qualify the lookup (nil if not required). -func GetRoleTempalte(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *RoleTempalteState, opts ...pulumi.ResourceOption) (*RoleTempalte, error) { - var resource RoleTempalte - err := ctx.ReadResource("rancher2:index/roleTempalte:RoleTempalte", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering RoleTempalte resources. -type roleTempalteState struct { - // Administrative role template. Default `false` (bool) - Administrative *bool `pulumi:"administrative"` - // Annotations for role template object (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // (Computed) Builtin role template (string) - Builtin *bool `pulumi:"builtin"` - // Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - Context *string `pulumi:"context"` - // Default role template for new created cluster or project. Default `false` (bool) - DefaultRole *bool `pulumi:"defaultRole"` - // Role template description (string) - Description *string `pulumi:"description"` - // External role template. Default `false` (bool) - External *bool `pulumi:"external"` - // Hidden role template. Default `false` (bool) - Hidden *bool `pulumi:"hidden"` - // Labels for role template object (map) - Labels map[string]interface{} `pulumi:"labels"` - // Locked role template. Default `false` (bool) - Locked *bool `pulumi:"locked"` - // Role template name (string) - Name *string `pulumi:"name"` - // Inherit role template IDs (list) - RoleTemplateIds []string `pulumi:"roleTemplateIds"` - // Role template policy rules (list) - Rules []RoleTempalteRule `pulumi:"rules"` -} - -type RoleTempalteState struct { - // Administrative role template. Default `false` (bool) - Administrative pulumi.BoolPtrInput - // Annotations for role template object (map) - Annotations pulumi.MapInput - // (Computed) Builtin role template (string) - Builtin pulumi.BoolPtrInput - // Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - Context pulumi.StringPtrInput - // Default role template for new created cluster or project. Default `false` (bool) - DefaultRole pulumi.BoolPtrInput - // Role template description (string) - Description pulumi.StringPtrInput - // External role template. Default `false` (bool) - External pulumi.BoolPtrInput - // Hidden role template. Default `false` (bool) - Hidden pulumi.BoolPtrInput - // Labels for role template object (map) - Labels pulumi.MapInput - // Locked role template. Default `false` (bool) - Locked pulumi.BoolPtrInput - // Role template name (string) - Name pulumi.StringPtrInput - // Inherit role template IDs (list) - RoleTemplateIds pulumi.StringArrayInput - // Role template policy rules (list) - Rules RoleTempalteRuleArrayInput -} - -func (RoleTempalteState) ElementType() reflect.Type { - return reflect.TypeOf((*roleTempalteState)(nil)).Elem() -} - -type roleTempalteArgs struct { - // Administrative role template. Default `false` (bool) - Administrative *bool `pulumi:"administrative"` - // Annotations for role template object (map) - Annotations map[string]interface{} `pulumi:"annotations"` - // Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - Context *string `pulumi:"context"` - // Default role template for new created cluster or project. Default `false` (bool) - DefaultRole *bool `pulumi:"defaultRole"` - // Role template description (string) - Description *string `pulumi:"description"` - // External role template. Default `false` (bool) - External *bool `pulumi:"external"` - // Hidden role template. Default `false` (bool) - Hidden *bool `pulumi:"hidden"` - // Labels for role template object (map) - Labels map[string]interface{} `pulumi:"labels"` - // Locked role template. Default `false` (bool) - Locked *bool `pulumi:"locked"` - // Role template name (string) - Name *string `pulumi:"name"` - // Inherit role template IDs (list) - RoleTemplateIds []string `pulumi:"roleTemplateIds"` - // Role template policy rules (list) - Rules []RoleTempalteRule `pulumi:"rules"` -} - -// The set of arguments for constructing a RoleTempalte resource. -type RoleTempalteArgs struct { - // Administrative role template. Default `false` (bool) - Administrative pulumi.BoolPtrInput - // Annotations for role template object (map) - Annotations pulumi.MapInput - // Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - Context pulumi.StringPtrInput - // Default role template for new created cluster or project. Default `false` (bool) - DefaultRole pulumi.BoolPtrInput - // Role template description (string) - Description pulumi.StringPtrInput - // External role template. Default `false` (bool) - External pulumi.BoolPtrInput - // Hidden role template. Default `false` (bool) - Hidden pulumi.BoolPtrInput - // Labels for role template object (map) - Labels pulumi.MapInput - // Locked role template. Default `false` (bool) - Locked pulumi.BoolPtrInput - // Role template name (string) - Name pulumi.StringPtrInput - // Inherit role template IDs (list) - RoleTemplateIds pulumi.StringArrayInput - // Role template policy rules (list) - Rules RoleTempalteRuleArrayInput -} - -func (RoleTempalteArgs) ElementType() reflect.Type { - return reflect.TypeOf((*roleTempalteArgs)(nil)).Elem() -} - -type RoleTempalteInput interface { - pulumi.Input - - ToRoleTempalteOutput() RoleTempalteOutput - ToRoleTempalteOutputWithContext(ctx context.Context) RoleTempalteOutput -} - -func (*RoleTempalte) ElementType() reflect.Type { - return reflect.TypeOf((**RoleTempalte)(nil)).Elem() -} - -func (i *RoleTempalte) ToRoleTempalteOutput() RoleTempalteOutput { - return i.ToRoleTempalteOutputWithContext(context.Background()) -} - -func (i *RoleTempalte) ToRoleTempalteOutputWithContext(ctx context.Context) RoleTempalteOutput { - return pulumi.ToOutputWithContext(ctx, i).(RoleTempalteOutput) -} - -// RoleTempalteArrayInput is an input type that accepts RoleTempalteArray and RoleTempalteArrayOutput values. -// You can construct a concrete instance of `RoleTempalteArrayInput` via: -// -// RoleTempalteArray{ RoleTempalteArgs{...} } -type RoleTempalteArrayInput interface { - pulumi.Input - - ToRoleTempalteArrayOutput() RoleTempalteArrayOutput - ToRoleTempalteArrayOutputWithContext(context.Context) RoleTempalteArrayOutput -} - -type RoleTempalteArray []RoleTempalteInput - -func (RoleTempalteArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*RoleTempalte)(nil)).Elem() -} - -func (i RoleTempalteArray) ToRoleTempalteArrayOutput() RoleTempalteArrayOutput { - return i.ToRoleTempalteArrayOutputWithContext(context.Background()) -} - -func (i RoleTempalteArray) ToRoleTempalteArrayOutputWithContext(ctx context.Context) RoleTempalteArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RoleTempalteArrayOutput) -} - -// RoleTempalteMapInput is an input type that accepts RoleTempalteMap and RoleTempalteMapOutput values. -// You can construct a concrete instance of `RoleTempalteMapInput` via: -// -// RoleTempalteMap{ "key": RoleTempalteArgs{...} } -type RoleTempalteMapInput interface { - pulumi.Input - - ToRoleTempalteMapOutput() RoleTempalteMapOutput - ToRoleTempalteMapOutputWithContext(context.Context) RoleTempalteMapOutput -} - -type RoleTempalteMap map[string]RoleTempalteInput - -func (RoleTempalteMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*RoleTempalte)(nil)).Elem() -} - -func (i RoleTempalteMap) ToRoleTempalteMapOutput() RoleTempalteMapOutput { - return i.ToRoleTempalteMapOutputWithContext(context.Background()) -} - -func (i RoleTempalteMap) ToRoleTempalteMapOutputWithContext(ctx context.Context) RoleTempalteMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(RoleTempalteMapOutput) -} - -type RoleTempalteOutput struct{ *pulumi.OutputState } - -func (RoleTempalteOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RoleTempalte)(nil)).Elem() -} - -func (o RoleTempalteOutput) ToRoleTempalteOutput() RoleTempalteOutput { - return o -} - -func (o RoleTempalteOutput) ToRoleTempalteOutputWithContext(ctx context.Context) RoleTempalteOutput { - return o -} - -// Administrative role template. Default `false` (bool) -func (o RoleTempalteOutput) Administrative() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.BoolPtrOutput { return v.Administrative }).(pulumi.BoolPtrOutput) -} - -// Annotations for role template object (map) -func (o RoleTempalteOutput) Annotations() pulumi.MapOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.MapOutput { return v.Annotations }).(pulumi.MapOutput) -} - -// (Computed) Builtin role template (string) -func (o RoleTempalteOutput) Builtin() pulumi.BoolOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.BoolOutput { return v.Builtin }).(pulumi.BoolOutput) -} - -// Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) -func (o RoleTempalteOutput) Context() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.StringPtrOutput { return v.Context }).(pulumi.StringPtrOutput) -} - -// Default role template for new created cluster or project. Default `false` (bool) -func (o RoleTempalteOutput) DefaultRole() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.BoolPtrOutput { return v.DefaultRole }).(pulumi.BoolPtrOutput) -} - -// Role template description (string) -func (o RoleTempalteOutput) Description() pulumi.StringOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) -} - -// External role template. Default `false` (bool) -func (o RoleTempalteOutput) External() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.BoolPtrOutput { return v.External }).(pulumi.BoolPtrOutput) -} - -// Hidden role template. Default `false` (bool) -func (o RoleTempalteOutput) Hidden() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.BoolPtrOutput { return v.Hidden }).(pulumi.BoolPtrOutput) -} - -// Labels for role template object (map) -func (o RoleTempalteOutput) Labels() pulumi.MapOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.MapOutput { return v.Labels }).(pulumi.MapOutput) -} - -// Locked role template. Default `false` (bool) -func (o RoleTempalteOutput) Locked() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.BoolPtrOutput { return v.Locked }).(pulumi.BoolPtrOutput) -} - -// Role template name (string) -func (o RoleTempalteOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// Inherit role template IDs (list) -func (o RoleTempalteOutput) RoleTemplateIds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RoleTempalte) pulumi.StringArrayOutput { return v.RoleTemplateIds }).(pulumi.StringArrayOutput) -} - -// Role template policy rules (list) -func (o RoleTempalteOutput) Rules() RoleTempalteRuleArrayOutput { - return o.ApplyT(func(v *RoleTempalte) RoleTempalteRuleArrayOutput { return v.Rules }).(RoleTempalteRuleArrayOutput) -} - -type RoleTempalteArrayOutput struct{ *pulumi.OutputState } - -func (RoleTempalteArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*RoleTempalte)(nil)).Elem() -} - -func (o RoleTempalteArrayOutput) ToRoleTempalteArrayOutput() RoleTempalteArrayOutput { - return o -} - -func (o RoleTempalteArrayOutput) ToRoleTempalteArrayOutputWithContext(ctx context.Context) RoleTempalteArrayOutput { - return o -} - -func (o RoleTempalteArrayOutput) Index(i pulumi.IntInput) RoleTempalteOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RoleTempalte { - return vs[0].([]*RoleTempalte)[vs[1].(int)] - }).(RoleTempalteOutput) -} - -type RoleTempalteMapOutput struct{ *pulumi.OutputState } - -func (RoleTempalteMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*RoleTempalte)(nil)).Elem() -} - -func (o RoleTempalteMapOutput) ToRoleTempalteMapOutput() RoleTempalteMapOutput { - return o -} - -func (o RoleTempalteMapOutput) ToRoleTempalteMapOutputWithContext(ctx context.Context) RoleTempalteMapOutput { - return o -} - -func (o RoleTempalteMapOutput) MapIndex(k pulumi.StringInput) RoleTempalteOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RoleTempalte { - return vs[0].(map[string]*RoleTempalte)[vs[1].(string)] - }).(RoleTempalteOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*RoleTempalteInput)(nil)).Elem(), &RoleTempalte{}) - pulumi.RegisterInputType(reflect.TypeOf((*RoleTempalteArrayInput)(nil)).Elem(), RoleTempalteArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*RoleTempalteMapInput)(nil)).Elem(), RoleTempalteMap{}) - pulumi.RegisterOutputType(RoleTempalteOutput{}) - pulumi.RegisterOutputType(RoleTempalteArrayOutput{}) - pulumi.RegisterOutputType(RoleTempalteMapOutput{}) -} diff --git a/sdk/go/rancher2/roleTemplate.go b/sdk/go/rancher2/roleTemplate.go index 28291b2d2..ff66be4ad 100644 --- a/sdk/go/rancher2/roleTemplate.go +++ b/sdk/go/rancher2/roleTemplate.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -22,7 +22,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -61,7 +61,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) @@ -142,12 +142,6 @@ func NewRoleTemplate(ctx *pulumi.Context, args = &RoleTemplateArgs{} } - aliases := pulumi.Aliases([]pulumi.Alias{ - { - Type: pulumi.String("rancher2:index/roleTempalte:RoleTempalte"), - }, - }) - opts = append(opts, aliases) opts = internal.PkgResourceDefaultOpts(opts) var resource RoleTemplate err := ctx.RegisterResource("rancher2:index/roleTemplate:RoleTemplate", name, args, &resource, opts...) diff --git a/sdk/go/rancher2/secret.go b/sdk/go/rancher2/secret.go index fc994a8f7..d860d831b 100644 --- a/sdk/go/rancher2/secret.go +++ b/sdk/go/rancher2/secret.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/secretV2.go b/sdk/go/rancher2/secretV2.go index ac43e9960..b402d305c 100644 --- a/sdk/go/rancher2/secretV2.go +++ b/sdk/go/rancher2/secretV2.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/setting.go b/sdk/go/rancher2/setting.go index 9af8199d1..2e1ef0c7d 100644 --- a/sdk/go/rancher2/setting.go +++ b/sdk/go/rancher2/setting.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -25,7 +25,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/storageClassV2.go b/sdk/go/rancher2/storageClassV2.go index 51d5814bf..0f43b3e9e 100644 --- a/sdk/go/rancher2/storageClassV2.go +++ b/sdk/go/rancher2/storageClassV2.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) diff --git a/sdk/go/rancher2/token.go b/sdk/go/rancher2/token.go index a1dbe0b7a..f690343b9 100644 --- a/sdk/go/rancher2/token.go +++ b/sdk/go/rancher2/token.go @@ -7,7 +7,7 @@ import ( "context" "reflect" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -26,7 +26,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/go/rancher2/user.go b/sdk/go/rancher2/user.go index 2db3b581f..6a3141ff6 100644 --- a/sdk/go/rancher2/user.go +++ b/sdk/go/rancher2/user.go @@ -8,7 +8,7 @@ import ( "reflect" "errors" - "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2/internal" + "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2/internal" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) @@ -23,7 +23,7 @@ import ( // // import ( // -// "github.com/pulumi/pulumi-rancher2/sdk/v5/go/rancher2" +// "github.com/pulumi/pulumi-rancher2/sdk/v6/go/rancher2" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // // ) diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectory.java b/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectory.java deleted file mode 100644 index e035b8457..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectory.java +++ /dev/null @@ -1,579 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Export; -import com.pulumi.core.annotations.ResourceType; -import com.pulumi.core.internal.Codegen; -import com.pulumi.rancher2.ActiveDirectoryArgs; -import com.pulumi.rancher2.Utilities; -import com.pulumi.rancher2.inputs.ActiveDirectoryState; -import java.lang.Boolean; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import javax.annotation.Nullable; - -/** - * Provides a Rancher v2 Auth Config ActiveDirectory resource. This can be used to configure and enable Auth Config ActiveDirectory for Rancher v2 RKE clusters and retrieve their information. - * - * In addition to the built-in local auth, only one external auth config provider can be enabled at a time. - * - * @deprecated - * rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory - * - */ -@Deprecated /* rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory */ -@ResourceType(type="rancher2:index/activeDirectory:ActiveDirectory") -public class ActiveDirectory extends com.pulumi.resources.CustomResource { - /** - * Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - */ - @Export(name="accessMode", refs={String.class}, tree="[0]") - private Output accessMode; - - /** - * @return Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - */ - public Output> accessMode() { - return Codegen.optional(this.accessMode); - } - /** - * Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - */ - @Export(name="allowedPrincipalIds", refs={List.class,String.class}, tree="[0,1]") - private Output> allowedPrincipalIds; - - /** - * @return Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - */ - public Output>> allowedPrincipalIds() { - return Codegen.optional(this.allowedPrincipalIds); - } - /** - * Annotations of the resource (map) - * - */ - @Export(name="annotations", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") - private Output> annotations; - - /** - * @return Annotations of the resource (map) - * - */ - public Output> annotations() { - return this.annotations; - } - /** - * CA certificate for TLS if selfsigned (string) - * - */ - @Export(name="certificate", refs={String.class}, tree="[0]") - private Output certificate; - - /** - * @return CA certificate for TLS if selfsigned (string) - * - */ - public Output> certificate() { - return Codegen.optional(this.certificate); - } - /** - * ActiveDirectory connection timeout. Default `5000` (int) - * - */ - @Export(name="connectionTimeout", refs={Integer.class}, tree="[0]") - private Output connectionTimeout; - - /** - * @return ActiveDirectory connection timeout. Default `5000` (int) - * - */ - public Output> connectionTimeout() { - return Codegen.optional(this.connectionTimeout); - } - /** - * ActiveDirectory defult login domain (string) - * - */ - @Export(name="defaultLoginDomain", refs={String.class}, tree="[0]") - private Output defaultLoginDomain; - - /** - * @return ActiveDirectory defult login domain (string) - * - */ - public Output> defaultLoginDomain() { - return Codegen.optional(this.defaultLoginDomain); - } - /** - * Enable auth config provider. Default `true` (bool) - * - */ - @Export(name="enabled", refs={Boolean.class}, tree="[0]") - private Output enabled; - - /** - * @return Enable auth config provider. Default `true` (bool) - * - */ - public Output> enabled() { - return Codegen.optional(this.enabled); - } - /** - * Group DN attribute. Default `distinguishedName` (string) - * - */ - @Export(name="groupDnAttribute", refs={String.class}, tree="[0]") - private Output groupDnAttribute; - - /** - * @return Group DN attribute. Default `distinguishedName` (string) - * - */ - public Output groupDnAttribute() { - return this.groupDnAttribute; - } - /** - * Group member mapping attribute. Default `member` (string) - * - */ - @Export(name="groupMemberMappingAttribute", refs={String.class}, tree="[0]") - private Output groupMemberMappingAttribute; - - /** - * @return Group member mapping attribute. Default `member` (string) - * - */ - public Output groupMemberMappingAttribute() { - return this.groupMemberMappingAttribute; - } - /** - * Group member user attribute. Default `distinguishedName` (string) - * - */ - @Export(name="groupMemberUserAttribute", refs={String.class}, tree="[0]") - private Output groupMemberUserAttribute; - - /** - * @return Group member user attribute. Default `distinguishedName` (string) - * - */ - public Output groupMemberUserAttribute() { - return this.groupMemberUserAttribute; - } - /** - * Group name attribute. Default `name` (string) - * - */ - @Export(name="groupNameAttribute", refs={String.class}, tree="[0]") - private Output groupNameAttribute; - - /** - * @return Group name attribute. Default `name` (string) - * - */ - public Output groupNameAttribute() { - return this.groupNameAttribute; - } - /** - * Group object class. Default `group` (string) - * - */ - @Export(name="groupObjectClass", refs={String.class}, tree="[0]") - private Output groupObjectClass; - - /** - * @return Group object class. Default `group` (string) - * - */ - public Output groupObjectClass() { - return this.groupObjectClass; - } - /** - * Group search attribute. Default `sAMAccountName` (string) - * - */ - @Export(name="groupSearchAttribute", refs={String.class}, tree="[0]") - private Output groupSearchAttribute; - - /** - * @return Group search attribute. Default `sAMAccountName` (string) - * - */ - public Output groupSearchAttribute() { - return this.groupSearchAttribute; - } - /** - * Group search base (string) - * - */ - @Export(name="groupSearchBase", refs={String.class}, tree="[0]") - private Output groupSearchBase; - - /** - * @return Group search base (string) - * - */ - public Output groupSearchBase() { - return this.groupSearchBase; - } - /** - * Group search filter (string) - * - */ - @Export(name="groupSearchFilter", refs={String.class}, tree="[0]") - private Output groupSearchFilter; - - /** - * @return Group search filter (string) - * - */ - public Output groupSearchFilter() { - return this.groupSearchFilter; - } - /** - * Labels of the resource (map) - * - */ - @Export(name="labels", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") - private Output> labels; - - /** - * @return Labels of the resource (map) - * - */ - public Output> labels() { - return this.labels; - } - /** - * (Computed) The name of the resource (string) - * - */ - @Export(name="name", refs={String.class}, tree="[0]") - private Output name; - - /** - * @return (Computed) The name of the resource (string) - * - */ - public Output name() { - return this.name; - } - /** - * Nested group membership enable. Default `false` (bool) - * - */ - @Export(name="nestedGroupMembershipEnabled", refs={Boolean.class}, tree="[0]") - private Output nestedGroupMembershipEnabled; - - /** - * @return Nested group membership enable. Default `false` (bool) - * - */ - public Output nestedGroupMembershipEnabled() { - return this.nestedGroupMembershipEnabled; - } - /** - * ActiveDirectory port. Default `389` (int) - * - */ - @Export(name="port", refs={Integer.class}, tree="[0]") - private Output port; - - /** - * @return ActiveDirectory port. Default `389` (int) - * - */ - public Output> port() { - return Codegen.optional(this.port); - } - /** - * ActiveDirectory servers list (list) - * - */ - @Export(name="servers", refs={List.class,String.class}, tree="[0,1]") - private Output> servers; - - /** - * @return ActiveDirectory servers list (list) - * - */ - public Output> servers() { - return this.servers; - } - /** - * Service account password for access ActiveDirectory service (string) - * - */ - @Export(name="serviceAccountPassword", refs={String.class}, tree="[0]") - private Output serviceAccountPassword; - - /** - * @return Service account password for access ActiveDirectory service (string) - * - */ - public Output serviceAccountPassword() { - return this.serviceAccountPassword; - } - /** - * Service account DN for access ActiveDirectory service (string) - * - */ - @Export(name="serviceAccountUsername", refs={String.class}, tree="[0]") - private Output serviceAccountUsername; - - /** - * @return Service account DN for access ActiveDirectory service (string) - * - */ - public Output serviceAccountUsername() { - return this.serviceAccountUsername; - } - /** - * Enable start TLS connection (bool) - * - */ - @Export(name="startTls", refs={Boolean.class}, tree="[0]") - private Output startTls; - - /** - * @return Enable start TLS connection (bool) - * - */ - public Output startTls() { - return this.startTls; - } - /** - * Password for test access to ActiveDirectory service (string) - * - */ - @Export(name="testPassword", refs={String.class}, tree="[0]") - private Output testPassword; - - /** - * @return Password for test access to ActiveDirectory service (string) - * - */ - public Output testPassword() { - return this.testPassword; - } - /** - * Username for test access to ActiveDirectory service (string) - * - */ - @Export(name="testUsername", refs={String.class}, tree="[0]") - private Output testUsername; - - /** - * @return Username for test access to ActiveDirectory service (string) - * - */ - public Output testUsername() { - return this.testUsername; - } - /** - * Enable TLS connection (bool) - * - */ - @Export(name="tls", refs={Boolean.class}, tree="[0]") - private Output tls; - - /** - * @return Enable TLS connection (bool) - * - */ - public Output tls() { - return this.tls; - } - /** - * (Computed) The type of the resource (string) - * - */ - @Export(name="type", refs={String.class}, tree="[0]") - private Output type; - - /** - * @return (Computed) The type of the resource (string) - * - */ - public Output type() { - return this.type; - } - /** - * User disabled bit mask. Default `2` (int) - * - */ - @Export(name="userDisabledBitMask", refs={Integer.class}, tree="[0]") - private Output userDisabledBitMask; - - /** - * @return User disabled bit mask. Default `2` (int) - * - */ - public Output> userDisabledBitMask() { - return Codegen.optional(this.userDisabledBitMask); - } - /** - * User enable attribute (string) - * - */ - @Export(name="userEnabledAttribute", refs={String.class}, tree="[0]") - private Output userEnabledAttribute; - - /** - * @return User enable attribute (string) - * - */ - public Output userEnabledAttribute() { - return this.userEnabledAttribute; - } - /** - * User login attribute. Default `sAMAccountName` (string) - * - */ - @Export(name="userLoginAttribute", refs={String.class}, tree="[0]") - private Output userLoginAttribute; - - /** - * @return User login attribute. Default `sAMAccountName` (string) - * - */ - public Output userLoginAttribute() { - return this.userLoginAttribute; - } - /** - * User name attribute. Default `name` (string) - * - */ - @Export(name="userNameAttribute", refs={String.class}, tree="[0]") - private Output userNameAttribute; - - /** - * @return User name attribute. Default `name` (string) - * - */ - public Output userNameAttribute() { - return this.userNameAttribute; - } - /** - * User object class. Default `person` (string) - * - */ - @Export(name="userObjectClass", refs={String.class}, tree="[0]") - private Output userObjectClass; - - /** - * @return User object class. Default `person` (string) - * - */ - public Output userObjectClass() { - return this.userObjectClass; - } - /** - * User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - */ - @Export(name="userSearchAttribute", refs={String.class}, tree="[0]") - private Output userSearchAttribute; - - /** - * @return User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - */ - public Output userSearchAttribute() { - return this.userSearchAttribute; - } - /** - * User search base DN (string) - * - */ - @Export(name="userSearchBase", refs={String.class}, tree="[0]") - private Output userSearchBase; - - /** - * @return User search base DN (string) - * - */ - public Output userSearchBase() { - return this.userSearchBase; - } - /** - * User search filter (string) - * - */ - @Export(name="userSearchFilter", refs={String.class}, tree="[0]") - private Output userSearchFilter; - - /** - * @return User search filter (string) - * - */ - public Output userSearchFilter() { - return this.userSearchFilter; - } - - /** - * - * @param name The _unique_ name of the resulting resource. - */ - public ActiveDirectory(String name) { - this(name, ActiveDirectoryArgs.Empty); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - */ - public ActiveDirectory(String name, ActiveDirectoryArgs args) { - this(name, args, null); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - * @param options A bag of options that control this resource's behavior. - */ - public ActiveDirectory(String name, ActiveDirectoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("rancher2:index/activeDirectory:ActiveDirectory", name, args == null ? ActiveDirectoryArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); - } - - private ActiveDirectory(String name, Output id, @Nullable ActiveDirectoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("rancher2:index/activeDirectory:ActiveDirectory", name, state, makeResourceOptions(options, id)); - } - - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { - var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() - .version(Utilities.getVersion()) - .additionalSecretOutputs(List.of( - "certificate", - "serviceAccountPassword", - "serviceAccountUsername", - "testPassword" - )) - .build(); - return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); - } - - /** - * Get an existing Host resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param state - * @param options Optional settings to control the behavior of the CustomResource. - */ - public static ActiveDirectory get(String name, Output id, @Nullable ActiveDirectoryState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - return new ActiveDirectory(name, id, state, options); - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectoryArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectoryArgs.java deleted file mode 100644 index 8892f0789..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectoryArgs.java +++ /dev/null @@ -1,1311 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.Boolean; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ActiveDirectoryArgs extends com.pulumi.resources.ResourceArgs { - - public static final ActiveDirectoryArgs Empty = new ActiveDirectoryArgs(); - - /** - * Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - */ - @Import(name="accessMode") - private @Nullable Output accessMode; - - /** - * @return Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - */ - public Optional> accessMode() { - return Optional.ofNullable(this.accessMode); - } - - /** - * Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - */ - @Import(name="allowedPrincipalIds") - private @Nullable Output> allowedPrincipalIds; - - /** - * @return Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - */ - public Optional>> allowedPrincipalIds() { - return Optional.ofNullable(this.allowedPrincipalIds); - } - - /** - * Annotations of the resource (map) - * - */ - @Import(name="annotations") - private @Nullable Output> annotations; - - /** - * @return Annotations of the resource (map) - * - */ - public Optional>> annotations() { - return Optional.ofNullable(this.annotations); - } - - /** - * CA certificate for TLS if selfsigned (string) - * - */ - @Import(name="certificate") - private @Nullable Output certificate; - - /** - * @return CA certificate for TLS if selfsigned (string) - * - */ - public Optional> certificate() { - return Optional.ofNullable(this.certificate); - } - - /** - * ActiveDirectory connection timeout. Default `5000` (int) - * - */ - @Import(name="connectionTimeout") - private @Nullable Output connectionTimeout; - - /** - * @return ActiveDirectory connection timeout. Default `5000` (int) - * - */ - public Optional> connectionTimeout() { - return Optional.ofNullable(this.connectionTimeout); - } - - /** - * ActiveDirectory defult login domain (string) - * - */ - @Import(name="defaultLoginDomain") - private @Nullable Output defaultLoginDomain; - - /** - * @return ActiveDirectory defult login domain (string) - * - */ - public Optional> defaultLoginDomain() { - return Optional.ofNullable(this.defaultLoginDomain); - } - - /** - * Enable auth config provider. Default `true` (bool) - * - */ - @Import(name="enabled") - private @Nullable Output enabled; - - /** - * @return Enable auth config provider. Default `true` (bool) - * - */ - public Optional> enabled() { - return Optional.ofNullable(this.enabled); - } - - /** - * Group DN attribute. Default `distinguishedName` (string) - * - */ - @Import(name="groupDnAttribute") - private @Nullable Output groupDnAttribute; - - /** - * @return Group DN attribute. Default `distinguishedName` (string) - * - */ - public Optional> groupDnAttribute() { - return Optional.ofNullable(this.groupDnAttribute); - } - - /** - * Group member mapping attribute. Default `member` (string) - * - */ - @Import(name="groupMemberMappingAttribute") - private @Nullable Output groupMemberMappingAttribute; - - /** - * @return Group member mapping attribute. Default `member` (string) - * - */ - public Optional> groupMemberMappingAttribute() { - return Optional.ofNullable(this.groupMemberMappingAttribute); - } - - /** - * Group member user attribute. Default `distinguishedName` (string) - * - */ - @Import(name="groupMemberUserAttribute") - private @Nullable Output groupMemberUserAttribute; - - /** - * @return Group member user attribute. Default `distinguishedName` (string) - * - */ - public Optional> groupMemberUserAttribute() { - return Optional.ofNullable(this.groupMemberUserAttribute); - } - - /** - * Group name attribute. Default `name` (string) - * - */ - @Import(name="groupNameAttribute") - private @Nullable Output groupNameAttribute; - - /** - * @return Group name attribute. Default `name` (string) - * - */ - public Optional> groupNameAttribute() { - return Optional.ofNullable(this.groupNameAttribute); - } - - /** - * Group object class. Default `group` (string) - * - */ - @Import(name="groupObjectClass") - private @Nullable Output groupObjectClass; - - /** - * @return Group object class. Default `group` (string) - * - */ - public Optional> groupObjectClass() { - return Optional.ofNullable(this.groupObjectClass); - } - - /** - * Group search attribute. Default `sAMAccountName` (string) - * - */ - @Import(name="groupSearchAttribute") - private @Nullable Output groupSearchAttribute; - - /** - * @return Group search attribute. Default `sAMAccountName` (string) - * - */ - public Optional> groupSearchAttribute() { - return Optional.ofNullable(this.groupSearchAttribute); - } - - /** - * Group search base (string) - * - */ - @Import(name="groupSearchBase") - private @Nullable Output groupSearchBase; - - /** - * @return Group search base (string) - * - */ - public Optional> groupSearchBase() { - return Optional.ofNullable(this.groupSearchBase); - } - - /** - * Group search filter (string) - * - */ - @Import(name="groupSearchFilter") - private @Nullable Output groupSearchFilter; - - /** - * @return Group search filter (string) - * - */ - public Optional> groupSearchFilter() { - return Optional.ofNullable(this.groupSearchFilter); - } - - /** - * Labels of the resource (map) - * - */ - @Import(name="labels") - private @Nullable Output> labels; - - /** - * @return Labels of the resource (map) - * - */ - public Optional>> labels() { - return Optional.ofNullable(this.labels); - } - - /** - * Nested group membership enable. Default `false` (bool) - * - */ - @Import(name="nestedGroupMembershipEnabled") - private @Nullable Output nestedGroupMembershipEnabled; - - /** - * @return Nested group membership enable. Default `false` (bool) - * - */ - public Optional> nestedGroupMembershipEnabled() { - return Optional.ofNullable(this.nestedGroupMembershipEnabled); - } - - /** - * ActiveDirectory port. Default `389` (int) - * - */ - @Import(name="port") - private @Nullable Output port; - - /** - * @return ActiveDirectory port. Default `389` (int) - * - */ - public Optional> port() { - return Optional.ofNullable(this.port); - } - - /** - * ActiveDirectory servers list (list) - * - */ - @Import(name="servers", required=true) - private Output> servers; - - /** - * @return ActiveDirectory servers list (list) - * - */ - public Output> servers() { - return this.servers; - } - - /** - * Service account password for access ActiveDirectory service (string) - * - */ - @Import(name="serviceAccountPassword", required=true) - private Output serviceAccountPassword; - - /** - * @return Service account password for access ActiveDirectory service (string) - * - */ - public Output serviceAccountPassword() { - return this.serviceAccountPassword; - } - - /** - * Service account DN for access ActiveDirectory service (string) - * - */ - @Import(name="serviceAccountUsername", required=true) - private Output serviceAccountUsername; - - /** - * @return Service account DN for access ActiveDirectory service (string) - * - */ - public Output serviceAccountUsername() { - return this.serviceAccountUsername; - } - - /** - * Enable start TLS connection (bool) - * - */ - @Import(name="startTls") - private @Nullable Output startTls; - - /** - * @return Enable start TLS connection (bool) - * - */ - public Optional> startTls() { - return Optional.ofNullable(this.startTls); - } - - /** - * Password for test access to ActiveDirectory service (string) - * - */ - @Import(name="testPassword", required=true) - private Output testPassword; - - /** - * @return Password for test access to ActiveDirectory service (string) - * - */ - public Output testPassword() { - return this.testPassword; - } - - /** - * Username for test access to ActiveDirectory service (string) - * - */ - @Import(name="testUsername", required=true) - private Output testUsername; - - /** - * @return Username for test access to ActiveDirectory service (string) - * - */ - public Output testUsername() { - return this.testUsername; - } - - /** - * Enable TLS connection (bool) - * - */ - @Import(name="tls") - private @Nullable Output tls; - - /** - * @return Enable TLS connection (bool) - * - */ - public Optional> tls() { - return Optional.ofNullable(this.tls); - } - - /** - * User disabled bit mask. Default `2` (int) - * - */ - @Import(name="userDisabledBitMask") - private @Nullable Output userDisabledBitMask; - - /** - * @return User disabled bit mask. Default `2` (int) - * - */ - public Optional> userDisabledBitMask() { - return Optional.ofNullable(this.userDisabledBitMask); - } - - /** - * User enable attribute (string) - * - */ - @Import(name="userEnabledAttribute") - private @Nullable Output userEnabledAttribute; - - /** - * @return User enable attribute (string) - * - */ - public Optional> userEnabledAttribute() { - return Optional.ofNullable(this.userEnabledAttribute); - } - - /** - * User login attribute. Default `sAMAccountName` (string) - * - */ - @Import(name="userLoginAttribute") - private @Nullable Output userLoginAttribute; - - /** - * @return User login attribute. Default `sAMAccountName` (string) - * - */ - public Optional> userLoginAttribute() { - return Optional.ofNullable(this.userLoginAttribute); - } - - /** - * User name attribute. Default `name` (string) - * - */ - @Import(name="userNameAttribute") - private @Nullable Output userNameAttribute; - - /** - * @return User name attribute. Default `name` (string) - * - */ - public Optional> userNameAttribute() { - return Optional.ofNullable(this.userNameAttribute); - } - - /** - * User object class. Default `person` (string) - * - */ - @Import(name="userObjectClass") - private @Nullable Output userObjectClass; - - /** - * @return User object class. Default `person` (string) - * - */ - public Optional> userObjectClass() { - return Optional.ofNullable(this.userObjectClass); - } - - /** - * User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - */ - @Import(name="userSearchAttribute") - private @Nullable Output userSearchAttribute; - - /** - * @return User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - */ - public Optional> userSearchAttribute() { - return Optional.ofNullable(this.userSearchAttribute); - } - - /** - * User search base DN (string) - * - */ - @Import(name="userSearchBase", required=true) - private Output userSearchBase; - - /** - * @return User search base DN (string) - * - */ - public Output userSearchBase() { - return this.userSearchBase; - } - - /** - * User search filter (string) - * - */ - @Import(name="userSearchFilter") - private @Nullable Output userSearchFilter; - - /** - * @return User search filter (string) - * - */ - public Optional> userSearchFilter() { - return Optional.ofNullable(this.userSearchFilter); - } - - private ActiveDirectoryArgs() {} - - private ActiveDirectoryArgs(ActiveDirectoryArgs $) { - this.accessMode = $.accessMode; - this.allowedPrincipalIds = $.allowedPrincipalIds; - this.annotations = $.annotations; - this.certificate = $.certificate; - this.connectionTimeout = $.connectionTimeout; - this.defaultLoginDomain = $.defaultLoginDomain; - this.enabled = $.enabled; - this.groupDnAttribute = $.groupDnAttribute; - this.groupMemberMappingAttribute = $.groupMemberMappingAttribute; - this.groupMemberUserAttribute = $.groupMemberUserAttribute; - this.groupNameAttribute = $.groupNameAttribute; - this.groupObjectClass = $.groupObjectClass; - this.groupSearchAttribute = $.groupSearchAttribute; - this.groupSearchBase = $.groupSearchBase; - this.groupSearchFilter = $.groupSearchFilter; - this.labels = $.labels; - this.nestedGroupMembershipEnabled = $.nestedGroupMembershipEnabled; - this.port = $.port; - this.servers = $.servers; - this.serviceAccountPassword = $.serviceAccountPassword; - this.serviceAccountUsername = $.serviceAccountUsername; - this.startTls = $.startTls; - this.testPassword = $.testPassword; - this.testUsername = $.testUsername; - this.tls = $.tls; - this.userDisabledBitMask = $.userDisabledBitMask; - this.userEnabledAttribute = $.userEnabledAttribute; - this.userLoginAttribute = $.userLoginAttribute; - this.userNameAttribute = $.userNameAttribute; - this.userObjectClass = $.userObjectClass; - this.userSearchAttribute = $.userSearchAttribute; - this.userSearchBase = $.userSearchBase; - this.userSearchFilter = $.userSearchFilter; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ActiveDirectoryArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ActiveDirectoryArgs $; - - public Builder() { - $ = new ActiveDirectoryArgs(); - } - - public Builder(ActiveDirectoryArgs defaults) { - $ = new ActiveDirectoryArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param accessMode Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - * @return builder - * - */ - public Builder accessMode(@Nullable Output accessMode) { - $.accessMode = accessMode; - return this; - } - - /** - * @param accessMode Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - * @return builder - * - */ - public Builder accessMode(String accessMode) { - return accessMode(Output.of(accessMode)); - } - - /** - * @param allowedPrincipalIds Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - * @return builder - * - */ - public Builder allowedPrincipalIds(@Nullable Output> allowedPrincipalIds) { - $.allowedPrincipalIds = allowedPrincipalIds; - return this; - } - - /** - * @param allowedPrincipalIds Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - * @return builder - * - */ - public Builder allowedPrincipalIds(List allowedPrincipalIds) { - return allowedPrincipalIds(Output.of(allowedPrincipalIds)); - } - - /** - * @param allowedPrincipalIds Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - * @return builder - * - */ - public Builder allowedPrincipalIds(String... allowedPrincipalIds) { - return allowedPrincipalIds(List.of(allowedPrincipalIds)); - } - - /** - * @param annotations Annotations of the resource (map) - * - * @return builder - * - */ - public Builder annotations(@Nullable Output> annotations) { - $.annotations = annotations; - return this; - } - - /** - * @param annotations Annotations of the resource (map) - * - * @return builder - * - */ - public Builder annotations(Map annotations) { - return annotations(Output.of(annotations)); - } - - /** - * @param certificate CA certificate for TLS if selfsigned (string) - * - * @return builder - * - */ - public Builder certificate(@Nullable Output certificate) { - $.certificate = certificate; - return this; - } - - /** - * @param certificate CA certificate for TLS if selfsigned (string) - * - * @return builder - * - */ - public Builder certificate(String certificate) { - return certificate(Output.of(certificate)); - } - - /** - * @param connectionTimeout ActiveDirectory connection timeout. Default `5000` (int) - * - * @return builder - * - */ - public Builder connectionTimeout(@Nullable Output connectionTimeout) { - $.connectionTimeout = connectionTimeout; - return this; - } - - /** - * @param connectionTimeout ActiveDirectory connection timeout. Default `5000` (int) - * - * @return builder - * - */ - public Builder connectionTimeout(Integer connectionTimeout) { - return connectionTimeout(Output.of(connectionTimeout)); - } - - /** - * @param defaultLoginDomain ActiveDirectory defult login domain (string) - * - * @return builder - * - */ - public Builder defaultLoginDomain(@Nullable Output defaultLoginDomain) { - $.defaultLoginDomain = defaultLoginDomain; - return this; - } - - /** - * @param defaultLoginDomain ActiveDirectory defult login domain (string) - * - * @return builder - * - */ - public Builder defaultLoginDomain(String defaultLoginDomain) { - return defaultLoginDomain(Output.of(defaultLoginDomain)); - } - - /** - * @param enabled Enable auth config provider. Default `true` (bool) - * - * @return builder - * - */ - public Builder enabled(@Nullable Output enabled) { - $.enabled = enabled; - return this; - } - - /** - * @param enabled Enable auth config provider. Default `true` (bool) - * - * @return builder - * - */ - public Builder enabled(Boolean enabled) { - return enabled(Output.of(enabled)); - } - - /** - * @param groupDnAttribute Group DN attribute. Default `distinguishedName` (string) - * - * @return builder - * - */ - public Builder groupDnAttribute(@Nullable Output groupDnAttribute) { - $.groupDnAttribute = groupDnAttribute; - return this; - } - - /** - * @param groupDnAttribute Group DN attribute. Default `distinguishedName` (string) - * - * @return builder - * - */ - public Builder groupDnAttribute(String groupDnAttribute) { - return groupDnAttribute(Output.of(groupDnAttribute)); - } - - /** - * @param groupMemberMappingAttribute Group member mapping attribute. Default `member` (string) - * - * @return builder - * - */ - public Builder groupMemberMappingAttribute(@Nullable Output groupMemberMappingAttribute) { - $.groupMemberMappingAttribute = groupMemberMappingAttribute; - return this; - } - - /** - * @param groupMemberMappingAttribute Group member mapping attribute. Default `member` (string) - * - * @return builder - * - */ - public Builder groupMemberMappingAttribute(String groupMemberMappingAttribute) { - return groupMemberMappingAttribute(Output.of(groupMemberMappingAttribute)); - } - - /** - * @param groupMemberUserAttribute Group member user attribute. Default `distinguishedName` (string) - * - * @return builder - * - */ - public Builder groupMemberUserAttribute(@Nullable Output groupMemberUserAttribute) { - $.groupMemberUserAttribute = groupMemberUserAttribute; - return this; - } - - /** - * @param groupMemberUserAttribute Group member user attribute. Default `distinguishedName` (string) - * - * @return builder - * - */ - public Builder groupMemberUserAttribute(String groupMemberUserAttribute) { - return groupMemberUserAttribute(Output.of(groupMemberUserAttribute)); - } - - /** - * @param groupNameAttribute Group name attribute. Default `name` (string) - * - * @return builder - * - */ - public Builder groupNameAttribute(@Nullable Output groupNameAttribute) { - $.groupNameAttribute = groupNameAttribute; - return this; - } - - /** - * @param groupNameAttribute Group name attribute. Default `name` (string) - * - * @return builder - * - */ - public Builder groupNameAttribute(String groupNameAttribute) { - return groupNameAttribute(Output.of(groupNameAttribute)); - } - - /** - * @param groupObjectClass Group object class. Default `group` (string) - * - * @return builder - * - */ - public Builder groupObjectClass(@Nullable Output groupObjectClass) { - $.groupObjectClass = groupObjectClass; - return this; - } - - /** - * @param groupObjectClass Group object class. Default `group` (string) - * - * @return builder - * - */ - public Builder groupObjectClass(String groupObjectClass) { - return groupObjectClass(Output.of(groupObjectClass)); - } - - /** - * @param groupSearchAttribute Group search attribute. Default `sAMAccountName` (string) - * - * @return builder - * - */ - public Builder groupSearchAttribute(@Nullable Output groupSearchAttribute) { - $.groupSearchAttribute = groupSearchAttribute; - return this; - } - - /** - * @param groupSearchAttribute Group search attribute. Default `sAMAccountName` (string) - * - * @return builder - * - */ - public Builder groupSearchAttribute(String groupSearchAttribute) { - return groupSearchAttribute(Output.of(groupSearchAttribute)); - } - - /** - * @param groupSearchBase Group search base (string) - * - * @return builder - * - */ - public Builder groupSearchBase(@Nullable Output groupSearchBase) { - $.groupSearchBase = groupSearchBase; - return this; - } - - /** - * @param groupSearchBase Group search base (string) - * - * @return builder - * - */ - public Builder groupSearchBase(String groupSearchBase) { - return groupSearchBase(Output.of(groupSearchBase)); - } - - /** - * @param groupSearchFilter Group search filter (string) - * - * @return builder - * - */ - public Builder groupSearchFilter(@Nullable Output groupSearchFilter) { - $.groupSearchFilter = groupSearchFilter; - return this; - } - - /** - * @param groupSearchFilter Group search filter (string) - * - * @return builder - * - */ - public Builder groupSearchFilter(String groupSearchFilter) { - return groupSearchFilter(Output.of(groupSearchFilter)); - } - - /** - * @param labels Labels of the resource (map) - * - * @return builder - * - */ - public Builder labels(@Nullable Output> labels) { - $.labels = labels; - return this; - } - - /** - * @param labels Labels of the resource (map) - * - * @return builder - * - */ - public Builder labels(Map labels) { - return labels(Output.of(labels)); - } - - /** - * @param nestedGroupMembershipEnabled Nested group membership enable. Default `false` (bool) - * - * @return builder - * - */ - public Builder nestedGroupMembershipEnabled(@Nullable Output nestedGroupMembershipEnabled) { - $.nestedGroupMembershipEnabled = nestedGroupMembershipEnabled; - return this; - } - - /** - * @param nestedGroupMembershipEnabled Nested group membership enable. Default `false` (bool) - * - * @return builder - * - */ - public Builder nestedGroupMembershipEnabled(Boolean nestedGroupMembershipEnabled) { - return nestedGroupMembershipEnabled(Output.of(nestedGroupMembershipEnabled)); - } - - /** - * @param port ActiveDirectory port. Default `389` (int) - * - * @return builder - * - */ - public Builder port(@Nullable Output port) { - $.port = port; - return this; - } - - /** - * @param port ActiveDirectory port. Default `389` (int) - * - * @return builder - * - */ - public Builder port(Integer port) { - return port(Output.of(port)); - } - - /** - * @param servers ActiveDirectory servers list (list) - * - * @return builder - * - */ - public Builder servers(Output> servers) { - $.servers = servers; - return this; - } - - /** - * @param servers ActiveDirectory servers list (list) - * - * @return builder - * - */ - public Builder servers(List servers) { - return servers(Output.of(servers)); - } - - /** - * @param servers ActiveDirectory servers list (list) - * - * @return builder - * - */ - public Builder servers(String... servers) { - return servers(List.of(servers)); - } - - /** - * @param serviceAccountPassword Service account password for access ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder serviceAccountPassword(Output serviceAccountPassword) { - $.serviceAccountPassword = serviceAccountPassword; - return this; - } - - /** - * @param serviceAccountPassword Service account password for access ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder serviceAccountPassword(String serviceAccountPassword) { - return serviceAccountPassword(Output.of(serviceAccountPassword)); - } - - /** - * @param serviceAccountUsername Service account DN for access ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder serviceAccountUsername(Output serviceAccountUsername) { - $.serviceAccountUsername = serviceAccountUsername; - return this; - } - - /** - * @param serviceAccountUsername Service account DN for access ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder serviceAccountUsername(String serviceAccountUsername) { - return serviceAccountUsername(Output.of(serviceAccountUsername)); - } - - /** - * @param startTls Enable start TLS connection (bool) - * - * @return builder - * - */ - public Builder startTls(@Nullable Output startTls) { - $.startTls = startTls; - return this; - } - - /** - * @param startTls Enable start TLS connection (bool) - * - * @return builder - * - */ - public Builder startTls(Boolean startTls) { - return startTls(Output.of(startTls)); - } - - /** - * @param testPassword Password for test access to ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder testPassword(Output testPassword) { - $.testPassword = testPassword; - return this; - } - - /** - * @param testPassword Password for test access to ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder testPassword(String testPassword) { - return testPassword(Output.of(testPassword)); - } - - /** - * @param testUsername Username for test access to ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder testUsername(Output testUsername) { - $.testUsername = testUsername; - return this; - } - - /** - * @param testUsername Username for test access to ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder testUsername(String testUsername) { - return testUsername(Output.of(testUsername)); - } - - /** - * @param tls Enable TLS connection (bool) - * - * @return builder - * - */ - public Builder tls(@Nullable Output tls) { - $.tls = tls; - return this; - } - - /** - * @param tls Enable TLS connection (bool) - * - * @return builder - * - */ - public Builder tls(Boolean tls) { - return tls(Output.of(tls)); - } - - /** - * @param userDisabledBitMask User disabled bit mask. Default `2` (int) - * - * @return builder - * - */ - public Builder userDisabledBitMask(@Nullable Output userDisabledBitMask) { - $.userDisabledBitMask = userDisabledBitMask; - return this; - } - - /** - * @param userDisabledBitMask User disabled bit mask. Default `2` (int) - * - * @return builder - * - */ - public Builder userDisabledBitMask(Integer userDisabledBitMask) { - return userDisabledBitMask(Output.of(userDisabledBitMask)); - } - - /** - * @param userEnabledAttribute User enable attribute (string) - * - * @return builder - * - */ - public Builder userEnabledAttribute(@Nullable Output userEnabledAttribute) { - $.userEnabledAttribute = userEnabledAttribute; - return this; - } - - /** - * @param userEnabledAttribute User enable attribute (string) - * - * @return builder - * - */ - public Builder userEnabledAttribute(String userEnabledAttribute) { - return userEnabledAttribute(Output.of(userEnabledAttribute)); - } - - /** - * @param userLoginAttribute User login attribute. Default `sAMAccountName` (string) - * - * @return builder - * - */ - public Builder userLoginAttribute(@Nullable Output userLoginAttribute) { - $.userLoginAttribute = userLoginAttribute; - return this; - } - - /** - * @param userLoginAttribute User login attribute. Default `sAMAccountName` (string) - * - * @return builder - * - */ - public Builder userLoginAttribute(String userLoginAttribute) { - return userLoginAttribute(Output.of(userLoginAttribute)); - } - - /** - * @param userNameAttribute User name attribute. Default `name` (string) - * - * @return builder - * - */ - public Builder userNameAttribute(@Nullable Output userNameAttribute) { - $.userNameAttribute = userNameAttribute; - return this; - } - - /** - * @param userNameAttribute User name attribute. Default `name` (string) - * - * @return builder - * - */ - public Builder userNameAttribute(String userNameAttribute) { - return userNameAttribute(Output.of(userNameAttribute)); - } - - /** - * @param userObjectClass User object class. Default `person` (string) - * - * @return builder - * - */ - public Builder userObjectClass(@Nullable Output userObjectClass) { - $.userObjectClass = userObjectClass; - return this; - } - - /** - * @param userObjectClass User object class. Default `person` (string) - * - * @return builder - * - */ - public Builder userObjectClass(String userObjectClass) { - return userObjectClass(Output.of(userObjectClass)); - } - - /** - * @param userSearchAttribute User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - * @return builder - * - */ - public Builder userSearchAttribute(@Nullable Output userSearchAttribute) { - $.userSearchAttribute = userSearchAttribute; - return this; - } - - /** - * @param userSearchAttribute User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - * @return builder - * - */ - public Builder userSearchAttribute(String userSearchAttribute) { - return userSearchAttribute(Output.of(userSearchAttribute)); - } - - /** - * @param userSearchBase User search base DN (string) - * - * @return builder - * - */ - public Builder userSearchBase(Output userSearchBase) { - $.userSearchBase = userSearchBase; - return this; - } - - /** - * @param userSearchBase User search base DN (string) - * - * @return builder - * - */ - public Builder userSearchBase(String userSearchBase) { - return userSearchBase(Output.of(userSearchBase)); - } - - /** - * @param userSearchFilter User search filter (string) - * - * @return builder - * - */ - public Builder userSearchFilter(@Nullable Output userSearchFilter) { - $.userSearchFilter = userSearchFilter; - return this; - } - - /** - * @param userSearchFilter User search filter (string) - * - * @return builder - * - */ - public Builder userSearchFilter(String userSearchFilter) { - return userSearchFilter(Output.of(userSearchFilter)); - } - - public ActiveDirectoryArgs build() { - if ($.servers == null) { - throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "servers"); - } - if ($.serviceAccountPassword == null) { - throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "serviceAccountPassword"); - } - if ($.serviceAccountUsername == null) { - throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "serviceAccountUsername"); - } - if ($.testPassword == null) { - throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "testPassword"); - } - if ($.testUsername == null) { - throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "testUsername"); - } - if ($.userSearchBase == null) { - throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "userSearchBase"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AppV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/AppV2.java index 4ce8e861b..7e9416ab5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AppV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AppV2.java @@ -54,6 +54,41 @@ * } * } * ``` + * ### Create an App from a Helm Chart using a different registry + * + * The `system_default_registry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead. + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.rancher2.AppV2; + * import com.pulumi.rancher2.AppV2Args; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * var cisBenchmark = new AppV2("cisBenchmark", AppV2Args.builder() + * .chartName("rancher-cis-benchmark") + * .clusterId("<CLUSTER_ID>") + * .namespace("cis-operator-system") + * .repoName("rancher-charts") + * .systemDefaultRegistry("<some.dns.here>:<PORT>") + * .build()); + * + * } + * } + * ``` * * ## Import * @@ -281,14 +316,14 @@ public Output repoName() { return this.repoName; } /** - * (Computed) The system default registry of the app (string) + * System default registry providing images for app deployment (string) * */ @Export(name="systemDefaultRegistry", refs={String.class}, tree="[0]") private Output systemDefaultRegistry; /** - * @return (Computed) The system default registry of the app (string) + * @return System default registry providing images for app deployment (string) * */ public Output systemDefaultRegistry() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AppV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/AppV2Args.java index 9ca014eb4..8a9a07751 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AppV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AppV2Args.java @@ -214,6 +214,21 @@ public Output repoName() { return this.repoName; } + /** + * System default registry providing images for app deployment (string) + * + */ + @Import(name="systemDefaultRegistry") + private @Nullable Output systemDefaultRegistry; + + /** + * @return System default registry providing images for app deployment (string) + * + */ + public Optional> systemDefaultRegistry() { + return Optional.ofNullable(this.systemDefaultRegistry); + } + /** * The app v2 values yaml. Yaml format is required (string) * @@ -260,6 +275,7 @@ private AppV2Args(AppV2Args $) { this.namespace = $.namespace; this.projectId = $.projectId; this.repoName = $.repoName; + this.systemDefaultRegistry = $.systemDefaultRegistry; this.values = $.values; this.wait = $.wait; } @@ -555,6 +571,27 @@ public Builder repoName(String repoName) { return repoName(Output.of(repoName)); } + /** + * @param systemDefaultRegistry System default registry providing images for app deployment (string) + * + * @return builder + * + */ + public Builder systemDefaultRegistry(@Nullable Output systemDefaultRegistry) { + $.systemDefaultRegistry = systemDefaultRegistry; + return this; + } + + /** + * @param systemDefaultRegistry System default registry providing images for app deployment (string) + * + * @return builder + * + */ + public Builder systemDefaultRegistry(String systemDefaultRegistry) { + return systemDefaultRegistry(Output.of(systemDefaultRegistry)); + } + /** * @param values The app v2 values yaml. Yaml format is required (string) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigActiveDirectory.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigActiveDirectory.java index d54c18e2d..8242e61cc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigActiveDirectory.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigActiveDirectory.java @@ -3,7 +3,6 @@ package com.pulumi.rancher2; -import com.pulumi.core.Alias; import com.pulumi.core.Output; import com.pulumi.core.annotations.Export; import com.pulumi.core.annotations.ResourceType; @@ -551,9 +550,6 @@ private AuthConfigActiveDirectory(String name, Output id, @Nullable Auth private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) - .aliases(List.of( - Output.of(Alias.builder().type("rancher2:index/activeDirectory:ActiveDirectory").build()) - )) .additionalSecretOutputs(List.of( "certificate", "serviceAccountPassword", diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2.java index 0a45dd93a..7b1e1400d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2.java @@ -46,14 +46,14 @@ public Output> annotations() { return this.annotations; } /** - * PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * */ @Export(name="caBundle", refs={String.class}, tree="[0]") private Output caBundle; /** - * @return PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * @return CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * */ public Output> caBundle() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2Args.java index 15cd8a94f..c36a1762b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2Args.java @@ -35,14 +35,14 @@ public Optional>> annotations() { } /** - * PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * */ @Import(name="caBundle") private @Nullable Output caBundle; /** - * @return PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * @return CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * */ public Optional> caBundle() { @@ -288,7 +288,7 @@ public Builder annotations(Map annotations) { } /** - * @param caBundle PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * @param caBundle CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * * @return builder * @@ -299,7 +299,7 @@ public Builder caBundle(@Nullable Output caBundle) { } /** - * @param caBundle PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * @param caBundle CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertGroup.java index 61056718a..9df33a490 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertGroup.java @@ -3,7 +3,6 @@ package com.pulumi.rancher2; -import com.pulumi.core.Alias; import com.pulumi.core.Output; import com.pulumi.core.annotations.Export; import com.pulumi.core.annotations.ResourceType; @@ -226,9 +225,6 @@ private ClusterAlertGroup(String name, Output id, @Nullable ClusterAlert private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) - .aliases(List.of( - Output.of(Alias.builder().type("rancher2:index/clusterAlterGroup:ClusterAlterGroup").build()) - )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertRule.java index 31dd52c7a..dffe5d10a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertRule.java @@ -3,7 +3,6 @@ package com.pulumi.rancher2; -import com.pulumi.core.Alias; import com.pulumi.core.Output; import com.pulumi.core.annotations.Export; import com.pulumi.core.annotations.ResourceType; @@ -19,7 +18,6 @@ import java.lang.Integer; import java.lang.Object; import java.lang.String; -import java.util.List; import java.util.Map; import java.util.Optional; import javax.annotation.Nullable; @@ -309,9 +307,6 @@ private ClusterAlertRule(String name, Output id, @Nullable ClusterAlertR private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) - .aliases(List.of( - Output.of(Alias.builder().type("rancher2:index/clusterAlterRule:ClusterAlterRule").build()) - )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroup.java deleted file mode 100644 index 1797ce26b..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroup.java +++ /dev/null @@ -1,248 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Export; -import com.pulumi.core.annotations.ResourceType; -import com.pulumi.core.internal.Codegen; -import com.pulumi.rancher2.ClusterAlterGroupArgs; -import com.pulumi.rancher2.Utilities; -import com.pulumi.rancher2.inputs.ClusterAlterGroupState; -import com.pulumi.rancher2.outputs.ClusterAlterGroupRecipient; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import javax.annotation.Nullable; - -/** - * Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - * - * ## Example Usage - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.rancher2.ClusterAlertGroup; - * import com.pulumi.rancher2.ClusterAlertGroupArgs; - * import java.util.List; - * import java.util.ArrayList; - * import java.util.Map; - * import java.io.File; - * import java.nio.file.Files; - * import java.nio.file.Paths; - * - * public class App { - * public static void main(String[] args) { - * Pulumi.run(App::stack); - * } - * - * public static void stack(Context ctx) { - * var foo = new ClusterAlertGroup("foo", ClusterAlertGroupArgs.builder() - * .clusterId("<cluster_id>") - * .description("Terraform cluster alert group") - * .groupIntervalSeconds(300) - * .repeatIntervalSeconds(3600) - * .build()); - * - * } - * } - * ``` - * - * ## Import - * - * Cluster Alert Group can be imported using the Rancher cluster alert group ID - * - * ```sh - * $ pulumi import rancher2:index/clusterAlterGroup:ClusterAlterGroup foo &lt;CLUSTER_ALERT_GROUP_ID&gt; - * ``` - * - * @deprecated - * rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup - * - */ -@Deprecated /* rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup */ -@ResourceType(type="rancher2:index/clusterAlterGroup:ClusterAlterGroup") -public class ClusterAlterGroup extends com.pulumi.resources.CustomResource { - /** - * The cluster alert group annotations (map) - * - */ - @Export(name="annotations", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") - private Output> annotations; - - /** - * @return The cluster alert group annotations (map) - * - */ - public Output> annotations() { - return this.annotations; - } - /** - * The cluster id where create cluster alert group (string) - * - */ - @Export(name="clusterId", refs={String.class}, tree="[0]") - private Output clusterId; - - /** - * @return The cluster id where create cluster alert group (string) - * - */ - public Output clusterId() { - return this.clusterId; - } - /** - * The cluster alert group description (string) - * - */ - @Export(name="description", refs={String.class}, tree="[0]") - private Output description; - - /** - * @return The cluster alert group description (string) - * - */ - public Output> description() { - return Codegen.optional(this.description); - } - /** - * The cluster alert group interval seconds. Default: `180` (int) - * - */ - @Export(name="groupIntervalSeconds", refs={Integer.class}, tree="[0]") - private Output groupIntervalSeconds; - - /** - * @return The cluster alert group interval seconds. Default: `180` (int) - * - */ - public Output> groupIntervalSeconds() { - return Codegen.optional(this.groupIntervalSeconds); - } - /** - * The cluster alert group wait seconds. Default: `180` (int) - * - */ - @Export(name="groupWaitSeconds", refs={Integer.class}, tree="[0]") - private Output groupWaitSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `180` (int) - * - */ - public Output> groupWaitSeconds() { - return Codegen.optional(this.groupWaitSeconds); - } - /** - * The cluster alert group labels (map) - * - */ - @Export(name="labels", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") - private Output> labels; - - /** - * @return The cluster alert group labels (map) - * - */ - public Output> labels() { - return this.labels; - } - /** - * The cluster alert group name (string) - * - */ - @Export(name="name", refs={String.class}, tree="[0]") - private Output name; - - /** - * @return The cluster alert group name (string) - * - */ - public Output name() { - return this.name; - } - /** - * The cluster alert group recipients (list) - * - */ - @Export(name="recipients", refs={List.class,ClusterAlterGroupRecipient.class}, tree="[0,1]") - private Output> recipients; - - /** - * @return The cluster alert group recipients (list) - * - */ - public Output>> recipients() { - return Codegen.optional(this.recipients); - } - /** - * The cluster alert group wait seconds. Default: `3600` (int) - * - */ - @Export(name="repeatIntervalSeconds", refs={Integer.class}, tree="[0]") - private Output repeatIntervalSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `3600` (int) - * - */ - public Output> repeatIntervalSeconds() { - return Codegen.optional(this.repeatIntervalSeconds); - } - - /** - * - * @param name The _unique_ name of the resulting resource. - */ - public ClusterAlterGroup(String name) { - this(name, ClusterAlterGroupArgs.Empty); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - */ - public ClusterAlterGroup(String name, ClusterAlterGroupArgs args) { - this(name, args, null); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - * @param options A bag of options that control this resource's behavior. - */ - public ClusterAlterGroup(String name, ClusterAlterGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("rancher2:index/clusterAlterGroup:ClusterAlterGroup", name, args == null ? ClusterAlterGroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); - } - - private ClusterAlterGroup(String name, Output id, @Nullable ClusterAlterGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("rancher2:index/clusterAlterGroup:ClusterAlterGroup", name, state, makeResourceOptions(options, id)); - } - - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { - var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() - .version(Utilities.getVersion()) - .build(); - return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); - } - - /** - * Get an existing Host resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param state - * @param options Optional settings to control the behavior of the CustomResource. - */ - public static ClusterAlterGroup get(String name, Output id, @Nullable ClusterAlterGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - return new ClusterAlterGroup(name, id, state, options); - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroupArgs.java deleted file mode 100644 index b20c837ae..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroupArgs.java +++ /dev/null @@ -1,398 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import com.pulumi.rancher2.inputs.ClusterAlterGroupRecipientArgs; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterGroupArgs extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterGroupArgs Empty = new ClusterAlterGroupArgs(); - - /** - * The cluster alert group annotations (map) - * - */ - @Import(name="annotations") - private @Nullable Output> annotations; - - /** - * @return The cluster alert group annotations (map) - * - */ - public Optional>> annotations() { - return Optional.ofNullable(this.annotations); - } - - /** - * The cluster id where create cluster alert group (string) - * - */ - @Import(name="clusterId", required=true) - private Output clusterId; - - /** - * @return The cluster id where create cluster alert group (string) - * - */ - public Output clusterId() { - return this.clusterId; - } - - /** - * The cluster alert group description (string) - * - */ - @Import(name="description") - private @Nullable Output description; - - /** - * @return The cluster alert group description (string) - * - */ - public Optional> description() { - return Optional.ofNullable(this.description); - } - - /** - * The cluster alert group interval seconds. Default: `180` (int) - * - */ - @Import(name="groupIntervalSeconds") - private @Nullable Output groupIntervalSeconds; - - /** - * @return The cluster alert group interval seconds. Default: `180` (int) - * - */ - public Optional> groupIntervalSeconds() { - return Optional.ofNullable(this.groupIntervalSeconds); - } - - /** - * The cluster alert group wait seconds. Default: `180` (int) - * - */ - @Import(name="groupWaitSeconds") - private @Nullable Output groupWaitSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `180` (int) - * - */ - public Optional> groupWaitSeconds() { - return Optional.ofNullable(this.groupWaitSeconds); - } - - /** - * The cluster alert group labels (map) - * - */ - @Import(name="labels") - private @Nullable Output> labels; - - /** - * @return The cluster alert group labels (map) - * - */ - public Optional>> labels() { - return Optional.ofNullable(this.labels); - } - - /** - * The cluster alert group name (string) - * - */ - @Import(name="name") - private @Nullable Output name; - - /** - * @return The cluster alert group name (string) - * - */ - public Optional> name() { - return Optional.ofNullable(this.name); - } - - /** - * The cluster alert group recipients (list) - * - */ - @Import(name="recipients") - private @Nullable Output> recipients; - - /** - * @return The cluster alert group recipients (list) - * - */ - public Optional>> recipients() { - return Optional.ofNullable(this.recipients); - } - - /** - * The cluster alert group wait seconds. Default: `3600` (int) - * - */ - @Import(name="repeatIntervalSeconds") - private @Nullable Output repeatIntervalSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `3600` (int) - * - */ - public Optional> repeatIntervalSeconds() { - return Optional.ofNullable(this.repeatIntervalSeconds); - } - - private ClusterAlterGroupArgs() {} - - private ClusterAlterGroupArgs(ClusterAlterGroupArgs $) { - this.annotations = $.annotations; - this.clusterId = $.clusterId; - this.description = $.description; - this.groupIntervalSeconds = $.groupIntervalSeconds; - this.groupWaitSeconds = $.groupWaitSeconds; - this.labels = $.labels; - this.name = $.name; - this.recipients = $.recipients; - this.repeatIntervalSeconds = $.repeatIntervalSeconds; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterGroupArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterGroupArgs $; - - public Builder() { - $ = new ClusterAlterGroupArgs(); - } - - public Builder(ClusterAlterGroupArgs defaults) { - $ = new ClusterAlterGroupArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param annotations The cluster alert group annotations (map) - * - * @return builder - * - */ - public Builder annotations(@Nullable Output> annotations) { - $.annotations = annotations; - return this; - } - - /** - * @param annotations The cluster alert group annotations (map) - * - * @return builder - * - */ - public Builder annotations(Map annotations) { - return annotations(Output.of(annotations)); - } - - /** - * @param clusterId The cluster id where create cluster alert group (string) - * - * @return builder - * - */ - public Builder clusterId(Output clusterId) { - $.clusterId = clusterId; - return this; - } - - /** - * @param clusterId The cluster id where create cluster alert group (string) - * - * @return builder - * - */ - public Builder clusterId(String clusterId) { - return clusterId(Output.of(clusterId)); - } - - /** - * @param description The cluster alert group description (string) - * - * @return builder - * - */ - public Builder description(@Nullable Output description) { - $.description = description; - return this; - } - - /** - * @param description The cluster alert group description (string) - * - * @return builder - * - */ - public Builder description(String description) { - return description(Output.of(description)); - } - - /** - * @param groupIntervalSeconds The cluster alert group interval seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupIntervalSeconds(@Nullable Output groupIntervalSeconds) { - $.groupIntervalSeconds = groupIntervalSeconds; - return this; - } - - /** - * @param groupIntervalSeconds The cluster alert group interval seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { - return groupIntervalSeconds(Output.of(groupIntervalSeconds)); - } - - /** - * @param groupWaitSeconds The cluster alert group wait seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupWaitSeconds(@Nullable Output groupWaitSeconds) { - $.groupWaitSeconds = groupWaitSeconds; - return this; - } - - /** - * @param groupWaitSeconds The cluster alert group wait seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupWaitSeconds(Integer groupWaitSeconds) { - return groupWaitSeconds(Output.of(groupWaitSeconds)); - } - - /** - * @param labels The cluster alert group labels (map) - * - * @return builder - * - */ - public Builder labels(@Nullable Output> labels) { - $.labels = labels; - return this; - } - - /** - * @param labels The cluster alert group labels (map) - * - * @return builder - * - */ - public Builder labels(Map labels) { - return labels(Output.of(labels)); - } - - /** - * @param name The cluster alert group name (string) - * - * @return builder - * - */ - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - /** - * @param name The cluster alert group name (string) - * - * @return builder - * - */ - public Builder name(String name) { - return name(Output.of(name)); - } - - /** - * @param recipients The cluster alert group recipients (list) - * - * @return builder - * - */ - public Builder recipients(@Nullable Output> recipients) { - $.recipients = recipients; - return this; - } - - /** - * @param recipients The cluster alert group recipients (list) - * - * @return builder - * - */ - public Builder recipients(List recipients) { - return recipients(Output.of(recipients)); - } - - /** - * @param recipients The cluster alert group recipients (list) - * - * @return builder - * - */ - public Builder recipients(ClusterAlterGroupRecipientArgs... recipients) { - return recipients(List.of(recipients)); - } - - /** - * @param repeatIntervalSeconds The cluster alert group wait seconds. Default: `3600` (int) - * - * @return builder - * - */ - public Builder repeatIntervalSeconds(@Nullable Output repeatIntervalSeconds) { - $.repeatIntervalSeconds = repeatIntervalSeconds; - return this; - } - - /** - * @param repeatIntervalSeconds The cluster alert group wait seconds. Default: `3600` (int) - * - * @return builder - * - */ - public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { - return repeatIntervalSeconds(Output.of(repeatIntervalSeconds)); - } - - public ClusterAlterGroupArgs build() { - if ($.clusterId == null) { - throw new MissingRequiredPropertyException("ClusterAlterGroupArgs", "clusterId"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRule.java deleted file mode 100644 index 284df011b..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRule.java +++ /dev/null @@ -1,321 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Export; -import com.pulumi.core.annotations.ResourceType; -import com.pulumi.core.internal.Codegen; -import com.pulumi.rancher2.ClusterAlterRuleArgs; -import com.pulumi.rancher2.Utilities; -import com.pulumi.rancher2.inputs.ClusterAlterRuleState; -import com.pulumi.rancher2.outputs.ClusterAlterRuleEventRule; -import com.pulumi.rancher2.outputs.ClusterAlterRuleMetricRule; -import com.pulumi.rancher2.outputs.ClusterAlterRuleNodeRule; -import com.pulumi.rancher2.outputs.ClusterAlterRuleSystemServiceRule; -import java.lang.Boolean; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.Map; -import java.util.Optional; -import javax.annotation.Nullable; - -/** - * Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - * - * ## Example Usage - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.rancher2.ClusterAlertGroup; - * import com.pulumi.rancher2.ClusterAlertGroupArgs; - * import java.util.List; - * import java.util.ArrayList; - * import java.util.Map; - * import java.io.File; - * import java.nio.file.Files; - * import java.nio.file.Paths; - * - * public class App { - * public static void main(String[] args) { - * Pulumi.run(App::stack); - * } - * - * public static void stack(Context ctx) { - * var foo = new ClusterAlertGroup("foo", ClusterAlertGroupArgs.builder() - * .clusterId("<cluster_id>") - * .description("Terraform cluster alert group") - * .groupIntervalSeconds(300) - * .repeatIntervalSeconds(3600) - * .build()); - * - * } - * } - * ``` - * - * ## Import - * - * Cluster Alert Group can be imported using the Rancher cluster alert group ID - * - * ```sh - * $ pulumi import rancher2:index/clusterAlterRule:ClusterAlterRule foo &lt;CLUSTER_ALERT_GROUP_ID&gt; - * ``` - * - * @deprecated - * rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule - * - */ -@Deprecated /* rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule */ -@ResourceType(type="rancher2:index/clusterAlterRule:ClusterAlterRule") -public class ClusterAlterRule extends com.pulumi.resources.CustomResource { - /** - * The cluster alert group annotations (map) - * - */ - @Export(name="annotations", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") - private Output> annotations; - - /** - * @return The cluster alert group annotations (map) - * - */ - public Output> annotations() { - return this.annotations; - } - /** - * The cluster id where create cluster alert group (string) - * - */ - @Export(name="clusterId", refs={String.class}, tree="[0]") - private Output clusterId; - - /** - * @return The cluster id where create cluster alert group (string) - * - */ - public Output clusterId() { - return this.clusterId; - } - /** - * Alert event rule - * - */ - @Export(name="eventRule", refs={ClusterAlterRuleEventRule.class}, tree="[0]") - private Output eventRule; - - /** - * @return Alert event rule - * - */ - public Output> eventRule() { - return Codegen.optional(this.eventRule); - } - /** - * Alert rule group ID - * - */ - @Export(name="groupId", refs={String.class}, tree="[0]") - private Output groupId; - - /** - * @return Alert rule group ID - * - */ - public Output groupId() { - return this.groupId; - } - /** - * The cluster alert group interval seconds. Default: `180` (int) - * - */ - @Export(name="groupIntervalSeconds", refs={Integer.class}, tree="[0]") - private Output groupIntervalSeconds; - - /** - * @return The cluster alert group interval seconds. Default: `180` (int) - * - */ - public Output> groupIntervalSeconds() { - return Codegen.optional(this.groupIntervalSeconds); - } - /** - * The cluster alert group wait seconds. Default: `180` (int) - * - */ - @Export(name="groupWaitSeconds", refs={Integer.class}, tree="[0]") - private Output groupWaitSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `180` (int) - * - */ - public Output> groupWaitSeconds() { - return Codegen.optional(this.groupWaitSeconds); - } - /** - * Alert rule inherited - * - */ - @Export(name="inherited", refs={Boolean.class}, tree="[0]") - private Output inherited; - - /** - * @return Alert rule inherited - * - */ - public Output> inherited() { - return Codegen.optional(this.inherited); - } - /** - * The cluster alert group labels (map) - * - */ - @Export(name="labels", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") - private Output> labels; - - /** - * @return The cluster alert group labels (map) - * - */ - public Output> labels() { - return this.labels; - } - /** - * Alert metric rule - * - */ - @Export(name="metricRule", refs={ClusterAlterRuleMetricRule.class}, tree="[0]") - private Output metricRule; - - /** - * @return Alert metric rule - * - */ - public Output> metricRule() { - return Codegen.optional(this.metricRule); - } - /** - * The cluster alert group name (string) - * - */ - @Export(name="name", refs={String.class}, tree="[0]") - private Output name; - - /** - * @return The cluster alert group name (string) - * - */ - public Output name() { - return this.name; - } - /** - * Alert node rule - * - */ - @Export(name="nodeRule", refs={ClusterAlterRuleNodeRule.class}, tree="[0]") - private Output nodeRule; - - /** - * @return Alert node rule - * - */ - public Output> nodeRule() { - return Codegen.optional(this.nodeRule); - } - /** - * The cluster alert group wait seconds. Default: `3600` (int) - * - */ - @Export(name="repeatIntervalSeconds", refs={Integer.class}, tree="[0]") - private Output repeatIntervalSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `3600` (int) - * - */ - public Output> repeatIntervalSeconds() { - return Codegen.optional(this.repeatIntervalSeconds); - } - /** - * Alert rule severity - * - */ - @Export(name="severity", refs={String.class}, tree="[0]") - private Output severity; - - /** - * @return Alert rule severity - * - */ - public Output> severity() { - return Codegen.optional(this.severity); - } - /** - * Alert system service rule - * - */ - @Export(name="systemServiceRule", refs={ClusterAlterRuleSystemServiceRule.class}, tree="[0]") - private Output systemServiceRule; - - /** - * @return Alert system service rule - * - */ - public Output> systemServiceRule() { - return Codegen.optional(this.systemServiceRule); - } - - /** - * - * @param name The _unique_ name of the resulting resource. - */ - public ClusterAlterRule(String name) { - this(name, ClusterAlterRuleArgs.Empty); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - */ - public ClusterAlterRule(String name, ClusterAlterRuleArgs args) { - this(name, args, null); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - * @param options A bag of options that control this resource's behavior. - */ - public ClusterAlterRule(String name, ClusterAlterRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("rancher2:index/clusterAlterRule:ClusterAlterRule", name, args == null ? ClusterAlterRuleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); - } - - private ClusterAlterRule(String name, Output id, @Nullable ClusterAlterRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("rancher2:index/clusterAlterRule:ClusterAlterRule", name, state, makeResourceOptions(options, id)); - } - - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { - var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() - .version(Utilities.getVersion()) - .build(); - return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); - } - - /** - * Get an existing Host resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param state - * @param options Optional settings to control the behavior of the CustomResource. - */ - public static ClusterAlterRule get(String name, Output id, @Nullable ClusterAlterRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - return new ClusterAlterRule(name, id, state, options); - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRuleArgs.java deleted file mode 100644 index 64fc5816f..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRuleArgs.java +++ /dev/null @@ -1,579 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import com.pulumi.rancher2.inputs.ClusterAlterRuleEventRuleArgs; -import com.pulumi.rancher2.inputs.ClusterAlterRuleMetricRuleArgs; -import com.pulumi.rancher2.inputs.ClusterAlterRuleNodeRuleArgs; -import com.pulumi.rancher2.inputs.ClusterAlterRuleSystemServiceRuleArgs; -import java.lang.Boolean; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterRuleArgs extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterRuleArgs Empty = new ClusterAlterRuleArgs(); - - /** - * The cluster alert group annotations (map) - * - */ - @Import(name="annotations") - private @Nullable Output> annotations; - - /** - * @return The cluster alert group annotations (map) - * - */ - public Optional>> annotations() { - return Optional.ofNullable(this.annotations); - } - - /** - * The cluster id where create cluster alert group (string) - * - */ - @Import(name="clusterId", required=true) - private Output clusterId; - - /** - * @return The cluster id where create cluster alert group (string) - * - */ - public Output clusterId() { - return this.clusterId; - } - - /** - * Alert event rule - * - */ - @Import(name="eventRule") - private @Nullable Output eventRule; - - /** - * @return Alert event rule - * - */ - public Optional> eventRule() { - return Optional.ofNullable(this.eventRule); - } - - /** - * Alert rule group ID - * - */ - @Import(name="groupId", required=true) - private Output groupId; - - /** - * @return Alert rule group ID - * - */ - public Output groupId() { - return this.groupId; - } - - /** - * The cluster alert group interval seconds. Default: `180` (int) - * - */ - @Import(name="groupIntervalSeconds") - private @Nullable Output groupIntervalSeconds; - - /** - * @return The cluster alert group interval seconds. Default: `180` (int) - * - */ - public Optional> groupIntervalSeconds() { - return Optional.ofNullable(this.groupIntervalSeconds); - } - - /** - * The cluster alert group wait seconds. Default: `180` (int) - * - */ - @Import(name="groupWaitSeconds") - private @Nullable Output groupWaitSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `180` (int) - * - */ - public Optional> groupWaitSeconds() { - return Optional.ofNullable(this.groupWaitSeconds); - } - - /** - * Alert rule inherited - * - */ - @Import(name="inherited") - private @Nullable Output inherited; - - /** - * @return Alert rule inherited - * - */ - public Optional> inherited() { - return Optional.ofNullable(this.inherited); - } - - /** - * The cluster alert group labels (map) - * - */ - @Import(name="labels") - private @Nullable Output> labels; - - /** - * @return The cluster alert group labels (map) - * - */ - public Optional>> labels() { - return Optional.ofNullable(this.labels); - } - - /** - * Alert metric rule - * - */ - @Import(name="metricRule") - private @Nullable Output metricRule; - - /** - * @return Alert metric rule - * - */ - public Optional> metricRule() { - return Optional.ofNullable(this.metricRule); - } - - /** - * The cluster alert group name (string) - * - */ - @Import(name="name") - private @Nullable Output name; - - /** - * @return The cluster alert group name (string) - * - */ - public Optional> name() { - return Optional.ofNullable(this.name); - } - - /** - * Alert node rule - * - */ - @Import(name="nodeRule") - private @Nullable Output nodeRule; - - /** - * @return Alert node rule - * - */ - public Optional> nodeRule() { - return Optional.ofNullable(this.nodeRule); - } - - /** - * The cluster alert group wait seconds. Default: `3600` (int) - * - */ - @Import(name="repeatIntervalSeconds") - private @Nullable Output repeatIntervalSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `3600` (int) - * - */ - public Optional> repeatIntervalSeconds() { - return Optional.ofNullable(this.repeatIntervalSeconds); - } - - /** - * Alert rule severity - * - */ - @Import(name="severity") - private @Nullable Output severity; - - /** - * @return Alert rule severity - * - */ - public Optional> severity() { - return Optional.ofNullable(this.severity); - } - - /** - * Alert system service rule - * - */ - @Import(name="systemServiceRule") - private @Nullable Output systemServiceRule; - - /** - * @return Alert system service rule - * - */ - public Optional> systemServiceRule() { - return Optional.ofNullable(this.systemServiceRule); - } - - private ClusterAlterRuleArgs() {} - - private ClusterAlterRuleArgs(ClusterAlterRuleArgs $) { - this.annotations = $.annotations; - this.clusterId = $.clusterId; - this.eventRule = $.eventRule; - this.groupId = $.groupId; - this.groupIntervalSeconds = $.groupIntervalSeconds; - this.groupWaitSeconds = $.groupWaitSeconds; - this.inherited = $.inherited; - this.labels = $.labels; - this.metricRule = $.metricRule; - this.name = $.name; - this.nodeRule = $.nodeRule; - this.repeatIntervalSeconds = $.repeatIntervalSeconds; - this.severity = $.severity; - this.systemServiceRule = $.systemServiceRule; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterRuleArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterRuleArgs $; - - public Builder() { - $ = new ClusterAlterRuleArgs(); - } - - public Builder(ClusterAlterRuleArgs defaults) { - $ = new ClusterAlterRuleArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param annotations The cluster alert group annotations (map) - * - * @return builder - * - */ - public Builder annotations(@Nullable Output> annotations) { - $.annotations = annotations; - return this; - } - - /** - * @param annotations The cluster alert group annotations (map) - * - * @return builder - * - */ - public Builder annotations(Map annotations) { - return annotations(Output.of(annotations)); - } - - /** - * @param clusterId The cluster id where create cluster alert group (string) - * - * @return builder - * - */ - public Builder clusterId(Output clusterId) { - $.clusterId = clusterId; - return this; - } - - /** - * @param clusterId The cluster id where create cluster alert group (string) - * - * @return builder - * - */ - public Builder clusterId(String clusterId) { - return clusterId(Output.of(clusterId)); - } - - /** - * @param eventRule Alert event rule - * - * @return builder - * - */ - public Builder eventRule(@Nullable Output eventRule) { - $.eventRule = eventRule; - return this; - } - - /** - * @param eventRule Alert event rule - * - * @return builder - * - */ - public Builder eventRule(ClusterAlterRuleEventRuleArgs eventRule) { - return eventRule(Output.of(eventRule)); - } - - /** - * @param groupId Alert rule group ID - * - * @return builder - * - */ - public Builder groupId(Output groupId) { - $.groupId = groupId; - return this; - } - - /** - * @param groupId Alert rule group ID - * - * @return builder - * - */ - public Builder groupId(String groupId) { - return groupId(Output.of(groupId)); - } - - /** - * @param groupIntervalSeconds The cluster alert group interval seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupIntervalSeconds(@Nullable Output groupIntervalSeconds) { - $.groupIntervalSeconds = groupIntervalSeconds; - return this; - } - - /** - * @param groupIntervalSeconds The cluster alert group interval seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { - return groupIntervalSeconds(Output.of(groupIntervalSeconds)); - } - - /** - * @param groupWaitSeconds The cluster alert group wait seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupWaitSeconds(@Nullable Output groupWaitSeconds) { - $.groupWaitSeconds = groupWaitSeconds; - return this; - } - - /** - * @param groupWaitSeconds The cluster alert group wait seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupWaitSeconds(Integer groupWaitSeconds) { - return groupWaitSeconds(Output.of(groupWaitSeconds)); - } - - /** - * @param inherited Alert rule inherited - * - * @return builder - * - */ - public Builder inherited(@Nullable Output inherited) { - $.inherited = inherited; - return this; - } - - /** - * @param inherited Alert rule inherited - * - * @return builder - * - */ - public Builder inherited(Boolean inherited) { - return inherited(Output.of(inherited)); - } - - /** - * @param labels The cluster alert group labels (map) - * - * @return builder - * - */ - public Builder labels(@Nullable Output> labels) { - $.labels = labels; - return this; - } - - /** - * @param labels The cluster alert group labels (map) - * - * @return builder - * - */ - public Builder labels(Map labels) { - return labels(Output.of(labels)); - } - - /** - * @param metricRule Alert metric rule - * - * @return builder - * - */ - public Builder metricRule(@Nullable Output metricRule) { - $.metricRule = metricRule; - return this; - } - - /** - * @param metricRule Alert metric rule - * - * @return builder - * - */ - public Builder metricRule(ClusterAlterRuleMetricRuleArgs metricRule) { - return metricRule(Output.of(metricRule)); - } - - /** - * @param name The cluster alert group name (string) - * - * @return builder - * - */ - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - /** - * @param name The cluster alert group name (string) - * - * @return builder - * - */ - public Builder name(String name) { - return name(Output.of(name)); - } - - /** - * @param nodeRule Alert node rule - * - * @return builder - * - */ - public Builder nodeRule(@Nullable Output nodeRule) { - $.nodeRule = nodeRule; - return this; - } - - /** - * @param nodeRule Alert node rule - * - * @return builder - * - */ - public Builder nodeRule(ClusterAlterRuleNodeRuleArgs nodeRule) { - return nodeRule(Output.of(nodeRule)); - } - - /** - * @param repeatIntervalSeconds The cluster alert group wait seconds. Default: `3600` (int) - * - * @return builder - * - */ - public Builder repeatIntervalSeconds(@Nullable Output repeatIntervalSeconds) { - $.repeatIntervalSeconds = repeatIntervalSeconds; - return this; - } - - /** - * @param repeatIntervalSeconds The cluster alert group wait seconds. Default: `3600` (int) - * - * @return builder - * - */ - public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { - return repeatIntervalSeconds(Output.of(repeatIntervalSeconds)); - } - - /** - * @param severity Alert rule severity - * - * @return builder - * - */ - public Builder severity(@Nullable Output severity) { - $.severity = severity; - return this; - } - - /** - * @param severity Alert rule severity - * - * @return builder - * - */ - public Builder severity(String severity) { - return severity(Output.of(severity)); - } - - /** - * @param systemServiceRule Alert system service rule - * - * @return builder - * - */ - public Builder systemServiceRule(@Nullable Output systemServiceRule) { - $.systemServiceRule = systemServiceRule; - return this; - } - - /** - * @param systemServiceRule Alert system service rule - * - * @return builder - * - */ - public Builder systemServiceRule(ClusterAlterRuleSystemServiceRuleArgs systemServiceRule) { - return systemServiceRule(Output.of(systemServiceRule)); - } - - public ClusterAlterRuleArgs build() { - if ($.clusterId == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleArgs", "clusterId"); - } - if ($.groupId == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleArgs", "groupId"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2.java index a1f5d27aa..b3ec600f3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2.java @@ -30,273 +30,273 @@ * Clusters v2 can be imported using the Rancher Cluster v2 ID, that is in the form &lt;FLEET_NAMESPACE&gt;/&lt;CLUSTER_NAME&gt; * * ```sh - * $ pulumi import rancher2:index/clusterV2:ClusterV2 foo &lt;FLEET_NAMESPACE&gt;/&lt;CLUSTER_NAME&gt; + * $ pulumi import rancher2:index/clusterV2:ClusterV2 foo <FLEET_NAMESPACE>/<CLUSTER_NAME> * ``` * */ @ResourceType(type="rancher2:index/clusterV2:ClusterV2") public class ClusterV2 extends com.pulumi.resources.CustomResource { /** - * Optional Agent Env Vars for Rancher agent (list) + * Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * */ @Export(name="agentEnvVars", refs={List.class,ClusterV2AgentEnvVar.class}, tree="[0,1]") private Output> agentEnvVars; /** - * @return Optional Agent Env Vars for Rancher agent (list) + * @return Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * */ public Output>> agentEnvVars() { return Codegen.optional(this.agentEnvVars); } /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. * */ @Export(name="annotations", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") private Output> annotations; /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ public Output> annotations() { return this.annotations; } /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ @Export(name="cloudCredentialSecretName", refs={String.class}, tree="[0]") private Output cloudCredentialSecretName; /** - * @return Cluster V2 cloud credential secret name (string) + * @return Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ public Output> cloudCredentialSecretName() { return Codegen.optional(this.cloudCredentialSecretName); } /** - * Optional customization for cluster agent (list) + * Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. * */ @Export(name="clusterAgentDeploymentCustomizations", refs={List.class,ClusterV2ClusterAgentDeploymentCustomization.class}, tree="[0,1]") private Output> clusterAgentDeploymentCustomizations; /** - * @return Optional customization for cluster agent (list) + * @return Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. * */ public Output>> clusterAgentDeploymentCustomizations() { return Codegen.optional(this.clusterAgentDeploymentCustomizations); } /** - * (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + * (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. * */ @Export(name="clusterRegistrationToken", refs={ClusterV2ClusterRegistrationToken.class}, tree="[0]") private Output clusterRegistrationToken; /** - * @return (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + * @return (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. * */ public Output clusterRegistrationToken() { return this.clusterRegistrationToken; } /** - * (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + * (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). * */ @Export(name="clusterV1Id", refs={String.class}, tree="[0]") private Output clusterV1Id; /** - * @return (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + * @return (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). * */ public Output clusterV1Id() { return this.clusterV1Id; } /** - * Cluster V2 default cluster role for project members (string) + * Default cluster role for project members. * */ @Export(name="defaultClusterRoleForProjectMembers", refs={String.class}, tree="[0]") private Output defaultClusterRoleForProjectMembers; /** - * @return Cluster V2 default cluster role for project members (string) + * @return Default cluster role for project members. * */ public Output> defaultClusterRoleForProjectMembers() { return Codegen.optional(this.defaultClusterRoleForProjectMembers); } /** - * Cluster V2 default pod security admission configuration template name (string) + * The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * */ @Export(name="defaultPodSecurityAdmissionConfigurationTemplateName", refs={String.class}, tree="[0]") private Output defaultPodSecurityAdmissionConfigurationTemplateName; /** - * @return Cluster V2 default pod security admission configuration template name (string) + * @return The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * */ public Output> defaultPodSecurityAdmissionConfigurationTemplateName() { return Codegen.optional(this.defaultPodSecurityAdmissionConfigurationTemplateName); } /** - * Cluster V2 default pod security policy template name (string) + * Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * */ @Export(name="defaultPodSecurityPolicyTemplateName", refs={String.class}, tree="[0]") private Output defaultPodSecurityPolicyTemplateName; /** - * @return Cluster V2 default pod security policy template name (string) + * @return Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * */ public Output> defaultPodSecurityPolicyTemplateName() { return Codegen.optional(this.defaultPodSecurityPolicyTemplateName); } /** - * Enable k8s network policy at Cluster V2 (bool) + * Enable k8s network policy on the cluster. * */ @Export(name="enableNetworkPolicy", refs={Boolean.class}, tree="[0]") private Output enableNetworkPolicy; /** - * @return Enable k8s network policy at Cluster V2 (bool) + * @return Enable k8s network policy on the cluster. * */ public Output enableNetworkPolicy() { return this.enableNetworkPolicy; } /** - * Optional customization for fleet agent (list) + * Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. * */ @Export(name="fleetAgentDeploymentCustomizations", refs={List.class,ClusterV2FleetAgentDeploymentCustomization.class}, tree="[0,1]") private Output> fleetAgentDeploymentCustomizations; /** - * @return Optional customization for fleet agent (list) + * @return Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. * */ public Output>> fleetAgentDeploymentCustomizations() { return Codegen.optional(this.fleetAgentDeploymentCustomizations); } /** - * The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. * */ @Export(name="fleetNamespace", refs={String.class}, tree="[0]") private Output fleetNamespace; /** - * @return The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * @return Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. * */ public Output> fleetNamespace() { return Codegen.optional(this.fleetNamespace); } /** - * (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + * (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. * */ @Export(name="kubeConfig", refs={String.class}, tree="[0]") private Output kubeConfig; /** - * @return (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + * @return (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. * */ public Output kubeConfig() { return this.kubeConfig; } /** - * The kubernetes version of the Cluster v2 (list maxitems:1) + * The RKE2 or K3s version for the cluster. * */ @Export(name="kubernetesVersion", refs={String.class}, tree="[0]") private Output kubernetesVersion; /** - * @return The kubernetes version of the Cluster v2 (list maxitems:1) + * @return The RKE2 or K3s version for the cluster. * */ public Output kubernetesVersion() { return this.kubernetesVersion; } /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. * */ @Export(name="labels", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") private Output> labels; /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ public Output> labels() { return this.labels; } /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * */ @Export(name="localAuthEndpoint", refs={ClusterV2LocalAuthEndpoint.class}, tree="[0]") private Output localAuthEndpoint; /** - * @return Cluster V2 local auth endpoint (list maxitems:1) + * @return Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * */ public Output> localAuthEndpoint() { return Codegen.optional(this.localAuthEndpoint); } /** - * The name of the Cluster v2 (string) + * The name of the cluster. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Output name() { return this.name; } /** - * (Computed) Cluster v2 k8s resource version (string) + * (Computed, string) Cluster's k8s resource version. * */ @Export(name="resourceVersion", refs={String.class}, tree="[0]") private Output resourceVersion; /** - * @return (Computed) Cluster v2 k8s resource version (string) + * @return (Computed, string) Cluster's k8s resource version. * */ public Output resourceVersion() { return this.resourceVersion; } /** - * The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * The RKE configuration for the cluster. * */ @Export(name="rkeConfig", refs={ClusterV2RkeConfig.class}, tree="[0]") private Output rkeConfig; /** - * @return The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * @return The RKE configuration for the cluster. * */ public Output rkeConfig() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2Args.java index 98a52ec1b..d697ca13d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2Args.java @@ -26,14 +26,14 @@ public final class ClusterV2Args extends com.pulumi.resources.ResourceArgs { public static final ClusterV2Args Empty = new ClusterV2Args(); /** - * Optional Agent Env Vars for Rancher agent (list) + * Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * */ @Import(name="agentEnvVars") private @Nullable Output> agentEnvVars; /** - * @return Optional Agent Env Vars for Rancher agent (list) + * @return Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * */ public Optional>> agentEnvVars() { @@ -41,14 +41,14 @@ public Optional>> agentEnvVars() { } /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. * */ @Import(name="annotations") private @Nullable Output> annotations; /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ public Optional>> annotations() { @@ -56,14 +56,14 @@ public Optional>> annotations() { } /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ @Import(name="cloudCredentialSecretName") private @Nullable Output cloudCredentialSecretName; /** - * @return Cluster V2 cloud credential secret name (string) + * @return Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ public Optional> cloudCredentialSecretName() { @@ -71,14 +71,14 @@ public Optional> cloudCredentialSecretName() { } /** - * Optional customization for cluster agent (list) + * Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. * */ @Import(name="clusterAgentDeploymentCustomizations") private @Nullable Output> clusterAgentDeploymentCustomizations; /** - * @return Optional customization for cluster agent (list) + * @return Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. * */ public Optional>> clusterAgentDeploymentCustomizations() { @@ -86,14 +86,14 @@ public Optional>> } /** - * Cluster V2 default cluster role for project members (string) + * Default cluster role for project members. * */ @Import(name="defaultClusterRoleForProjectMembers") private @Nullable Output defaultClusterRoleForProjectMembers; /** - * @return Cluster V2 default cluster role for project members (string) + * @return Default cluster role for project members. * */ public Optional> defaultClusterRoleForProjectMembers() { @@ -101,14 +101,14 @@ public Optional> defaultClusterRoleForProjectMembers() { } /** - * Cluster V2 default pod security admission configuration template name (string) + * The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * */ @Import(name="defaultPodSecurityAdmissionConfigurationTemplateName") private @Nullable Output defaultPodSecurityAdmissionConfigurationTemplateName; /** - * @return Cluster V2 default pod security admission configuration template name (string) + * @return The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * */ public Optional> defaultPodSecurityAdmissionConfigurationTemplateName() { @@ -116,14 +116,14 @@ public Optional> defaultPodSecurityAdmissionConfigurationTemplate } /** - * Cluster V2 default pod security policy template name (string) + * Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * */ @Import(name="defaultPodSecurityPolicyTemplateName") private @Nullable Output defaultPodSecurityPolicyTemplateName; /** - * @return Cluster V2 default pod security policy template name (string) + * @return Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * */ public Optional> defaultPodSecurityPolicyTemplateName() { @@ -131,14 +131,14 @@ public Optional> defaultPodSecurityPolicyTemplateName() { } /** - * Enable k8s network policy at Cluster V2 (bool) + * Enable k8s network policy on the cluster. * */ @Import(name="enableNetworkPolicy") private @Nullable Output enableNetworkPolicy; /** - * @return Enable k8s network policy at Cluster V2 (bool) + * @return Enable k8s network policy on the cluster. * */ public Optional> enableNetworkPolicy() { @@ -146,14 +146,14 @@ public Optional> enableNetworkPolicy() { } /** - * Optional customization for fleet agent (list) + * Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. * */ @Import(name="fleetAgentDeploymentCustomizations") private @Nullable Output> fleetAgentDeploymentCustomizations; /** - * @return Optional customization for fleet agent (list) + * @return Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. * */ public Optional>> fleetAgentDeploymentCustomizations() { @@ -161,14 +161,14 @@ public Optional>> fl } /** - * The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. * */ @Import(name="fleetNamespace") private @Nullable Output fleetNamespace; /** - * @return The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * @return Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. * */ public Optional> fleetNamespace() { @@ -176,14 +176,14 @@ public Optional> fleetNamespace() { } /** - * The kubernetes version of the Cluster v2 (list maxitems:1) + * The RKE2 or K3s version for the cluster. * */ @Import(name="kubernetesVersion", required=true) private Output kubernetesVersion; /** - * @return The kubernetes version of the Cluster v2 (list maxitems:1) + * @return The RKE2 or K3s version for the cluster. * */ public Output kubernetesVersion() { @@ -191,14 +191,14 @@ public Output kubernetesVersion() { } /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. * */ @Import(name="labels") private @Nullable Output> labels; /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ public Optional>> labels() { @@ -206,14 +206,14 @@ public Optional>> labels() { } /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * */ @Import(name="localAuthEndpoint") private @Nullable Output localAuthEndpoint; /** - * @return Cluster V2 local auth endpoint (list maxitems:1) + * @return Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * */ public Optional> localAuthEndpoint() { @@ -221,14 +221,14 @@ public Optional> localAuthEndpoint() { } /** - * The name of the Cluster v2 (string) + * The name of the cluster. * */ @Import(name="name") private @Nullable Output name; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Optional> name() { @@ -236,14 +236,14 @@ public Optional> name() { } /** - * The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * The RKE configuration for the cluster. * */ @Import(name="rkeConfig") private @Nullable Output rkeConfig; /** - * @return The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * @return The RKE configuration for the cluster. * */ public Optional> rkeConfig() { @@ -289,7 +289,7 @@ public Builder(ClusterV2Args defaults) { } /** - * @param agentEnvVars Optional Agent Env Vars for Rancher agent (list) + * @param agentEnvVars Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * * @return builder * @@ -300,7 +300,7 @@ public Builder agentEnvVars(@Nullable Output> age } /** - * @param agentEnvVars Optional Agent Env Vars for Rancher agent (list) + * @param agentEnvVars Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * * @return builder * @@ -310,7 +310,7 @@ public Builder agentEnvVars(List agentEnvVars) { } /** - * @param agentEnvVars Optional Agent Env Vars for Rancher agent (list) + * @param agentEnvVars Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * * @return builder * @@ -320,7 +320,7 @@ public Builder agentEnvVars(ClusterV2AgentEnvVarArgs... agentEnvVars) { } /** - * @param annotations Annotations for the Cluster V2 (map) + * @param annotations Annotations for the Cluster. * * @return builder * @@ -331,7 +331,7 @@ public Builder annotations(@Nullable Output> annotations) { } /** - * @param annotations Annotations for the Cluster V2 (map) + * @param annotations Annotations for the Cluster. * * @return builder * @@ -341,7 +341,7 @@ public Builder annotations(Map annotations) { } /** - * @param cloudCredentialSecretName Cluster V2 cloud credential secret name (string) + * @param cloudCredentialSecretName Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * * @return builder * @@ -352,7 +352,7 @@ public Builder cloudCredentialSecretName(@Nullable Output cloudCredentia } /** - * @param cloudCredentialSecretName Cluster V2 cloud credential secret name (string) + * @param cloudCredentialSecretName Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * * @return builder * @@ -362,7 +362,7 @@ public Builder cloudCredentialSecretName(String cloudCredentialSecretName) { } /** - * @param clusterAgentDeploymentCustomizations Optional customization for cluster agent (list) + * @param clusterAgentDeploymentCustomizations Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. * * @return builder * @@ -373,7 +373,7 @@ public Builder clusterAgentDeploymentCustomizations(@Nullable Output defa } /** - * @param defaultClusterRoleForProjectMembers Cluster V2 default cluster role for project members (string) + * @param defaultClusterRoleForProjectMembers Default cluster role for project members. * * @return builder * @@ -414,7 +414,7 @@ public Builder defaultClusterRoleForProjectMembers(String defaultClusterRoleForP } /** - * @param defaultPodSecurityAdmissionConfigurationTemplateName Cluster V2 default pod security admission configuration template name (string) + * @param defaultPodSecurityAdmissionConfigurationTemplateName The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * * @return builder * @@ -425,7 +425,7 @@ public Builder defaultPodSecurityAdmissionConfigurationTemplateName(@Nullable Ou } /** - * @param defaultPodSecurityAdmissionConfigurationTemplateName Cluster V2 default pod security admission configuration template name (string) + * @param defaultPodSecurityAdmissionConfigurationTemplateName The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * * @return builder * @@ -435,7 +435,7 @@ public Builder defaultPodSecurityAdmissionConfigurationTemplateName(String defau } /** - * @param defaultPodSecurityPolicyTemplateName Cluster V2 default pod security policy template name (string) + * @param defaultPodSecurityPolicyTemplateName Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * * @return builder * @@ -446,7 +446,7 @@ public Builder defaultPodSecurityPolicyTemplateName(@Nullable Output def } /** - * @param defaultPodSecurityPolicyTemplateName Cluster V2 default pod security policy template name (string) + * @param defaultPodSecurityPolicyTemplateName Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * * @return builder * @@ -456,7 +456,7 @@ public Builder defaultPodSecurityPolicyTemplateName(String defaultPodSecurityPol } /** - * @param enableNetworkPolicy Enable k8s network policy at Cluster V2 (bool) + * @param enableNetworkPolicy Enable k8s network policy on the cluster. * * @return builder * @@ -467,7 +467,7 @@ public Builder enableNetworkPolicy(@Nullable Output enableNetworkPolicy } /** - * @param enableNetworkPolicy Enable k8s network policy at Cluster V2 (bool) + * @param enableNetworkPolicy Enable k8s network policy on the cluster. * * @return builder * @@ -477,7 +477,7 @@ public Builder enableNetworkPolicy(Boolean enableNetworkPolicy) { } /** - * @param fleetAgentDeploymentCustomizations Optional customization for fleet agent (list) + * @param fleetAgentDeploymentCustomizations Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. * * @return builder * @@ -488,7 +488,7 @@ public Builder fleetAgentDeploymentCustomizations(@Nullable Output fleetNamespace) { } /** - * @param fleetNamespace The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * @param fleetNamespace Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. * * @return builder * @@ -529,7 +529,7 @@ public Builder fleetNamespace(String fleetNamespace) { } /** - * @param kubernetesVersion The kubernetes version of the Cluster v2 (list maxitems:1) + * @param kubernetesVersion The RKE2 or K3s version for the cluster. * * @return builder * @@ -540,7 +540,7 @@ public Builder kubernetesVersion(Output kubernetesVersion) { } /** - * @param kubernetesVersion The kubernetes version of the Cluster v2 (list maxitems:1) + * @param kubernetesVersion The RKE2 or K3s version for the cluster. * * @return builder * @@ -550,7 +550,7 @@ public Builder kubernetesVersion(String kubernetesVersion) { } /** - * @param labels Labels for the Cluster V2 (map) + * @param labels Labels for the Cluster. * * @return builder * @@ -561,7 +561,7 @@ public Builder labels(@Nullable Output> labels) { } /** - * @param labels Labels for the Cluster V2 (map) + * @param labels Labels for the Cluster. * * @return builder * @@ -571,7 +571,7 @@ public Builder labels(Map labels) { } /** - * @param localAuthEndpoint Cluster V2 local auth endpoint (list maxitems:1) + * @param localAuthEndpoint Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * * @return builder * @@ -582,7 +582,7 @@ public Builder localAuthEndpoint(@Nullable Output name) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -613,7 +613,7 @@ public Builder name(String name) { } /** - * @param rkeConfig The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * @param rkeConfig The RKE configuration for the cluster. * * @return builder * @@ -624,7 +624,7 @@ public Builder rkeConfig(@Nullable Output rkeConfig) { } /** - * @param rkeConfig The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * @param rkeConfig The RKE configuration for the cluster. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRole.java b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRole.java index 690e05c68..fecfbec73 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRole.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRole.java @@ -112,6 +112,20 @@ public Output builtin() { public Output description() { return this.description; } + /** + * Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + */ + @Export(name="inheritedClusterRoles", refs={List.class,String.class}, tree="[0,1]") + private Output> inheritedClusterRoles; + + /** + * @return Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + */ + public Output>> inheritedClusterRoles() { + return Codegen.optional(this.inheritedClusterRoles); + } /** * Labels for global role object (map) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRoleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRoleArgs.java index eba641d1b..df411e619 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRoleArgs.java @@ -50,6 +50,21 @@ public Optional> description() { return Optional.ofNullable(this.description); } + /** + * Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + */ + @Import(name="inheritedClusterRoles") + private @Nullable Output> inheritedClusterRoles; + + /** + * @return Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + */ + public Optional>> inheritedClusterRoles() { + return Optional.ofNullable(this.inheritedClusterRoles); + } + /** * Labels for global role object (map) * @@ -115,6 +130,7 @@ private GlobalRoleArgs() {} private GlobalRoleArgs(GlobalRoleArgs $) { this.annotations = $.annotations; this.description = $.description; + this.inheritedClusterRoles = $.inheritedClusterRoles; this.labels = $.labels; this.name = $.name; this.newUserDefault = $.newUserDefault; @@ -181,6 +197,37 @@ public Builder description(String description) { return description(Output.of(description)); } + /** + * @param inheritedClusterRoles Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + * @return builder + * + */ + public Builder inheritedClusterRoles(@Nullable Output> inheritedClusterRoles) { + $.inheritedClusterRoles = inheritedClusterRoles; + return this; + } + + /** + * @param inheritedClusterRoles Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + * @return builder + * + */ + public Builder inheritedClusterRoles(List inheritedClusterRoles) { + return inheritedClusterRoles(Output.of(inheritedClusterRoles)); + } + + /** + * @param inheritedClusterRoles Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + * @return builder + * + */ + public Builder inheritedClusterRoles(String... inheritedClusterRoles) { + return inheritedClusterRoles(List.of(inheritedClusterRoles)); + } + /** * @param labels Labels for global role object (map) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/MachineConfigV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/MachineConfigV2.java index 34fb32640..49b7a4c4c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/MachineConfigV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/MachineConfigV2.java @@ -26,9 +26,7 @@ /** * Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above. * - * `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere` cloud providers are supported for machine config V2 - * - * **Note:** This resource is used by + * The supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`. * * ## Example Usage * ### Using the Harvester Node Driver diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBinding.java b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBinding.java index b3d1f899e..bbc44b733 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBinding.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBinding.java @@ -136,14 +136,14 @@ public Output name() { return this.name; } /** - * The project id where bind project role template (string) + * The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * */ @Export(name="projectId", refs={String.class}, tree="[0]") private Output projectId; /** - * @return The project id where bind project role template (string) + * @return The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * */ public Output projectId() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBindingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBindingArgs.java index b5953a6e8..3ff1113b1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBindingArgs.java @@ -98,14 +98,14 @@ public Optional> name() { } /** - * The project id where bind project role template (string) + * The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * */ @Import(name="projectId", required=true) private Output projectId; /** - * @return The project id where bind project role template (string) + * @return The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * */ public Output projectId() { @@ -299,7 +299,7 @@ public Builder name(String name) { } /** - * @param projectId The project id where bind project role template (string) + * @param projectId The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * * @return builder * @@ -310,7 +310,7 @@ public Builder projectId(Output projectId) { } /** - * @param projectId The project id where bind project role template (string) + * @param projectId The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/Rancher2Functions.java b/sdk/java/src/main/java/com/pulumi/rancher2/Rancher2Functions.java index a7ebbab3c..5e4fab6d2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/Rancher2Functions.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/Rancher2Functions.java @@ -20,8 +20,8 @@ import com.pulumi.rancher2.inputs.GetCloudCredentialPlainArgs; import com.pulumi.rancher2.inputs.GetClusterAlertGroupArgs; import com.pulumi.rancher2.inputs.GetClusterAlertGroupPlainArgs; -import com.pulumi.rancher2.inputs.GetClusterAlterRuleArgs; -import com.pulumi.rancher2.inputs.GetClusterAlterRulePlainArgs; +import com.pulumi.rancher2.inputs.GetClusterAlertRuleArgs; +import com.pulumi.rancher2.inputs.GetClusterAlertRulePlainArgs; import com.pulumi.rancher2.inputs.GetClusterArgs; import com.pulumi.rancher2.inputs.GetClusterDriverArgs; import com.pulumi.rancher2.inputs.GetClusterDriverPlainArgs; @@ -68,8 +68,6 @@ import com.pulumi.rancher2.inputs.GetProjectRoleTemplateBindingPlainArgs; import com.pulumi.rancher2.inputs.GetRegistryArgs; import com.pulumi.rancher2.inputs.GetRegistryPlainArgs; -import com.pulumi.rancher2.inputs.GetRoleTempalteArgs; -import com.pulumi.rancher2.inputs.GetRoleTempaltePlainArgs; import com.pulumi.rancher2.inputs.GetRoleTemplateArgs; import com.pulumi.rancher2.inputs.GetRoleTemplatePlainArgs; import com.pulumi.rancher2.inputs.GetSecretArgs; @@ -88,7 +86,7 @@ import com.pulumi.rancher2.outputs.GetCertificateResult; import com.pulumi.rancher2.outputs.GetCloudCredentialResult; import com.pulumi.rancher2.outputs.GetClusterAlertGroupResult; -import com.pulumi.rancher2.outputs.GetClusterAlterRuleResult; +import com.pulumi.rancher2.outputs.GetClusterAlertRuleResult; import com.pulumi.rancher2.outputs.GetClusterDriverResult; import com.pulumi.rancher2.outputs.GetClusterResult; import com.pulumi.rancher2.outputs.GetClusterRoleTemplateBindingResult; @@ -112,7 +110,6 @@ import com.pulumi.rancher2.outputs.GetProjectResult; import com.pulumi.rancher2.outputs.GetProjectRoleTemplateBindingResult; import com.pulumi.rancher2.outputs.GetRegistryResult; -import com.pulumi.rancher2.outputs.GetRoleTempalteResult; import com.pulumi.rancher2.outputs.GetRoleTemplateResult; import com.pulumi.rancher2.outputs.GetSecretResult; import com.pulumi.rancher2.outputs.GetSecretV2Result; @@ -1201,7 +1198,7 @@ public static CompletableFuture getClusterAlertGroup * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.rancher2.Rancher2Functions; - * import com.pulumi.rancher2.inputs.GetClusterAlterRuleArgs; + * import com.pulumi.rancher2.inputs.GetClusterAlertRuleArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1215,7 +1212,7 @@ public static CompletableFuture getClusterAlertGroup * } * * public static void stack(Context ctx) { - * final var foo = Rancher2Functions.getClusterAlterRule(GetClusterAlterRuleArgs.builder() + * final var foo = Rancher2Functions.getClusterAlertRule(GetClusterAlertRuleArgs.builder() * .clusterId("<cluster_id>") * .name("<cluster_alert_rule_name>") * .build()); @@ -1225,8 +1222,8 @@ public static CompletableFuture getClusterAlertGroup * ``` * */ - public static Output getClusterAlterRule(GetClusterAlterRuleArgs args) { - return getClusterAlterRule(args, InvokeOptions.Empty); + public static Output getClusterAlertRule(GetClusterAlertRuleArgs args) { + return getClusterAlertRule(args, InvokeOptions.Empty); } /** * Use this data source to retrieve information about a Rancher v2 cluster alert rule. @@ -1239,7 +1236,7 @@ public static Output getClusterAlterRule(GetClusterAl * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.rancher2.Rancher2Functions; - * import com.pulumi.rancher2.inputs.GetClusterAlterRuleArgs; + * import com.pulumi.rancher2.inputs.GetClusterAlertRuleArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1253,7 +1250,7 @@ public static Output getClusterAlterRule(GetClusterAl * } * * public static void stack(Context ctx) { - * final var foo = Rancher2Functions.getClusterAlterRule(GetClusterAlterRuleArgs.builder() + * final var foo = Rancher2Functions.getClusterAlertRule(GetClusterAlertRuleArgs.builder() * .clusterId("<cluster_id>") * .name("<cluster_alert_rule_name>") * .build()); @@ -1263,8 +1260,8 @@ public static Output getClusterAlterRule(GetClusterAl * ``` * */ - public static CompletableFuture getClusterAlterRulePlain(GetClusterAlterRulePlainArgs args) { - return getClusterAlterRulePlain(args, InvokeOptions.Empty); + public static CompletableFuture getClusterAlertRulePlain(GetClusterAlertRulePlainArgs args) { + return getClusterAlertRulePlain(args, InvokeOptions.Empty); } /** * Use this data source to retrieve information about a Rancher v2 cluster alert rule. @@ -1277,7 +1274,7 @@ public static CompletableFuture getClusterAlterRulePl * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.rancher2.Rancher2Functions; - * import com.pulumi.rancher2.inputs.GetClusterAlterRuleArgs; + * import com.pulumi.rancher2.inputs.GetClusterAlertRuleArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1291,7 +1288,7 @@ public static CompletableFuture getClusterAlterRulePl * } * * public static void stack(Context ctx) { - * final var foo = Rancher2Functions.getClusterAlterRule(GetClusterAlterRuleArgs.builder() + * final var foo = Rancher2Functions.getClusterAlertRule(GetClusterAlertRuleArgs.builder() * .clusterId("<cluster_id>") * .name("<cluster_alert_rule_name>") * .build()); @@ -1301,8 +1298,8 @@ public static CompletableFuture getClusterAlterRulePl * ``` * */ - public static Output getClusterAlterRule(GetClusterAlterRuleArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("rancher2:index/getClusterAlterRule:getClusterAlterRule", TypeShape.of(GetClusterAlterRuleResult.class), args, Utilities.withVersion(options)); + public static Output getClusterAlertRule(GetClusterAlertRuleArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("rancher2:index/getClusterAlertRule:getClusterAlertRule", TypeShape.of(GetClusterAlertRuleResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve information about a Rancher v2 cluster alert rule. @@ -1315,7 +1312,7 @@ public static Output getClusterAlterRule(GetClusterAl * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.rancher2.Rancher2Functions; - * import com.pulumi.rancher2.inputs.GetClusterAlterRuleArgs; + * import com.pulumi.rancher2.inputs.GetClusterAlertRuleArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1329,7 +1326,7 @@ public static Output getClusterAlterRule(GetClusterAl * } * * public static void stack(Context ctx) { - * final var foo = Rancher2Functions.getClusterAlterRule(GetClusterAlterRuleArgs.builder() + * final var foo = Rancher2Functions.getClusterAlertRule(GetClusterAlertRuleArgs.builder() * .clusterId("<cluster_id>") * .name("<cluster_alert_rule_name>") * .build()); @@ -1339,8 +1336,8 @@ public static Output getClusterAlterRule(GetClusterAl * ``` * */ - public static CompletableFuture getClusterAlterRulePlain(GetClusterAlterRulePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("rancher2:index/getClusterAlterRule:getClusterAlterRule", TypeShape.of(GetClusterAlterRuleResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getClusterAlertRulePlain(GetClusterAlertRulePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("rancher2:index/getClusterAlertRule:getClusterAlertRule", TypeShape.of(GetClusterAlertRuleResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve information about a Rancher v2 Cluster Driver resource. @@ -4530,170 +4527,6 @@ public static Output getRegistry(GetRegistryArgs args, Invoke public static CompletableFuture getRegistryPlain(GetRegistryPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("rancher2:index/getRegistry:getRegistry", TypeShape.of(GetRegistryResult.class), args, Utilities.withVersion(options)); } - /** - * Use this data source to retrieve information about a Rancher v2 role template resource. - * - * ## Example Usage - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.rancher2.Rancher2Functions; - * import com.pulumi.rancher2.inputs.GetRoleTemplateArgs; - * 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) { - * final var foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder() - * .name("foo") - * .build()); - * - * } - * } - * ``` - * - * @deprecated - * rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate - * - */ - @Deprecated /* rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate */ - public static Output getRoleTempalte(GetRoleTempalteArgs args) { - return getRoleTempalte(args, InvokeOptions.Empty); - } - /** - * Use this data source to retrieve information about a Rancher v2 role template resource. - * - * ## Example Usage - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.rancher2.Rancher2Functions; - * import com.pulumi.rancher2.inputs.GetRoleTemplateArgs; - * 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) { - * final var foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder() - * .name("foo") - * .build()); - * - * } - * } - * ``` - * - * @deprecated - * rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate - * - */ - @Deprecated /* rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate */ - public static CompletableFuture getRoleTempaltePlain(GetRoleTempaltePlainArgs args) { - return getRoleTempaltePlain(args, InvokeOptions.Empty); - } - /** - * Use this data source to retrieve information about a Rancher v2 role template resource. - * - * ## Example Usage - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.rancher2.Rancher2Functions; - * import com.pulumi.rancher2.inputs.GetRoleTemplateArgs; - * 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) { - * final var foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder() - * .name("foo") - * .build()); - * - * } - * } - * ``` - * - * @deprecated - * rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate - * - */ - @Deprecated /* rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate */ - public static Output getRoleTempalte(GetRoleTempalteArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("rancher2:index/getRoleTempalte:getRoleTempalte", TypeShape.of(GetRoleTempalteResult.class), args, Utilities.withVersion(options)); - } - /** - * Use this data source to retrieve information about a Rancher v2 role template resource. - * - * ## Example Usage - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.rancher2.Rancher2Functions; - * import com.pulumi.rancher2.inputs.GetRoleTemplateArgs; - * 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) { - * final var foo = Rancher2Functions.getRoleTemplate(GetRoleTemplateArgs.builder() - * .name("foo") - * .build()); - * - * } - * } - * ``` - * - * @deprecated - * rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate - * - */ - @Deprecated /* rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate */ - public static CompletableFuture getRoleTempaltePlain(GetRoleTempaltePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("rancher2:index/getRoleTempalte:getRoleTempalte", TypeShape.of(GetRoleTempalteResult.class), args, Utilities.withVersion(options)); - } /** * Use this data source to retrieve information about a Rancher v2 role template resource. * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/RoleTempalte.java b/sdk/java/src/main/java/com/pulumi/rancher2/RoleTempalte.java deleted file mode 100644 index 405ad74fe..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/RoleTempalte.java +++ /dev/null @@ -1,347 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Export; -import com.pulumi.core.annotations.ResourceType; -import com.pulumi.core.internal.Codegen; -import com.pulumi.rancher2.RoleTempalteArgs; -import com.pulumi.rancher2.Utilities; -import com.pulumi.rancher2.inputs.RoleTempalteState; -import com.pulumi.rancher2.outputs.RoleTempalteRule; -import java.lang.Boolean; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import javax.annotation.Nullable; - -/** - * Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. - * - * `cluster` and `project` scopes are supported for role templates. - * - * ## Example Usage - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.rancher2.RoleTemplate; - * import com.pulumi.rancher2.RoleTemplateArgs; - * import com.pulumi.rancher2.inputs.RoleTemplateRuleArgs; - * import java.util.List; - * import java.util.ArrayList; - * import java.util.Map; - * import java.io.File; - * import java.nio.file.Files; - * import java.nio.file.Paths; - * - * public class App { - * public static void main(String[] args) { - * Pulumi.run(App::stack); - * } - * - * public static void stack(Context ctx) { - * var foo = new RoleTemplate("foo", RoleTemplateArgs.builder() - * .context("cluster") - * .defaultRole(true) - * .description("Terraform role template acceptance test") - * .rules(RoleTemplateRuleArgs.builder() - * .apiGroups("*") - * .resources("secrets") - * .verbs("create") - * .build()) - * .build()); - * - * } - * } - * ``` - * ```java - * package generated_program; - * - * import com.pulumi.Context; - * import com.pulumi.Pulumi; - * import com.pulumi.core.Output; - * import com.pulumi.rancher2.RoleTemplate; - * import com.pulumi.rancher2.RoleTemplateArgs; - * import com.pulumi.rancher2.inputs.RoleTemplateRuleArgs; - * import java.util.List; - * import java.util.ArrayList; - * import java.util.Map; - * import java.io.File; - * import java.nio.file.Files; - * import java.nio.file.Paths; - * - * public class App { - * public static void main(String[] args) { - * Pulumi.run(App::stack); - * } - * - * public static void stack(Context ctx) { - * var foo = new RoleTemplate("foo", RoleTemplateArgs.builder() - * .context("project") - * .defaultRole(true) - * .description("Terraform role template acceptance test") - * .rules(RoleTemplateRuleArgs.builder() - * .apiGroups("*") - * .resources("secrets") - * .verbs("create") - * .build()) - * .build()); - * - * } - * } - * ``` - * - * ## Import - * - * Role Template can be imported using the Rancher Role Template ID - * - * ```sh - * $ pulumi import rancher2:index/roleTempalte:RoleTempalte foo &lt;role_template_id&gt; - * ``` - * - * @deprecated - * rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate - * - */ -@Deprecated /* rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate */ -@ResourceType(type="rancher2:index/roleTempalte:RoleTempalte") -public class RoleTempalte extends com.pulumi.resources.CustomResource { - /** - * Administrative role template. Default `false` (bool) - * - */ - @Export(name="administrative", refs={Boolean.class}, tree="[0]") - private Output administrative; - - /** - * @return Administrative role template. Default `false` (bool) - * - */ - public Output> administrative() { - return Codegen.optional(this.administrative); - } - /** - * Annotations for role template object (map) - * - */ - @Export(name="annotations", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") - private Output> annotations; - - /** - * @return Annotations for role template object (map) - * - */ - public Output> annotations() { - return this.annotations; - } - /** - * (Computed) Builtin role template (string) - * - */ - @Export(name="builtin", refs={Boolean.class}, tree="[0]") - private Output builtin; - - /** - * @return (Computed) Builtin role template (string) - * - */ - public Output builtin() { - return this.builtin; - } - /** - * Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - */ - @Export(name="context", refs={String.class}, tree="[0]") - private Output context; - - /** - * @return Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - */ - public Output> context() { - return Codegen.optional(this.context); - } - /** - * Default role template for new created cluster or project. Default `false` (bool) - * - */ - @Export(name="defaultRole", refs={Boolean.class}, tree="[0]") - private Output defaultRole; - - /** - * @return Default role template for new created cluster or project. Default `false` (bool) - * - */ - public Output> defaultRole() { - return Codegen.optional(this.defaultRole); - } - /** - * Role template description (string) - * - */ - @Export(name="description", refs={String.class}, tree="[0]") - private Output description; - - /** - * @return Role template description (string) - * - */ - public Output description() { - return this.description; - } - /** - * External role template. Default `false` (bool) - * - */ - @Export(name="external", refs={Boolean.class}, tree="[0]") - private Output external; - - /** - * @return External role template. Default `false` (bool) - * - */ - public Output> external() { - return Codegen.optional(this.external); - } - /** - * Hidden role template. Default `false` (bool) - * - */ - @Export(name="hidden", refs={Boolean.class}, tree="[0]") - private Output hidden; - - /** - * @return Hidden role template. Default `false` (bool) - * - */ - public Output> hidden() { - return Codegen.optional(this.hidden); - } - /** - * Labels for role template object (map) - * - */ - @Export(name="labels", refs={Map.class,String.class,Object.class}, tree="[0,1,2]") - private Output> labels; - - /** - * @return Labels for role template object (map) - * - */ - public Output> labels() { - return this.labels; - } - /** - * Locked role template. Default `false` (bool) - * - */ - @Export(name="locked", refs={Boolean.class}, tree="[0]") - private Output locked; - - /** - * @return Locked role template. Default `false` (bool) - * - */ - public Output> locked() { - return Codegen.optional(this.locked); - } - /** - * Role template name (string) - * - */ - @Export(name="name", refs={String.class}, tree="[0]") - private Output name; - - /** - * @return Role template name (string) - * - */ - public Output name() { - return this.name; - } - /** - * Inherit role template IDs (list) - * - */ - @Export(name="roleTemplateIds", refs={List.class,String.class}, tree="[0,1]") - private Output> roleTemplateIds; - - /** - * @return Inherit role template IDs (list) - * - */ - public Output> roleTemplateIds() { - return this.roleTemplateIds; - } - /** - * Role template policy rules (list) - * - */ - @Export(name="rules", refs={List.class,RoleTempalteRule.class}, tree="[0,1]") - private Output> rules; - - /** - * @return Role template policy rules (list) - * - */ - public Output> rules() { - return this.rules; - } - - /** - * - * @param name The _unique_ name of the resulting resource. - */ - public RoleTempalte(String name) { - this(name, RoleTempalteArgs.Empty); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - */ - public RoleTempalte(String name, @Nullable RoleTempalteArgs args) { - this(name, args, null); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - * @param options A bag of options that control this resource's behavior. - */ - public RoleTempalte(String name, @Nullable RoleTempalteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("rancher2:index/roleTempalte:RoleTempalte", name, args == null ? RoleTempalteArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); - } - - private RoleTempalte(String name, Output id, @Nullable RoleTempalteState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("rancher2:index/roleTempalte:RoleTempalte", name, state, makeResourceOptions(options, id)); - } - - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { - var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() - .version(Utilities.getVersion()) - .build(); - return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); - } - - /** - * Get an existing Host resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param state - * @param options Optional settings to control the behavior of the CustomResource. - */ - public static RoleTempalte get(String name, Output id, @Nullable RoleTempalteState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - return new RoleTempalte(name, id, state, options); - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/RoleTempalteArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/RoleTempalteArgs.java deleted file mode 100644 index c9d456969..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/RoleTempalteArgs.java +++ /dev/null @@ -1,515 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.rancher2.inputs.RoleTempalteRuleArgs; -import java.lang.Boolean; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class RoleTempalteArgs extends com.pulumi.resources.ResourceArgs { - - public static final RoleTempalteArgs Empty = new RoleTempalteArgs(); - - /** - * Administrative role template. Default `false` (bool) - * - */ - @Import(name="administrative") - private @Nullable Output administrative; - - /** - * @return Administrative role template. Default `false` (bool) - * - */ - public Optional> administrative() { - return Optional.ofNullable(this.administrative); - } - - /** - * Annotations for role template object (map) - * - */ - @Import(name="annotations") - private @Nullable Output> annotations; - - /** - * @return Annotations for role template object (map) - * - */ - public Optional>> annotations() { - return Optional.ofNullable(this.annotations); - } - - /** - * Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - */ - @Import(name="context") - private @Nullable Output context; - - /** - * @return Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - */ - public Optional> context() { - return Optional.ofNullable(this.context); - } - - /** - * Default role template for new created cluster or project. Default `false` (bool) - * - */ - @Import(name="defaultRole") - private @Nullable Output defaultRole; - - /** - * @return Default role template for new created cluster or project. Default `false` (bool) - * - */ - public Optional> defaultRole() { - return Optional.ofNullable(this.defaultRole); - } - - /** - * Role template description (string) - * - */ - @Import(name="description") - private @Nullable Output description; - - /** - * @return Role template description (string) - * - */ - public Optional> description() { - return Optional.ofNullable(this.description); - } - - /** - * External role template. Default `false` (bool) - * - */ - @Import(name="external") - private @Nullable Output external; - - /** - * @return External role template. Default `false` (bool) - * - */ - public Optional> external() { - return Optional.ofNullable(this.external); - } - - /** - * Hidden role template. Default `false` (bool) - * - */ - @Import(name="hidden") - private @Nullable Output hidden; - - /** - * @return Hidden role template. Default `false` (bool) - * - */ - public Optional> hidden() { - return Optional.ofNullable(this.hidden); - } - - /** - * Labels for role template object (map) - * - */ - @Import(name="labels") - private @Nullable Output> labels; - - /** - * @return Labels for role template object (map) - * - */ - public Optional>> labels() { - return Optional.ofNullable(this.labels); - } - - /** - * Locked role template. Default `false` (bool) - * - */ - @Import(name="locked") - private @Nullable Output locked; - - /** - * @return Locked role template. Default `false` (bool) - * - */ - public Optional> locked() { - return Optional.ofNullable(this.locked); - } - - /** - * Role template name (string) - * - */ - @Import(name="name") - private @Nullable Output name; - - /** - * @return Role template name (string) - * - */ - public Optional> name() { - return Optional.ofNullable(this.name); - } - - /** - * Inherit role template IDs (list) - * - */ - @Import(name="roleTemplateIds") - private @Nullable Output> roleTemplateIds; - - /** - * @return Inherit role template IDs (list) - * - */ - public Optional>> roleTemplateIds() { - return Optional.ofNullable(this.roleTemplateIds); - } - - /** - * Role template policy rules (list) - * - */ - @Import(name="rules") - private @Nullable Output> rules; - - /** - * @return Role template policy rules (list) - * - */ - public Optional>> rules() { - return Optional.ofNullable(this.rules); - } - - private RoleTempalteArgs() {} - - private RoleTempalteArgs(RoleTempalteArgs $) { - this.administrative = $.administrative; - this.annotations = $.annotations; - this.context = $.context; - this.defaultRole = $.defaultRole; - this.description = $.description; - this.external = $.external; - this.hidden = $.hidden; - this.labels = $.labels; - this.locked = $.locked; - this.name = $.name; - this.roleTemplateIds = $.roleTemplateIds; - this.rules = $.rules; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(RoleTempalteArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private RoleTempalteArgs $; - - public Builder() { - $ = new RoleTempalteArgs(); - } - - public Builder(RoleTempalteArgs defaults) { - $ = new RoleTempalteArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param administrative Administrative role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder administrative(@Nullable Output administrative) { - $.administrative = administrative; - return this; - } - - /** - * @param administrative Administrative role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder administrative(Boolean administrative) { - return administrative(Output.of(administrative)); - } - - /** - * @param annotations Annotations for role template object (map) - * - * @return builder - * - */ - public Builder annotations(@Nullable Output> annotations) { - $.annotations = annotations; - return this; - } - - /** - * @param annotations Annotations for role template object (map) - * - * @return builder - * - */ - public Builder annotations(Map annotations) { - return annotations(Output.of(annotations)); - } - - /** - * @param context Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - * @return builder - * - */ - public Builder context(@Nullable Output context) { - $.context = context; - return this; - } - - /** - * @param context Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - * @return builder - * - */ - public Builder context(String context) { - return context(Output.of(context)); - } - - /** - * @param defaultRole Default role template for new created cluster or project. Default `false` (bool) - * - * @return builder - * - */ - public Builder defaultRole(@Nullable Output defaultRole) { - $.defaultRole = defaultRole; - return this; - } - - /** - * @param defaultRole Default role template for new created cluster or project. Default `false` (bool) - * - * @return builder - * - */ - public Builder defaultRole(Boolean defaultRole) { - return defaultRole(Output.of(defaultRole)); - } - - /** - * @param description Role template description (string) - * - * @return builder - * - */ - public Builder description(@Nullable Output description) { - $.description = description; - return this; - } - - /** - * @param description Role template description (string) - * - * @return builder - * - */ - public Builder description(String description) { - return description(Output.of(description)); - } - - /** - * @param external External role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder external(@Nullable Output external) { - $.external = external; - return this; - } - - /** - * @param external External role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder external(Boolean external) { - return external(Output.of(external)); - } - - /** - * @param hidden Hidden role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder hidden(@Nullable Output hidden) { - $.hidden = hidden; - return this; - } - - /** - * @param hidden Hidden role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder hidden(Boolean hidden) { - return hidden(Output.of(hidden)); - } - - /** - * @param labels Labels for role template object (map) - * - * @return builder - * - */ - public Builder labels(@Nullable Output> labels) { - $.labels = labels; - return this; - } - - /** - * @param labels Labels for role template object (map) - * - * @return builder - * - */ - public Builder labels(Map labels) { - return labels(Output.of(labels)); - } - - /** - * @param locked Locked role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder locked(@Nullable Output locked) { - $.locked = locked; - return this; - } - - /** - * @param locked Locked role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder locked(Boolean locked) { - return locked(Output.of(locked)); - } - - /** - * @param name Role template name (string) - * - * @return builder - * - */ - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - /** - * @param name Role template name (string) - * - * @return builder - * - */ - public Builder name(String name) { - return name(Output.of(name)); - } - - /** - * @param roleTemplateIds Inherit role template IDs (list) - * - * @return builder - * - */ - public Builder roleTemplateIds(@Nullable Output> roleTemplateIds) { - $.roleTemplateIds = roleTemplateIds; - return this; - } - - /** - * @param roleTemplateIds Inherit role template IDs (list) - * - * @return builder - * - */ - public Builder roleTemplateIds(List roleTemplateIds) { - return roleTemplateIds(Output.of(roleTemplateIds)); - } - - /** - * @param roleTemplateIds Inherit role template IDs (list) - * - * @return builder - * - */ - public Builder roleTemplateIds(String... roleTemplateIds) { - return roleTemplateIds(List.of(roleTemplateIds)); - } - - /** - * @param rules Role template policy rules (list) - * - * @return builder - * - */ - public Builder rules(@Nullable Output> rules) { - $.rules = rules; - return this; - } - - /** - * @param rules Role template policy rules (list) - * - * @return builder - * - */ - public Builder rules(List rules) { - return rules(Output.of(rules)); - } - - /** - * @param rules Role template policy rules (list) - * - * @return builder - * - */ - public Builder rules(RoleTempalteRuleArgs... rules) { - return rules(List.of(rules)); - } - - public RoleTempalteArgs build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/RoleTemplate.java b/sdk/java/src/main/java/com/pulumi/rancher2/RoleTemplate.java index a0c027614..aa08eb789 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/RoleTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/RoleTemplate.java @@ -3,7 +3,6 @@ package com.pulumi.rancher2; -import com.pulumi.core.Alias; import com.pulumi.core.Output; import com.pulumi.core.annotations.Export; import com.pulumi.core.annotations.ResourceType; @@ -325,9 +324,6 @@ private RoleTemplate(String name, Output id, @Nullable RoleTemplateState private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) - .aliases(List.of( - Output.of(Alias.builder().type("rancher2:index/roleTempalte:RoleTempalte").build()) - )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ActiveDirectoryState.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ActiveDirectoryState.java deleted file mode 100644 index 217178454..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ActiveDirectoryState.java +++ /dev/null @@ -1,1366 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import java.lang.Boolean; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ActiveDirectoryState extends com.pulumi.resources.ResourceArgs { - - public static final ActiveDirectoryState Empty = new ActiveDirectoryState(); - - /** - * Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - */ - @Import(name="accessMode") - private @Nullable Output accessMode; - - /** - * @return Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - */ - public Optional> accessMode() { - return Optional.ofNullable(this.accessMode); - } - - /** - * Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - */ - @Import(name="allowedPrincipalIds") - private @Nullable Output> allowedPrincipalIds; - - /** - * @return Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - */ - public Optional>> allowedPrincipalIds() { - return Optional.ofNullable(this.allowedPrincipalIds); - } - - /** - * Annotations of the resource (map) - * - */ - @Import(name="annotations") - private @Nullable Output> annotations; - - /** - * @return Annotations of the resource (map) - * - */ - public Optional>> annotations() { - return Optional.ofNullable(this.annotations); - } - - /** - * CA certificate for TLS if selfsigned (string) - * - */ - @Import(name="certificate") - private @Nullable Output certificate; - - /** - * @return CA certificate for TLS if selfsigned (string) - * - */ - public Optional> certificate() { - return Optional.ofNullable(this.certificate); - } - - /** - * ActiveDirectory connection timeout. Default `5000` (int) - * - */ - @Import(name="connectionTimeout") - private @Nullable Output connectionTimeout; - - /** - * @return ActiveDirectory connection timeout. Default `5000` (int) - * - */ - public Optional> connectionTimeout() { - return Optional.ofNullable(this.connectionTimeout); - } - - /** - * ActiveDirectory defult login domain (string) - * - */ - @Import(name="defaultLoginDomain") - private @Nullable Output defaultLoginDomain; - - /** - * @return ActiveDirectory defult login domain (string) - * - */ - public Optional> defaultLoginDomain() { - return Optional.ofNullable(this.defaultLoginDomain); - } - - /** - * Enable auth config provider. Default `true` (bool) - * - */ - @Import(name="enabled") - private @Nullable Output enabled; - - /** - * @return Enable auth config provider. Default `true` (bool) - * - */ - public Optional> enabled() { - return Optional.ofNullable(this.enabled); - } - - /** - * Group DN attribute. Default `distinguishedName` (string) - * - */ - @Import(name="groupDnAttribute") - private @Nullable Output groupDnAttribute; - - /** - * @return Group DN attribute. Default `distinguishedName` (string) - * - */ - public Optional> groupDnAttribute() { - return Optional.ofNullable(this.groupDnAttribute); - } - - /** - * Group member mapping attribute. Default `member` (string) - * - */ - @Import(name="groupMemberMappingAttribute") - private @Nullable Output groupMemberMappingAttribute; - - /** - * @return Group member mapping attribute. Default `member` (string) - * - */ - public Optional> groupMemberMappingAttribute() { - return Optional.ofNullable(this.groupMemberMappingAttribute); - } - - /** - * Group member user attribute. Default `distinguishedName` (string) - * - */ - @Import(name="groupMemberUserAttribute") - private @Nullable Output groupMemberUserAttribute; - - /** - * @return Group member user attribute. Default `distinguishedName` (string) - * - */ - public Optional> groupMemberUserAttribute() { - return Optional.ofNullable(this.groupMemberUserAttribute); - } - - /** - * Group name attribute. Default `name` (string) - * - */ - @Import(name="groupNameAttribute") - private @Nullable Output groupNameAttribute; - - /** - * @return Group name attribute. Default `name` (string) - * - */ - public Optional> groupNameAttribute() { - return Optional.ofNullable(this.groupNameAttribute); - } - - /** - * Group object class. Default `group` (string) - * - */ - @Import(name="groupObjectClass") - private @Nullable Output groupObjectClass; - - /** - * @return Group object class. Default `group` (string) - * - */ - public Optional> groupObjectClass() { - return Optional.ofNullable(this.groupObjectClass); - } - - /** - * Group search attribute. Default `sAMAccountName` (string) - * - */ - @Import(name="groupSearchAttribute") - private @Nullable Output groupSearchAttribute; - - /** - * @return Group search attribute. Default `sAMAccountName` (string) - * - */ - public Optional> groupSearchAttribute() { - return Optional.ofNullable(this.groupSearchAttribute); - } - - /** - * Group search base (string) - * - */ - @Import(name="groupSearchBase") - private @Nullable Output groupSearchBase; - - /** - * @return Group search base (string) - * - */ - public Optional> groupSearchBase() { - return Optional.ofNullable(this.groupSearchBase); - } - - /** - * Group search filter (string) - * - */ - @Import(name="groupSearchFilter") - private @Nullable Output groupSearchFilter; - - /** - * @return Group search filter (string) - * - */ - public Optional> groupSearchFilter() { - return Optional.ofNullable(this.groupSearchFilter); - } - - /** - * Labels of the resource (map) - * - */ - @Import(name="labels") - private @Nullable Output> labels; - - /** - * @return Labels of the resource (map) - * - */ - public Optional>> labels() { - return Optional.ofNullable(this.labels); - } - - /** - * (Computed) The name of the resource (string) - * - */ - @Import(name="name") - private @Nullable Output name; - - /** - * @return (Computed) The name of the resource (string) - * - */ - public Optional> name() { - return Optional.ofNullable(this.name); - } - - /** - * Nested group membership enable. Default `false` (bool) - * - */ - @Import(name="nestedGroupMembershipEnabled") - private @Nullable Output nestedGroupMembershipEnabled; - - /** - * @return Nested group membership enable. Default `false` (bool) - * - */ - public Optional> nestedGroupMembershipEnabled() { - return Optional.ofNullable(this.nestedGroupMembershipEnabled); - } - - /** - * ActiveDirectory port. Default `389` (int) - * - */ - @Import(name="port") - private @Nullable Output port; - - /** - * @return ActiveDirectory port. Default `389` (int) - * - */ - public Optional> port() { - return Optional.ofNullable(this.port); - } - - /** - * ActiveDirectory servers list (list) - * - */ - @Import(name="servers") - private @Nullable Output> servers; - - /** - * @return ActiveDirectory servers list (list) - * - */ - public Optional>> servers() { - return Optional.ofNullable(this.servers); - } - - /** - * Service account password for access ActiveDirectory service (string) - * - */ - @Import(name="serviceAccountPassword") - private @Nullable Output serviceAccountPassword; - - /** - * @return Service account password for access ActiveDirectory service (string) - * - */ - public Optional> serviceAccountPassword() { - return Optional.ofNullable(this.serviceAccountPassword); - } - - /** - * Service account DN for access ActiveDirectory service (string) - * - */ - @Import(name="serviceAccountUsername") - private @Nullable Output serviceAccountUsername; - - /** - * @return Service account DN for access ActiveDirectory service (string) - * - */ - public Optional> serviceAccountUsername() { - return Optional.ofNullable(this.serviceAccountUsername); - } - - /** - * Enable start TLS connection (bool) - * - */ - @Import(name="startTls") - private @Nullable Output startTls; - - /** - * @return Enable start TLS connection (bool) - * - */ - public Optional> startTls() { - return Optional.ofNullable(this.startTls); - } - - /** - * Password for test access to ActiveDirectory service (string) - * - */ - @Import(name="testPassword") - private @Nullable Output testPassword; - - /** - * @return Password for test access to ActiveDirectory service (string) - * - */ - public Optional> testPassword() { - return Optional.ofNullable(this.testPassword); - } - - /** - * Username for test access to ActiveDirectory service (string) - * - */ - @Import(name="testUsername") - private @Nullable Output testUsername; - - /** - * @return Username for test access to ActiveDirectory service (string) - * - */ - public Optional> testUsername() { - return Optional.ofNullable(this.testUsername); - } - - /** - * Enable TLS connection (bool) - * - */ - @Import(name="tls") - private @Nullable Output tls; - - /** - * @return Enable TLS connection (bool) - * - */ - public Optional> tls() { - return Optional.ofNullable(this.tls); - } - - /** - * (Computed) The type of the resource (string) - * - */ - @Import(name="type") - private @Nullable Output type; - - /** - * @return (Computed) The type of the resource (string) - * - */ - public Optional> type() { - return Optional.ofNullable(this.type); - } - - /** - * User disabled bit mask. Default `2` (int) - * - */ - @Import(name="userDisabledBitMask") - private @Nullable Output userDisabledBitMask; - - /** - * @return User disabled bit mask. Default `2` (int) - * - */ - public Optional> userDisabledBitMask() { - return Optional.ofNullable(this.userDisabledBitMask); - } - - /** - * User enable attribute (string) - * - */ - @Import(name="userEnabledAttribute") - private @Nullable Output userEnabledAttribute; - - /** - * @return User enable attribute (string) - * - */ - public Optional> userEnabledAttribute() { - return Optional.ofNullable(this.userEnabledAttribute); - } - - /** - * User login attribute. Default `sAMAccountName` (string) - * - */ - @Import(name="userLoginAttribute") - private @Nullable Output userLoginAttribute; - - /** - * @return User login attribute. Default `sAMAccountName` (string) - * - */ - public Optional> userLoginAttribute() { - return Optional.ofNullable(this.userLoginAttribute); - } - - /** - * User name attribute. Default `name` (string) - * - */ - @Import(name="userNameAttribute") - private @Nullable Output userNameAttribute; - - /** - * @return User name attribute. Default `name` (string) - * - */ - public Optional> userNameAttribute() { - return Optional.ofNullable(this.userNameAttribute); - } - - /** - * User object class. Default `person` (string) - * - */ - @Import(name="userObjectClass") - private @Nullable Output userObjectClass; - - /** - * @return User object class. Default `person` (string) - * - */ - public Optional> userObjectClass() { - return Optional.ofNullable(this.userObjectClass); - } - - /** - * User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - */ - @Import(name="userSearchAttribute") - private @Nullable Output userSearchAttribute; - - /** - * @return User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - */ - public Optional> userSearchAttribute() { - return Optional.ofNullable(this.userSearchAttribute); - } - - /** - * User search base DN (string) - * - */ - @Import(name="userSearchBase") - private @Nullable Output userSearchBase; - - /** - * @return User search base DN (string) - * - */ - public Optional> userSearchBase() { - return Optional.ofNullable(this.userSearchBase); - } - - /** - * User search filter (string) - * - */ - @Import(name="userSearchFilter") - private @Nullable Output userSearchFilter; - - /** - * @return User search filter (string) - * - */ - public Optional> userSearchFilter() { - return Optional.ofNullable(this.userSearchFilter); - } - - private ActiveDirectoryState() {} - - private ActiveDirectoryState(ActiveDirectoryState $) { - this.accessMode = $.accessMode; - this.allowedPrincipalIds = $.allowedPrincipalIds; - this.annotations = $.annotations; - this.certificate = $.certificate; - this.connectionTimeout = $.connectionTimeout; - this.defaultLoginDomain = $.defaultLoginDomain; - this.enabled = $.enabled; - this.groupDnAttribute = $.groupDnAttribute; - this.groupMemberMappingAttribute = $.groupMemberMappingAttribute; - this.groupMemberUserAttribute = $.groupMemberUserAttribute; - this.groupNameAttribute = $.groupNameAttribute; - this.groupObjectClass = $.groupObjectClass; - this.groupSearchAttribute = $.groupSearchAttribute; - this.groupSearchBase = $.groupSearchBase; - this.groupSearchFilter = $.groupSearchFilter; - this.labels = $.labels; - this.name = $.name; - this.nestedGroupMembershipEnabled = $.nestedGroupMembershipEnabled; - this.port = $.port; - this.servers = $.servers; - this.serviceAccountPassword = $.serviceAccountPassword; - this.serviceAccountUsername = $.serviceAccountUsername; - this.startTls = $.startTls; - this.testPassword = $.testPassword; - this.testUsername = $.testUsername; - this.tls = $.tls; - this.type = $.type; - this.userDisabledBitMask = $.userDisabledBitMask; - this.userEnabledAttribute = $.userEnabledAttribute; - this.userLoginAttribute = $.userLoginAttribute; - this.userNameAttribute = $.userNameAttribute; - this.userObjectClass = $.userObjectClass; - this.userSearchAttribute = $.userSearchAttribute; - this.userSearchBase = $.userSearchBase; - this.userSearchFilter = $.userSearchFilter; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ActiveDirectoryState defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ActiveDirectoryState $; - - public Builder() { - $ = new ActiveDirectoryState(); - } - - public Builder(ActiveDirectoryState defaults) { - $ = new ActiveDirectoryState(Objects.requireNonNull(defaults)); - } - - /** - * @param accessMode Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - * @return builder - * - */ - public Builder accessMode(@Nullable Output accessMode) { - $.accessMode = accessMode; - return this; - } - - /** - * @param accessMode Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - * - * @return builder - * - */ - public Builder accessMode(String accessMode) { - return accessMode(Output.of(accessMode)); - } - - /** - * @param allowedPrincipalIds Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - * @return builder - * - */ - public Builder allowedPrincipalIds(@Nullable Output> allowedPrincipalIds) { - $.allowedPrincipalIds = allowedPrincipalIds; - return this; - } - - /** - * @param allowedPrincipalIds Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - * @return builder - * - */ - public Builder allowedPrincipalIds(List allowedPrincipalIds) { - return allowedPrincipalIds(Output.of(allowedPrincipalIds)); - } - - /** - * @param allowedPrincipalIds Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://<DN>` `activedirectory_group://<DN>`. The local admin (`local://<admin id>`) and the `test_username` must be added too. (list) - * - * @return builder - * - */ - public Builder allowedPrincipalIds(String... allowedPrincipalIds) { - return allowedPrincipalIds(List.of(allowedPrincipalIds)); - } - - /** - * @param annotations Annotations of the resource (map) - * - * @return builder - * - */ - public Builder annotations(@Nullable Output> annotations) { - $.annotations = annotations; - return this; - } - - /** - * @param annotations Annotations of the resource (map) - * - * @return builder - * - */ - public Builder annotations(Map annotations) { - return annotations(Output.of(annotations)); - } - - /** - * @param certificate CA certificate for TLS if selfsigned (string) - * - * @return builder - * - */ - public Builder certificate(@Nullable Output certificate) { - $.certificate = certificate; - return this; - } - - /** - * @param certificate CA certificate for TLS if selfsigned (string) - * - * @return builder - * - */ - public Builder certificate(String certificate) { - return certificate(Output.of(certificate)); - } - - /** - * @param connectionTimeout ActiveDirectory connection timeout. Default `5000` (int) - * - * @return builder - * - */ - public Builder connectionTimeout(@Nullable Output connectionTimeout) { - $.connectionTimeout = connectionTimeout; - return this; - } - - /** - * @param connectionTimeout ActiveDirectory connection timeout. Default `5000` (int) - * - * @return builder - * - */ - public Builder connectionTimeout(Integer connectionTimeout) { - return connectionTimeout(Output.of(connectionTimeout)); - } - - /** - * @param defaultLoginDomain ActiveDirectory defult login domain (string) - * - * @return builder - * - */ - public Builder defaultLoginDomain(@Nullable Output defaultLoginDomain) { - $.defaultLoginDomain = defaultLoginDomain; - return this; - } - - /** - * @param defaultLoginDomain ActiveDirectory defult login domain (string) - * - * @return builder - * - */ - public Builder defaultLoginDomain(String defaultLoginDomain) { - return defaultLoginDomain(Output.of(defaultLoginDomain)); - } - - /** - * @param enabled Enable auth config provider. Default `true` (bool) - * - * @return builder - * - */ - public Builder enabled(@Nullable Output enabled) { - $.enabled = enabled; - return this; - } - - /** - * @param enabled Enable auth config provider. Default `true` (bool) - * - * @return builder - * - */ - public Builder enabled(Boolean enabled) { - return enabled(Output.of(enabled)); - } - - /** - * @param groupDnAttribute Group DN attribute. Default `distinguishedName` (string) - * - * @return builder - * - */ - public Builder groupDnAttribute(@Nullable Output groupDnAttribute) { - $.groupDnAttribute = groupDnAttribute; - return this; - } - - /** - * @param groupDnAttribute Group DN attribute. Default `distinguishedName` (string) - * - * @return builder - * - */ - public Builder groupDnAttribute(String groupDnAttribute) { - return groupDnAttribute(Output.of(groupDnAttribute)); - } - - /** - * @param groupMemberMappingAttribute Group member mapping attribute. Default `member` (string) - * - * @return builder - * - */ - public Builder groupMemberMappingAttribute(@Nullable Output groupMemberMappingAttribute) { - $.groupMemberMappingAttribute = groupMemberMappingAttribute; - return this; - } - - /** - * @param groupMemberMappingAttribute Group member mapping attribute. Default `member` (string) - * - * @return builder - * - */ - public Builder groupMemberMappingAttribute(String groupMemberMappingAttribute) { - return groupMemberMappingAttribute(Output.of(groupMemberMappingAttribute)); - } - - /** - * @param groupMemberUserAttribute Group member user attribute. Default `distinguishedName` (string) - * - * @return builder - * - */ - public Builder groupMemberUserAttribute(@Nullable Output groupMemberUserAttribute) { - $.groupMemberUserAttribute = groupMemberUserAttribute; - return this; - } - - /** - * @param groupMemberUserAttribute Group member user attribute. Default `distinguishedName` (string) - * - * @return builder - * - */ - public Builder groupMemberUserAttribute(String groupMemberUserAttribute) { - return groupMemberUserAttribute(Output.of(groupMemberUserAttribute)); - } - - /** - * @param groupNameAttribute Group name attribute. Default `name` (string) - * - * @return builder - * - */ - public Builder groupNameAttribute(@Nullable Output groupNameAttribute) { - $.groupNameAttribute = groupNameAttribute; - return this; - } - - /** - * @param groupNameAttribute Group name attribute. Default `name` (string) - * - * @return builder - * - */ - public Builder groupNameAttribute(String groupNameAttribute) { - return groupNameAttribute(Output.of(groupNameAttribute)); - } - - /** - * @param groupObjectClass Group object class. Default `group` (string) - * - * @return builder - * - */ - public Builder groupObjectClass(@Nullable Output groupObjectClass) { - $.groupObjectClass = groupObjectClass; - return this; - } - - /** - * @param groupObjectClass Group object class. Default `group` (string) - * - * @return builder - * - */ - public Builder groupObjectClass(String groupObjectClass) { - return groupObjectClass(Output.of(groupObjectClass)); - } - - /** - * @param groupSearchAttribute Group search attribute. Default `sAMAccountName` (string) - * - * @return builder - * - */ - public Builder groupSearchAttribute(@Nullable Output groupSearchAttribute) { - $.groupSearchAttribute = groupSearchAttribute; - return this; - } - - /** - * @param groupSearchAttribute Group search attribute. Default `sAMAccountName` (string) - * - * @return builder - * - */ - public Builder groupSearchAttribute(String groupSearchAttribute) { - return groupSearchAttribute(Output.of(groupSearchAttribute)); - } - - /** - * @param groupSearchBase Group search base (string) - * - * @return builder - * - */ - public Builder groupSearchBase(@Nullable Output groupSearchBase) { - $.groupSearchBase = groupSearchBase; - return this; - } - - /** - * @param groupSearchBase Group search base (string) - * - * @return builder - * - */ - public Builder groupSearchBase(String groupSearchBase) { - return groupSearchBase(Output.of(groupSearchBase)); - } - - /** - * @param groupSearchFilter Group search filter (string) - * - * @return builder - * - */ - public Builder groupSearchFilter(@Nullable Output groupSearchFilter) { - $.groupSearchFilter = groupSearchFilter; - return this; - } - - /** - * @param groupSearchFilter Group search filter (string) - * - * @return builder - * - */ - public Builder groupSearchFilter(String groupSearchFilter) { - return groupSearchFilter(Output.of(groupSearchFilter)); - } - - /** - * @param labels Labels of the resource (map) - * - * @return builder - * - */ - public Builder labels(@Nullable Output> labels) { - $.labels = labels; - return this; - } - - /** - * @param labels Labels of the resource (map) - * - * @return builder - * - */ - public Builder labels(Map labels) { - return labels(Output.of(labels)); - } - - /** - * @param name (Computed) The name of the resource (string) - * - * @return builder - * - */ - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - /** - * @param name (Computed) The name of the resource (string) - * - * @return builder - * - */ - public Builder name(String name) { - return name(Output.of(name)); - } - - /** - * @param nestedGroupMembershipEnabled Nested group membership enable. Default `false` (bool) - * - * @return builder - * - */ - public Builder nestedGroupMembershipEnabled(@Nullable Output nestedGroupMembershipEnabled) { - $.nestedGroupMembershipEnabled = nestedGroupMembershipEnabled; - return this; - } - - /** - * @param nestedGroupMembershipEnabled Nested group membership enable. Default `false` (bool) - * - * @return builder - * - */ - public Builder nestedGroupMembershipEnabled(Boolean nestedGroupMembershipEnabled) { - return nestedGroupMembershipEnabled(Output.of(nestedGroupMembershipEnabled)); - } - - /** - * @param port ActiveDirectory port. Default `389` (int) - * - * @return builder - * - */ - public Builder port(@Nullable Output port) { - $.port = port; - return this; - } - - /** - * @param port ActiveDirectory port. Default `389` (int) - * - * @return builder - * - */ - public Builder port(Integer port) { - return port(Output.of(port)); - } - - /** - * @param servers ActiveDirectory servers list (list) - * - * @return builder - * - */ - public Builder servers(@Nullable Output> servers) { - $.servers = servers; - return this; - } - - /** - * @param servers ActiveDirectory servers list (list) - * - * @return builder - * - */ - public Builder servers(List servers) { - return servers(Output.of(servers)); - } - - /** - * @param servers ActiveDirectory servers list (list) - * - * @return builder - * - */ - public Builder servers(String... servers) { - return servers(List.of(servers)); - } - - /** - * @param serviceAccountPassword Service account password for access ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder serviceAccountPassword(@Nullable Output serviceAccountPassword) { - $.serviceAccountPassword = serviceAccountPassword; - return this; - } - - /** - * @param serviceAccountPassword Service account password for access ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder serviceAccountPassword(String serviceAccountPassword) { - return serviceAccountPassword(Output.of(serviceAccountPassword)); - } - - /** - * @param serviceAccountUsername Service account DN for access ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder serviceAccountUsername(@Nullable Output serviceAccountUsername) { - $.serviceAccountUsername = serviceAccountUsername; - return this; - } - - /** - * @param serviceAccountUsername Service account DN for access ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder serviceAccountUsername(String serviceAccountUsername) { - return serviceAccountUsername(Output.of(serviceAccountUsername)); - } - - /** - * @param startTls Enable start TLS connection (bool) - * - * @return builder - * - */ - public Builder startTls(@Nullable Output startTls) { - $.startTls = startTls; - return this; - } - - /** - * @param startTls Enable start TLS connection (bool) - * - * @return builder - * - */ - public Builder startTls(Boolean startTls) { - return startTls(Output.of(startTls)); - } - - /** - * @param testPassword Password for test access to ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder testPassword(@Nullable Output testPassword) { - $.testPassword = testPassword; - return this; - } - - /** - * @param testPassword Password for test access to ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder testPassword(String testPassword) { - return testPassword(Output.of(testPassword)); - } - - /** - * @param testUsername Username for test access to ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder testUsername(@Nullable Output testUsername) { - $.testUsername = testUsername; - return this; - } - - /** - * @param testUsername Username for test access to ActiveDirectory service (string) - * - * @return builder - * - */ - public Builder testUsername(String testUsername) { - return testUsername(Output.of(testUsername)); - } - - /** - * @param tls Enable TLS connection (bool) - * - * @return builder - * - */ - public Builder tls(@Nullable Output tls) { - $.tls = tls; - return this; - } - - /** - * @param tls Enable TLS connection (bool) - * - * @return builder - * - */ - public Builder tls(Boolean tls) { - return tls(Output.of(tls)); - } - - /** - * @param type (Computed) The type of the resource (string) - * - * @return builder - * - */ - public Builder type(@Nullable Output type) { - $.type = type; - return this; - } - - /** - * @param type (Computed) The type of the resource (string) - * - * @return builder - * - */ - public Builder type(String type) { - return type(Output.of(type)); - } - - /** - * @param userDisabledBitMask User disabled bit mask. Default `2` (int) - * - * @return builder - * - */ - public Builder userDisabledBitMask(@Nullable Output userDisabledBitMask) { - $.userDisabledBitMask = userDisabledBitMask; - return this; - } - - /** - * @param userDisabledBitMask User disabled bit mask. Default `2` (int) - * - * @return builder - * - */ - public Builder userDisabledBitMask(Integer userDisabledBitMask) { - return userDisabledBitMask(Output.of(userDisabledBitMask)); - } - - /** - * @param userEnabledAttribute User enable attribute (string) - * - * @return builder - * - */ - public Builder userEnabledAttribute(@Nullable Output userEnabledAttribute) { - $.userEnabledAttribute = userEnabledAttribute; - return this; - } - - /** - * @param userEnabledAttribute User enable attribute (string) - * - * @return builder - * - */ - public Builder userEnabledAttribute(String userEnabledAttribute) { - return userEnabledAttribute(Output.of(userEnabledAttribute)); - } - - /** - * @param userLoginAttribute User login attribute. Default `sAMAccountName` (string) - * - * @return builder - * - */ - public Builder userLoginAttribute(@Nullable Output userLoginAttribute) { - $.userLoginAttribute = userLoginAttribute; - return this; - } - - /** - * @param userLoginAttribute User login attribute. Default `sAMAccountName` (string) - * - * @return builder - * - */ - public Builder userLoginAttribute(String userLoginAttribute) { - return userLoginAttribute(Output.of(userLoginAttribute)); - } - - /** - * @param userNameAttribute User name attribute. Default `name` (string) - * - * @return builder - * - */ - public Builder userNameAttribute(@Nullable Output userNameAttribute) { - $.userNameAttribute = userNameAttribute; - return this; - } - - /** - * @param userNameAttribute User name attribute. Default `name` (string) - * - * @return builder - * - */ - public Builder userNameAttribute(String userNameAttribute) { - return userNameAttribute(Output.of(userNameAttribute)); - } - - /** - * @param userObjectClass User object class. Default `person` (string) - * - * @return builder - * - */ - public Builder userObjectClass(@Nullable Output userObjectClass) { - $.userObjectClass = userObjectClass; - return this; - } - - /** - * @param userObjectClass User object class. Default `person` (string) - * - * @return builder - * - */ - public Builder userObjectClass(String userObjectClass) { - return userObjectClass(Output.of(userObjectClass)); - } - - /** - * @param userSearchAttribute User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - * @return builder - * - */ - public Builder userSearchAttribute(@Nullable Output userSearchAttribute) { - $.userSearchAttribute = userSearchAttribute; - return this; - } - - /** - * @param userSearchAttribute User search attribute. Default `sAMAccountName|sn|givenName` (string) - * - * @return builder - * - */ - public Builder userSearchAttribute(String userSearchAttribute) { - return userSearchAttribute(Output.of(userSearchAttribute)); - } - - /** - * @param userSearchBase User search base DN (string) - * - * @return builder - * - */ - public Builder userSearchBase(@Nullable Output userSearchBase) { - $.userSearchBase = userSearchBase; - return this; - } - - /** - * @param userSearchBase User search base DN (string) - * - * @return builder - * - */ - public Builder userSearchBase(String userSearchBase) { - return userSearchBase(Output.of(userSearchBase)); - } - - /** - * @param userSearchFilter User search filter (string) - * - * @return builder - * - */ - public Builder userSearchFilter(@Nullable Output userSearchFilter) { - $.userSearchFilter = userSearchFilter; - return this; - } - - /** - * @param userSearchFilter User search filter (string) - * - * @return builder - * - */ - public Builder userSearchFilter(String userSearchFilter) { - return userSearchFilter(Output.of(userSearchFilter)); - } - - public ActiveDirectoryState build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/AppV2State.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/AppV2State.java index 1085f4a89..4185e037c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/AppV2State.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/AppV2State.java @@ -248,14 +248,14 @@ public Optional> repoName() { } /** - * (Computed) The system default registry of the app (string) + * System default registry providing images for app deployment (string) * */ @Import(name="systemDefaultRegistry") private @Nullable Output systemDefaultRegistry; /** - * @return (Computed) The system default registry of the app (string) + * @return System default registry providing images for app deployment (string) * */ public Optional> systemDefaultRegistry() { @@ -653,7 +653,7 @@ public Builder repoName(String repoName) { } /** - * @param systemDefaultRegistry (Computed) The system default registry of the app (string) + * @param systemDefaultRegistry System default registry providing images for app deployment (string) * * @return builder * @@ -664,7 +664,7 @@ public Builder systemDefaultRegistry(@Nullable Output systemDefaultRegis } /** - * @param systemDefaultRegistry (Computed) The system default registry of the app (string) + * @param systemDefaultRegistry System default registry providing images for app deployment (string) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CatalogV2State.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CatalogV2State.java index 3f010b138..3139a7712 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CatalogV2State.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CatalogV2State.java @@ -34,14 +34,14 @@ public Optional>> annotations() { } /** - * PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * */ @Import(name="caBundle") private @Nullable Output caBundle; /** - * @return PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * @return CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * */ public Optional> caBundle() { @@ -303,7 +303,7 @@ public Builder annotations(Map annotations) { } /** - * @param caBundle PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * @param caBundle CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * * @return builder * @@ -314,7 +314,7 @@ public Builder caBundle(@Nullable Output caBundle) { } /** - * @param caBundle PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * @param caBundle CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupRecipientArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupRecipientArgs.java deleted file mode 100644 index 5cc21ada6..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupRecipientArgs.java +++ /dev/null @@ -1,199 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.Boolean; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterGroupRecipientArgs extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterGroupRecipientArgs Empty = new ClusterAlterGroupRecipientArgs(); - - /** - * Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - * - */ - @Import(name="defaultRecipient") - private @Nullable Output defaultRecipient; - - /** - * @return Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - * - */ - public Optional> defaultRecipient() { - return Optional.ofNullable(this.defaultRecipient); - } - - /** - * Recipient notifier ID (string) - * - */ - @Import(name="notifierId", required=true) - private Output notifierId; - - /** - * @return Recipient notifier ID (string) - * - */ - public Output notifierId() { - return this.notifierId; - } - - /** - * Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - * - */ - @Import(name="notifierType") - private @Nullable Output notifierType; - - /** - * @return Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - * - */ - public Optional> notifierType() { - return Optional.ofNullable(this.notifierType); - } - - /** - * Recipient (string) - * - */ - @Import(name="recipient") - private @Nullable Output recipient; - - /** - * @return Recipient (string) - * - */ - public Optional> recipient() { - return Optional.ofNullable(this.recipient); - } - - private ClusterAlterGroupRecipientArgs() {} - - private ClusterAlterGroupRecipientArgs(ClusterAlterGroupRecipientArgs $) { - this.defaultRecipient = $.defaultRecipient; - this.notifierId = $.notifierId; - this.notifierType = $.notifierType; - this.recipient = $.recipient; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterGroupRecipientArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterGroupRecipientArgs $; - - public Builder() { - $ = new ClusterAlterGroupRecipientArgs(); - } - - public Builder(ClusterAlterGroupRecipientArgs defaults) { - $ = new ClusterAlterGroupRecipientArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param defaultRecipient Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - * - * @return builder - * - */ - public Builder defaultRecipient(@Nullable Output defaultRecipient) { - $.defaultRecipient = defaultRecipient; - return this; - } - - /** - * @param defaultRecipient Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - * - * @return builder - * - */ - public Builder defaultRecipient(Boolean defaultRecipient) { - return defaultRecipient(Output.of(defaultRecipient)); - } - - /** - * @param notifierId Recipient notifier ID (string) - * - * @return builder - * - */ - public Builder notifierId(Output notifierId) { - $.notifierId = notifierId; - return this; - } - - /** - * @param notifierId Recipient notifier ID (string) - * - * @return builder - * - */ - public Builder notifierId(String notifierId) { - return notifierId(Output.of(notifierId)); - } - - /** - * @param notifierType Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - * - * @return builder - * - */ - public Builder notifierType(@Nullable Output notifierType) { - $.notifierType = notifierType; - return this; - } - - /** - * @param notifierType Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - * - * @return builder - * - */ - public Builder notifierType(String notifierType) { - return notifierType(Output.of(notifierType)); - } - - /** - * @param recipient Recipient (string) - * - * @return builder - * - */ - public Builder recipient(@Nullable Output recipient) { - $.recipient = recipient; - return this; - } - - /** - * @param recipient Recipient (string) - * - * @return builder - * - */ - public Builder recipient(String recipient) { - return recipient(Output.of(recipient)); - } - - public ClusterAlterGroupRecipientArgs build() { - if ($.notifierId == null) { - throw new MissingRequiredPropertyException("ClusterAlterGroupRecipientArgs", "notifierId"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupState.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupState.java deleted file mode 100644 index 49cd10ed5..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupState.java +++ /dev/null @@ -1,394 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.rancher2.inputs.ClusterAlterGroupRecipientArgs; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterGroupState extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterGroupState Empty = new ClusterAlterGroupState(); - - /** - * The cluster alert group annotations (map) - * - */ - @Import(name="annotations") - private @Nullable Output> annotations; - - /** - * @return The cluster alert group annotations (map) - * - */ - public Optional>> annotations() { - return Optional.ofNullable(this.annotations); - } - - /** - * The cluster id where create cluster alert group (string) - * - */ - @Import(name="clusterId") - private @Nullable Output clusterId; - - /** - * @return The cluster id where create cluster alert group (string) - * - */ - public Optional> clusterId() { - return Optional.ofNullable(this.clusterId); - } - - /** - * The cluster alert group description (string) - * - */ - @Import(name="description") - private @Nullable Output description; - - /** - * @return The cluster alert group description (string) - * - */ - public Optional> description() { - return Optional.ofNullable(this.description); - } - - /** - * The cluster alert group interval seconds. Default: `180` (int) - * - */ - @Import(name="groupIntervalSeconds") - private @Nullable Output groupIntervalSeconds; - - /** - * @return The cluster alert group interval seconds. Default: `180` (int) - * - */ - public Optional> groupIntervalSeconds() { - return Optional.ofNullable(this.groupIntervalSeconds); - } - - /** - * The cluster alert group wait seconds. Default: `180` (int) - * - */ - @Import(name="groupWaitSeconds") - private @Nullable Output groupWaitSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `180` (int) - * - */ - public Optional> groupWaitSeconds() { - return Optional.ofNullable(this.groupWaitSeconds); - } - - /** - * The cluster alert group labels (map) - * - */ - @Import(name="labels") - private @Nullable Output> labels; - - /** - * @return The cluster alert group labels (map) - * - */ - public Optional>> labels() { - return Optional.ofNullable(this.labels); - } - - /** - * The cluster alert group name (string) - * - */ - @Import(name="name") - private @Nullable Output name; - - /** - * @return The cluster alert group name (string) - * - */ - public Optional> name() { - return Optional.ofNullable(this.name); - } - - /** - * The cluster alert group recipients (list) - * - */ - @Import(name="recipients") - private @Nullable Output> recipients; - - /** - * @return The cluster alert group recipients (list) - * - */ - public Optional>> recipients() { - return Optional.ofNullable(this.recipients); - } - - /** - * The cluster alert group wait seconds. Default: `3600` (int) - * - */ - @Import(name="repeatIntervalSeconds") - private @Nullable Output repeatIntervalSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `3600` (int) - * - */ - public Optional> repeatIntervalSeconds() { - return Optional.ofNullable(this.repeatIntervalSeconds); - } - - private ClusterAlterGroupState() {} - - private ClusterAlterGroupState(ClusterAlterGroupState $) { - this.annotations = $.annotations; - this.clusterId = $.clusterId; - this.description = $.description; - this.groupIntervalSeconds = $.groupIntervalSeconds; - this.groupWaitSeconds = $.groupWaitSeconds; - this.labels = $.labels; - this.name = $.name; - this.recipients = $.recipients; - this.repeatIntervalSeconds = $.repeatIntervalSeconds; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterGroupState defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterGroupState $; - - public Builder() { - $ = new ClusterAlterGroupState(); - } - - public Builder(ClusterAlterGroupState defaults) { - $ = new ClusterAlterGroupState(Objects.requireNonNull(defaults)); - } - - /** - * @param annotations The cluster alert group annotations (map) - * - * @return builder - * - */ - public Builder annotations(@Nullable Output> annotations) { - $.annotations = annotations; - return this; - } - - /** - * @param annotations The cluster alert group annotations (map) - * - * @return builder - * - */ - public Builder annotations(Map annotations) { - return annotations(Output.of(annotations)); - } - - /** - * @param clusterId The cluster id where create cluster alert group (string) - * - * @return builder - * - */ - public Builder clusterId(@Nullable Output clusterId) { - $.clusterId = clusterId; - return this; - } - - /** - * @param clusterId The cluster id where create cluster alert group (string) - * - * @return builder - * - */ - public Builder clusterId(String clusterId) { - return clusterId(Output.of(clusterId)); - } - - /** - * @param description The cluster alert group description (string) - * - * @return builder - * - */ - public Builder description(@Nullable Output description) { - $.description = description; - return this; - } - - /** - * @param description The cluster alert group description (string) - * - * @return builder - * - */ - public Builder description(String description) { - return description(Output.of(description)); - } - - /** - * @param groupIntervalSeconds The cluster alert group interval seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupIntervalSeconds(@Nullable Output groupIntervalSeconds) { - $.groupIntervalSeconds = groupIntervalSeconds; - return this; - } - - /** - * @param groupIntervalSeconds The cluster alert group interval seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { - return groupIntervalSeconds(Output.of(groupIntervalSeconds)); - } - - /** - * @param groupWaitSeconds The cluster alert group wait seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupWaitSeconds(@Nullable Output groupWaitSeconds) { - $.groupWaitSeconds = groupWaitSeconds; - return this; - } - - /** - * @param groupWaitSeconds The cluster alert group wait seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupWaitSeconds(Integer groupWaitSeconds) { - return groupWaitSeconds(Output.of(groupWaitSeconds)); - } - - /** - * @param labels The cluster alert group labels (map) - * - * @return builder - * - */ - public Builder labels(@Nullable Output> labels) { - $.labels = labels; - return this; - } - - /** - * @param labels The cluster alert group labels (map) - * - * @return builder - * - */ - public Builder labels(Map labels) { - return labels(Output.of(labels)); - } - - /** - * @param name The cluster alert group name (string) - * - * @return builder - * - */ - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - /** - * @param name The cluster alert group name (string) - * - * @return builder - * - */ - public Builder name(String name) { - return name(Output.of(name)); - } - - /** - * @param recipients The cluster alert group recipients (list) - * - * @return builder - * - */ - public Builder recipients(@Nullable Output> recipients) { - $.recipients = recipients; - return this; - } - - /** - * @param recipients The cluster alert group recipients (list) - * - * @return builder - * - */ - public Builder recipients(List recipients) { - return recipients(Output.of(recipients)); - } - - /** - * @param recipients The cluster alert group recipients (list) - * - * @return builder - * - */ - public Builder recipients(ClusterAlterGroupRecipientArgs... recipients) { - return recipients(List.of(recipients)); - } - - /** - * @param repeatIntervalSeconds The cluster alert group wait seconds. Default: `3600` (int) - * - * @return builder - * - */ - public Builder repeatIntervalSeconds(@Nullable Output repeatIntervalSeconds) { - $.repeatIntervalSeconds = repeatIntervalSeconds; - return this; - } - - /** - * @param repeatIntervalSeconds The cluster alert group wait seconds. Default: `3600` (int) - * - * @return builder - * - */ - public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { - return repeatIntervalSeconds(Output.of(repeatIntervalSeconds)); - } - - public ClusterAlterGroupState build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleEventRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleEventRuleArgs.java deleted file mode 100644 index fe9f93ddf..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleEventRuleArgs.java +++ /dev/null @@ -1,124 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterRuleEventRuleArgs extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterRuleEventRuleArgs Empty = new ClusterAlterRuleEventRuleArgs(); - - /** - * Event type - * - */ - @Import(name="eventType") - private @Nullable Output eventType; - - /** - * @return Event type - * - */ - public Optional> eventType() { - return Optional.ofNullable(this.eventType); - } - - /** - * Resource kind - * - */ - @Import(name="resourceKind", required=true) - private Output resourceKind; - - /** - * @return Resource kind - * - */ - public Output resourceKind() { - return this.resourceKind; - } - - private ClusterAlterRuleEventRuleArgs() {} - - private ClusterAlterRuleEventRuleArgs(ClusterAlterRuleEventRuleArgs $) { - this.eventType = $.eventType; - this.resourceKind = $.resourceKind; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterRuleEventRuleArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterRuleEventRuleArgs $; - - public Builder() { - $ = new ClusterAlterRuleEventRuleArgs(); - } - - public Builder(ClusterAlterRuleEventRuleArgs defaults) { - $ = new ClusterAlterRuleEventRuleArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param eventType Event type - * - * @return builder - * - */ - public Builder eventType(@Nullable Output eventType) { - $.eventType = eventType; - return this; - } - - /** - * @param eventType Event type - * - * @return builder - * - */ - public Builder eventType(String eventType) { - return eventType(Output.of(eventType)); - } - - /** - * @param resourceKind Resource kind - * - * @return builder - * - */ - public Builder resourceKind(Output resourceKind) { - $.resourceKind = resourceKind; - return this; - } - - /** - * @param resourceKind Resource kind - * - * @return builder - * - */ - public Builder resourceKind(String resourceKind) { - return resourceKind(Output.of(resourceKind)); - } - - public ClusterAlterRuleEventRuleArgs build() { - if ($.resourceKind == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleEventRuleArgs", "resourceKind"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleMetricRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleMetricRuleArgs.java deleted file mode 100644 index 66b11fee2..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleMetricRuleArgs.java +++ /dev/null @@ -1,242 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.Double; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterRuleMetricRuleArgs extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterRuleMetricRuleArgs Empty = new ClusterAlterRuleMetricRuleArgs(); - - /** - * Metric rule comparison - * - */ - @Import(name="comparison") - private @Nullable Output comparison; - - /** - * @return Metric rule comparison - * - */ - public Optional> comparison() { - return Optional.ofNullable(this.comparison); - } - - /** - * The cluster alert group description (string) - * - */ - @Import(name="description") - private @Nullable Output description; - - /** - * @return The cluster alert group description (string) - * - */ - public Optional> description() { - return Optional.ofNullable(this.description); - } - - /** - * Metric rule duration - * - */ - @Import(name="duration", required=true) - private Output duration; - - /** - * @return Metric rule duration - * - */ - public Output duration() { - return this.duration; - } - - /** - * Metric rule expression - * - */ - @Import(name="expression", required=true) - private Output expression; - - /** - * @return Metric rule expression - * - */ - public Output expression() { - return this.expression; - } - - /** - * Metric rule threshold value - * - */ - @Import(name="thresholdValue", required=true) - private Output thresholdValue; - - /** - * @return Metric rule threshold value - * - */ - public Output thresholdValue() { - return this.thresholdValue; - } - - private ClusterAlterRuleMetricRuleArgs() {} - - private ClusterAlterRuleMetricRuleArgs(ClusterAlterRuleMetricRuleArgs $) { - this.comparison = $.comparison; - this.description = $.description; - this.duration = $.duration; - this.expression = $.expression; - this.thresholdValue = $.thresholdValue; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterRuleMetricRuleArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterRuleMetricRuleArgs $; - - public Builder() { - $ = new ClusterAlterRuleMetricRuleArgs(); - } - - public Builder(ClusterAlterRuleMetricRuleArgs defaults) { - $ = new ClusterAlterRuleMetricRuleArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param comparison Metric rule comparison - * - * @return builder - * - */ - public Builder comparison(@Nullable Output comparison) { - $.comparison = comparison; - return this; - } - - /** - * @param comparison Metric rule comparison - * - * @return builder - * - */ - public Builder comparison(String comparison) { - return comparison(Output.of(comparison)); - } - - /** - * @param description The cluster alert group description (string) - * - * @return builder - * - */ - public Builder description(@Nullable Output description) { - $.description = description; - return this; - } - - /** - * @param description The cluster alert group description (string) - * - * @return builder - * - */ - public Builder description(String description) { - return description(Output.of(description)); - } - - /** - * @param duration Metric rule duration - * - * @return builder - * - */ - public Builder duration(Output duration) { - $.duration = duration; - return this; - } - - /** - * @param duration Metric rule duration - * - * @return builder - * - */ - public Builder duration(String duration) { - return duration(Output.of(duration)); - } - - /** - * @param expression Metric rule expression - * - * @return builder - * - */ - public Builder expression(Output expression) { - $.expression = expression; - return this; - } - - /** - * @param expression Metric rule expression - * - * @return builder - * - */ - public Builder expression(String expression) { - return expression(Output.of(expression)); - } - - /** - * @param thresholdValue Metric rule threshold value - * - * @return builder - * - */ - public Builder thresholdValue(Output thresholdValue) { - $.thresholdValue = thresholdValue; - return this; - } - - /** - * @param thresholdValue Metric rule threshold value - * - * @return builder - * - */ - public Builder thresholdValue(Double thresholdValue) { - return thresholdValue(Output.of(thresholdValue)); - } - - public ClusterAlterRuleMetricRuleArgs build() { - if ($.duration == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRuleArgs", "duration"); - } - if ($.expression == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRuleArgs", "expression"); - } - if ($.thresholdValue == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRuleArgs", "thresholdValue"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleNodeRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleNodeRuleArgs.java deleted file mode 100644 index c5a21dbd1..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleNodeRuleArgs.java +++ /dev/null @@ -1,234 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterRuleNodeRuleArgs extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterRuleNodeRuleArgs Empty = new ClusterAlterRuleNodeRuleArgs(); - - /** - * Node rule condition - * - */ - @Import(name="condition") - private @Nullable Output condition; - - /** - * @return Node rule condition - * - */ - public Optional> condition() { - return Optional.ofNullable(this.condition); - } - - /** - * Node rule cpu threshold - * - */ - @Import(name="cpuThreshold") - private @Nullable Output cpuThreshold; - - /** - * @return Node rule cpu threshold - * - */ - public Optional> cpuThreshold() { - return Optional.ofNullable(this.cpuThreshold); - } - - /** - * Node rule mem threshold - * - */ - @Import(name="memThreshold") - private @Nullable Output memThreshold; - - /** - * @return Node rule mem threshold - * - */ - public Optional> memThreshold() { - return Optional.ofNullable(this.memThreshold); - } - - /** - * Node ID - * - */ - @Import(name="nodeId") - private @Nullable Output nodeId; - - /** - * @return Node ID - * - */ - public Optional> nodeId() { - return Optional.ofNullable(this.nodeId); - } - - /** - * Node rule selector - * - */ - @Import(name="selector") - private @Nullable Output> selector; - - /** - * @return Node rule selector - * - */ - public Optional>> selector() { - return Optional.ofNullable(this.selector); - } - - private ClusterAlterRuleNodeRuleArgs() {} - - private ClusterAlterRuleNodeRuleArgs(ClusterAlterRuleNodeRuleArgs $) { - this.condition = $.condition; - this.cpuThreshold = $.cpuThreshold; - this.memThreshold = $.memThreshold; - this.nodeId = $.nodeId; - this.selector = $.selector; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterRuleNodeRuleArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterRuleNodeRuleArgs $; - - public Builder() { - $ = new ClusterAlterRuleNodeRuleArgs(); - } - - public Builder(ClusterAlterRuleNodeRuleArgs defaults) { - $ = new ClusterAlterRuleNodeRuleArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param condition Node rule condition - * - * @return builder - * - */ - public Builder condition(@Nullable Output condition) { - $.condition = condition; - return this; - } - - /** - * @param condition Node rule condition - * - * @return builder - * - */ - public Builder condition(String condition) { - return condition(Output.of(condition)); - } - - /** - * @param cpuThreshold Node rule cpu threshold - * - * @return builder - * - */ - public Builder cpuThreshold(@Nullable Output cpuThreshold) { - $.cpuThreshold = cpuThreshold; - return this; - } - - /** - * @param cpuThreshold Node rule cpu threshold - * - * @return builder - * - */ - public Builder cpuThreshold(Integer cpuThreshold) { - return cpuThreshold(Output.of(cpuThreshold)); - } - - /** - * @param memThreshold Node rule mem threshold - * - * @return builder - * - */ - public Builder memThreshold(@Nullable Output memThreshold) { - $.memThreshold = memThreshold; - return this; - } - - /** - * @param memThreshold Node rule mem threshold - * - * @return builder - * - */ - public Builder memThreshold(Integer memThreshold) { - return memThreshold(Output.of(memThreshold)); - } - - /** - * @param nodeId Node ID - * - * @return builder - * - */ - public Builder nodeId(@Nullable Output nodeId) { - $.nodeId = nodeId; - return this; - } - - /** - * @param nodeId Node ID - * - * @return builder - * - */ - public Builder nodeId(String nodeId) { - return nodeId(Output.of(nodeId)); - } - - /** - * @param selector Node rule selector - * - * @return builder - * - */ - public Builder selector(@Nullable Output> selector) { - $.selector = selector; - return this; - } - - /** - * @param selector Node rule selector - * - * @return builder - * - */ - public Builder selector(Map selector) { - return selector(Output.of(selector)); - } - - public ClusterAlterRuleNodeRuleArgs build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleState.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleState.java deleted file mode 100644 index 18142ee73..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleState.java +++ /dev/null @@ -1,572 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.rancher2.inputs.ClusterAlterRuleEventRuleArgs; -import com.pulumi.rancher2.inputs.ClusterAlterRuleMetricRuleArgs; -import com.pulumi.rancher2.inputs.ClusterAlterRuleNodeRuleArgs; -import com.pulumi.rancher2.inputs.ClusterAlterRuleSystemServiceRuleArgs; -import java.lang.Boolean; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterRuleState extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterRuleState Empty = new ClusterAlterRuleState(); - - /** - * The cluster alert group annotations (map) - * - */ - @Import(name="annotations") - private @Nullable Output> annotations; - - /** - * @return The cluster alert group annotations (map) - * - */ - public Optional>> annotations() { - return Optional.ofNullable(this.annotations); - } - - /** - * The cluster id where create cluster alert group (string) - * - */ - @Import(name="clusterId") - private @Nullable Output clusterId; - - /** - * @return The cluster id where create cluster alert group (string) - * - */ - public Optional> clusterId() { - return Optional.ofNullable(this.clusterId); - } - - /** - * Alert event rule - * - */ - @Import(name="eventRule") - private @Nullable Output eventRule; - - /** - * @return Alert event rule - * - */ - public Optional> eventRule() { - return Optional.ofNullable(this.eventRule); - } - - /** - * Alert rule group ID - * - */ - @Import(name="groupId") - private @Nullable Output groupId; - - /** - * @return Alert rule group ID - * - */ - public Optional> groupId() { - return Optional.ofNullable(this.groupId); - } - - /** - * The cluster alert group interval seconds. Default: `180` (int) - * - */ - @Import(name="groupIntervalSeconds") - private @Nullable Output groupIntervalSeconds; - - /** - * @return The cluster alert group interval seconds. Default: `180` (int) - * - */ - public Optional> groupIntervalSeconds() { - return Optional.ofNullable(this.groupIntervalSeconds); - } - - /** - * The cluster alert group wait seconds. Default: `180` (int) - * - */ - @Import(name="groupWaitSeconds") - private @Nullable Output groupWaitSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `180` (int) - * - */ - public Optional> groupWaitSeconds() { - return Optional.ofNullable(this.groupWaitSeconds); - } - - /** - * Alert rule inherited - * - */ - @Import(name="inherited") - private @Nullable Output inherited; - - /** - * @return Alert rule inherited - * - */ - public Optional> inherited() { - return Optional.ofNullable(this.inherited); - } - - /** - * The cluster alert group labels (map) - * - */ - @Import(name="labels") - private @Nullable Output> labels; - - /** - * @return The cluster alert group labels (map) - * - */ - public Optional>> labels() { - return Optional.ofNullable(this.labels); - } - - /** - * Alert metric rule - * - */ - @Import(name="metricRule") - private @Nullable Output metricRule; - - /** - * @return Alert metric rule - * - */ - public Optional> metricRule() { - return Optional.ofNullable(this.metricRule); - } - - /** - * The cluster alert group name (string) - * - */ - @Import(name="name") - private @Nullable Output name; - - /** - * @return The cluster alert group name (string) - * - */ - public Optional> name() { - return Optional.ofNullable(this.name); - } - - /** - * Alert node rule - * - */ - @Import(name="nodeRule") - private @Nullable Output nodeRule; - - /** - * @return Alert node rule - * - */ - public Optional> nodeRule() { - return Optional.ofNullable(this.nodeRule); - } - - /** - * The cluster alert group wait seconds. Default: `3600` (int) - * - */ - @Import(name="repeatIntervalSeconds") - private @Nullable Output repeatIntervalSeconds; - - /** - * @return The cluster alert group wait seconds. Default: `3600` (int) - * - */ - public Optional> repeatIntervalSeconds() { - return Optional.ofNullable(this.repeatIntervalSeconds); - } - - /** - * Alert rule severity - * - */ - @Import(name="severity") - private @Nullable Output severity; - - /** - * @return Alert rule severity - * - */ - public Optional> severity() { - return Optional.ofNullable(this.severity); - } - - /** - * Alert system service rule - * - */ - @Import(name="systemServiceRule") - private @Nullable Output systemServiceRule; - - /** - * @return Alert system service rule - * - */ - public Optional> systemServiceRule() { - return Optional.ofNullable(this.systemServiceRule); - } - - private ClusterAlterRuleState() {} - - private ClusterAlterRuleState(ClusterAlterRuleState $) { - this.annotations = $.annotations; - this.clusterId = $.clusterId; - this.eventRule = $.eventRule; - this.groupId = $.groupId; - this.groupIntervalSeconds = $.groupIntervalSeconds; - this.groupWaitSeconds = $.groupWaitSeconds; - this.inherited = $.inherited; - this.labels = $.labels; - this.metricRule = $.metricRule; - this.name = $.name; - this.nodeRule = $.nodeRule; - this.repeatIntervalSeconds = $.repeatIntervalSeconds; - this.severity = $.severity; - this.systemServiceRule = $.systemServiceRule; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterRuleState defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterRuleState $; - - public Builder() { - $ = new ClusterAlterRuleState(); - } - - public Builder(ClusterAlterRuleState defaults) { - $ = new ClusterAlterRuleState(Objects.requireNonNull(defaults)); - } - - /** - * @param annotations The cluster alert group annotations (map) - * - * @return builder - * - */ - public Builder annotations(@Nullable Output> annotations) { - $.annotations = annotations; - return this; - } - - /** - * @param annotations The cluster alert group annotations (map) - * - * @return builder - * - */ - public Builder annotations(Map annotations) { - return annotations(Output.of(annotations)); - } - - /** - * @param clusterId The cluster id where create cluster alert group (string) - * - * @return builder - * - */ - public Builder clusterId(@Nullable Output clusterId) { - $.clusterId = clusterId; - return this; - } - - /** - * @param clusterId The cluster id where create cluster alert group (string) - * - * @return builder - * - */ - public Builder clusterId(String clusterId) { - return clusterId(Output.of(clusterId)); - } - - /** - * @param eventRule Alert event rule - * - * @return builder - * - */ - public Builder eventRule(@Nullable Output eventRule) { - $.eventRule = eventRule; - return this; - } - - /** - * @param eventRule Alert event rule - * - * @return builder - * - */ - public Builder eventRule(ClusterAlterRuleEventRuleArgs eventRule) { - return eventRule(Output.of(eventRule)); - } - - /** - * @param groupId Alert rule group ID - * - * @return builder - * - */ - public Builder groupId(@Nullable Output groupId) { - $.groupId = groupId; - return this; - } - - /** - * @param groupId Alert rule group ID - * - * @return builder - * - */ - public Builder groupId(String groupId) { - return groupId(Output.of(groupId)); - } - - /** - * @param groupIntervalSeconds The cluster alert group interval seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupIntervalSeconds(@Nullable Output groupIntervalSeconds) { - $.groupIntervalSeconds = groupIntervalSeconds; - return this; - } - - /** - * @param groupIntervalSeconds The cluster alert group interval seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { - return groupIntervalSeconds(Output.of(groupIntervalSeconds)); - } - - /** - * @param groupWaitSeconds The cluster alert group wait seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupWaitSeconds(@Nullable Output groupWaitSeconds) { - $.groupWaitSeconds = groupWaitSeconds; - return this; - } - - /** - * @param groupWaitSeconds The cluster alert group wait seconds. Default: `180` (int) - * - * @return builder - * - */ - public Builder groupWaitSeconds(Integer groupWaitSeconds) { - return groupWaitSeconds(Output.of(groupWaitSeconds)); - } - - /** - * @param inherited Alert rule inherited - * - * @return builder - * - */ - public Builder inherited(@Nullable Output inherited) { - $.inherited = inherited; - return this; - } - - /** - * @param inherited Alert rule inherited - * - * @return builder - * - */ - public Builder inherited(Boolean inherited) { - return inherited(Output.of(inherited)); - } - - /** - * @param labels The cluster alert group labels (map) - * - * @return builder - * - */ - public Builder labels(@Nullable Output> labels) { - $.labels = labels; - return this; - } - - /** - * @param labels The cluster alert group labels (map) - * - * @return builder - * - */ - public Builder labels(Map labels) { - return labels(Output.of(labels)); - } - - /** - * @param metricRule Alert metric rule - * - * @return builder - * - */ - public Builder metricRule(@Nullable Output metricRule) { - $.metricRule = metricRule; - return this; - } - - /** - * @param metricRule Alert metric rule - * - * @return builder - * - */ - public Builder metricRule(ClusterAlterRuleMetricRuleArgs metricRule) { - return metricRule(Output.of(metricRule)); - } - - /** - * @param name The cluster alert group name (string) - * - * @return builder - * - */ - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - /** - * @param name The cluster alert group name (string) - * - * @return builder - * - */ - public Builder name(String name) { - return name(Output.of(name)); - } - - /** - * @param nodeRule Alert node rule - * - * @return builder - * - */ - public Builder nodeRule(@Nullable Output nodeRule) { - $.nodeRule = nodeRule; - return this; - } - - /** - * @param nodeRule Alert node rule - * - * @return builder - * - */ - public Builder nodeRule(ClusterAlterRuleNodeRuleArgs nodeRule) { - return nodeRule(Output.of(nodeRule)); - } - - /** - * @param repeatIntervalSeconds The cluster alert group wait seconds. Default: `3600` (int) - * - * @return builder - * - */ - public Builder repeatIntervalSeconds(@Nullable Output repeatIntervalSeconds) { - $.repeatIntervalSeconds = repeatIntervalSeconds; - return this; - } - - /** - * @param repeatIntervalSeconds The cluster alert group wait seconds. Default: `3600` (int) - * - * @return builder - * - */ - public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { - return repeatIntervalSeconds(Output.of(repeatIntervalSeconds)); - } - - /** - * @param severity Alert rule severity - * - * @return builder - * - */ - public Builder severity(@Nullable Output severity) { - $.severity = severity; - return this; - } - - /** - * @param severity Alert rule severity - * - * @return builder - * - */ - public Builder severity(String severity) { - return severity(Output.of(severity)); - } - - /** - * @param systemServiceRule Alert system service rule - * - * @return builder - * - */ - public Builder systemServiceRule(@Nullable Output systemServiceRule) { - $.systemServiceRule = systemServiceRule; - return this; - } - - /** - * @param systemServiceRule Alert system service rule - * - * @return builder - * - */ - public Builder systemServiceRule(ClusterAlterRuleSystemServiceRuleArgs systemServiceRule) { - return systemServiceRule(Output.of(systemServiceRule)); - } - - public ClusterAlterRuleState build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleSystemServiceRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleSystemServiceRuleArgs.java deleted file mode 100644 index 15760cb73..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleSystemServiceRuleArgs.java +++ /dev/null @@ -1,83 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class ClusterAlterRuleSystemServiceRuleArgs extends com.pulumi.resources.ResourceArgs { - - public static final ClusterAlterRuleSystemServiceRuleArgs Empty = new ClusterAlterRuleSystemServiceRuleArgs(); - - /** - * System service rule condition - * - */ - @Import(name="condition") - private @Nullable Output condition; - - /** - * @return System service rule condition - * - */ - public Optional> condition() { - return Optional.ofNullable(this.condition); - } - - private ClusterAlterRuleSystemServiceRuleArgs() {} - - private ClusterAlterRuleSystemServiceRuleArgs(ClusterAlterRuleSystemServiceRuleArgs $) { - this.condition = $.condition; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(ClusterAlterRuleSystemServiceRuleArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private ClusterAlterRuleSystemServiceRuleArgs $; - - public Builder() { - $ = new ClusterAlterRuleSystemServiceRuleArgs(); - } - - public Builder(ClusterAlterRuleSystemServiceRuleArgs defaults) { - $ = new ClusterAlterRuleSystemServiceRuleArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param condition System service rule condition - * - * @return builder - * - */ - public Builder condition(@Nullable Output condition) { - $.condition = condition; - return this; - } - - /** - * @param condition System service rule condition - * - * @return builder - * - */ - public Builder condition(String condition) { - return condition(Output.of(condition)); - } - - public ClusterAlterRuleSystemServiceRuleArgs build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2Args.java index b25186fb2..326cf3e6d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2Args.java @@ -52,14 +52,14 @@ public Optional> imported() { } /** - * The AWS kms key to use (string) + * The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) * */ @Import(name="kmsKey") private @Nullable Output kmsKey; /** - * @return The AWS kms key to use (string) + * @return The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) * */ public Optional> kmsKey() { @@ -343,7 +343,7 @@ public Builder imported(Boolean imported) { } /** - * @param kmsKey The AWS kms key to use (string) + * @param kmsKey The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) * * @return builder * @@ -354,7 +354,7 @@ public Builder kmsKey(@Nullable Output kmsKey) { } /** - * @param kmsKey The AWS kms key to use (string) + * @param kmsKey The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.java index cdd093af4..1b0fcbcc0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.java @@ -32,6 +32,13 @@ public Optional> datacenters() { return Optional.ofNullable(this.datacenters); } + @Import(name="gracefulShutdownTimeout") + private @Nullable Output gracefulShutdownTimeout; + + public Optional> gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } + /** * (bool) * @@ -111,6 +118,7 @@ private ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs() {} private ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs(ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs $) { this.datacenters = $.datacenters; + this.gracefulShutdownTimeout = $.gracefulShutdownTimeout; this.insecureFlag = $.insecureFlag; this.password = $.password; this.port = $.port; @@ -157,6 +165,15 @@ public Builder datacenters(String datacenters) { return datacenters(Output.of(datacenters)); } + public Builder gracefulShutdownTimeout(@Nullable Output gracefulShutdownTimeout) { + $.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + + public Builder gracefulShutdownTimeout(String gracefulShutdownTimeout) { + return gracefulShutdownTimeout(Output.of(gracefulShutdownTimeout)); + } + /** * @param insecureFlag (bool) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.java index b5ed6afdf..807b599c3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs.java @@ -24,6 +24,13 @@ public Optional> datacenters() { return Optional.ofNullable(this.datacenters); } + @Import(name="gracefulShutdownTimeout") + private @Nullable Output gracefulShutdownTimeout; + + public Optional> gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } + @Import(name="insecureFlag") private @Nullable Output insecureFlag; @@ -63,6 +70,7 @@ private ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVspher private ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs $) { this.datacenters = $.datacenters; + this.gracefulShutdownTimeout = $.gracefulShutdownTimeout; this.insecureFlag = $.insecureFlag; this.password = $.password; this.port = $.port; @@ -97,6 +105,15 @@ public Builder datacenters(String datacenters) { return datacenters(Output.of(datacenters)); } + public Builder gracefulShutdownTimeout(@Nullable Output gracefulShutdownTimeout) { + $.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + + public Builder gracefulShutdownTimeout(String gracefulShutdownTimeout) { + return gracefulShutdownTimeout(Output.of(gracefulShutdownTimeout)); + } + public Builder insecureFlag(@Nullable Output insecureFlag) { $.insecureFlag = insecureFlag; return this; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2AgentEnvVarArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2AgentEnvVarArgs.java index 6f420bebf..27e6744fb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2AgentEnvVarArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2AgentEnvVarArgs.java @@ -15,14 +15,14 @@ public final class ClusterV2AgentEnvVarArgs extends com.pulumi.resources.Resourc public static final ClusterV2AgentEnvVarArgs Empty = new ClusterV2AgentEnvVarArgs(); /** - * The name of the Cluster v2 (string) + * The name of the cluster. * */ @Import(name="name", required=true) private Output name; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Output name() { @@ -30,14 +30,14 @@ public Output name() { } /** - * The taint value (string) + * The taint value. * */ @Import(name="value", required=true) private Output value; /** - * @return The taint value (string) + * @return The taint value. * */ public Output value() { @@ -70,7 +70,7 @@ public Builder(ClusterV2AgentEnvVarArgs defaults) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -81,7 +81,7 @@ public Builder name(Output name) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -91,7 +91,7 @@ public Builder name(String name) { } /** - * @param value The taint value (string) + * @param value The taint value. * * @return builder * @@ -102,7 +102,7 @@ public Builder value(Output value) { } /** - * @param value The taint value (string) + * @param value The taint value. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.java index d60b67def..ef19ac9c6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.java @@ -18,14 +18,14 @@ public final class ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationA public static final ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs Empty = new ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs(); /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. * */ @Import(name="effect") private @Nullable Output effect; /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ public Optional> effect() { @@ -33,14 +33,14 @@ public Optional> effect() { } /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. * */ @Import(name="key", required=true) private Output key; /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ public Output key() { @@ -48,14 +48,14 @@ public Output key() { } /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ @Import(name="operator") private @Nullable Output operator; /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ public Optional> operator() { @@ -63,14 +63,14 @@ public Optional> operator() { } /** - * The number of seconds a pod will stay bound to a node with a matching taint (int) + * The number of seconds a pod will stay bound to a node with a matching taint. * */ @Import(name="seconds") private @Nullable Output seconds; /** - * @return The number of seconds a pod will stay bound to a node with a matching taint (int) + * @return The number of seconds a pod will stay bound to a node with a matching taint. * */ public Optional> seconds() { @@ -78,14 +78,14 @@ public Optional> seconds() { } /** - * The taint value (string) + * The taint value. * */ @Import(name="value") private @Nullable Output value; /** - * @return The taint value (string) + * @return The taint value. * */ public Optional> value() { @@ -121,7 +121,7 @@ public Builder(ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs } /** - * @param effect The taint effect. Default: `\"NoExecute\"` (string) + * @param effect The taint effect. Default: `\"NoExecute\"`. * * @return builder * @@ -132,7 +132,7 @@ public Builder effect(@Nullable Output effect) { } /** - * @param effect The taint effect. Default: `\"NoExecute\"` (string) + * @param effect The taint effect. Default: `\"NoExecute\"`. * * @return builder * @@ -142,7 +142,7 @@ public Builder effect(String effect) { } /** - * @param key Machine selector label match expressions key (string) + * @param key Key is the name of the key of the item to retrieve. * * @return builder * @@ -153,7 +153,7 @@ public Builder key(Output key) { } /** - * @param key Machine selector label match expressions key (string) + * @param key Key is the name of the key of the item to retrieve. * * @return builder * @@ -163,7 +163,7 @@ public Builder key(String key) { } /** - * @param operator Machine selector label match expressions operator (string) + * @param operator Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * * @return builder * @@ -174,7 +174,7 @@ public Builder operator(@Nullable Output operator) { } /** - * @param operator Machine selector label match expressions operator (string) + * @param operator Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * * @return builder * @@ -184,7 +184,7 @@ public Builder operator(String operator) { } /** - * @param seconds The number of seconds a pod will stay bound to a node with a matching taint (int) + * @param seconds The number of seconds a pod will stay bound to a node with a matching taint. * * @return builder * @@ -195,7 +195,7 @@ public Builder seconds(@Nullable Output seconds) { } /** - * @param seconds The number of seconds a pod will stay bound to a node with a matching taint (int) + * @param seconds The number of seconds a pod will stay bound to a node with a matching taint. * * @return builder * @@ -205,7 +205,7 @@ public Builder seconds(Integer seconds) { } /** - * @param value The taint value (string) + * @param value The taint value. * * @return builder * @@ -216,7 +216,7 @@ public Builder value(@Nullable Output value) { } /** - * @param value The taint value (string) + * @param value The taint value. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationArgs.java index 012330a92..4ab11ed93 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationArgs.java @@ -19,14 +19,14 @@ public final class ClusterV2ClusterAgentDeploymentCustomizationArgs extends com. public static final ClusterV2ClusterAgentDeploymentCustomizationArgs Empty = new ClusterV2ClusterAgentDeploymentCustomizationArgs(); /** - * User defined tolerations to append to agent (list) + * A list of tolerations to be appended to the default tolerations. * */ @Import(name="appendTolerations") private @Nullable Output> appendTolerations; /** - * @return User defined tolerations to append to agent (list) + * @return A list of tolerations to be appended to the default tolerations. * */ public Optional>> appendTolerations() { @@ -34,14 +34,14 @@ public Optional overrideAffinity; /** - * @return User defined affinity to override default agent affinity (string) + * @return Override affinity overrides the global default affinity setting. * */ public Optional> overrideAffinity() { @@ -49,14 +49,14 @@ public Optional> overrideAffinity() { } /** - * User defined resource requirements to set on the agent (list) + * Override resource requirements overrides the default value for requests and/or limits. * */ @Import(name="overrideResourceRequirements") private @Nullable Output> overrideResourceRequirements; /** - * @return User defined resource requirements to set on the agent (list) + * @return Override resource requirements overrides the default value for requests and/or limits. * */ public Optional>> overrideResourceRequirements() { @@ -90,7 +90,7 @@ public Builder(ClusterV2ClusterAgentDeploymentCustomizationArgs defaults) { } /** - * @param appendTolerations User defined tolerations to append to agent (list) + * @param appendTolerations A list of tolerations to be appended to the default tolerations. * * @return builder * @@ -101,7 +101,7 @@ public Builder appendTolerations(@Nullable Output overrideAffinity) { } /** - * @param overrideAffinity User defined affinity to override default agent affinity (string) + * @param overrideAffinity Override affinity overrides the global default affinity setting. * * @return builder * @@ -142,7 +142,7 @@ public Builder overrideAffinity(String overrideAffinity) { } /** - * @param overrideResourceRequirements User defined resource requirements to set on the agent (list) + * @param overrideResourceRequirements Override resource requirements overrides the default value for requests and/or limits. * * @return builder * @@ -153,7 +153,7 @@ public Builder overrideResourceRequirements(@Nullable Output cpuLimit; /** - * @return The maximum CPU limit for agent (string) + * @return The maximum CPU limit for agent. * */ public Optional> cpuLimit() { @@ -31,14 +31,14 @@ public Optional> cpuLimit() { } /** - * The minimum CPU required for agent (string) + * The minimum CPU required for agent. * */ @Import(name="cpuRequest") private @Nullable Output cpuRequest; /** - * @return The minimum CPU required for agent (string) + * @return The minimum CPU required for agent. * */ public Optional> cpuRequest() { @@ -46,14 +46,14 @@ public Optional> cpuRequest() { } /** - * The maximum memory limit for agent (string) + * The maximum memory limit for agent. * */ @Import(name="memoryLimit") private @Nullable Output memoryLimit; /** - * @return The maximum memory limit for agent (string) + * @return The maximum memory limit for agent. * */ public Optional> memoryLimit() { @@ -61,14 +61,14 @@ public Optional> memoryLimit() { } /** - * The minimum memory required for agent (string) + * The minimum memory required for agent. * */ @Import(name="memoryRequest") private @Nullable Output memoryRequest; /** - * @return The minimum memory required for agent (string) + * @return The minimum memory required for agent. * */ public Optional> memoryRequest() { @@ -103,7 +103,7 @@ public Builder(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequi } /** - * @param cpuLimit The maximum CPU limit for agent (string) + * @param cpuLimit The maximum CPU limit for agent. * * @return builder * @@ -114,7 +114,7 @@ public Builder cpuLimit(@Nullable Output cpuLimit) { } /** - * @param cpuLimit The maximum CPU limit for agent (string) + * @param cpuLimit The maximum CPU limit for agent. * * @return builder * @@ -124,7 +124,7 @@ public Builder cpuLimit(String cpuLimit) { } /** - * @param cpuRequest The minimum CPU required for agent (string) + * @param cpuRequest The minimum CPU required for agent. * * @return builder * @@ -135,7 +135,7 @@ public Builder cpuRequest(@Nullable Output cpuRequest) { } /** - * @param cpuRequest The minimum CPU required for agent (string) + * @param cpuRequest The minimum CPU required for agent. * * @return builder * @@ -145,7 +145,7 @@ public Builder cpuRequest(String cpuRequest) { } /** - * @param memoryLimit The maximum memory limit for agent (string) + * @param memoryLimit The maximum memory limit for agent. * * @return builder * @@ -156,7 +156,7 @@ public Builder memoryLimit(@Nullable Output memoryLimit) { } /** - * @param memoryLimit The maximum memory limit for agent (string) + * @param memoryLimit The maximum memory limit for agent. * * @return builder * @@ -166,7 +166,7 @@ public Builder memoryLimit(String memoryLimit) { } /** - * @param memoryRequest The minimum memory required for agent (string) + * @param memoryRequest The minimum memory required for agent. * * @return builder * @@ -177,7 +177,7 @@ public Builder memoryRequest(@Nullable Output memoryRequest) { } /** - * @param memoryRequest The minimum memory required for agent (string) + * @param memoryRequest The minimum memory required for agent. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterRegistrationTokenArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterRegistrationTokenArgs.java index 52a6acdac..9e48766ed 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterRegistrationTokenArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterRegistrationTokenArgs.java @@ -18,14 +18,14 @@ public final class ClusterV2ClusterRegistrationTokenArgs extends com.pulumi.reso public static final ClusterV2ClusterRegistrationTokenArgs Empty = new ClusterV2ClusterRegistrationTokenArgs(); /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. * */ @Import(name="annotations") private @Nullable Output> annotations; /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ public Optional>> annotations() { @@ -33,14 +33,14 @@ public Optional>> annotations() { } /** - * Cluster ID (string) + * Cluster ID. * */ @Import(name="clusterId") private @Nullable Output clusterId; /** - * @return Cluster ID (string) + * @return Cluster ID. * */ public Optional> clusterId() { @@ -48,14 +48,14 @@ public Optional> clusterId() { } /** - * Command to execute in a imported k8s cluster (string) + * Command to execute in an imported k8s cluster. * */ @Import(name="command") private @Nullable Output command; /** - * @return Command to execute in a imported k8s cluster (string) + * @return Command to execute in an imported k8s cluster. * */ public Optional> command() { @@ -63,14 +63,14 @@ public Optional> command() { } /** - * (Computed) The ID of the resource (string) + * (Computed, string) The ID of the resource. * */ @Import(name="id") private @Nullable Output id; /** - * @return (Computed) The ID of the resource (string) + * @return (Computed, string) The ID of the resource. * */ public Optional> id() { @@ -78,14 +78,14 @@ public Optional> id() { } /** - * Insecure command to execute in a imported k8s cluster (string) + * Insecure command to execute in an imported k8s cluster. * */ @Import(name="insecureCommand") private @Nullable Output insecureCommand; /** - * @return Insecure command to execute in a imported k8s cluster (string) + * @return Insecure command to execute in an imported k8s cluster. * */ public Optional> insecureCommand() { @@ -93,14 +93,14 @@ public Optional> insecureCommand() { } /** - * Insecure node command to execute in a imported k8s cluster (string) + * Insecure node command to execute in an imported k8s cluster. * */ @Import(name="insecureNodeCommand") private @Nullable Output insecureNodeCommand; /** - * @return Insecure node command to execute in a imported k8s cluster (string) + * @return Insecure node command to execute in an imported k8s cluster. * */ public Optional> insecureNodeCommand() { @@ -108,14 +108,14 @@ public Optional> insecureNodeCommand() { } /** - * Insecure windows command to execute in a imported k8s cluster (string) + * Insecure windows command to execute in an imported k8s cluster. * */ @Import(name="insecureWindowsNodeCommand") private @Nullable Output insecureWindowsNodeCommand; /** - * @return Insecure windows command to execute in a imported k8s cluster (string) + * @return Insecure windows command to execute in an imported k8s cluster. * */ public Optional> insecureWindowsNodeCommand() { @@ -123,14 +123,14 @@ public Optional> insecureWindowsNodeCommand() { } /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. * */ @Import(name="labels") private @Nullable Output> labels; /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ public Optional>> labels() { @@ -138,14 +138,14 @@ public Optional>> labels() { } /** - * K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + * K8s manifest url to execute with `kubectl` to import an existing k8s cluster. * */ @Import(name="manifestUrl") private @Nullable Output manifestUrl; /** - * @return K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + * @return K8s manifest url to execute with `kubectl` to import an existing k8s cluster. * */ public Optional> manifestUrl() { @@ -153,14 +153,14 @@ public Optional> manifestUrl() { } /** - * The name of the Cluster v2 (string) + * The name of the cluster. * */ @Import(name="name") private @Nullable Output name; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Optional> name() { @@ -168,14 +168,14 @@ public Optional> name() { } /** - * Node command to execute in linux nodes for custom k8s cluster (string) + * Node command to execute in Linux nodes for custom k8s cluster. * */ @Import(name="nodeCommand") private @Nullable Output nodeCommand; /** - * @return Node command to execute in linux nodes for custom k8s cluster (string) + * @return Node command to execute in Linux nodes for custom k8s cluster. * */ public Optional> nodeCommand() { @@ -183,14 +183,14 @@ public Optional> nodeCommand() { } /** - * Token for cluster registration token object (string) + * Token for cluster registration token object. * */ @Import(name="token") private @Nullable Output token; /** - * @return Token for cluster registration token object (string) + * @return Token for cluster registration token object. * */ public Optional> token() { @@ -198,14 +198,14 @@ public Optional> token() { } /** - * Node command to execute in windows nodes for custom k8s cluster (string) + * Node command to execute in Windows nodes for custom k8s cluster. * */ @Import(name="windowsNodeCommand") private @Nullable Output windowsNodeCommand; /** - * @return Node command to execute in windows nodes for custom k8s cluster (string) + * @return Node command to execute in Windows nodes for custom k8s cluster. * */ public Optional> windowsNodeCommand() { @@ -249,7 +249,7 @@ public Builder(ClusterV2ClusterRegistrationTokenArgs defaults) { } /** - * @param annotations Annotations for the Cluster V2 (map) + * @param annotations Annotations for the Cluster. * * @return builder * @@ -260,7 +260,7 @@ public Builder annotations(@Nullable Output> annotations) { } /** - * @param annotations Annotations for the Cluster V2 (map) + * @param annotations Annotations for the Cluster. * * @return builder * @@ -270,7 +270,7 @@ public Builder annotations(Map annotations) { } /** - * @param clusterId Cluster ID (string) + * @param clusterId Cluster ID. * * @return builder * @@ -281,7 +281,7 @@ public Builder clusterId(@Nullable Output clusterId) { } /** - * @param clusterId Cluster ID (string) + * @param clusterId Cluster ID. * * @return builder * @@ -291,7 +291,7 @@ public Builder clusterId(String clusterId) { } /** - * @param command Command to execute in a imported k8s cluster (string) + * @param command Command to execute in an imported k8s cluster. * * @return builder * @@ -302,7 +302,7 @@ public Builder command(@Nullable Output command) { } /** - * @param command Command to execute in a imported k8s cluster (string) + * @param command Command to execute in an imported k8s cluster. * * @return builder * @@ -312,7 +312,7 @@ public Builder command(String command) { } /** - * @param id (Computed) The ID of the resource (string) + * @param id (Computed, string) The ID of the resource. * * @return builder * @@ -323,7 +323,7 @@ public Builder id(@Nullable Output id) { } /** - * @param id (Computed) The ID of the resource (string) + * @param id (Computed, string) The ID of the resource. * * @return builder * @@ -333,7 +333,7 @@ public Builder id(String id) { } /** - * @param insecureCommand Insecure command to execute in a imported k8s cluster (string) + * @param insecureCommand Insecure command to execute in an imported k8s cluster. * * @return builder * @@ -344,7 +344,7 @@ public Builder insecureCommand(@Nullable Output insecureCommand) { } /** - * @param insecureCommand Insecure command to execute in a imported k8s cluster (string) + * @param insecureCommand Insecure command to execute in an imported k8s cluster. * * @return builder * @@ -354,7 +354,7 @@ public Builder insecureCommand(String insecureCommand) { } /** - * @param insecureNodeCommand Insecure node command to execute in a imported k8s cluster (string) + * @param insecureNodeCommand Insecure node command to execute in an imported k8s cluster. * * @return builder * @@ -365,7 +365,7 @@ public Builder insecureNodeCommand(@Nullable Output insecureNodeCommand) } /** - * @param insecureNodeCommand Insecure node command to execute in a imported k8s cluster (string) + * @param insecureNodeCommand Insecure node command to execute in an imported k8s cluster. * * @return builder * @@ -375,7 +375,7 @@ public Builder insecureNodeCommand(String insecureNodeCommand) { } /** - * @param insecureWindowsNodeCommand Insecure windows command to execute in a imported k8s cluster (string) + * @param insecureWindowsNodeCommand Insecure windows command to execute in an imported k8s cluster. * * @return builder * @@ -386,7 +386,7 @@ public Builder insecureWindowsNodeCommand(@Nullable Output insecureWindo } /** - * @param insecureWindowsNodeCommand Insecure windows command to execute in a imported k8s cluster (string) + * @param insecureWindowsNodeCommand Insecure windows command to execute in an imported k8s cluster. * * @return builder * @@ -396,7 +396,7 @@ public Builder insecureWindowsNodeCommand(String insecureWindowsNodeCommand) { } /** - * @param labels Labels for the Cluster V2 (map) + * @param labels Labels for the Cluster. * * @return builder * @@ -407,7 +407,7 @@ public Builder labels(@Nullable Output> labels) { } /** - * @param labels Labels for the Cluster V2 (map) + * @param labels Labels for the Cluster. * * @return builder * @@ -417,7 +417,7 @@ public Builder labels(Map labels) { } /** - * @param manifestUrl K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + * @param manifestUrl K8s manifest url to execute with `kubectl` to import an existing k8s cluster. * * @return builder * @@ -428,7 +428,7 @@ public Builder manifestUrl(@Nullable Output manifestUrl) { } /** - * @param manifestUrl K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + * @param manifestUrl K8s manifest url to execute with `kubectl` to import an existing k8s cluster. * * @return builder * @@ -438,7 +438,7 @@ public Builder manifestUrl(String manifestUrl) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -449,7 +449,7 @@ public Builder name(@Nullable Output name) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -459,7 +459,7 @@ public Builder name(String name) { } /** - * @param nodeCommand Node command to execute in linux nodes for custom k8s cluster (string) + * @param nodeCommand Node command to execute in Linux nodes for custom k8s cluster. * * @return builder * @@ -470,7 +470,7 @@ public Builder nodeCommand(@Nullable Output nodeCommand) { } /** - * @param nodeCommand Node command to execute in linux nodes for custom k8s cluster (string) + * @param nodeCommand Node command to execute in Linux nodes for custom k8s cluster. * * @return builder * @@ -480,7 +480,7 @@ public Builder nodeCommand(String nodeCommand) { } /** - * @param token Token for cluster registration token object (string) + * @param token Token for cluster registration token object. * * @return builder * @@ -491,7 +491,7 @@ public Builder token(@Nullable Output token) { } /** - * @param token Token for cluster registration token object (string) + * @param token Token for cluster registration token object. * * @return builder * @@ -501,7 +501,7 @@ public Builder token(String token) { } /** - * @param windowsNodeCommand Node command to execute in windows nodes for custom k8s cluster (string) + * @param windowsNodeCommand Node command to execute in Windows nodes for custom k8s cluster. * * @return builder * @@ -512,7 +512,7 @@ public Builder windowsNodeCommand(@Nullable Output windowsNodeCommand) { } /** - * @param windowsNodeCommand Node command to execute in windows nodes for custom k8s cluster (string) + * @param windowsNodeCommand Node command to execute in Windows nodes for custom k8s cluster. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.java index 07d80f366..785e312ad 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.java @@ -18,14 +18,14 @@ public final class ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArg public static final ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs Empty = new ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs(); /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. * */ @Import(name="effect") private @Nullable Output effect; /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ public Optional> effect() { @@ -33,14 +33,14 @@ public Optional> effect() { } /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. * */ @Import(name="key", required=true) private Output key; /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ public Output key() { @@ -48,14 +48,14 @@ public Output key() { } /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ @Import(name="operator") private @Nullable Output operator; /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ public Optional> operator() { @@ -63,14 +63,14 @@ public Optional> operator() { } /** - * The number of seconds a pod will stay bound to a node with a matching taint (int) + * The number of seconds a pod will stay bound to a node with a matching taint. * */ @Import(name="seconds") private @Nullable Output seconds; /** - * @return The number of seconds a pod will stay bound to a node with a matching taint (int) + * @return The number of seconds a pod will stay bound to a node with a matching taint. * */ public Optional> seconds() { @@ -78,14 +78,14 @@ public Optional> seconds() { } /** - * The taint value (string) + * The taint value. * */ @Import(name="value") private @Nullable Output value; /** - * @return The taint value (string) + * @return The taint value. * */ public Optional> value() { @@ -121,7 +121,7 @@ public Builder(ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs de } /** - * @param effect The taint effect. Default: `\"NoExecute\"` (string) + * @param effect The taint effect. Default: `\"NoExecute\"`. * * @return builder * @@ -132,7 +132,7 @@ public Builder effect(@Nullable Output effect) { } /** - * @param effect The taint effect. Default: `\"NoExecute\"` (string) + * @param effect The taint effect. Default: `\"NoExecute\"`. * * @return builder * @@ -142,7 +142,7 @@ public Builder effect(String effect) { } /** - * @param key Machine selector label match expressions key (string) + * @param key Key is the name of the key of the item to retrieve. * * @return builder * @@ -153,7 +153,7 @@ public Builder key(Output key) { } /** - * @param key Machine selector label match expressions key (string) + * @param key Key is the name of the key of the item to retrieve. * * @return builder * @@ -163,7 +163,7 @@ public Builder key(String key) { } /** - * @param operator Machine selector label match expressions operator (string) + * @param operator Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * * @return builder * @@ -174,7 +174,7 @@ public Builder operator(@Nullable Output operator) { } /** - * @param operator Machine selector label match expressions operator (string) + * @param operator Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * * @return builder * @@ -184,7 +184,7 @@ public Builder operator(String operator) { } /** - * @param seconds The number of seconds a pod will stay bound to a node with a matching taint (int) + * @param seconds The number of seconds a pod will stay bound to a node with a matching taint. * * @return builder * @@ -195,7 +195,7 @@ public Builder seconds(@Nullable Output seconds) { } /** - * @param seconds The number of seconds a pod will stay bound to a node with a matching taint (int) + * @param seconds The number of seconds a pod will stay bound to a node with a matching taint. * * @return builder * @@ -205,7 +205,7 @@ public Builder seconds(Integer seconds) { } /** - * @param value The taint value (string) + * @param value The taint value. * * @return builder * @@ -216,7 +216,7 @@ public Builder value(@Nullable Output value) { } /** - * @param value The taint value (string) + * @param value The taint value. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationArgs.java index 2c3137565..604c53a36 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationArgs.java @@ -19,14 +19,14 @@ public final class ClusterV2FleetAgentDeploymentCustomizationArgs extends com.pu public static final ClusterV2FleetAgentDeploymentCustomizationArgs Empty = new ClusterV2FleetAgentDeploymentCustomizationArgs(); /** - * User defined tolerations to append to agent (list) + * A list of tolerations to be appended to the default tolerations. * */ @Import(name="appendTolerations") private @Nullable Output> appendTolerations; /** - * @return User defined tolerations to append to agent (list) + * @return A list of tolerations to be appended to the default tolerations. * */ public Optional>> appendTolerations() { @@ -34,14 +34,14 @@ public Optional overrideAffinity; /** - * @return User defined affinity to override default agent affinity (string) + * @return Override affinity overrides the global default affinity setting. * */ public Optional> overrideAffinity() { @@ -49,14 +49,14 @@ public Optional> overrideAffinity() { } /** - * User defined resource requirements to set on the agent (list) + * Override resource requirements overrides the default value for requests and/or limits. * */ @Import(name="overrideResourceRequirements") private @Nullable Output> overrideResourceRequirements; /** - * @return User defined resource requirements to set on the agent (list) + * @return Override resource requirements overrides the default value for requests and/or limits. * */ public Optional>> overrideResourceRequirements() { @@ -90,7 +90,7 @@ public Builder(ClusterV2FleetAgentDeploymentCustomizationArgs defaults) { } /** - * @param appendTolerations User defined tolerations to append to agent (list) + * @param appendTolerations A list of tolerations to be appended to the default tolerations. * * @return builder * @@ -101,7 +101,7 @@ public Builder appendTolerations(@Nullable Output overrideAffinity) { } /** - * @param overrideAffinity User defined affinity to override default agent affinity (string) + * @param overrideAffinity Override affinity overrides the global default affinity setting. * * @return builder * @@ -142,7 +142,7 @@ public Builder overrideAffinity(String overrideAffinity) { } /** - * @param overrideResourceRequirements User defined resource requirements to set on the agent (list) + * @param overrideResourceRequirements Override resource requirements overrides the default value for requests and/or limits. * * @return builder * @@ -153,7 +153,7 @@ public Builder overrideResourceRequirements(@Nullable Output cpuLimit; /** - * @return The maximum CPU limit for agent (string) + * @return The maximum CPU limit for agent. * */ public Optional> cpuLimit() { @@ -31,14 +31,14 @@ public Optional> cpuLimit() { } /** - * The minimum CPU required for agent (string) + * The minimum CPU required for agent. * */ @Import(name="cpuRequest") private @Nullable Output cpuRequest; /** - * @return The minimum CPU required for agent (string) + * @return The minimum CPU required for agent. * */ public Optional> cpuRequest() { @@ -46,14 +46,14 @@ public Optional> cpuRequest() { } /** - * The maximum memory limit for agent (string) + * The maximum memory limit for agent. * */ @Import(name="memoryLimit") private @Nullable Output memoryLimit; /** - * @return The maximum memory limit for agent (string) + * @return The maximum memory limit for agent. * */ public Optional> memoryLimit() { @@ -61,14 +61,14 @@ public Optional> memoryLimit() { } /** - * The minimum memory required for agent (string) + * The minimum memory required for agent. * */ @Import(name="memoryRequest") private @Nullable Output memoryRequest; /** - * @return The minimum memory required for agent (string) + * @return The minimum memory required for agent. * */ public Optional> memoryRequest() { @@ -103,7 +103,7 @@ public Builder(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequire } /** - * @param cpuLimit The maximum CPU limit for agent (string) + * @param cpuLimit The maximum CPU limit for agent. * * @return builder * @@ -114,7 +114,7 @@ public Builder cpuLimit(@Nullable Output cpuLimit) { } /** - * @param cpuLimit The maximum CPU limit for agent (string) + * @param cpuLimit The maximum CPU limit for agent. * * @return builder * @@ -124,7 +124,7 @@ public Builder cpuLimit(String cpuLimit) { } /** - * @param cpuRequest The minimum CPU required for agent (string) + * @param cpuRequest The minimum CPU required for agent. * * @return builder * @@ -135,7 +135,7 @@ public Builder cpuRequest(@Nullable Output cpuRequest) { } /** - * @param cpuRequest The minimum CPU required for agent (string) + * @param cpuRequest The minimum CPU required for agent. * * @return builder * @@ -145,7 +145,7 @@ public Builder cpuRequest(String cpuRequest) { } /** - * @param memoryLimit The maximum memory limit for agent (string) + * @param memoryLimit The maximum memory limit for agent. * * @return builder * @@ -156,7 +156,7 @@ public Builder memoryLimit(@Nullable Output memoryLimit) { } /** - * @param memoryLimit The maximum memory limit for agent (string) + * @param memoryLimit The maximum memory limit for agent. * * @return builder * @@ -166,7 +166,7 @@ public Builder memoryLimit(String memoryLimit) { } /** - * @param memoryRequest The minimum memory required for agent (string) + * @param memoryRequest The minimum memory required for agent. * * @return builder * @@ -177,7 +177,7 @@ public Builder memoryRequest(@Nullable Output memoryRequest) { } /** - * @param memoryRequest The minimum memory required for agent (string) + * @param memoryRequest The minimum memory required for agent. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2LocalAuthEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2LocalAuthEndpointArgs.java index 008f7bbab..1caf840bd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2LocalAuthEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2LocalAuthEndpointArgs.java @@ -17,14 +17,14 @@ public final class ClusterV2LocalAuthEndpointArgs extends com.pulumi.resources.R public static final ClusterV2LocalAuthEndpointArgs Empty = new ClusterV2LocalAuthEndpointArgs(); /** - * CA certs for the authorized cluster endpoint (string) + * CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * */ @Import(name="caCerts") private @Nullable Output caCerts; /** - * @return CA certs for the authorized cluster endpoint (string) + * @return CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * */ public Optional> caCerts() { @@ -32,14 +32,14 @@ public Optional> caCerts() { } /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. * */ @Import(name="enabled") private @Nullable Output enabled; /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ public Optional> enabled() { @@ -47,14 +47,14 @@ public Optional> enabled() { } /** - * FQDN for the authorized cluster endpoint (string) + * FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * */ @Import(name="fqdn") private @Nullable Output fqdn; /** - * @return FQDN for the authorized cluster endpoint (string) + * @return FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * */ public Optional> fqdn() { @@ -88,7 +88,7 @@ public Builder(ClusterV2LocalAuthEndpointArgs defaults) { } /** - * @param caCerts CA certs for the authorized cluster endpoint (string) + * @param caCerts CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * * @return builder * @@ -99,7 +99,7 @@ public Builder caCerts(@Nullable Output caCerts) { } /** - * @param caCerts CA certs for the authorized cluster endpoint (string) + * @param caCerts CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * * @return builder * @@ -109,7 +109,7 @@ public Builder caCerts(String caCerts) { } /** - * @param enabled Drain options enabled? Default `true` (bool) + * @param enabled If `enabled` is set to true, nodes will be drained before upgrade. * * @return builder * @@ -120,7 +120,7 @@ public Builder enabled(@Nullable Output enabled) { } /** - * @param enabled Drain options enabled? Default `true` (bool) + * @param enabled If `enabled` is set to true, nodes will be drained before upgrade. * * @return builder * @@ -130,7 +130,7 @@ public Builder enabled(Boolean enabled) { } /** - * @param fqdn FQDN for the authorized cluster endpoint (string) + * @param fqdn FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * * @return builder * @@ -141,7 +141,7 @@ public Builder fqdn(@Nullable Output fqdn) { } /** - * @param fqdn FQDN for the authorized cluster endpoint (string) + * @param fqdn FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigArgs.java index e63dddb04..1187894e7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigArgs.java @@ -12,6 +12,7 @@ import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachinePoolArgs; import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachinePoolDefaultArgs; import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorConfigArgs; +import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorFileArgs; import com.pulumi.rancher2.inputs.ClusterV2RkeConfigRegistriesArgs; import com.pulumi.rancher2.inputs.ClusterV2RkeConfigRotateCertificatesArgs; import com.pulumi.rancher2.inputs.ClusterV2RkeConfigUpgradeStrategyArgs; @@ -27,14 +28,14 @@ public final class ClusterV2RkeConfigArgs extends com.pulumi.resources.ResourceA public static final ClusterV2RkeConfigArgs Empty = new ClusterV2RkeConfigArgs(); /** - * Cluster V2 additional manifest (string) + * The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. * */ @Import(name="additionalManifest") private @Nullable Output additionalManifest; /** - * @return Cluster V2 additional manifest (string) + * @return The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. * */ public Optional> additionalManifest() { @@ -42,14 +43,14 @@ public Optional> additionalManifest() { } /** - * Cluster V2 chart values. Must be in YAML format (string) + * The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). * */ @Import(name="chartValues") private @Nullable Output chartValues; /** - * @return Cluster V2 chart values. Must be in YAML format (string) + * @return The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). * */ public Optional> chartValues() { @@ -57,14 +58,14 @@ public Optional> chartValues() { } /** - * Cluster V2 etcd (list maxitems:1) + * Etcd configures the behavior of the automatic etcd snapshot feature. * */ @Import(name="etcd") private @Nullable Output etcd; /** - * @return Cluster V2 etcd (list maxitems:1) + * @return Etcd configures the behavior of the automatic etcd snapshot feature. * */ public Optional> etcd() { @@ -72,14 +73,14 @@ public Optional> etcd() { } /** - * Cluster V2 etcd snapshot create (list maxitems:1) + * Cluster V2 etcd snapshot create. * */ @Import(name="etcdSnapshotCreate") private @Nullable Output etcdSnapshotCreate; /** - * @return Cluster V2 etcd snapshot create (list maxitems:1) + * @return Cluster V2 etcd snapshot create. * */ public Optional> etcdSnapshotCreate() { @@ -87,14 +88,14 @@ public Optional> etcdSnapshotCr } /** - * Cluster V2 etcd snapshot restore (list maxitems:1) + * Cluster V2 etcd snapshot restore. * */ @Import(name="etcdSnapshotRestore") private @Nullable Output etcdSnapshotRestore; /** - * @return Cluster V2 etcd snapshot restore (list maxitems:1) + * @return Cluster V2 etcd snapshot restore. * */ public Optional> etcdSnapshotRestore() { @@ -102,7 +103,7 @@ public Optional> etcdSnapshotR } /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * * @deprecated * Use rancher2_cluster_v2.local_auth_endpoint instead @@ -113,7 +114,7 @@ public Optional> etcdSnapshotR private @Nullable Output localAuthEndpoint; /** - * @return Cluster V2 local auth endpoint (list maxitems:1) + * @return Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * * @deprecated * Use rancher2_cluster_v2.local_auth_endpoint instead @@ -125,14 +126,14 @@ public Optional> localAuthEndpoi } /** - * Cluster V2 machine global config. Must be in YAML format (string) + * Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). * */ @Import(name="machineGlobalConfig") private @Nullable Output machineGlobalConfig; /** - * @return Cluster V2 machine global config. Must be in YAML format (string) + * @return Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). * */ public Optional> machineGlobalConfig() { @@ -155,14 +156,14 @@ public Optional>> machineP } /** - * Cluster V2 machine pools (list) + * Cluster V2 machine pools. * */ @Import(name="machinePools") private @Nullable Output> machinePools; /** - * @return Cluster V2 machine pools (list) + * @return Cluster V2 machine pools. * */ public Optional>> machinePools() { @@ -170,14 +171,14 @@ public Optional>> machinePools() } /** - * Cluster V2 machine selector config (list) + * Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. * */ @Import(name="machineSelectorConfigs") private @Nullable Output> machineSelectorConfigs; /** - * @return Cluster V2 machine selector config (list) + * @return Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. * */ public Optional>> machineSelectorConfigs() { @@ -185,14 +186,29 @@ public Optional>> machi } /** - * Cluster V2 docker registries (list maxitems:1) + * Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + * + */ + @Import(name="machineSelectorFiles") + private @Nullable Output> machineSelectorFiles; + + /** + * @return Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + * + */ + public Optional>> machineSelectorFiles() { + return Optional.ofNullable(this.machineSelectorFiles); + } + + /** + * Docker registries from which the cluster pulls images. * */ @Import(name="registries") private @Nullable Output registries; /** - * @return Cluster V2 docker registries (list maxitems:1) + * @return Docker registries from which the cluster pulls images. * */ public Optional> registries() { @@ -200,14 +216,14 @@ public Optional> registries() { } /** - * Cluster V2 certificate rotation (list maxitems:1) + * Cluster V2 certificate rotation. * */ @Import(name="rotateCertificates") private @Nullable Output rotateCertificates; /** - * @return Cluster V2 certificate rotation (list maxitems:1) + * @return Cluster V2 certificate rotation. * */ public Optional> rotateCertificates() { @@ -215,14 +231,14 @@ public Optional> rotateCertific } /** - * Cluster V2 upgrade strategy (list maxitems:1) + * Cluster upgrade strategy. * */ @Import(name="upgradeStrategy") private @Nullable Output upgradeStrategy; /** - * @return Cluster V2 upgrade strategy (list maxitems:1) + * @return Cluster upgrade strategy. * */ public Optional> upgradeStrategy() { @@ -242,6 +258,7 @@ private ClusterV2RkeConfigArgs(ClusterV2RkeConfigArgs $) { this.machinePoolDefaults = $.machinePoolDefaults; this.machinePools = $.machinePools; this.machineSelectorConfigs = $.machineSelectorConfigs; + this.machineSelectorFiles = $.machineSelectorFiles; this.registries = $.registries; this.rotateCertificates = $.rotateCertificates; this.upgradeStrategy = $.upgradeStrategy; @@ -266,7 +283,7 @@ public Builder(ClusterV2RkeConfigArgs defaults) { } /** - * @param additionalManifest Cluster V2 additional manifest (string) + * @param additionalManifest The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. * * @return builder * @@ -277,7 +294,7 @@ public Builder additionalManifest(@Nullable Output additionalManifest) { } /** - * @param additionalManifest Cluster V2 additional manifest (string) + * @param additionalManifest The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. * * @return builder * @@ -287,7 +304,7 @@ public Builder additionalManifest(String additionalManifest) { } /** - * @param chartValues Cluster V2 chart values. Must be in YAML format (string) + * @param chartValues The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). * * @return builder * @@ -298,7 +315,7 @@ public Builder chartValues(@Nullable Output chartValues) { } /** - * @param chartValues Cluster V2 chart values. Must be in YAML format (string) + * @param chartValues The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). * * @return builder * @@ -308,7 +325,7 @@ public Builder chartValues(String chartValues) { } /** - * @param etcd Cluster V2 etcd (list maxitems:1) + * @param etcd Etcd configures the behavior of the automatic etcd snapshot feature. * * @return builder * @@ -319,7 +336,7 @@ public Builder etcd(@Nullable Output etcd) { } /** - * @param etcd Cluster V2 etcd (list maxitems:1) + * @param etcd Etcd configures the behavior of the automatic etcd snapshot feature. * * @return builder * @@ -329,7 +346,7 @@ public Builder etcd(ClusterV2RkeConfigEtcdArgs etcd) { } /** - * @param etcdSnapshotCreate Cluster V2 etcd snapshot create (list maxitems:1) + * @param etcdSnapshotCreate Cluster V2 etcd snapshot create. * * @return builder * @@ -340,7 +357,7 @@ public Builder etcdSnapshotCreate(@Nullable Output machineGlobalConfig) } /** - * @param machineGlobalConfig Cluster V2 machine global config. Must be in YAML format (string) + * @param machineGlobalConfig Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). * * @return builder * @@ -452,7 +469,7 @@ public Builder machinePoolDefaults(ClusterV2RkeConfigMachinePoolDefaultArgs... m } /** - * @param machinePools Cluster V2 machine pools (list) + * @param machinePools Cluster V2 machine pools. * * @return builder * @@ -463,7 +480,7 @@ public Builder machinePools(@Nullable Output machinePools } /** - * @param machinePools Cluster V2 machine pools (list) + * @param machinePools Cluster V2 machine pools. * * @return builder * @@ -483,7 +500,7 @@ public Builder machinePools(ClusterV2RkeConfigMachinePoolArgs... machinePools) { } /** - * @param machineSelectorConfigs Cluster V2 machine selector config (list) + * @param machineSelectorConfigs Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. * * @return builder * @@ -494,7 +511,7 @@ public Builder machineSelectorConfigs(@Nullable Output> machineSelectorFiles) { + $.machineSelectorFiles = machineSelectorFiles; + return this; + } + + /** + * @param machineSelectorFiles Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + * + * @return builder + * + */ + public Builder machineSelectorFiles(List machineSelectorFiles) { + return machineSelectorFiles(Output.of(machineSelectorFiles)); + } + + /** + * @param machineSelectorFiles Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + * + * @return builder + * + */ + public Builder machineSelectorFiles(ClusterV2RkeConfigMachineSelectorFileArgs... machineSelectorFiles) { + return machineSelectorFiles(List.of(machineSelectorFiles)); + } + + /** + * @param registries Docker registries from which the cluster pulls images. * * @return builder * @@ -525,7 +573,7 @@ public Builder registries(@Nullable Output reg } /** - * @param registries Cluster V2 docker registries (list maxitems:1) + * @param registries Docker registries from which the cluster pulls images. * * @return builder * @@ -535,7 +583,7 @@ public Builder registries(ClusterV2RkeConfigRegistriesArgs registries) { } /** - * @param rotateCertificates Cluster V2 certificate rotation (list maxitems:1) + * @param rotateCertificates Cluster V2 certificate rotation. * * @return builder * @@ -546,7 +594,7 @@ public Builder rotateCertificates(@Nullable Output disableSnapshots; /** - * @return Disable ETCD snapshots. Default: `false` (bool) + * @return Disable ETCD snapshots. * */ public Optional> disableSnapshots() { @@ -34,14 +34,14 @@ public Optional> disableSnapshots() { } /** - * Creation option for etcd service (list maxitems:1) + * Creation option for etcd service. * */ @Import(name="s3Config") private @Nullable Output s3Config; /** - * @return Creation option for etcd service (list maxitems:1) + * @return Creation option for etcd service. * */ public Optional> s3Config() { @@ -49,14 +49,14 @@ public Optional> s3Config() { } /** - * ETCD snapshot retention (int) + * ETCD snapshot retention. * */ @Import(name="snapshotRetention") private @Nullable Output snapshotRetention; /** - * @return ETCD snapshot retention (int) + * @return ETCD snapshot retention. * */ public Optional> snapshotRetention() { @@ -64,14 +64,14 @@ public Optional> snapshotRetention() { } /** - * ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`) (string) + * ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`). * */ @Import(name="snapshotScheduleCron") private @Nullable Output snapshotScheduleCron; /** - * @return ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`) (string) + * @return ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`). * */ public Optional> snapshotScheduleCron() { @@ -106,7 +106,7 @@ public Builder(ClusterV2RkeConfigEtcdArgs defaults) { } /** - * @param disableSnapshots Disable ETCD snapshots. Default: `false` (bool) + * @param disableSnapshots Disable ETCD snapshots. * * @return builder * @@ -117,7 +117,7 @@ public Builder disableSnapshots(@Nullable Output disableSnapshots) { } /** - * @param disableSnapshots Disable ETCD snapshots. Default: `false` (bool) + * @param disableSnapshots Disable ETCD snapshots. * * @return builder * @@ -127,7 +127,7 @@ public Builder disableSnapshots(Boolean disableSnapshots) { } /** - * @param s3Config Creation option for etcd service (list maxitems:1) + * @param s3Config Creation option for etcd service. * * @return builder * @@ -138,7 +138,7 @@ public Builder s3Config(@Nullable Output s3C } /** - * @param s3Config Creation option for etcd service (list maxitems:1) + * @param s3Config Creation option for etcd service. * * @return builder * @@ -148,7 +148,7 @@ public Builder s3Config(ClusterV2RkeConfigEtcdS3ConfigArgs s3Config) { } /** - * @param snapshotRetention ETCD snapshot retention (int) + * @param snapshotRetention ETCD snapshot retention. * * @return builder * @@ -159,7 +159,7 @@ public Builder snapshotRetention(@Nullable Output snapshotRetention) { } /** - * @param snapshotRetention ETCD snapshot retention (int) + * @param snapshotRetention ETCD snapshot retention. * * @return builder * @@ -169,7 +169,7 @@ public Builder snapshotRetention(Integer snapshotRetention) { } /** - * @param snapshotScheduleCron ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`) (string) + * @param snapshotScheduleCron ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`). * * @return builder * @@ -180,7 +180,7 @@ public Builder snapshotScheduleCron(@Nullable Output snapshotScheduleCro } /** - * @param snapshotScheduleCron ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`) (string) + * @param snapshotScheduleCron ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.java index 7e2f4bf32..204ff7c5c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.java @@ -18,14 +18,14 @@ public final class ClusterV2RkeConfigEtcdS3ConfigArgs extends com.pulumi.resourc public static final ClusterV2RkeConfigEtcdS3ConfigArgs Empty = new ClusterV2RkeConfigEtcdS3ConfigArgs(); /** - * Bucket name for S3 service (string) + * Bucket name for S3 service. * */ @Import(name="bucket", required=true) private Output bucket; /** - * @return Bucket name for S3 service (string) + * @return Bucket name for S3 service. * */ public Output bucket() { @@ -33,14 +33,14 @@ public Output bucket() { } /** - * ETCD snapshot S3 cloud credential name (string) + * ETCD snapshot S3 cloud credential name. * */ @Import(name="cloudCredentialName") private @Nullable Output cloudCredentialName; /** - * @return ETCD snapshot S3 cloud credential name (string) + * @return ETCD snapshot S3 cloud credential name. * */ public Optional> cloudCredentialName() { @@ -48,14 +48,14 @@ public Optional> cloudCredentialName() { } /** - * ETCD snapshot S3 endpoint (string) + * ETCD snapshot S3 endpoint. * */ @Import(name="endpoint", required=true) private Output endpoint; /** - * @return ETCD snapshot S3 endpoint (string) + * @return ETCD snapshot S3 endpoint. * */ public Output endpoint() { @@ -63,14 +63,14 @@ public Output endpoint() { } /** - * ETCD snapshot S3 endpoint CA (string) + * ETCD snapshot S3 endpoint CA. * */ @Import(name="endpointCa") private @Nullable Output endpointCa; /** - * @return ETCD snapshot S3 endpoint CA (string) + * @return ETCD snapshot S3 endpoint CA. * */ public Optional> endpointCa() { @@ -78,14 +78,14 @@ public Optional> endpointCa() { } /** - * ETCD snapshot S3 folder (string) + * ETCD snapshot S3 folder. * */ @Import(name="folder") private @Nullable Output folder; /** - * @return ETCD snapshot S3 folder (string) + * @return ETCD snapshot S3 folder. * */ public Optional> folder() { @@ -93,14 +93,14 @@ public Optional> folder() { } /** - * ETCD snapshot S3 region (string) + * ETCD snapshot S3 region. * */ @Import(name="region") private @Nullable Output region; /** - * @return ETCD snapshot S3 region (string) + * @return ETCD snapshot S3 region. * */ public Optional> region() { @@ -108,14 +108,14 @@ public Optional> region() { } /** - * Disable ETCD skip ssl verify. Default: `false` (bool) + * Disable ETCD skip ssl verify. * */ @Import(name="skipSslVerify") private @Nullable Output skipSslVerify; /** - * @return Disable ETCD skip ssl verify. Default: `false` (bool) + * @return Disable ETCD skip ssl verify. * */ public Optional> skipSslVerify() { @@ -153,7 +153,7 @@ public Builder(ClusterV2RkeConfigEtcdS3ConfigArgs defaults) { } /** - * @param bucket Bucket name for S3 service (string) + * @param bucket Bucket name for S3 service. * * @return builder * @@ -164,7 +164,7 @@ public Builder bucket(Output bucket) { } /** - * @param bucket Bucket name for S3 service (string) + * @param bucket Bucket name for S3 service. * * @return builder * @@ -174,7 +174,7 @@ public Builder bucket(String bucket) { } /** - * @param cloudCredentialName ETCD snapshot S3 cloud credential name (string) + * @param cloudCredentialName ETCD snapshot S3 cloud credential name. * * @return builder * @@ -185,7 +185,7 @@ public Builder cloudCredentialName(@Nullable Output cloudCredentialName) } /** - * @param cloudCredentialName ETCD snapshot S3 cloud credential name (string) + * @param cloudCredentialName ETCD snapshot S3 cloud credential name. * * @return builder * @@ -195,7 +195,7 @@ public Builder cloudCredentialName(String cloudCredentialName) { } /** - * @param endpoint ETCD snapshot S3 endpoint (string) + * @param endpoint ETCD snapshot S3 endpoint. * * @return builder * @@ -206,7 +206,7 @@ public Builder endpoint(Output endpoint) { } /** - * @param endpoint ETCD snapshot S3 endpoint (string) + * @param endpoint ETCD snapshot S3 endpoint. * * @return builder * @@ -216,7 +216,7 @@ public Builder endpoint(String endpoint) { } /** - * @param endpointCa ETCD snapshot S3 endpoint CA (string) + * @param endpointCa ETCD snapshot S3 endpoint CA. * * @return builder * @@ -227,7 +227,7 @@ public Builder endpointCa(@Nullable Output endpointCa) { } /** - * @param endpointCa ETCD snapshot S3 endpoint CA (string) + * @param endpointCa ETCD snapshot S3 endpoint CA. * * @return builder * @@ -237,7 +237,7 @@ public Builder endpointCa(String endpointCa) { } /** - * @param folder ETCD snapshot S3 folder (string) + * @param folder ETCD snapshot S3 folder. * * @return builder * @@ -248,7 +248,7 @@ public Builder folder(@Nullable Output folder) { } /** - * @param folder ETCD snapshot S3 folder (string) + * @param folder ETCD snapshot S3 folder. * * @return builder * @@ -258,7 +258,7 @@ public Builder folder(String folder) { } /** - * @param region ETCD snapshot S3 region (string) + * @param region ETCD snapshot S3 region. * * @return builder * @@ -269,7 +269,7 @@ public Builder region(@Nullable Output region) { } /** - * @param region ETCD snapshot S3 region (string) + * @param region ETCD snapshot S3 region. * * @return builder * @@ -279,7 +279,7 @@ public Builder region(String region) { } /** - * @param skipSslVerify Disable ETCD skip ssl verify. Default: `false` (bool) + * @param skipSslVerify Disable ETCD skip ssl verify. * * @return builder * @@ -290,7 +290,7 @@ public Builder skipSslVerify(@Nullable Output skipSslVerify) { } /** - * @param skipSslVerify Disable ETCD skip ssl verify. Default: `false` (bool) + * @param skipSslVerify Disable ETCD skip ssl verify. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.java index f0fe1d410..65f854604 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.java @@ -15,14 +15,14 @@ public final class ClusterV2RkeConfigEtcdSnapshotCreateArgs extends com.pulumi.r public static final ClusterV2RkeConfigEtcdSnapshotCreateArgs Empty = new ClusterV2RkeConfigEtcdSnapshotCreateArgs(); /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. * */ @Import(name="generation", required=true) private Output generation; /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ public Output generation() { @@ -54,7 +54,7 @@ public Builder(ClusterV2RkeConfigEtcdSnapshotCreateArgs defaults) { } /** - * @param generation ETCD snapshot desired generation (int) + * @param generation ETCD snapshot desired generation. * * @return builder * @@ -65,7 +65,7 @@ public Builder generation(Output generation) { } /** - * @param generation ETCD snapshot desired generation (int) + * @param generation ETCD snapshot desired generation. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.java index fd05d7934..bc82deab8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.java @@ -18,14 +18,14 @@ public final class ClusterV2RkeConfigEtcdSnapshotRestoreArgs extends com.pulumi. public static final ClusterV2RkeConfigEtcdSnapshotRestoreArgs Empty = new ClusterV2RkeConfigEtcdSnapshotRestoreArgs(); /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. * */ @Import(name="generation", required=true) private Output generation; /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ public Output generation() { @@ -33,14 +33,14 @@ public Output generation() { } /** - * The name of the Cluster v2 (string) + * The name of the cluster. * */ @Import(name="name", required=true) private Output name; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Output name() { @@ -48,14 +48,14 @@ public Output name() { } /** - * ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + * ETCD restore RKE config (set to none, all, or kubernetesVersion). * */ @Import(name="restoreRkeConfig") private @Nullable Output restoreRkeConfig; /** - * @return ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + * @return ETCD restore RKE config (set to none, all, or kubernetesVersion). * */ public Optional> restoreRkeConfig() { @@ -89,7 +89,7 @@ public Builder(ClusterV2RkeConfigEtcdSnapshotRestoreArgs defaults) { } /** - * @param generation ETCD snapshot desired generation (int) + * @param generation ETCD snapshot desired generation. * * @return builder * @@ -100,7 +100,7 @@ public Builder generation(Output generation) { } /** - * @param generation ETCD snapshot desired generation (int) + * @param generation ETCD snapshot desired generation. * * @return builder * @@ -110,7 +110,7 @@ public Builder generation(Integer generation) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -121,7 +121,7 @@ public Builder name(Output name) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -131,7 +131,7 @@ public Builder name(String name) { } /** - * @param restoreRkeConfig ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + * @param restoreRkeConfig ETCD restore RKE config (set to none, all, or kubernetesVersion). * * @return builder * @@ -142,7 +142,7 @@ public Builder restoreRkeConfig(@Nullable Output restoreRkeConfig) { } /** - * @param restoreRkeConfig ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + * @param restoreRkeConfig ETCD restore RKE config (set to none, all, or kubernetesVersion). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigLocalAuthEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigLocalAuthEndpointArgs.java index 7e443e774..76acaea83 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigLocalAuthEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigLocalAuthEndpointArgs.java @@ -17,14 +17,14 @@ public final class ClusterV2RkeConfigLocalAuthEndpointArgs extends com.pulumi.re public static final ClusterV2RkeConfigLocalAuthEndpointArgs Empty = new ClusterV2RkeConfigLocalAuthEndpointArgs(); /** - * CA certs for the authorized cluster endpoint (string) + * CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * */ @Import(name="caCerts") private @Nullable Output caCerts; /** - * @return CA certs for the authorized cluster endpoint (string) + * @return CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * */ public Optional> caCerts() { @@ -32,14 +32,14 @@ public Optional> caCerts() { } /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. * */ @Import(name="enabled") private @Nullable Output enabled; /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ public Optional> enabled() { @@ -47,14 +47,14 @@ public Optional> enabled() { } /** - * FQDN for the authorized cluster endpoint (string) + * FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * */ @Import(name="fqdn") private @Nullable Output fqdn; /** - * @return FQDN for the authorized cluster endpoint (string) + * @return FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * */ public Optional> fqdn() { @@ -88,7 +88,7 @@ public Builder(ClusterV2RkeConfigLocalAuthEndpointArgs defaults) { } /** - * @param caCerts CA certs for the authorized cluster endpoint (string) + * @param caCerts CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * * @return builder * @@ -99,7 +99,7 @@ public Builder caCerts(@Nullable Output caCerts) { } /** - * @param caCerts CA certs for the authorized cluster endpoint (string) + * @param caCerts CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * * @return builder * @@ -109,7 +109,7 @@ public Builder caCerts(String caCerts) { } /** - * @param enabled Drain options enabled? Default `true` (bool) + * @param enabled If `enabled` is set to true, nodes will be drained before upgrade. * * @return builder * @@ -120,7 +120,7 @@ public Builder enabled(@Nullable Output enabled) { } /** - * @param enabled Drain options enabled? Default `true` (bool) + * @param enabled If `enabled` is set to true, nodes will be drained before upgrade. * * @return builder * @@ -130,7 +130,7 @@ public Builder enabled(Boolean enabled) { } /** - * @param fqdn FQDN for the authorized cluster endpoint (string) + * @param fqdn FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * * @return builder * @@ -141,7 +141,7 @@ public Builder fqdn(@Nullable Output fqdn) { } /** - * @param fqdn FQDN for the authorized cluster endpoint (string) + * @param fqdn FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolArgs.java index db5c592c5..70ef24919 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolArgs.java @@ -25,14 +25,14 @@ public final class ClusterV2RkeConfigMachinePoolArgs extends com.pulumi.resource public static final ClusterV2RkeConfigMachinePoolArgs Empty = new ClusterV2RkeConfigMachinePoolArgs(); /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. * */ @Import(name="annotations") private @Nullable Output> annotations; /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ public Optional>> annotations() { @@ -40,14 +40,14 @@ public Optional>> annotations() { } /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ @Import(name="cloudCredentialSecretName") private @Nullable Output cloudCredentialSecretName; /** - * @return Cluster V2 cloud credential secret name (string) + * @return Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ public Optional> cloudCredentialSecretName() { @@ -55,14 +55,14 @@ public Optional> cloudCredentialSecretName() { } /** - * Machine pool control plane role? (bool) + * Machine pool control plane role? * */ @Import(name="controlPlaneRole") private @Nullable Output controlPlaneRole; /** - * @return Machine pool control plane role? (bool) + * @return Machine pool control plane role? * */ public Optional> controlPlaneRole() { @@ -70,14 +70,14 @@ public Optional> controlPlaneRole() { } /** - * Machine Pool Drain Before Delete? (bool) + * Machine Pool Drain Before Delete? * */ @Import(name="drainBeforeDelete") private @Nullable Output drainBeforeDelete; /** - * @return Machine Pool Drain Before Delete? (bool) + * @return Machine Pool Drain Before Delete? * */ public Optional> drainBeforeDelete() { @@ -85,14 +85,14 @@ public Optional> drainBeforeDelete() { } /** - * Machine pool etcd role? (bool) + * Machine pool etcd role? * */ @Import(name="etcdRole") private @Nullable Output etcdRole; /** - * @return Machine pool etcd role? (bool) + * @return Machine pool etcd role? * */ public Optional> etcdRole() { @@ -115,14 +115,14 @@ public Optional> hostnameLengthLimit() { } /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. * */ @Import(name="labels") private @Nullable Output> labels; /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ public Optional>> labels() { @@ -130,14 +130,14 @@ public Optional>> labels() { } /** - * Machine pool node config (list) + * Machine pool node config. * */ @Import(name="machineConfig", required=true) private Output machineConfig; /** - * @return Machine pool node config (list) + * @return Machine pool node config. * */ public Output machineConfig() { @@ -145,14 +145,14 @@ public Output machineConfig() { } /** - * Labels for Machine pool nodes (map) + * Labels for Machine pool nodes. * */ @Import(name="machineLabels") private @Nullable Output> machineLabels; /** - * @return Labels for Machine pool nodes (map) + * @return Labels for Machine pool nodes. * */ public Optional>> machineLabels() { @@ -160,14 +160,14 @@ public Optional>> machineLabels() { } /** - * Max unhealthy nodes for automated replacement to be allowed (string) + * Max unhealthy nodes for automated replacement to be allowed. * */ @Import(name="maxUnhealthy") private @Nullable Output maxUnhealthy; /** - * @return Max unhealthy nodes for automated replacement to be allowed (string) + * @return Max unhealthy nodes for automated replacement to be allowed. * */ public Optional> maxUnhealthy() { @@ -175,14 +175,14 @@ public Optional> maxUnhealthy() { } /** - * The name of the Cluster v2 (string) + * The name of the cluster. * */ @Import(name="name", required=true) private Output name; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Output name() { @@ -190,14 +190,14 @@ public Output name() { } /** - * Seconds a machine has to drain before deletion (int) + * Seconds a machine has to drain before deletion. * */ @Import(name="nodeDrainTimeout") private @Nullable Output nodeDrainTimeout; /** - * @return Seconds a machine has to drain before deletion (int) + * @return Seconds a machine has to drain before deletion. * */ public Optional> nodeDrainTimeout() { @@ -205,14 +205,14 @@ public Optional> nodeDrainTimeout() { } /** - * Seconds a new node has to become active before it is replaced (int) + * Seconds a new node has to become active before it is replaced. * */ @Import(name="nodeStartupTimeoutSeconds") private @Nullable Output nodeStartupTimeoutSeconds; /** - * @return Seconds a new node has to become active before it is replaced (int) + * @return Seconds a new node has to become active before it is replaced. * */ public Optional> nodeStartupTimeoutSeconds() { @@ -220,14 +220,14 @@ public Optional> nodeStartupTimeoutSeconds() { } /** - * Machine pool paused? (bool) + * Machine pool paused? * */ @Import(name="paused") private @Nullable Output paused; /** - * @return Machine pool paused? (bool) + * @return Machine pool paused? * */ public Optional> paused() { @@ -235,14 +235,14 @@ public Optional> paused() { } /** - * Machine pool quantity (int) + * Machine pool quantity. * */ @Import(name="quantity") private @Nullable Output quantity; /** - * @return Machine pool quantity (int) + * @return Machine pool quantity. * */ public Optional> quantity() { @@ -250,14 +250,14 @@ public Optional> quantity() { } /** - * Machine pool rolling update (List maxitems:1) + * Machine pool rolling update. * */ @Import(name="rollingUpdate") private @Nullable Output rollingUpdate; /** - * @return Machine pool rolling update (List maxitems:1) + * @return Machine pool rolling update. * */ public Optional> rollingUpdate() { @@ -265,14 +265,14 @@ public Optional> rollingU } /** - * Machine pool taints (list) + * Machine pool taints. * */ @Import(name="taints") private @Nullable Output> taints; /** - * @return Machine pool taints (list) + * @return Machine pool taints. * */ public Optional>> taints() { @@ -280,14 +280,14 @@ public Optional>> taints() { } /** - * Seconds an unhealthy node has to become active before it is replaced (int) + * Seconds an unhealthy node has to become active before it is replaced. * */ @Import(name="unhealthyNodeTimeoutSeconds") private @Nullable Output unhealthyNodeTimeoutSeconds; /** - * @return Seconds an unhealthy node has to become active before it is replaced (int) + * @return Seconds an unhealthy node has to become active before it is replaced. * */ public Optional> unhealthyNodeTimeoutSeconds() { @@ -295,14 +295,14 @@ public Optional> unhealthyNodeTimeoutSeconds() { } /** - * Range of unhealthy nodes for automated replacement to be allowed (string) + * Range of unhealthy nodes for automated replacement to be allowed. * */ @Import(name="unhealthyRange") private @Nullable Output unhealthyRange; /** - * @return Range of unhealthy nodes for automated replacement to be allowed (string) + * @return Range of unhealthy nodes for automated replacement to be allowed. * */ public Optional> unhealthyRange() { @@ -310,14 +310,14 @@ public Optional> unhealthyRange() { } /** - * Machine pool worker role? (bool) + * Machine pool worker role? * */ @Import(name="workerRole") private @Nullable Output workerRole; /** - * @return Machine pool worker role? (bool) + * @return Machine pool worker role? * */ public Optional> workerRole() { @@ -368,7 +368,7 @@ public Builder(ClusterV2RkeConfigMachinePoolArgs defaults) { } /** - * @param annotations Annotations for the Cluster V2 (map) + * @param annotations Annotations for the Cluster. * * @return builder * @@ -379,7 +379,7 @@ public Builder annotations(@Nullable Output> annotations) { } /** - * @param annotations Annotations for the Cluster V2 (map) + * @param annotations Annotations for the Cluster. * * @return builder * @@ -389,7 +389,7 @@ public Builder annotations(Map annotations) { } /** - * @param cloudCredentialSecretName Cluster V2 cloud credential secret name (string) + * @param cloudCredentialSecretName Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * * @return builder * @@ -400,7 +400,7 @@ public Builder cloudCredentialSecretName(@Nullable Output cloudCredentia } /** - * @param cloudCredentialSecretName Cluster V2 cloud credential secret name (string) + * @param cloudCredentialSecretName Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * * @return builder * @@ -410,7 +410,7 @@ public Builder cloudCredentialSecretName(String cloudCredentialSecretName) { } /** - * @param controlPlaneRole Machine pool control plane role? (bool) + * @param controlPlaneRole Machine pool control plane role? * * @return builder * @@ -421,7 +421,7 @@ public Builder controlPlaneRole(@Nullable Output controlPlaneRole) { } /** - * @param controlPlaneRole Machine pool control plane role? (bool) + * @param controlPlaneRole Machine pool control plane role? * * @return builder * @@ -431,7 +431,7 @@ public Builder controlPlaneRole(Boolean controlPlaneRole) { } /** - * @param drainBeforeDelete Machine Pool Drain Before Delete? (bool) + * @param drainBeforeDelete Machine Pool Drain Before Delete? * * @return builder * @@ -442,7 +442,7 @@ public Builder drainBeforeDelete(@Nullable Output drainBeforeDelete) { } /** - * @param drainBeforeDelete Machine Pool Drain Before Delete? (bool) + * @param drainBeforeDelete Machine Pool Drain Before Delete? * * @return builder * @@ -452,7 +452,7 @@ public Builder drainBeforeDelete(Boolean drainBeforeDelete) { } /** - * @param etcdRole Machine pool etcd role? (bool) + * @param etcdRole Machine pool etcd role? * * @return builder * @@ -463,7 +463,7 @@ public Builder etcdRole(@Nullable Output etcdRole) { } /** - * @param etcdRole Machine pool etcd role? (bool) + * @param etcdRole Machine pool etcd role? * * @return builder * @@ -494,7 +494,7 @@ public Builder hostnameLengthLimit(Integer hostnameLengthLimit) { } /** - * @param labels Labels for the Cluster V2 (map) + * @param labels Labels for the Cluster. * * @return builder * @@ -505,7 +505,7 @@ public Builder labels(@Nullable Output> labels) { } /** - * @param labels Labels for the Cluster V2 (map) + * @param labels Labels for the Cluster. * * @return builder * @@ -515,7 +515,7 @@ public Builder labels(Map labels) { } /** - * @param machineConfig Machine pool node config (list) + * @param machineConfig Machine pool node config. * * @return builder * @@ -526,7 +526,7 @@ public Builder machineConfig(Output> machineLabels) } /** - * @param machineLabels Labels for Machine pool nodes (map) + * @param machineLabels Labels for Machine pool nodes. * * @return builder * @@ -557,7 +557,7 @@ public Builder machineLabels(Map machineLabels) { } /** - * @param maxUnhealthy Max unhealthy nodes for automated replacement to be allowed (string) + * @param maxUnhealthy Max unhealthy nodes for automated replacement to be allowed. * * @return builder * @@ -568,7 +568,7 @@ public Builder maxUnhealthy(@Nullable Output maxUnhealthy) { } /** - * @param maxUnhealthy Max unhealthy nodes for automated replacement to be allowed (string) + * @param maxUnhealthy Max unhealthy nodes for automated replacement to be allowed. * * @return builder * @@ -578,7 +578,7 @@ public Builder maxUnhealthy(String maxUnhealthy) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -589,7 +589,7 @@ public Builder name(Output name) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -599,7 +599,7 @@ public Builder name(String name) { } /** - * @param nodeDrainTimeout Seconds a machine has to drain before deletion (int) + * @param nodeDrainTimeout Seconds a machine has to drain before deletion. * * @return builder * @@ -610,7 +610,7 @@ public Builder nodeDrainTimeout(@Nullable Output nodeDrainTimeout) { } /** - * @param nodeDrainTimeout Seconds a machine has to drain before deletion (int) + * @param nodeDrainTimeout Seconds a machine has to drain before deletion. * * @return builder * @@ -620,7 +620,7 @@ public Builder nodeDrainTimeout(Integer nodeDrainTimeout) { } /** - * @param nodeStartupTimeoutSeconds Seconds a new node has to become active before it is replaced (int) + * @param nodeStartupTimeoutSeconds Seconds a new node has to become active before it is replaced. * * @return builder * @@ -631,7 +631,7 @@ public Builder nodeStartupTimeoutSeconds(@Nullable Output nodeStartupTi } /** - * @param nodeStartupTimeoutSeconds Seconds a new node has to become active before it is replaced (int) + * @param nodeStartupTimeoutSeconds Seconds a new node has to become active before it is replaced. * * @return builder * @@ -641,7 +641,7 @@ public Builder nodeStartupTimeoutSeconds(Integer nodeStartupTimeoutSeconds) { } /** - * @param paused Machine pool paused? (bool) + * @param paused Machine pool paused? * * @return builder * @@ -652,7 +652,7 @@ public Builder paused(@Nullable Output paused) { } /** - * @param paused Machine pool paused? (bool) + * @param paused Machine pool paused? * * @return builder * @@ -662,7 +662,7 @@ public Builder paused(Boolean paused) { } /** - * @param quantity Machine pool quantity (int) + * @param quantity Machine pool quantity. * * @return builder * @@ -673,7 +673,7 @@ public Builder quantity(@Nullable Output quantity) { } /** - * @param quantity Machine pool quantity (int) + * @param quantity Machine pool quantity. * * @return builder * @@ -683,7 +683,7 @@ public Builder quantity(Integer quantity) { } /** - * @param rollingUpdate Machine pool rolling update (List maxitems:1) + * @param rollingUpdate Machine pool rolling update. * * @return builder * @@ -694,7 +694,7 @@ public Builder rollingUpdate(@Nullable Output taints) { } /** - * @param taints Machine pool taints (list) + * @param taints Machine pool taints. * * @return builder * @@ -735,7 +735,7 @@ public Builder taints(ClusterV2RkeConfigMachinePoolTaintArgs... taints) { } /** - * @param unhealthyNodeTimeoutSeconds Seconds an unhealthy node has to become active before it is replaced (int) + * @param unhealthyNodeTimeoutSeconds Seconds an unhealthy node has to become active before it is replaced. * * @return builder * @@ -746,7 +746,7 @@ public Builder unhealthyNodeTimeoutSeconds(@Nullable Output unhealthyNo } /** - * @param unhealthyNodeTimeoutSeconds Seconds an unhealthy node has to become active before it is replaced (int) + * @param unhealthyNodeTimeoutSeconds Seconds an unhealthy node has to become active before it is replaced. * * @return builder * @@ -756,7 +756,7 @@ public Builder unhealthyNodeTimeoutSeconds(Integer unhealthyNodeTimeoutSeconds) } /** - * @param unhealthyRange Range of unhealthy nodes for automated replacement to be allowed (string) + * @param unhealthyRange Range of unhealthy nodes for automated replacement to be allowed. * * @return builder * @@ -767,7 +767,7 @@ public Builder unhealthyRange(@Nullable Output unhealthyRange) { } /** - * @param unhealthyRange Range of unhealthy nodes for automated replacement to be allowed (string) + * @param unhealthyRange Range of unhealthy nodes for automated replacement to be allowed. * * @return builder * @@ -777,7 +777,7 @@ public Builder unhealthyRange(String unhealthyRange) { } /** - * @param workerRole Machine pool worker role? (bool) + * @param workerRole Machine pool worker role? * * @return builder * @@ -788,7 +788,7 @@ public Builder workerRole(@Nullable Output workerRole) { } /** - * @param workerRole Machine pool worker role? (bool) + * @param workerRole Machine pool worker role? * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.java index bfdae773b..93023f866 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.java @@ -8,6 +8,8 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class ClusterV2RkeConfigMachinePoolMachineConfigArgs extends com.pulumi.resources.ResourceArgs { @@ -15,14 +17,29 @@ public final class ClusterV2RkeConfigMachinePoolMachineConfigArgs extends com.pu public static final ClusterV2RkeConfigMachinePoolMachineConfigArgs Empty = new ClusterV2RkeConfigMachinePoolMachineConfigArgs(); /** - * Machine config kind (string) + * Api version of the machine_config. + * + */ + @Import(name="apiVersion") + private @Nullable Output apiVersion; + + /** + * @return Api version of the machine_config. + * + */ + public Optional> apiVersion() { + return Optional.ofNullable(this.apiVersion); + } + + /** + * Machine config kind. * */ @Import(name="kind", required=true) private Output kind; /** - * @return Machine config kind (string) + * @return Machine config kind. * */ public Output kind() { @@ -30,14 +47,14 @@ public Output kind() { } /** - * The name of the Cluster v2 (string) + * The name of the cluster. * */ @Import(name="name", required=true) private Output name; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Output name() { @@ -47,6 +64,7 @@ public Output name() { private ClusterV2RkeConfigMachinePoolMachineConfigArgs() {} private ClusterV2RkeConfigMachinePoolMachineConfigArgs(ClusterV2RkeConfigMachinePoolMachineConfigArgs $) { + this.apiVersion = $.apiVersion; this.kind = $.kind; this.name = $.name; } @@ -70,7 +88,28 @@ public Builder(ClusterV2RkeConfigMachinePoolMachineConfigArgs defaults) { } /** - * @param kind Machine config kind (string) + * @param apiVersion Api version of the machine_config. + * + * @return builder + * + */ + public Builder apiVersion(@Nullable Output apiVersion) { + $.apiVersion = apiVersion; + return this; + } + + /** + * @param apiVersion Api version of the machine_config. + * + * @return builder + * + */ + public Builder apiVersion(String apiVersion) { + return apiVersion(Output.of(apiVersion)); + } + + /** + * @param kind Machine config kind. * * @return builder * @@ -81,7 +120,7 @@ public Builder kind(Output kind) { } /** - * @param kind Machine config kind (string) + * @param kind Machine config kind. * * @return builder * @@ -91,7 +130,7 @@ public Builder kind(String kind) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -102,7 +141,7 @@ public Builder name(Output name) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolRollingUpdateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolRollingUpdateArgs.java index c8bc6b871..8ff906bf7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolRollingUpdateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolRollingUpdateArgs.java @@ -16,14 +16,14 @@ public final class ClusterV2RkeConfigMachinePoolRollingUpdateArgs extends com.pu public static final ClusterV2RkeConfigMachinePoolRollingUpdateArgs Empty = new ClusterV2RkeConfigMachinePoolRollingUpdateArgs(); /** - * Rolling update max surge (string) + * Rolling update max surge. * */ @Import(name="maxSurge") private @Nullable Output maxSurge; /** - * @return Rolling update max surge (string) + * @return Rolling update max surge. * */ public Optional> maxSurge() { @@ -31,14 +31,14 @@ public Optional> maxSurge() { } /** - * Rolling update max unavailable (string) + * Rolling update max unavailable. * */ @Import(name="maxUnavailable") private @Nullable Output maxUnavailable; /** - * @return Rolling update max unavailable (string) + * @return Rolling update max unavailable. * */ public Optional> maxUnavailable() { @@ -71,7 +71,7 @@ public Builder(ClusterV2RkeConfigMachinePoolRollingUpdateArgs defaults) { } /** - * @param maxSurge Rolling update max surge (string) + * @param maxSurge Rolling update max surge. * * @return builder * @@ -82,7 +82,7 @@ public Builder maxSurge(@Nullable Output maxSurge) { } /** - * @param maxSurge Rolling update max surge (string) + * @param maxSurge Rolling update max surge. * * @return builder * @@ -92,7 +92,7 @@ public Builder maxSurge(String maxSurge) { } /** - * @param maxUnavailable Rolling update max unavailable (string) + * @param maxUnavailable Rolling update max unavailable. * * @return builder * @@ -103,7 +103,7 @@ public Builder maxUnavailable(@Nullable Output maxUnavailable) { } /** - * @param maxUnavailable Rolling update max unavailable (string) + * @param maxUnavailable Rolling update max unavailable. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolTaintArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolTaintArgs.java index d6bb8fb2c..7608d939e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolTaintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolTaintArgs.java @@ -17,14 +17,14 @@ public final class ClusterV2RkeConfigMachinePoolTaintArgs extends com.pulumi.res public static final ClusterV2RkeConfigMachinePoolTaintArgs Empty = new ClusterV2RkeConfigMachinePoolTaintArgs(); /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. * */ @Import(name="effect") private @Nullable Output effect; /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ public Optional> effect() { @@ -32,14 +32,14 @@ public Optional> effect() { } /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. * */ @Import(name="key", required=true) private Output key; /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ public Output key() { @@ -47,14 +47,14 @@ public Output key() { } /** - * The taint value (string) + * The taint value. * */ @Import(name="value", required=true) private Output value; /** - * @return The taint value (string) + * @return The taint value. * */ public Output value() { @@ -88,7 +88,7 @@ public Builder(ClusterV2RkeConfigMachinePoolTaintArgs defaults) { } /** - * @param effect The taint effect. Default: `\"NoExecute\"` (string) + * @param effect The taint effect. Default: `\"NoExecute\"`. * * @return builder * @@ -99,7 +99,7 @@ public Builder effect(@Nullable Output effect) { } /** - * @param effect The taint effect. Default: `\"NoExecute\"` (string) + * @param effect The taint effect. Default: `\"NoExecute\"`. * * @return builder * @@ -109,7 +109,7 @@ public Builder effect(String effect) { } /** - * @param key Machine selector label match expressions key (string) + * @param key Key is the name of the key of the item to retrieve. * * @return builder * @@ -120,7 +120,7 @@ public Builder key(Output key) { } /** - * @param key Machine selector label match expressions key (string) + * @param key Key is the name of the key of the item to retrieve. * * @return builder * @@ -130,7 +130,7 @@ public Builder key(String key) { } /** - * @param value The taint value (string) + * @param value The taint value. * * @return builder * @@ -141,7 +141,7 @@ public Builder value(Output value) { } /** - * @param value The taint value (string) + * @param value The taint value. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorConfigArgs.java index 89f600aee..4dafa6f3c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorConfigArgs.java @@ -17,14 +17,14 @@ public final class ClusterV2RkeConfigMachineSelectorConfigArgs extends com.pulum public static final ClusterV2RkeConfigMachineSelectorConfigArgs Empty = new ClusterV2RkeConfigMachineSelectorConfigArgs(); /** - * Machine selector config. Must be in YAML format (string) + * Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) * */ @Import(name="config") private @Nullable Output config; /** - * @return Machine selector config. Must be in YAML format (string) + * @return Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) * */ public Optional> config() { @@ -32,14 +32,14 @@ public Optional> config() { } /** - * Machine selector label (list maxitems:1) + * Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. * */ @Import(name="machineLabelSelector") private @Nullable Output machineLabelSelector; /** - * @return Machine selector label (list maxitems:1) + * @return Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. * */ public Optional> machineLabelSelector() { @@ -72,7 +72,7 @@ public Builder(ClusterV2RkeConfigMachineSelectorConfigArgs defaults) { } /** - * @param config Machine selector config. Must be in YAML format (string) + * @param config Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) * * @return builder * @@ -83,7 +83,7 @@ public Builder config(@Nullable Output config) { } /** - * @param config Machine selector config. Must be in YAML format (string) + * @param config Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) * * @return builder * @@ -93,7 +93,7 @@ public Builder config(String config) { } /** - * @param machineLabelSelector Machine selector label (list maxitems:1) + * @param machineLabelSelector Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. * * @return builder * @@ -104,7 +104,7 @@ public Builder machineLabelSelector(@Nullable Output> matchExpressions; /** - * @return Machine selector label match expressions (list) + * @return Match expressions is a list of label selector requirements. The requirements are ANDed. * */ public Optional>> matchExpressions() { @@ -35,14 +35,14 @@ public Optional> matchLabels; /** - * @return Machine selector label match labels (map) + * @return Machine selector label is a map of {key,value} pairs, the requirements are ANDed. * */ public Optional>> matchLabels() { @@ -75,7 +75,7 @@ public Builder(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs d } /** - * @param matchExpressions Machine selector label match expressions (list) + * @param matchExpressions Match expressions is a list of label selector requirements. The requirements are ANDed. * * @return builder * @@ -86,7 +86,7 @@ public Builder matchExpressions(@Nullable Output> matchLabels) { } /** - * @param matchLabels Machine selector label match labels (map) + * @param matchLabels Machine selector label is a map of {key,value} pairs, the requirements are ANDed. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs.java index 4f16848ef..cad0e1a07 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs.java @@ -17,14 +17,14 @@ public final class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMa public static final ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs Empty = new ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs(); /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. * */ @Import(name="key") private @Nullable Output key; /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ public Optional> key() { @@ -32,14 +32,14 @@ public Optional> key() { } /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ @Import(name="operator") private @Nullable Output operator; /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ public Optional> operator() { @@ -47,14 +47,14 @@ public Optional> operator() { } /** - * Machine selector label match expressions values (List string) + * Values is a list of string values. * */ @Import(name="values") private @Nullable Output> values; /** - * @return Machine selector label match expressions values (List string) + * @return Values is a list of string values. * */ public Optional>> values() { @@ -88,7 +88,7 @@ public Builder(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchE } /** - * @param key Machine selector label match expressions key (string) + * @param key Key is the name of the key of the item to retrieve. * * @return builder * @@ -99,7 +99,7 @@ public Builder key(@Nullable Output key) { } /** - * @param key Machine selector label match expressions key (string) + * @param key Key is the name of the key of the item to retrieve. * * @return builder * @@ -109,7 +109,7 @@ public Builder key(String key) { } /** - * @param operator Machine selector label match expressions operator (string) + * @param operator Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * * @return builder * @@ -120,7 +120,7 @@ public Builder operator(@Nullable Output operator) { } /** - * @param operator Machine selector label match expressions operator (string) + * @param operator Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * * @return builder * @@ -130,7 +130,7 @@ public Builder operator(String operator) { } /** - * @param values Machine selector label match expressions values (List string) + * @param values Values is a list of string values. * * @return builder * @@ -141,7 +141,7 @@ public Builder values(@Nullable Output> values) { } /** - * @param values Machine selector label match expressions values (List string) + * @param values Values is a list of string values. * * @return builder * @@ -151,7 +151,7 @@ public Builder values(List values) { } /** - * @param values Machine selector label match expressions values (List string) + * @param values Values is a list of string values. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileArgs.java new file mode 100644 index 000000000..89c07313c --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileArgs.java @@ -0,0 +1,132 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorFileFileSourceArgs; +import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ClusterV2RkeConfigMachineSelectorFileArgs extends com.pulumi.resources.ResourceArgs { + + public static final ClusterV2RkeConfigMachineSelectorFileArgs Empty = new ClusterV2RkeConfigMachineSelectorFileArgs(); + + /** + * File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + * + */ + @Import(name="fileSources") + private @Nullable Output> fileSources; + + /** + * @return File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + * + */ + public Optional>> fileSources() { + return Optional.ofNullable(this.fileSources); + } + + /** + * Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * + */ + @Import(name="machineLabelSelector") + private @Nullable Output machineLabelSelector; + + /** + * @return Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * + */ + public Optional> machineLabelSelector() { + return Optional.ofNullable(this.machineLabelSelector); + } + + private ClusterV2RkeConfigMachineSelectorFileArgs() {} + + private ClusterV2RkeConfigMachineSelectorFileArgs(ClusterV2RkeConfigMachineSelectorFileArgs $) { + this.fileSources = $.fileSources; + this.machineLabelSelector = $.machineLabelSelector; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ClusterV2RkeConfigMachineSelectorFileArgs $; + + public Builder() { + $ = new ClusterV2RkeConfigMachineSelectorFileArgs(); + } + + public Builder(ClusterV2RkeConfigMachineSelectorFileArgs defaults) { + $ = new ClusterV2RkeConfigMachineSelectorFileArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param fileSources File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + * + * @return builder + * + */ + public Builder fileSources(@Nullable Output> fileSources) { + $.fileSources = fileSources; + return this; + } + + /** + * @param fileSources File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + * + * @return builder + * + */ + public Builder fileSources(List fileSources) { + return fileSources(Output.of(fileSources)); + } + + /** + * @param fileSources File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + * + * @return builder + * + */ + public Builder fileSources(ClusterV2RkeConfigMachineSelectorFileFileSourceArgs... fileSources) { + return fileSources(List.of(fileSources)); + } + + /** + * @param machineLabelSelector Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * + * @return builder + * + */ + public Builder machineLabelSelector(@Nullable Output machineLabelSelector) { + $.machineLabelSelector = machineLabelSelector; + return this; + } + + /** + * @param machineLabelSelector Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * + * @return builder + * + */ + public Builder machineLabelSelector(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs machineLabelSelector) { + return machineLabelSelector(Output.of(machineLabelSelector)); + } + + public ClusterV2RkeConfigMachineSelectorFileArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceArgs.java new file mode 100644 index 000000000..f4a42b74d --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceArgs.java @@ -0,0 +1,121 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs; +import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceArgs extends com.pulumi.resources.ResourceArgs { + + public static final ClusterV2RkeConfigMachineSelectorFileFileSourceArgs Empty = new ClusterV2RkeConfigMachineSelectorFileFileSourceArgs(); + + /** + * Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + * + */ + @Import(name="configmap") + private @Nullable Output configmap; + + /** + * @return Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + * + */ + public Optional> configmap() { + return Optional.ofNullable(this.configmap); + } + + /** + * Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + * + */ + @Import(name="secret") + private @Nullable Output secret; + + /** + * @return Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + * + */ + public Optional> secret() { + return Optional.ofNullable(this.secret); + } + + private ClusterV2RkeConfigMachineSelectorFileFileSourceArgs() {} + + private ClusterV2RkeConfigMachineSelectorFileFileSourceArgs(ClusterV2RkeConfigMachineSelectorFileFileSourceArgs $) { + this.configmap = $.configmap; + this.secret = $.secret; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ClusterV2RkeConfigMachineSelectorFileFileSourceArgs $; + + public Builder() { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceArgs(); + } + + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceArgs defaults) { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param configmap Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + * + * @return builder + * + */ + public Builder configmap(@Nullable Output configmap) { + $.configmap = configmap; + return this; + } + + /** + * @param configmap Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + * + * @return builder + * + */ + public Builder configmap(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs configmap) { + return configmap(Output.of(configmap)); + } + + /** + * @param secret Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + * + * @return builder + * + */ + public Builder secret(@Nullable Output secret) { + $.secret = secret; + return this; + } + + /** + * @param secret Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + * + * @return builder + * + */ + public Builder secret(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs secret) { + return secret(Output.of(secret)); + } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs.java new file mode 100644 index 000000000..c23679966 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs.java @@ -0,0 +1,173 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs extends com.pulumi.resources.ResourceArgs { + + public static final ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs Empty = new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs(); + + /** + * The numeric representation of the default file permissions for all files defined under the items. + * + */ + @Import(name="defaultPermissions") + private @Nullable Output defaultPermissions; + + /** + * @return The numeric representation of the default file permissions for all files defined under the items. + * + */ + public Optional> defaultPermissions() { + return Optional.ofNullable(this.defaultPermissions); + } + + /** + * Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + */ + @Import(name="items") + private @Nullable Output> items; + + /** + * @return Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + */ + public Optional>> items() { + return Optional.ofNullable(this.items); + } + + /** + * The name of the cluster. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return The name of the cluster. + * + */ + public Output name() { + return this.name; + } + + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs() {} + + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs $) { + this.defaultPermissions = $.defaultPermissions; + this.items = $.items; + this.name = $.name; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs $; + + public Builder() { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs(); + } + + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs defaults) { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param defaultPermissions The numeric representation of the default file permissions for all files defined under the items. + * + * @return builder + * + */ + public Builder defaultPermissions(@Nullable Output defaultPermissions) { + $.defaultPermissions = defaultPermissions; + return this; + } + + /** + * @param defaultPermissions The numeric representation of the default file permissions for all files defined under the items. + * + * @return builder + * + */ + public Builder defaultPermissions(String defaultPermissions) { + return defaultPermissions(Output.of(defaultPermissions)); + } + + /** + * @param items Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + * @return builder + * + */ + public Builder items(@Nullable Output> items) { + $.items = items; + return this; + } + + /** + * @param items Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + * @return builder + * + */ + public Builder items(List items) { + return items(Output.of(items)); + } + + /** + * @param items Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + * @return builder + * + */ + public Builder items(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs... items) { + return items(List.of(items)); + } + + /** + * @param name The name of the cluster. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the cluster. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs build() { + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs", "name"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs.java new file mode 100644 index 000000000..b73591072 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs.java @@ -0,0 +1,239 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs extends com.pulumi.resources.ResourceArgs { + + public static final ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs Empty = new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs(); + + /** + * If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + */ + @Import(name="dynamic") + private @Nullable Output dynamic; + + /** + * @return If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + */ + public Optional> dynamic() { + return Optional.ofNullable(this.dynamic); + } + + /** + * Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + */ + @Import(name="hash") + private @Nullable Output hash; + + /** + * @return Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + */ + public Optional> hash() { + return Optional.ofNullable(this.hash); + } + + /** + * Key is the name of the key of the item to retrieve. + * + */ + @Import(name="key", required=true) + private Output key; + + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + public Output key() { + return this.key; + } + + /** + * Path is the absolute path to put the file in the target node. + * + */ + @Import(name="path", required=true) + private Output path; + + /** + * @return Path is the absolute path to put the file in the target node. + * + */ + public Output path() { + return this.path; + } + + /** + * Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + */ + @Import(name="permissions") + private @Nullable Output permissions; + + /** + * @return Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + */ + public Optional> permissions() { + return Optional.ofNullable(this.permissions); + } + + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs() {} + + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs $) { + this.dynamic = $.dynamic; + this.hash = $.hash; + this.key = $.key; + this.path = $.path; + this.permissions = $.permissions; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs $; + + public Builder() { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs(); + } + + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs defaults) { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param dynamic If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + * @return builder + * + */ + public Builder dynamic(@Nullable Output dynamic) { + $.dynamic = dynamic; + return this; + } + + /** + * @param dynamic If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + * @return builder + * + */ + public Builder dynamic(Boolean dynamic) { + return dynamic(Output.of(dynamic)); + } + + /** + * @param hash Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + * @return builder + * + */ + public Builder hash(@Nullable Output hash) { + $.hash = hash; + return this; + } + + /** + * @param hash Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + * @return builder + * + */ + public Builder hash(String hash) { + return hash(Output.of(hash)); + } + + /** + * @param key Key is the name of the key of the item to retrieve. + * + * @return builder + * + */ + public Builder key(Output key) { + $.key = key; + return this; + } + + /** + * @param key Key is the name of the key of the item to retrieve. + * + * @return builder + * + */ + public Builder key(String key) { + return key(Output.of(key)); + } + + /** + * @param path Path is the absolute path to put the file in the target node. + * + * @return builder + * + */ + public Builder path(Output path) { + $.path = path; + return this; + } + + /** + * @param path Path is the absolute path to put the file in the target node. + * + * @return builder + * + */ + public Builder path(String path) { + return path(Output.of(path)); + } + + /** + * @param permissions Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + * @return builder + * + */ + public Builder permissions(@Nullable Output permissions) { + $.permissions = permissions; + return this; + } + + /** + * @param permissions Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + * @return builder + * + */ + public Builder permissions(String permissions) { + return permissions(Output.of(permissions)); + } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs build() { + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs", "key"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs", "path"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs.java new file mode 100644 index 000000000..333290b2d --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs.java @@ -0,0 +1,173 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs extends com.pulumi.resources.ResourceArgs { + + public static final ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs Empty = new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs(); + + /** + * The numeric representation of the default file permissions for all files defined under the items. + * + */ + @Import(name="defaultPermissions") + private @Nullable Output defaultPermissions; + + /** + * @return The numeric representation of the default file permissions for all files defined under the items. + * + */ + public Optional> defaultPermissions() { + return Optional.ofNullable(this.defaultPermissions); + } + + /** + * Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + */ + @Import(name="items") + private @Nullable Output> items; + + /** + * @return Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + */ + public Optional>> items() { + return Optional.ofNullable(this.items); + } + + /** + * The name of the cluster. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return The name of the cluster. + * + */ + public Output name() { + return this.name; + } + + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs() {} + + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs $) { + this.defaultPermissions = $.defaultPermissions; + this.items = $.items; + this.name = $.name; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs $; + + public Builder() { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs(); + } + + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs defaults) { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param defaultPermissions The numeric representation of the default file permissions for all files defined under the items. + * + * @return builder + * + */ + public Builder defaultPermissions(@Nullable Output defaultPermissions) { + $.defaultPermissions = defaultPermissions; + return this; + } + + /** + * @param defaultPermissions The numeric representation of the default file permissions for all files defined under the items. + * + * @return builder + * + */ + public Builder defaultPermissions(String defaultPermissions) { + return defaultPermissions(Output.of(defaultPermissions)); + } + + /** + * @param items Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + * @return builder + * + */ + public Builder items(@Nullable Output> items) { + $.items = items; + return this; + } + + /** + * @param items Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + * @return builder + * + */ + public Builder items(List items) { + return items(Output.of(items)); + } + + /** + * @param items Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + * @return builder + * + */ + public Builder items(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs... items) { + return items(List.of(items)); + } + + /** + * @param name The name of the cluster. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the cluster. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs build() { + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs", "name"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs.java new file mode 100644 index 000000000..fa2efa9f4 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs.java @@ -0,0 +1,239 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs extends com.pulumi.resources.ResourceArgs { + + public static final ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs Empty = new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs(); + + /** + * If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + */ + @Import(name="dynamic") + private @Nullable Output dynamic; + + /** + * @return If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + */ + public Optional> dynamic() { + return Optional.ofNullable(this.dynamic); + } + + /** + * Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + */ + @Import(name="hash") + private @Nullable Output hash; + + /** + * @return Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + */ + public Optional> hash() { + return Optional.ofNullable(this.hash); + } + + /** + * Key is the name of the key of the item to retrieve. + * + */ + @Import(name="key", required=true) + private Output key; + + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + public Output key() { + return this.key; + } + + /** + * Path is the absolute path to put the file in the target node. + * + */ + @Import(name="path", required=true) + private Output path; + + /** + * @return Path is the absolute path to put the file in the target node. + * + */ + public Output path() { + return this.path; + } + + /** + * Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + */ + @Import(name="permissions") + private @Nullable Output permissions; + + /** + * @return Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + */ + public Optional> permissions() { + return Optional.ofNullable(this.permissions); + } + + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs() {} + + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs $) { + this.dynamic = $.dynamic; + this.hash = $.hash; + this.key = $.key; + this.path = $.path; + this.permissions = $.permissions; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs $; + + public Builder() { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs(); + } + + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs defaults) { + $ = new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param dynamic If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + * @return builder + * + */ + public Builder dynamic(@Nullable Output dynamic) { + $.dynamic = dynamic; + return this; + } + + /** + * @param dynamic If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + * @return builder + * + */ + public Builder dynamic(Boolean dynamic) { + return dynamic(Output.of(dynamic)); + } + + /** + * @param hash Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + * @return builder + * + */ + public Builder hash(@Nullable Output hash) { + $.hash = hash; + return this; + } + + /** + * @param hash Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + * @return builder + * + */ + public Builder hash(String hash) { + return hash(Output.of(hash)); + } + + /** + * @param key Key is the name of the key of the item to retrieve. + * + * @return builder + * + */ + public Builder key(Output key) { + $.key = key; + return this; + } + + /** + * @param key Key is the name of the key of the item to retrieve. + * + * @return builder + * + */ + public Builder key(String key) { + return key(Output.of(key)); + } + + /** + * @param path Path is the absolute path to put the file in the target node. + * + * @return builder + * + */ + public Builder path(Output path) { + $.path = path; + return this; + } + + /** + * @param path Path is the absolute path to put the file in the target node. + * + * @return builder + * + */ + public Builder path(String path) { + return path(Output.of(path)); + } + + /** + * @param permissions Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + * @return builder + * + */ + public Builder permissions(@Nullable Output permissions) { + $.permissions = permissions; + return this; + } + + /** + * @param permissions Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + * @return builder + * + */ + public Builder permissions(String permissions) { + return permissions(Output.of(permissions)); + } + + public ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs build() { + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs", "key"); + } + if ($.path == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs", "path"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs.java new file mode 100644 index 000000000..e040f0135 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs.java @@ -0,0 +1,134 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs; +import java.lang.Object; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs extends com.pulumi.resources.ResourceArgs { + + public static final ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs Empty = new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs(); + + /** + * Match expressions is a list of label selector requirements. The requirements are ANDed. + * + */ + @Import(name="matchExpressions") + private @Nullable Output> matchExpressions; + + /** + * @return Match expressions is a list of label selector requirements. The requirements are ANDed. + * + */ + public Optional>> matchExpressions() { + return Optional.ofNullable(this.matchExpressions); + } + + /** + * Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + * + */ + @Import(name="matchLabels") + private @Nullable Output> matchLabels; + + /** + * @return Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + * + */ + public Optional>> matchLabels() { + return Optional.ofNullable(this.matchLabels); + } + + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs() {} + + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs $) { + this.matchExpressions = $.matchExpressions; + this.matchLabels = $.matchLabels; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs $; + + public Builder() { + $ = new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs(); + } + + public Builder(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs defaults) { + $ = new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param matchExpressions Match expressions is a list of label selector requirements. The requirements are ANDed. + * + * @return builder + * + */ + public Builder matchExpressions(@Nullable Output> matchExpressions) { + $.matchExpressions = matchExpressions; + return this; + } + + /** + * @param matchExpressions Match expressions is a list of label selector requirements. The requirements are ANDed. + * + * @return builder + * + */ + public Builder matchExpressions(List matchExpressions) { + return matchExpressions(Output.of(matchExpressions)); + } + + /** + * @param matchExpressions Match expressions is a list of label selector requirements. The requirements are ANDed. + * + * @return builder + * + */ + public Builder matchExpressions(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs... matchExpressions) { + return matchExpressions(List.of(matchExpressions)); + } + + /** + * @param matchLabels Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + * + * @return builder + * + */ + public Builder matchLabels(@Nullable Output> matchLabels) { + $.matchLabels = matchLabels; + return this; + } + + /** + * @param matchLabels Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + * + * @return builder + * + */ + public Builder matchLabels(Map matchLabels) { + return matchLabels(Output.of(matchLabels)); + } + + public ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs.java new file mode 100644 index 000000000..2011297b9 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs.java @@ -0,0 +1,168 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs extends com.pulumi.resources.ResourceArgs { + + public static final ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs Empty = new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs(); + + /** + * Key is the name of the key of the item to retrieve. + * + */ + @Import(name="key") + private @Nullable Output key; + + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + public Optional> key() { + return Optional.ofNullable(this.key); + } + + /** + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * + */ + @Import(name="operator") + private @Nullable Output operator; + + /** + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * + */ + public Optional> operator() { + return Optional.ofNullable(this.operator); + } + + /** + * Values is a list of string values. + * + */ + @Import(name="values") + private @Nullable Output> values; + + /** + * @return Values is a list of string values. + * + */ + public Optional>> values() { + return Optional.ofNullable(this.values); + } + + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs() {} + + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs $) { + this.key = $.key; + this.operator = $.operator; + this.values = $.values; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs $; + + public Builder() { + $ = new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs(); + } + + public Builder(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs defaults) { + $ = new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param key Key is the name of the key of the item to retrieve. + * + * @return builder + * + */ + public Builder key(@Nullable Output key) { + $.key = key; + return this; + } + + /** + * @param key Key is the name of the key of the item to retrieve. + * + * @return builder + * + */ + public Builder key(String key) { + return key(Output.of(key)); + } + + /** + * @param operator Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * + * @return builder + * + */ + public Builder operator(@Nullable Output operator) { + $.operator = operator; + return this; + } + + /** + * @param operator Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * + * @return builder + * + */ + public Builder operator(String operator) { + return operator(Output.of(operator)); + } + + /** + * @param values Values is a list of string values. + * + * @return builder + * + */ + public Builder values(@Nullable Output> values) { + $.values = values; + return this; + } + + /** + * @param values Values is a list of string values. + * + * @return builder + * + */ + public Builder values(List values) { + return values(Output.of(values)); + } + + /** + * @param values Values is a list of string values. + * + * @return builder + * + */ + public Builder values(String... values) { + return values(List.of(values)); + } + + public ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesArgs.java index 7e2ba3412..120f8f557 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesArgs.java @@ -18,14 +18,14 @@ public final class ClusterV2RkeConfigRegistriesArgs extends com.pulumi.resources public static final ClusterV2RkeConfigRegistriesArgs Empty = new ClusterV2RkeConfigRegistriesArgs(); /** - * Cluster V2 docker registries config (list) + * Cluster V2 docker registries config. * */ @Import(name="configs") private @Nullable Output> configs; /** - * @return Cluster V2 docker registries config (list) + * @return Cluster V2 docker registries config. * */ public Optional>> configs() { @@ -33,14 +33,14 @@ public Optional>> configs() } /** - * Cluster V2 docker registries mirror (list) + * Cluster V2 docker registries mirror. * */ @Import(name="mirrors") private @Nullable Output> mirrors; /** - * @return Cluster V2 docker registries mirror (list) + * @return Cluster V2 docker registries mirror. * */ public Optional>> mirrors() { @@ -73,7 +73,7 @@ public Builder(ClusterV2RkeConfigRegistriesArgs defaults) { } /** - * @param configs Cluster V2 docker registries config (list) + * @param configs Cluster V2 docker registries config. * * @return builder * @@ -84,7 +84,7 @@ public Builder configs(@Nullable Output configs) { } /** - * @param configs Cluster V2 docker registries config (list) + * @param configs Cluster V2 docker registries config. * * @return builder * @@ -104,7 +104,7 @@ public Builder configs(ClusterV2RkeConfigRegistriesConfigArgs... configs) { } /** - * @param mirrors Cluster V2 docker registries mirror (list) + * @param mirrors Cluster V2 docker registries mirror. * * @return builder * @@ -115,7 +115,7 @@ public Builder mirrors(@Nullable Output mirrors) { } /** - * @param mirrors Cluster V2 docker registries mirror (list) + * @param mirrors Cluster V2 docker registries mirror. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesConfigArgs.java index 75c66d5d6..6a58e9853 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesConfigArgs.java @@ -18,14 +18,14 @@ public final class ClusterV2RkeConfigRegistriesConfigArgs extends com.pulumi.res public static final ClusterV2RkeConfigRegistriesConfigArgs Empty = new ClusterV2RkeConfigRegistriesConfigArgs(); /** - * Registry auth config secret name (string) + * Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. * */ @Import(name="authConfigSecretName") private @Nullable Output authConfigSecretName; /** - * @return Registry auth config secret name (string) + * @return Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. * */ public Optional> authConfigSecretName() { @@ -33,14 +33,14 @@ public Optional> authConfigSecretName() { } /** - * Registry CA bundle (string) + * Registry CA bundle. * */ @Import(name="caBundle") private @Nullable Output caBundle; /** - * @return Registry CA bundle (string) + * @return Registry CA bundle. * */ public Optional> caBundle() { @@ -48,14 +48,14 @@ public Optional> caBundle() { } /** - * Registry hostname (string) + * Registry hostname. * */ @Import(name="hostname", required=true) private Output hostname; /** - * @return Registry hostname (string) + * @return Registry hostname. * */ public Output hostname() { @@ -63,14 +63,14 @@ public Output hostname() { } /** - * Registry insecure connectivity (bool) + * Registry insecure connectivity. * */ @Import(name="insecure") private @Nullable Output insecure; /** - * @return Registry insecure connectivity (bool) + * @return Registry insecure connectivity. * */ public Optional> insecure() { @@ -78,14 +78,14 @@ public Optional> insecure() { } /** - * Registry TLS secret name. TLS is a pair of Cert/Key (string) + * Registry TLS secret name. TLS is a pair of Cert/Key. * */ @Import(name="tlsSecretName") private @Nullable Output tlsSecretName; /** - * @return Registry TLS secret name. TLS is a pair of Cert/Key (string) + * @return Registry TLS secret name. TLS is a pair of Cert/Key. * */ public Optional> tlsSecretName() { @@ -121,7 +121,7 @@ public Builder(ClusterV2RkeConfigRegistriesConfigArgs defaults) { } /** - * @param authConfigSecretName Registry auth config secret name (string) + * @param authConfigSecretName Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. * * @return builder * @@ -132,7 +132,7 @@ public Builder authConfigSecretName(@Nullable Output authConfigSecretNam } /** - * @param authConfigSecretName Registry auth config secret name (string) + * @param authConfigSecretName Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. * * @return builder * @@ -142,7 +142,7 @@ public Builder authConfigSecretName(String authConfigSecretName) { } /** - * @param caBundle Registry CA bundle (string) + * @param caBundle Registry CA bundle. * * @return builder * @@ -153,7 +153,7 @@ public Builder caBundle(@Nullable Output caBundle) { } /** - * @param caBundle Registry CA bundle (string) + * @param caBundle Registry CA bundle. * * @return builder * @@ -163,7 +163,7 @@ public Builder caBundle(String caBundle) { } /** - * @param hostname Registry hostname (string) + * @param hostname Registry hostname. * * @return builder * @@ -174,7 +174,7 @@ public Builder hostname(Output hostname) { } /** - * @param hostname Registry hostname (string) + * @param hostname Registry hostname. * * @return builder * @@ -184,7 +184,7 @@ public Builder hostname(String hostname) { } /** - * @param insecure Registry insecure connectivity (bool) + * @param insecure Registry insecure connectivity. * * @return builder * @@ -195,7 +195,7 @@ public Builder insecure(@Nullable Output insecure) { } /** - * @param insecure Registry insecure connectivity (bool) + * @param insecure Registry insecure connectivity. * * @return builder * @@ -205,7 +205,7 @@ public Builder insecure(Boolean insecure) { } /** - * @param tlsSecretName Registry TLS secret name. TLS is a pair of Cert/Key (string) + * @param tlsSecretName Registry TLS secret name. TLS is a pair of Cert/Key. * * @return builder * @@ -216,7 +216,7 @@ public Builder tlsSecretName(@Nullable Output tlsSecretName) { } /** - * @param tlsSecretName Registry TLS secret name. TLS is a pair of Cert/Key (string) + * @param tlsSecretName Registry TLS secret name. TLS is a pair of Cert/Key. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesMirrorArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesMirrorArgs.java index 8f979fe2b..5ae4ba6b0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesMirrorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesMirrorArgs.java @@ -20,14 +20,14 @@ public final class ClusterV2RkeConfigRegistriesMirrorArgs extends com.pulumi.res public static final ClusterV2RkeConfigRegistriesMirrorArgs Empty = new ClusterV2RkeConfigRegistriesMirrorArgs(); /** - * Registry mirror endpoints (List) + * Registry mirror endpoints. * */ @Import(name="endpoints") private @Nullable Output> endpoints; /** - * @return Registry mirror endpoints (List) + * @return Registry mirror endpoints. * */ public Optional>> endpoints() { @@ -35,14 +35,14 @@ public Optional>> endpoints() { } /** - * Registry hostname (string) + * Registry hostname. * */ @Import(name="hostname", required=true) private Output hostname; /** - * @return Registry hostname (string) + * @return Registry hostname. * */ public Output hostname() { @@ -50,14 +50,14 @@ public Output hostname() { } /** - * Registry mirror rewrites (map) + * Registry mirror rewrites. * */ @Import(name="rewrites") private @Nullable Output> rewrites; /** - * @return Registry mirror rewrites (map) + * @return Registry mirror rewrites. * */ public Optional>> rewrites() { @@ -91,7 +91,7 @@ public Builder(ClusterV2RkeConfigRegistriesMirrorArgs defaults) { } /** - * @param endpoints Registry mirror endpoints (List) + * @param endpoints Registry mirror endpoints. * * @return builder * @@ -102,7 +102,7 @@ public Builder endpoints(@Nullable Output> endpoints) { } /** - * @param endpoints Registry mirror endpoints (List) + * @param endpoints Registry mirror endpoints. * * @return builder * @@ -112,7 +112,7 @@ public Builder endpoints(List endpoints) { } /** - * @param endpoints Registry mirror endpoints (List) + * @param endpoints Registry mirror endpoints. * * @return builder * @@ -122,7 +122,7 @@ public Builder endpoints(String... endpoints) { } /** - * @param hostname Registry hostname (string) + * @param hostname Registry hostname. * * @return builder * @@ -133,7 +133,7 @@ public Builder hostname(Output hostname) { } /** - * @param hostname Registry hostname (string) + * @param hostname Registry hostname. * * @return builder * @@ -143,7 +143,7 @@ public Builder hostname(String hostname) { } /** - * @param rewrites Registry mirror rewrites (map) + * @param rewrites Registry mirror rewrites. * * @return builder * @@ -154,7 +154,7 @@ public Builder rewrites(@Nullable Output> rewrites) { } /** - * @param rewrites Registry mirror rewrites (map) + * @param rewrites Registry mirror rewrites. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRotateCertificatesArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRotateCertificatesArgs.java index a22120646..6f17d16ca 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRotateCertificatesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRotateCertificatesArgs.java @@ -19,14 +19,14 @@ public final class ClusterV2RkeConfigRotateCertificatesArgs extends com.pulumi.r public static final ClusterV2RkeConfigRotateCertificatesArgs Empty = new ClusterV2RkeConfigRotateCertificatesArgs(); /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. * */ @Import(name="generation", required=true) private Output generation; /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ public Output generation() { @@ -34,14 +34,14 @@ public Output generation() { } /** - * Service certificates to rotate with this generation (string) + * Service certificates to rotate with this generation. * */ @Import(name="services") private @Nullable Output> services; /** - * @return Service certificates to rotate with this generation (string) + * @return Service certificates to rotate with this generation. * */ public Optional>> services() { @@ -74,7 +74,7 @@ public Builder(ClusterV2RkeConfigRotateCertificatesArgs defaults) { } /** - * @param generation ETCD snapshot desired generation (int) + * @param generation ETCD snapshot desired generation. * * @return builder * @@ -85,7 +85,7 @@ public Builder generation(Output generation) { } /** - * @param generation ETCD snapshot desired generation (int) + * @param generation ETCD snapshot desired generation. * * @return builder * @@ -95,7 +95,7 @@ public Builder generation(Integer generation) { } /** - * @param services Service certificates to rotate with this generation (string) + * @param services Service certificates to rotate with this generation. * * @return builder * @@ -106,7 +106,7 @@ public Builder services(@Nullable Output> services) { } /** - * @param services Service certificates to rotate with this generation (string) + * @param services Service certificates to rotate with this generation. * * @return builder * @@ -116,7 +116,7 @@ public Builder services(List services) { } /** - * @param services Service certificates to rotate with this generation (string) + * @param services Service certificates to rotate with this generation. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigUpgradeStrategyArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigUpgradeStrategyArgs.java index ecf8de977..c1484b0a4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigUpgradeStrategyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigUpgradeStrategyArgs.java @@ -18,14 +18,14 @@ public final class ClusterV2RkeConfigUpgradeStrategyArgs extends com.pulumi.reso public static final ClusterV2RkeConfigUpgradeStrategyArgs Empty = new ClusterV2RkeConfigUpgradeStrategyArgs(); /** - * How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + * How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. * */ @Import(name="controlPlaneConcurrency") private @Nullable Output controlPlaneConcurrency; /** - * @return How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + * @return How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. * */ public Optional> controlPlaneConcurrency() { @@ -33,14 +33,14 @@ public Optional> controlPlaneConcurrency() { } /** - * Controlplane nodes drain options (list maxitems:1) + * Controlplane nodes drain options. * */ @Import(name="controlPlaneDrainOptions") private @Nullable Output controlPlaneDrainOptions; /** - * @return Controlplane nodes drain options (list maxitems:1) + * @return Controlplane nodes drain options. * */ public Optional> controlPlaneDrainOptions() { @@ -48,14 +48,14 @@ public Optional workerConcurrency; /** - * @return How many worker nodes should be upgrade at time. Percentages are also accepted (string) + * @return How many worker nodes should be upgraded at a time. Percentages are also accepted. * */ public Optional> workerConcurrency() { @@ -63,14 +63,14 @@ public Optional> workerConcurrency() { } /** - * Worker nodes drain options (list maxitems:1) + * Worker nodes drain options. * */ @Import(name="workerDrainOptions") private @Nullable Output workerDrainOptions; /** - * @return Worker nodes drain options (list maxitems:1) + * @return Worker nodes drain options. * */ public Optional> workerDrainOptions() { @@ -105,7 +105,7 @@ public Builder(ClusterV2RkeConfigUpgradeStrategyArgs defaults) { } /** - * @param controlPlaneConcurrency How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + * @param controlPlaneConcurrency How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. * * @return builder * @@ -116,7 +116,7 @@ public Builder controlPlaneConcurrency(@Nullable Output controlPlaneConc } /** - * @param controlPlaneConcurrency How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + * @param controlPlaneConcurrency How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. * * @return builder * @@ -126,7 +126,7 @@ public Builder controlPlaneConcurrency(String controlPlaneConcurrency) { } /** - * @param controlPlaneDrainOptions Controlplane nodes drain options (list maxitems:1) + * @param controlPlaneDrainOptions Controlplane nodes drain options. * * @return builder * @@ -137,7 +137,7 @@ public Builder controlPlaneDrainOptions(@Nullable Output workerConcurrency) { } /** - * @param workerConcurrency How many worker nodes should be upgrade at time. Percentages are also accepted (string) + * @param workerConcurrency How many worker nodes should be upgraded at a time. Percentages are also accepted. * * @return builder * @@ -168,7 +168,7 @@ public Builder workerConcurrency(String workerConcurrency) { } /** - * @param workerDrainOptions Worker nodes drain options (list maxitems:1) + * @param workerDrainOptions Worker nodes drain options. * * @return builder * @@ -179,7 +179,7 @@ public Builder workerDrainOptions(@Nullable Output deleteEmptyDirData; /** - * @return Drain options delete empty dir data. Default `false` (bool) + * @return if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * */ public Optional> deleteEmptyDirData() { @@ -32,14 +32,14 @@ public Optional> deleteEmptyDirData() { } /** - * Drain options disable eviction. Default `false` (bool) + * If `disable_eviction` is set to true, force drain to use delete rather than evict. * */ @Import(name="disableEviction") private @Nullable Output disableEviction; /** - * @return Drain options disable eviction. Default `false` (bool) + * @return If `disable_eviction` is set to true, force drain to use delete rather than evict. * */ public Optional> disableEviction() { @@ -47,14 +47,14 @@ public Optional> disableEviction() { } /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. * */ @Import(name="enabled") private @Nullable Output enabled; /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ public Optional> enabled() { @@ -62,14 +62,14 @@ public Optional> enabled() { } /** - * Drain options force. Default `false` (bool) + * If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * */ @Import(name="force") private @Nullable Output force; /** - * @return Drain options force. Default `false` (bool) + * @return If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * */ public Optional> force() { @@ -77,14 +77,14 @@ public Optional> force() { } /** - * Drain options grace period (int) + * Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * */ @Import(name="gracePeriod") private @Nullable Output gracePeriod; /** - * @return Drain options grace period (int) + * @return Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * */ public Optional> gracePeriod() { @@ -92,14 +92,14 @@ public Optional> gracePeriod() { } /** - * Drain options ignore daemon sets. Default `true` (bool) + * If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * */ @Import(name="ignoreDaemonSets") private @Nullable Output ignoreDaemonSets; /** - * @return Drain options ignore daemon sets. Default `true` (bool) + * @return If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * */ public Optional> ignoreDaemonSets() { @@ -107,14 +107,14 @@ public Optional> ignoreDaemonSets() { } /** - * Drain options ignore errors. Default `false` (bool) + * If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * */ @Import(name="ignoreErrors") private @Nullable Output ignoreErrors; /** - * @return Drain options ignore errors. Default `false` (bool) + * @return If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * */ public Optional> ignoreErrors() { @@ -122,14 +122,14 @@ public Optional> ignoreErrors() { } /** - * Drain options skip wait for delete timeout seconds (int) + * Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * */ @Import(name="skipWaitForDeleteTimeoutSeconds") private @Nullable Output skipWaitForDeleteTimeoutSeconds; /** - * @return Drain options skip wait for delete timeout seconds (int) + * @return Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * */ public Optional> skipWaitForDeleteTimeoutSeconds() { @@ -137,14 +137,14 @@ public Optional> skipWaitForDeleteTimeoutSeconds() { } /** - * Drain options timeout (int) + * Time to wait (in seconds) before giving up for one try. * */ @Import(name="timeout") private @Nullable Output timeout; /** - * @return Drain options timeout (int) + * @return Time to wait (in seconds) before giving up for one try. * */ public Optional> timeout() { @@ -184,7 +184,7 @@ public Builder(ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs def } /** - * @param deleteEmptyDirData Drain options delete empty dir data. Default `false` (bool) + * @param deleteEmptyDirData if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * * @return builder * @@ -195,7 +195,7 @@ public Builder deleteEmptyDirData(@Nullable Output deleteEmptyDirData) } /** - * @param deleteEmptyDirData Drain options delete empty dir data. Default `false` (bool) + * @param deleteEmptyDirData if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * * @return builder * @@ -205,7 +205,7 @@ public Builder deleteEmptyDirData(Boolean deleteEmptyDirData) { } /** - * @param disableEviction Drain options disable eviction. Default `false` (bool) + * @param disableEviction If `disable_eviction` is set to true, force drain to use delete rather than evict. * * @return builder * @@ -216,7 +216,7 @@ public Builder disableEviction(@Nullable Output disableEviction) { } /** - * @param disableEviction Drain options disable eviction. Default `false` (bool) + * @param disableEviction If `disable_eviction` is set to true, force drain to use delete rather than evict. * * @return builder * @@ -226,7 +226,7 @@ public Builder disableEviction(Boolean disableEviction) { } /** - * @param enabled Drain options enabled? Default `true` (bool) + * @param enabled If `enabled` is set to true, nodes will be drained before upgrade. * * @return builder * @@ -237,7 +237,7 @@ public Builder enabled(@Nullable Output enabled) { } /** - * @param enabled Drain options enabled? Default `true` (bool) + * @param enabled If `enabled` is set to true, nodes will be drained before upgrade. * * @return builder * @@ -247,7 +247,7 @@ public Builder enabled(Boolean enabled) { } /** - * @param force Drain options force. Default `false` (bool) + * @param force If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * * @return builder * @@ -258,7 +258,7 @@ public Builder force(@Nullable Output force) { } /** - * @param force Drain options force. Default `false` (bool) + * @param force If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * * @return builder * @@ -268,7 +268,7 @@ public Builder force(Boolean force) { } /** - * @param gracePeriod Drain options grace period (int) + * @param gracePeriod Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * * @return builder * @@ -279,7 +279,7 @@ public Builder gracePeriod(@Nullable Output gracePeriod) { } /** - * @param gracePeriod Drain options grace period (int) + * @param gracePeriod Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * * @return builder * @@ -289,7 +289,7 @@ public Builder gracePeriod(Integer gracePeriod) { } /** - * @param ignoreDaemonSets Drain options ignore daemon sets. Default `true` (bool) + * @param ignoreDaemonSets If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * * @return builder * @@ -300,7 +300,7 @@ public Builder ignoreDaemonSets(@Nullable Output ignoreDaemonSets) { } /** - * @param ignoreDaemonSets Drain options ignore daemon sets. Default `true` (bool) + * @param ignoreDaemonSets If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * * @return builder * @@ -310,7 +310,7 @@ public Builder ignoreDaemonSets(Boolean ignoreDaemonSets) { } /** - * @param ignoreErrors Drain options ignore errors. Default `false` (bool) + * @param ignoreErrors If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * * @return builder * @@ -321,7 +321,7 @@ public Builder ignoreErrors(@Nullable Output ignoreErrors) { } /** - * @param ignoreErrors Drain options ignore errors. Default `false` (bool) + * @param ignoreErrors If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * * @return builder * @@ -331,7 +331,7 @@ public Builder ignoreErrors(Boolean ignoreErrors) { } /** - * @param skipWaitForDeleteTimeoutSeconds Drain options skip wait for delete timeout seconds (int) + * @param skipWaitForDeleteTimeoutSeconds Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * * @return builder * @@ -342,7 +342,7 @@ public Builder skipWaitForDeleteTimeoutSeconds(@Nullable Output skipWai } /** - * @param skipWaitForDeleteTimeoutSeconds Drain options skip wait for delete timeout seconds (int) + * @param skipWaitForDeleteTimeoutSeconds Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * * @return builder * @@ -352,7 +352,7 @@ public Builder skipWaitForDeleteTimeoutSeconds(Integer skipWaitForDeleteTimeoutS } /** - * @param timeout Drain options timeout (int) + * @param timeout Time to wait (in seconds) before giving up for one try. * * @return builder * @@ -363,7 +363,7 @@ public Builder timeout(@Nullable Output timeout) { } /** - * @param timeout Drain options timeout (int) + * @param timeout Time to wait (in seconds) before giving up for one try. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs.java index 3a9365aa2..c647a2007 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs.java @@ -17,14 +17,14 @@ public final class ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs exten public static final ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs Empty = new ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs(); /** - * Drain options delete empty dir data. Default `false` (bool) + * if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * */ @Import(name="deleteEmptyDirData") private @Nullable Output deleteEmptyDirData; /** - * @return Drain options delete empty dir data. Default `false` (bool) + * @return if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * */ public Optional> deleteEmptyDirData() { @@ -32,14 +32,14 @@ public Optional> deleteEmptyDirData() { } /** - * Drain options disable eviction. Default `false` (bool) + * If `disable_eviction` is set to true, force drain to use delete rather than evict. * */ @Import(name="disableEviction") private @Nullable Output disableEviction; /** - * @return Drain options disable eviction. Default `false` (bool) + * @return If `disable_eviction` is set to true, force drain to use delete rather than evict. * */ public Optional> disableEviction() { @@ -47,14 +47,14 @@ public Optional> disableEviction() { } /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. * */ @Import(name="enabled") private @Nullable Output enabled; /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ public Optional> enabled() { @@ -62,14 +62,14 @@ public Optional> enabled() { } /** - * Drain options force. Default `false` (bool) + * If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * */ @Import(name="force") private @Nullable Output force; /** - * @return Drain options force. Default `false` (bool) + * @return If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * */ public Optional> force() { @@ -77,14 +77,14 @@ public Optional> force() { } /** - * Drain options grace period (int) + * Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * */ @Import(name="gracePeriod") private @Nullable Output gracePeriod; /** - * @return Drain options grace period (int) + * @return Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * */ public Optional> gracePeriod() { @@ -92,14 +92,14 @@ public Optional> gracePeriod() { } /** - * Drain options ignore daemon sets. Default `true` (bool) + * If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * */ @Import(name="ignoreDaemonSets") private @Nullable Output ignoreDaemonSets; /** - * @return Drain options ignore daemon sets. Default `true` (bool) + * @return If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * */ public Optional> ignoreDaemonSets() { @@ -107,14 +107,14 @@ public Optional> ignoreDaemonSets() { } /** - * Drain options ignore errors. Default `false` (bool) + * If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * */ @Import(name="ignoreErrors") private @Nullable Output ignoreErrors; /** - * @return Drain options ignore errors. Default `false` (bool) + * @return If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * */ public Optional> ignoreErrors() { @@ -122,14 +122,14 @@ public Optional> ignoreErrors() { } /** - * Drain options skip wait for delete timeout seconds (int) + * Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * */ @Import(name="skipWaitForDeleteTimeoutSeconds") private @Nullable Output skipWaitForDeleteTimeoutSeconds; /** - * @return Drain options skip wait for delete timeout seconds (int) + * @return Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * */ public Optional> skipWaitForDeleteTimeoutSeconds() { @@ -137,14 +137,14 @@ public Optional> skipWaitForDeleteTimeoutSeconds() { } /** - * Drain options timeout (int) + * Time to wait (in seconds) before giving up for one try. * */ @Import(name="timeout") private @Nullable Output timeout; /** - * @return Drain options timeout (int) + * @return Time to wait (in seconds) before giving up for one try. * */ public Optional> timeout() { @@ -184,7 +184,7 @@ public Builder(ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs defaults) } /** - * @param deleteEmptyDirData Drain options delete empty dir data. Default `false` (bool) + * @param deleteEmptyDirData if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * * @return builder * @@ -195,7 +195,7 @@ public Builder deleteEmptyDirData(@Nullable Output deleteEmptyDirData) } /** - * @param deleteEmptyDirData Drain options delete empty dir data. Default `false` (bool) + * @param deleteEmptyDirData if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * * @return builder * @@ -205,7 +205,7 @@ public Builder deleteEmptyDirData(Boolean deleteEmptyDirData) { } /** - * @param disableEviction Drain options disable eviction. Default `false` (bool) + * @param disableEviction If `disable_eviction` is set to true, force drain to use delete rather than evict. * * @return builder * @@ -216,7 +216,7 @@ public Builder disableEviction(@Nullable Output disableEviction) { } /** - * @param disableEviction Drain options disable eviction. Default `false` (bool) + * @param disableEviction If `disable_eviction` is set to true, force drain to use delete rather than evict. * * @return builder * @@ -226,7 +226,7 @@ public Builder disableEviction(Boolean disableEviction) { } /** - * @param enabled Drain options enabled? Default `true` (bool) + * @param enabled If `enabled` is set to true, nodes will be drained before upgrade. * * @return builder * @@ -237,7 +237,7 @@ public Builder enabled(@Nullable Output enabled) { } /** - * @param enabled Drain options enabled? Default `true` (bool) + * @param enabled If `enabled` is set to true, nodes will be drained before upgrade. * * @return builder * @@ -247,7 +247,7 @@ public Builder enabled(Boolean enabled) { } /** - * @param force Drain options force. Default `false` (bool) + * @param force If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * * @return builder * @@ -258,7 +258,7 @@ public Builder force(@Nullable Output force) { } /** - * @param force Drain options force. Default `false` (bool) + * @param force If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * * @return builder * @@ -268,7 +268,7 @@ public Builder force(Boolean force) { } /** - * @param gracePeriod Drain options grace period (int) + * @param gracePeriod Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * * @return builder * @@ -279,7 +279,7 @@ public Builder gracePeriod(@Nullable Output gracePeriod) { } /** - * @param gracePeriod Drain options grace period (int) + * @param gracePeriod Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * * @return builder * @@ -289,7 +289,7 @@ public Builder gracePeriod(Integer gracePeriod) { } /** - * @param ignoreDaemonSets Drain options ignore daemon sets. Default `true` (bool) + * @param ignoreDaemonSets If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * * @return builder * @@ -300,7 +300,7 @@ public Builder ignoreDaemonSets(@Nullable Output ignoreDaemonSets) { } /** - * @param ignoreDaemonSets Drain options ignore daemon sets. Default `true` (bool) + * @param ignoreDaemonSets If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * * @return builder * @@ -310,7 +310,7 @@ public Builder ignoreDaemonSets(Boolean ignoreDaemonSets) { } /** - * @param ignoreErrors Drain options ignore errors. Default `false` (bool) + * @param ignoreErrors If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * * @return builder * @@ -321,7 +321,7 @@ public Builder ignoreErrors(@Nullable Output ignoreErrors) { } /** - * @param ignoreErrors Drain options ignore errors. Default `false` (bool) + * @param ignoreErrors If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * * @return builder * @@ -331,7 +331,7 @@ public Builder ignoreErrors(Boolean ignoreErrors) { } /** - * @param skipWaitForDeleteTimeoutSeconds Drain options skip wait for delete timeout seconds (int) + * @param skipWaitForDeleteTimeoutSeconds Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * * @return builder * @@ -342,7 +342,7 @@ public Builder skipWaitForDeleteTimeoutSeconds(@Nullable Output skipWai } /** - * @param skipWaitForDeleteTimeoutSeconds Drain options skip wait for delete timeout seconds (int) + * @param skipWaitForDeleteTimeoutSeconds Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * * @return builder * @@ -352,7 +352,7 @@ public Builder skipWaitForDeleteTimeoutSeconds(Integer skipWaitForDeleteTimeoutS } /** - * @param timeout Drain options timeout (int) + * @param timeout Time to wait (in seconds) before giving up for one try. * * @return builder * @@ -363,7 +363,7 @@ public Builder timeout(@Nullable Output timeout) { } /** - * @param timeout Drain options timeout (int) + * @param timeout Time to wait (in seconds) before giving up for one try. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2State.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2State.java index da5a82d7e..b490599ae 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2State.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2State.java @@ -26,14 +26,14 @@ public final class ClusterV2State extends com.pulumi.resources.ResourceArgs { public static final ClusterV2State Empty = new ClusterV2State(); /** - * Optional Agent Env Vars for Rancher agent (list) + * Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * */ @Import(name="agentEnvVars") private @Nullable Output> agentEnvVars; /** - * @return Optional Agent Env Vars for Rancher agent (list) + * @return Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * */ public Optional>> agentEnvVars() { @@ -41,14 +41,14 @@ public Optional>> agentEnvVars() { } /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. * */ @Import(name="annotations") private @Nullable Output> annotations; /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ public Optional>> annotations() { @@ -56,14 +56,14 @@ public Optional>> annotations() { } /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ @Import(name="cloudCredentialSecretName") private @Nullable Output cloudCredentialSecretName; /** - * @return Cluster V2 cloud credential secret name (string) + * @return Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ public Optional> cloudCredentialSecretName() { @@ -71,14 +71,14 @@ public Optional> cloudCredentialSecretName() { } /** - * Optional customization for cluster agent (list) + * Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. * */ @Import(name="clusterAgentDeploymentCustomizations") private @Nullable Output> clusterAgentDeploymentCustomizations; /** - * @return Optional customization for cluster agent (list) + * @return Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. * */ public Optional>> clusterAgentDeploymentCustomizations() { @@ -86,14 +86,14 @@ public Optional>> } /** - * (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + * (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. * */ @Import(name="clusterRegistrationToken") private @Nullable Output clusterRegistrationToken; /** - * @return (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + * @return (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. * */ public Optional> clusterRegistrationToken() { @@ -101,14 +101,14 @@ public Optional> clusterRegistrati } /** - * (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + * (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). * */ @Import(name="clusterV1Id") private @Nullable Output clusterV1Id; /** - * @return (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + * @return (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). * */ public Optional> clusterV1Id() { @@ -116,14 +116,14 @@ public Optional> clusterV1Id() { } /** - * Cluster V2 default cluster role for project members (string) + * Default cluster role for project members. * */ @Import(name="defaultClusterRoleForProjectMembers") private @Nullable Output defaultClusterRoleForProjectMembers; /** - * @return Cluster V2 default cluster role for project members (string) + * @return Default cluster role for project members. * */ public Optional> defaultClusterRoleForProjectMembers() { @@ -131,14 +131,14 @@ public Optional> defaultClusterRoleForProjectMembers() { } /** - * Cluster V2 default pod security admission configuration template name (string) + * The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * */ @Import(name="defaultPodSecurityAdmissionConfigurationTemplateName") private @Nullable Output defaultPodSecurityAdmissionConfigurationTemplateName; /** - * @return Cluster V2 default pod security admission configuration template name (string) + * @return The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * */ public Optional> defaultPodSecurityAdmissionConfigurationTemplateName() { @@ -146,14 +146,14 @@ public Optional> defaultPodSecurityAdmissionConfigurationTemplate } /** - * Cluster V2 default pod security policy template name (string) + * Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * */ @Import(name="defaultPodSecurityPolicyTemplateName") private @Nullable Output defaultPodSecurityPolicyTemplateName; /** - * @return Cluster V2 default pod security policy template name (string) + * @return Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * */ public Optional> defaultPodSecurityPolicyTemplateName() { @@ -161,14 +161,14 @@ public Optional> defaultPodSecurityPolicyTemplateName() { } /** - * Enable k8s network policy at Cluster V2 (bool) + * Enable k8s network policy on the cluster. * */ @Import(name="enableNetworkPolicy") private @Nullable Output enableNetworkPolicy; /** - * @return Enable k8s network policy at Cluster V2 (bool) + * @return Enable k8s network policy on the cluster. * */ public Optional> enableNetworkPolicy() { @@ -176,14 +176,14 @@ public Optional> enableNetworkPolicy() { } /** - * Optional customization for fleet agent (list) + * Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. * */ @Import(name="fleetAgentDeploymentCustomizations") private @Nullable Output> fleetAgentDeploymentCustomizations; /** - * @return Optional customization for fleet agent (list) + * @return Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. * */ public Optional>> fleetAgentDeploymentCustomizations() { @@ -191,14 +191,14 @@ public Optional>> fl } /** - * The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. * */ @Import(name="fleetNamespace") private @Nullable Output fleetNamespace; /** - * @return The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * @return Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. * */ public Optional> fleetNamespace() { @@ -206,14 +206,14 @@ public Optional> fleetNamespace() { } /** - * (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + * (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. * */ @Import(name="kubeConfig") private @Nullable Output kubeConfig; /** - * @return (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + * @return (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. * */ public Optional> kubeConfig() { @@ -221,14 +221,14 @@ public Optional> kubeConfig() { } /** - * The kubernetes version of the Cluster v2 (list maxitems:1) + * The RKE2 or K3s version for the cluster. * */ @Import(name="kubernetesVersion") private @Nullable Output kubernetesVersion; /** - * @return The kubernetes version of the Cluster v2 (list maxitems:1) + * @return The RKE2 or K3s version for the cluster. * */ public Optional> kubernetesVersion() { @@ -236,14 +236,14 @@ public Optional> kubernetesVersion() { } /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. * */ @Import(name="labels") private @Nullable Output> labels; /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ public Optional>> labels() { @@ -251,14 +251,14 @@ public Optional>> labels() { } /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * */ @Import(name="localAuthEndpoint") private @Nullable Output localAuthEndpoint; /** - * @return Cluster V2 local auth endpoint (list maxitems:1) + * @return Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * */ public Optional> localAuthEndpoint() { @@ -266,14 +266,14 @@ public Optional> localAuthEndpoint() { } /** - * The name of the Cluster v2 (string) + * The name of the cluster. * */ @Import(name="name") private @Nullable Output name; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Optional> name() { @@ -281,14 +281,14 @@ public Optional> name() { } /** - * (Computed) Cluster v2 k8s resource version (string) + * (Computed, string) Cluster's k8s resource version. * */ @Import(name="resourceVersion") private @Nullable Output resourceVersion; /** - * @return (Computed) Cluster v2 k8s resource version (string) + * @return (Computed, string) Cluster's k8s resource version. * */ public Optional> resourceVersion() { @@ -296,14 +296,14 @@ public Optional> resourceVersion() { } /** - * The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * The RKE configuration for the cluster. * */ @Import(name="rkeConfig") private @Nullable Output rkeConfig; /** - * @return The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * @return The RKE configuration for the cluster. * */ public Optional> rkeConfig() { @@ -353,7 +353,7 @@ public Builder(ClusterV2State defaults) { } /** - * @param agentEnvVars Optional Agent Env Vars for Rancher agent (list) + * @param agentEnvVars Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * * @return builder * @@ -364,7 +364,7 @@ public Builder agentEnvVars(@Nullable Output> age } /** - * @param agentEnvVars Optional Agent Env Vars for Rancher agent (list) + * @param agentEnvVars Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * * @return builder * @@ -374,7 +374,7 @@ public Builder agentEnvVars(List agentEnvVars) { } /** - * @param agentEnvVars Optional Agent Env Vars for Rancher agent (list) + * @param agentEnvVars Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. * * @return builder * @@ -384,7 +384,7 @@ public Builder agentEnvVars(ClusterV2AgentEnvVarArgs... agentEnvVars) { } /** - * @param annotations Annotations for the Cluster V2 (map) + * @param annotations Annotations for the Cluster. * * @return builder * @@ -395,7 +395,7 @@ public Builder annotations(@Nullable Output> annotations) { } /** - * @param annotations Annotations for the Cluster V2 (map) + * @param annotations Annotations for the Cluster. * * @return builder * @@ -405,7 +405,7 @@ public Builder annotations(Map annotations) { } /** - * @param cloudCredentialSecretName Cluster V2 cloud credential secret name (string) + * @param cloudCredentialSecretName Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * * @return builder * @@ -416,7 +416,7 @@ public Builder cloudCredentialSecretName(@Nullable Output cloudCredentia } /** - * @param cloudCredentialSecretName Cluster V2 cloud credential secret name (string) + * @param cloudCredentialSecretName Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * * @return builder * @@ -426,7 +426,7 @@ public Builder cloudCredentialSecretName(String cloudCredentialSecretName) { } /** - * @param clusterAgentDeploymentCustomizations Optional customization for cluster agent (list) + * @param clusterAgentDeploymentCustomizations Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. * * @return builder * @@ -437,7 +437,7 @@ public Builder clusterAgentDeploymentCustomizations(@Nullable Output clusterV1Id) { } /** - * @param clusterV1Id (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + * @param clusterV1Id (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). * * @return builder * @@ -499,7 +499,7 @@ public Builder clusterV1Id(String clusterV1Id) { } /** - * @param defaultClusterRoleForProjectMembers Cluster V2 default cluster role for project members (string) + * @param defaultClusterRoleForProjectMembers Default cluster role for project members. * * @return builder * @@ -510,7 +510,7 @@ public Builder defaultClusterRoleForProjectMembers(@Nullable Output defa } /** - * @param defaultClusterRoleForProjectMembers Cluster V2 default cluster role for project members (string) + * @param defaultClusterRoleForProjectMembers Default cluster role for project members. * * @return builder * @@ -520,7 +520,7 @@ public Builder defaultClusterRoleForProjectMembers(String defaultClusterRoleForP } /** - * @param defaultPodSecurityAdmissionConfigurationTemplateName Cluster V2 default pod security admission configuration template name (string) + * @param defaultPodSecurityAdmissionConfigurationTemplateName The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * * @return builder * @@ -531,7 +531,7 @@ public Builder defaultPodSecurityAdmissionConfigurationTemplateName(@Nullable Ou } /** - * @param defaultPodSecurityAdmissionConfigurationTemplateName Cluster V2 default pod security admission configuration template name (string) + * @param defaultPodSecurityAdmissionConfigurationTemplateName The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. * * @return builder * @@ -541,7 +541,7 @@ public Builder defaultPodSecurityAdmissionConfigurationTemplateName(String defau } /** - * @param defaultPodSecurityPolicyTemplateName Cluster V2 default pod security policy template name (string) + * @param defaultPodSecurityPolicyTemplateName Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * * @return builder * @@ -552,7 +552,7 @@ public Builder defaultPodSecurityPolicyTemplateName(@Nullable Output def } /** - * @param defaultPodSecurityPolicyTemplateName Cluster V2 default pod security policy template name (string) + * @param defaultPodSecurityPolicyTemplateName Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). * * @return builder * @@ -562,7 +562,7 @@ public Builder defaultPodSecurityPolicyTemplateName(String defaultPodSecurityPol } /** - * @param enableNetworkPolicy Enable k8s network policy at Cluster V2 (bool) + * @param enableNetworkPolicy Enable k8s network policy on the cluster. * * @return builder * @@ -573,7 +573,7 @@ public Builder enableNetworkPolicy(@Nullable Output enableNetworkPolicy } /** - * @param enableNetworkPolicy Enable k8s network policy at Cluster V2 (bool) + * @param enableNetworkPolicy Enable k8s network policy on the cluster. * * @return builder * @@ -583,7 +583,7 @@ public Builder enableNetworkPolicy(Boolean enableNetworkPolicy) { } /** - * @param fleetAgentDeploymentCustomizations Optional customization for fleet agent (list) + * @param fleetAgentDeploymentCustomizations Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. * * @return builder * @@ -594,7 +594,7 @@ public Builder fleetAgentDeploymentCustomizations(@Nullable Output fleetNamespace) { } /** - * @param fleetNamespace The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * @param fleetNamespace Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. * * @return builder * @@ -635,7 +635,7 @@ public Builder fleetNamespace(String fleetNamespace) { } /** - * @param kubeConfig (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + * @param kubeConfig (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. * * @return builder * @@ -646,7 +646,7 @@ public Builder kubeConfig(@Nullable Output kubeConfig) { } /** - * @param kubeConfig (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + * @param kubeConfig (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. * * @return builder * @@ -656,7 +656,7 @@ public Builder kubeConfig(String kubeConfig) { } /** - * @param kubernetesVersion The kubernetes version of the Cluster v2 (list maxitems:1) + * @param kubernetesVersion The RKE2 or K3s version for the cluster. * * @return builder * @@ -667,7 +667,7 @@ public Builder kubernetesVersion(@Nullable Output kubernetesVersion) { } /** - * @param kubernetesVersion The kubernetes version of the Cluster v2 (list maxitems:1) + * @param kubernetesVersion The RKE2 or K3s version for the cluster. * * @return builder * @@ -677,7 +677,7 @@ public Builder kubernetesVersion(String kubernetesVersion) { } /** - * @param labels Labels for the Cluster V2 (map) + * @param labels Labels for the Cluster. * * @return builder * @@ -688,7 +688,7 @@ public Builder labels(@Nullable Output> labels) { } /** - * @param labels Labels for the Cluster V2 (map) + * @param labels Labels for the Cluster. * * @return builder * @@ -698,7 +698,7 @@ public Builder labels(Map labels) { } /** - * @param localAuthEndpoint Cluster V2 local auth endpoint (list maxitems:1) + * @param localAuthEndpoint Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * * @return builder * @@ -709,7 +709,7 @@ public Builder localAuthEndpoint(@Nullable Output name) { } /** - * @param name The name of the Cluster v2 (string) + * @param name The name of the cluster. * * @return builder * @@ -740,7 +740,7 @@ public Builder name(String name) { } /** - * @param resourceVersion (Computed) Cluster v2 k8s resource version (string) + * @param resourceVersion (Computed, string) Cluster's k8s resource version. * * @return builder * @@ -751,7 +751,7 @@ public Builder resourceVersion(@Nullable Output resourceVersion) { } /** - * @param resourceVersion (Computed) Cluster v2 k8s resource version (string) + * @param resourceVersion (Computed, string) Cluster's k8s resource version. * * @return builder * @@ -761,7 +761,7 @@ public Builder resourceVersion(String resourceVersion) { } /** - * @param rkeConfig The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * @param rkeConfig The RKE configuration for the cluster. * * @return builder * @@ -772,7 +772,7 @@ public Builder rkeConfig(@Nullable Output rkeConfig) { } /** - * @param rkeConfig The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * @param rkeConfig The RKE configuration for the cluster. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertRuleArgs.java similarity index 85% rename from sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRuleArgs.java rename to sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertRuleArgs.java index bb522a50e..4e677832f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertRuleArgs.java @@ -14,9 +14,9 @@ import javax.annotation.Nullable; -public final class GetClusterAlterRuleArgs extends com.pulumi.resources.InvokeArgs { +public final class GetClusterAlertRuleArgs extends com.pulumi.resources.InvokeArgs { - public static final GetClusterAlterRuleArgs Empty = new GetClusterAlterRuleArgs(); + public static final GetClusterAlertRuleArgs Empty = new GetClusterAlertRuleArgs(); /** * The cluster id where create cluster alert rule (string) @@ -63,9 +63,9 @@ public Output name() { return this.name; } - private GetClusterAlterRuleArgs() {} + private GetClusterAlertRuleArgs() {} - private GetClusterAlterRuleArgs(GetClusterAlterRuleArgs $) { + private GetClusterAlertRuleArgs(GetClusterAlertRuleArgs $) { this.clusterId = $.clusterId; this.labels = $.labels; this.name = $.name; @@ -74,19 +74,19 @@ private GetClusterAlterRuleArgs(GetClusterAlterRuleArgs $) { public static Builder builder() { return new Builder(); } - public static Builder builder(GetClusterAlterRuleArgs defaults) { + public static Builder builder(GetClusterAlertRuleArgs defaults) { return new Builder(defaults); } public static final class Builder { - private GetClusterAlterRuleArgs $; + private GetClusterAlertRuleArgs $; public Builder() { - $ = new GetClusterAlterRuleArgs(); + $ = new GetClusterAlertRuleArgs(); } - public Builder(GetClusterAlterRuleArgs defaults) { - $ = new GetClusterAlterRuleArgs(Objects.requireNonNull(defaults)); + public Builder(GetClusterAlertRuleArgs defaults) { + $ = new GetClusterAlertRuleArgs(Objects.requireNonNull(defaults)); } /** @@ -152,12 +152,12 @@ public Builder name(String name) { return name(Output.of(name)); } - public GetClusterAlterRuleArgs build() { + public GetClusterAlertRuleArgs build() { if ($.clusterId == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleArgs", "clusterId"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleArgs", "clusterId"); } if ($.name == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleArgs", "name"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleArgs", "name"); } return $; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRulePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertRulePlainArgs.java similarity index 80% rename from sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRulePlainArgs.java rename to sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertRulePlainArgs.java index 9ae594166..1462fa1f2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRulePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertRulePlainArgs.java @@ -13,9 +13,9 @@ import javax.annotation.Nullable; -public final class GetClusterAlterRulePlainArgs extends com.pulumi.resources.InvokeArgs { +public final class GetClusterAlertRulePlainArgs extends com.pulumi.resources.InvokeArgs { - public static final GetClusterAlterRulePlainArgs Empty = new GetClusterAlterRulePlainArgs(); + public static final GetClusterAlertRulePlainArgs Empty = new GetClusterAlertRulePlainArgs(); /** * The cluster id where create cluster alert rule (string) @@ -62,9 +62,9 @@ public String name() { return this.name; } - private GetClusterAlterRulePlainArgs() {} + private GetClusterAlertRulePlainArgs() {} - private GetClusterAlterRulePlainArgs(GetClusterAlterRulePlainArgs $) { + private GetClusterAlertRulePlainArgs(GetClusterAlertRulePlainArgs $) { this.clusterId = $.clusterId; this.labels = $.labels; this.name = $.name; @@ -73,19 +73,19 @@ private GetClusterAlterRulePlainArgs(GetClusterAlterRulePlainArgs $) { public static Builder builder() { return new Builder(); } - public static Builder builder(GetClusterAlterRulePlainArgs defaults) { + public static Builder builder(GetClusterAlertRulePlainArgs defaults) { return new Builder(defaults); } public static final class Builder { - private GetClusterAlterRulePlainArgs $; + private GetClusterAlertRulePlainArgs $; public Builder() { - $ = new GetClusterAlterRulePlainArgs(); + $ = new GetClusterAlertRulePlainArgs(); } - public Builder(GetClusterAlterRulePlainArgs defaults) { - $ = new GetClusterAlterRulePlainArgs(Objects.requireNonNull(defaults)); + public Builder(GetClusterAlertRulePlainArgs defaults) { + $ = new GetClusterAlertRulePlainArgs(Objects.requireNonNull(defaults)); } /** @@ -121,12 +121,12 @@ public Builder name(String name) { return this; } - public GetClusterAlterRulePlainArgs build() { + public GetClusterAlertRulePlainArgs build() { if ($.clusterId == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRulePlainArgs", "clusterId"); + throw new MissingRequiredPropertyException("GetClusterAlertRulePlainArgs", "clusterId"); } if ($.name == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRulePlainArgs", "name"); + throw new MissingRequiredPropertyException("GetClusterAlertRulePlainArgs", "name"); } return $; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleArgs.java index 5576cf85e..563c2130d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleArgs.java @@ -7,13 +7,31 @@ import com.pulumi.core.annotations.Import; import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; +import java.util.List; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class GetGlobalRoleArgs extends com.pulumi.resources.InvokeArgs { public static final GetGlobalRoleArgs Empty = new GetGlobalRoleArgs(); + /** + * (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + */ + @Import(name="inheritedClusterRoles") + private @Nullable Output> inheritedClusterRoles; + + /** + * @return (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + */ + public Optional>> inheritedClusterRoles() { + return Optional.ofNullable(this.inheritedClusterRoles); + } + /** * The name of the Global Role (string) * @@ -32,6 +50,7 @@ public Output name() { private GetGlobalRoleArgs() {} private GetGlobalRoleArgs(GetGlobalRoleArgs $) { + this.inheritedClusterRoles = $.inheritedClusterRoles; this.name = $.name; } @@ -53,6 +72,37 @@ public Builder(GetGlobalRoleArgs defaults) { $ = new GetGlobalRoleArgs(Objects.requireNonNull(defaults)); } + /** + * @param inheritedClusterRoles (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + * @return builder + * + */ + public Builder inheritedClusterRoles(@Nullable Output> inheritedClusterRoles) { + $.inheritedClusterRoles = inheritedClusterRoles; + return this; + } + + /** + * @param inheritedClusterRoles (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + * @return builder + * + */ + public Builder inheritedClusterRoles(List inheritedClusterRoles) { + return inheritedClusterRoles(Output.of(inheritedClusterRoles)); + } + + /** + * @param inheritedClusterRoles (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + * @return builder + * + */ + public Builder inheritedClusterRoles(String... inheritedClusterRoles) { + return inheritedClusterRoles(List.of(inheritedClusterRoles)); + } + /** * @param name The name of the Global Role (string) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRolePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRolePlainArgs.java index affc369a3..792dfa313 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRolePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRolePlainArgs.java @@ -6,13 +6,31 @@ import com.pulumi.core.annotations.Import; import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; +import java.util.List; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class GetGlobalRolePlainArgs extends com.pulumi.resources.InvokeArgs { public static final GetGlobalRolePlainArgs Empty = new GetGlobalRolePlainArgs(); + /** + * (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + */ + @Import(name="inheritedClusterRoles") + private @Nullable List inheritedClusterRoles; + + /** + * @return (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + */ + public Optional> inheritedClusterRoles() { + return Optional.ofNullable(this.inheritedClusterRoles); + } + /** * The name of the Global Role (string) * @@ -31,6 +49,7 @@ public String name() { private GetGlobalRolePlainArgs() {} private GetGlobalRolePlainArgs(GetGlobalRolePlainArgs $) { + this.inheritedClusterRoles = $.inheritedClusterRoles; this.name = $.name; } @@ -52,6 +71,27 @@ public Builder(GetGlobalRolePlainArgs defaults) { $ = new GetGlobalRolePlainArgs(Objects.requireNonNull(defaults)); } + /** + * @param inheritedClusterRoles (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + * @return builder + * + */ + public Builder inheritedClusterRoles(@Nullable List inheritedClusterRoles) { + $.inheritedClusterRoles = inheritedClusterRoles; + return this; + } + + /** + * @param inheritedClusterRoles (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + * @return builder + * + */ + public Builder inheritedClusterRoles(String... inheritedClusterRoles) { + return inheritedClusterRoles(List.of(inheritedClusterRoles)); + } + /** * @param name The name of the Global Role (string) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempalteArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempalteArgs.java deleted file mode 100644 index 4c79856f8..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempalteArgs.java +++ /dev/null @@ -1,124 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class GetRoleTempalteArgs extends com.pulumi.resources.InvokeArgs { - - public static final GetRoleTempalteArgs Empty = new GetRoleTempalteArgs(); - - /** - * Role template context. `cluster` and `project` values are supported (string) - * - */ - @Import(name="context") - private @Nullable Output context; - - /** - * @return Role template context. `cluster` and `project` values are supported (string) - * - */ - public Optional> context() { - return Optional.ofNullable(this.context); - } - - /** - * The name of the Role Template (string) - * - */ - @Import(name="name", required=true) - private Output name; - - /** - * @return The name of the Role Template (string) - * - */ - public Output name() { - return this.name; - } - - private GetRoleTempalteArgs() {} - - private GetRoleTempalteArgs(GetRoleTempalteArgs $) { - this.context = $.context; - this.name = $.name; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(GetRoleTempalteArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private GetRoleTempalteArgs $; - - public Builder() { - $ = new GetRoleTempalteArgs(); - } - - public Builder(GetRoleTempalteArgs defaults) { - $ = new GetRoleTempalteArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param context Role template context. `cluster` and `project` values are supported (string) - * - * @return builder - * - */ - public Builder context(@Nullable Output context) { - $.context = context; - return this; - } - - /** - * @param context Role template context. `cluster` and `project` values are supported (string) - * - * @return builder - * - */ - public Builder context(String context) { - return context(Output.of(context)); - } - - /** - * @param name The name of the Role Template (string) - * - * @return builder - * - */ - public Builder name(Output name) { - $.name = name; - return this; - } - - /** - * @param name The name of the Role Template (string) - * - * @return builder - * - */ - public Builder name(String name) { - return name(Output.of(name)); - } - - public GetRoleTempalteArgs build() { - if ($.name == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteArgs", "name"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempaltePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempaltePlainArgs.java deleted file mode 100644 index 29cf97261..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempaltePlainArgs.java +++ /dev/null @@ -1,103 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class GetRoleTempaltePlainArgs extends com.pulumi.resources.InvokeArgs { - - public static final GetRoleTempaltePlainArgs Empty = new GetRoleTempaltePlainArgs(); - - /** - * Role template context. `cluster` and `project` values are supported (string) - * - */ - @Import(name="context") - private @Nullable String context; - - /** - * @return Role template context. `cluster` and `project` values are supported (string) - * - */ - public Optional context() { - return Optional.ofNullable(this.context); - } - - /** - * The name of the Role Template (string) - * - */ - @Import(name="name", required=true) - private String name; - - /** - * @return The name of the Role Template (string) - * - */ - public String name() { - return this.name; - } - - private GetRoleTempaltePlainArgs() {} - - private GetRoleTempaltePlainArgs(GetRoleTempaltePlainArgs $) { - this.context = $.context; - this.name = $.name; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(GetRoleTempaltePlainArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private GetRoleTempaltePlainArgs $; - - public Builder() { - $ = new GetRoleTempaltePlainArgs(); - } - - public Builder(GetRoleTempaltePlainArgs defaults) { - $ = new GetRoleTempaltePlainArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param context Role template context. `cluster` and `project` values are supported (string) - * - * @return builder - * - */ - public Builder context(@Nullable String context) { - $.context = context; - return this; - } - - /** - * @param name The name of the Role Template (string) - * - * @return builder - * - */ - public Builder name(String name) { - $.name = name; - return this; - } - - public GetRoleTempaltePlainArgs build() { - if ($.name == null) { - throw new MissingRequiredPropertyException("GetRoleTempaltePlainArgs", "name"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalRoleState.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalRoleState.java index ee97ceb63..2e57ddb6c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalRoleState.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalRoleState.java @@ -65,6 +65,21 @@ public Optional> description() { return Optional.ofNullable(this.description); } + /** + * Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + */ + @Import(name="inheritedClusterRoles") + private @Nullable Output> inheritedClusterRoles; + + /** + * @return Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + */ + public Optional>> inheritedClusterRoles() { + return Optional.ofNullable(this.inheritedClusterRoles); + } + /** * Labels for global role object (map) * @@ -131,6 +146,7 @@ private GlobalRoleState(GlobalRoleState $) { this.annotations = $.annotations; this.builtin = $.builtin; this.description = $.description; + this.inheritedClusterRoles = $.inheritedClusterRoles; this.labels = $.labels; this.name = $.name; this.newUserDefault = $.newUserDefault; @@ -218,6 +234,37 @@ public Builder description(String description) { return description(Output.of(description)); } + /** + * @param inheritedClusterRoles Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + * @return builder + * + */ + public Builder inheritedClusterRoles(@Nullable Output> inheritedClusterRoles) { + $.inheritedClusterRoles = inheritedClusterRoles; + return this; + } + + /** + * @param inheritedClusterRoles Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + * @return builder + * + */ + public Builder inheritedClusterRoles(List inheritedClusterRoles) { + return inheritedClusterRoles(Output.of(inheritedClusterRoles)); + } + + /** + * @param inheritedClusterRoles Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + * + * @return builder + * + */ + public Builder inheritedClusterRoles(String... inheritedClusterRoles) { + return inheritedClusterRoles(List.of(inheritedClusterRoles)); + } + /** * @param labels Labels for global role object (map) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2VsphereConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2VsphereConfigArgs.java index 8b1bb32c1..0d0aaea2f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2VsphereConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2VsphereConfigArgs.java @@ -226,6 +226,21 @@ public Optional> folder() { return Optional.ofNullable(this.folder); } + /** + * Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + * + */ + @Import(name="gracefulShutdownTimeout") + private @Nullable Output gracefulShutdownTimeout; + + /** + * @return Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + * + */ + public Optional> gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } + /** * vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) * @@ -498,6 +513,7 @@ private MachineConfigV2VsphereConfigArgs(MachineConfigV2VsphereConfigArgs $) { this.datastoreCluster = $.datastoreCluster; this.diskSize = $.diskSize; this.folder = $.folder; + this.gracefulShutdownTimeout = $.gracefulShutdownTimeout; this.hostsystem = $.hostsystem; this.memorySize = $.memorySize; this.networks = $.networks; @@ -849,6 +865,27 @@ public Builder folder(String folder) { return folder(Output.of(folder)); } + /** + * @param gracefulShutdownTimeout Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + * + * @return builder + * + */ + public Builder gracefulShutdownTimeout(@Nullable Output gracefulShutdownTimeout) { + $.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + + /** + * @param gracefulShutdownTimeout Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + * + * @return builder + * + */ + public Builder gracefulShutdownTimeout(String gracefulShutdownTimeout) { + return gracefulShutdownTimeout(Output.of(gracefulShutdownTimeout)); + } + /** * @param hostsystem vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateVsphereConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateVsphereConfigArgs.java index bd4573b22..9cd4e4a29 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateVsphereConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateVsphereConfigArgs.java @@ -226,6 +226,21 @@ public Optional> folder() { return Optional.ofNullable(this.folder); } + /** + * Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + * + */ + @Import(name="gracefulShutdownTimeout") + private @Nullable Output gracefulShutdownTimeout; + + /** + * @return Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + * + */ + public Optional> gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } + /** * vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) * @@ -498,6 +513,7 @@ private NodeTemplateVsphereConfigArgs(NodeTemplateVsphereConfigArgs $) { this.datastoreCluster = $.datastoreCluster; this.diskSize = $.diskSize; this.folder = $.folder; + this.gracefulShutdownTimeout = $.gracefulShutdownTimeout; this.hostsystem = $.hostsystem; this.memorySize = $.memorySize; this.networks = $.networks; @@ -849,6 +865,27 @@ public Builder folder(String folder) { return folder(Output.of(folder)); } + /** + * @param gracefulShutdownTimeout Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + * + * @return builder + * + */ + public Builder gracefulShutdownTimeout(@Nullable Output gracefulShutdownTimeout) { + $.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + + /** + * @param gracefulShutdownTimeout Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + * + * @return builder + * + */ + public Builder gracefulShutdownTimeout(String gracefulShutdownTimeout) { + return gracefulShutdownTimeout(Output.of(gracefulShutdownTimeout)); + } + /** * @param hostsystem vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectRoleTemplateBindingState.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectRoleTemplateBindingState.java index f0bd42085..da0b1c0c7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectRoleTemplateBindingState.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectRoleTemplateBindingState.java @@ -97,14 +97,14 @@ public Optional> name() { } /** - * The project id where bind project role template (string) + * The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * */ @Import(name="projectId") private @Nullable Output projectId; /** - * @return The project id where bind project role template (string) + * @return The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * */ public Optional> projectId() { @@ -298,7 +298,7 @@ public Builder name(String name) { } /** - * @param projectId The project id where bind project role template (string) + * @param projectId The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * * @return builder * @@ -309,7 +309,7 @@ public Builder projectId(@Nullable Output projectId) { } /** - * @param projectId The project id where bind project role template (string) + * @param projectId The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RoleTempalteRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RoleTempalteRuleArgs.java deleted file mode 100644 index 622a97413..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RoleTempalteRuleArgs.java +++ /dev/null @@ -1,282 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import java.lang.String; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class RoleTempalteRuleArgs extends com.pulumi.resources.ResourceArgs { - - public static final RoleTempalteRuleArgs Empty = new RoleTempalteRuleArgs(); - - /** - * Policy rule api groups (list) - * - */ - @Import(name="apiGroups") - private @Nullable Output> apiGroups; - - /** - * @return Policy rule api groups (list) - * - */ - public Optional>> apiGroups() { - return Optional.ofNullable(this.apiGroups); - } - - /** - * Policy rule non resource urls (list) - * - */ - @Import(name="nonResourceUrls") - private @Nullable Output> nonResourceUrls; - - /** - * @return Policy rule non resource urls (list) - * - */ - public Optional>> nonResourceUrls() { - return Optional.ofNullable(this.nonResourceUrls); - } - - /** - * Policy rule resource names (list) - * - */ - @Import(name="resourceNames") - private @Nullable Output> resourceNames; - - /** - * @return Policy rule resource names (list) - * - */ - public Optional>> resourceNames() { - return Optional.ofNullable(this.resourceNames); - } - - /** - * Policy rule resources (list) - * - */ - @Import(name="resources") - private @Nullable Output> resources; - - /** - * @return Policy rule resources (list) - * - */ - public Optional>> resources() { - return Optional.ofNullable(this.resources); - } - - /** - * Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - * - */ - @Import(name="verbs") - private @Nullable Output> verbs; - - /** - * @return Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - * - */ - public Optional>> verbs() { - return Optional.ofNullable(this.verbs); - } - - private RoleTempalteRuleArgs() {} - - private RoleTempalteRuleArgs(RoleTempalteRuleArgs $) { - this.apiGroups = $.apiGroups; - this.nonResourceUrls = $.nonResourceUrls; - this.resourceNames = $.resourceNames; - this.resources = $.resources; - this.verbs = $.verbs; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(RoleTempalteRuleArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private RoleTempalteRuleArgs $; - - public Builder() { - $ = new RoleTempalteRuleArgs(); - } - - public Builder(RoleTempalteRuleArgs defaults) { - $ = new RoleTempalteRuleArgs(Objects.requireNonNull(defaults)); - } - - /** - * @param apiGroups Policy rule api groups (list) - * - * @return builder - * - */ - public Builder apiGroups(@Nullable Output> apiGroups) { - $.apiGroups = apiGroups; - return this; - } - - /** - * @param apiGroups Policy rule api groups (list) - * - * @return builder - * - */ - public Builder apiGroups(List apiGroups) { - return apiGroups(Output.of(apiGroups)); - } - - /** - * @param apiGroups Policy rule api groups (list) - * - * @return builder - * - */ - public Builder apiGroups(String... apiGroups) { - return apiGroups(List.of(apiGroups)); - } - - /** - * @param nonResourceUrls Policy rule non resource urls (list) - * - * @return builder - * - */ - public Builder nonResourceUrls(@Nullable Output> nonResourceUrls) { - $.nonResourceUrls = nonResourceUrls; - return this; - } - - /** - * @param nonResourceUrls Policy rule non resource urls (list) - * - * @return builder - * - */ - public Builder nonResourceUrls(List nonResourceUrls) { - return nonResourceUrls(Output.of(nonResourceUrls)); - } - - /** - * @param nonResourceUrls Policy rule non resource urls (list) - * - * @return builder - * - */ - public Builder nonResourceUrls(String... nonResourceUrls) { - return nonResourceUrls(List.of(nonResourceUrls)); - } - - /** - * @param resourceNames Policy rule resource names (list) - * - * @return builder - * - */ - public Builder resourceNames(@Nullable Output> resourceNames) { - $.resourceNames = resourceNames; - return this; - } - - /** - * @param resourceNames Policy rule resource names (list) - * - * @return builder - * - */ - public Builder resourceNames(List resourceNames) { - return resourceNames(Output.of(resourceNames)); - } - - /** - * @param resourceNames Policy rule resource names (list) - * - * @return builder - * - */ - public Builder resourceNames(String... resourceNames) { - return resourceNames(List.of(resourceNames)); - } - - /** - * @param resources Policy rule resources (list) - * - * @return builder - * - */ - public Builder resources(@Nullable Output> resources) { - $.resources = resources; - return this; - } - - /** - * @param resources Policy rule resources (list) - * - * @return builder - * - */ - public Builder resources(List resources) { - return resources(Output.of(resources)); - } - - /** - * @param resources Policy rule resources (list) - * - * @return builder - * - */ - public Builder resources(String... resources) { - return resources(List.of(resources)); - } - - /** - * @param verbs Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - * - * @return builder - * - */ - public Builder verbs(@Nullable Output> verbs) { - $.verbs = verbs; - return this; - } - - /** - * @param verbs Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - * - * @return builder - * - */ - public Builder verbs(List verbs) { - return verbs(Output.of(verbs)); - } - - /** - * @param verbs Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - * - * @return builder - * - */ - public Builder verbs(String... verbs) { - return verbs(List.of(verbs)); - } - - public RoleTempalteRuleArgs build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RoleTempalteState.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RoleTempalteState.java deleted file mode 100644 index 4dbbb637f..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RoleTempalteState.java +++ /dev/null @@ -1,552 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.inputs; - -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.rancher2.inputs.RoleTempalteRuleArgs; -import java.lang.Boolean; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class RoleTempalteState extends com.pulumi.resources.ResourceArgs { - - public static final RoleTempalteState Empty = new RoleTempalteState(); - - /** - * Administrative role template. Default `false` (bool) - * - */ - @Import(name="administrative") - private @Nullable Output administrative; - - /** - * @return Administrative role template. Default `false` (bool) - * - */ - public Optional> administrative() { - return Optional.ofNullable(this.administrative); - } - - /** - * Annotations for role template object (map) - * - */ - @Import(name="annotations") - private @Nullable Output> annotations; - - /** - * @return Annotations for role template object (map) - * - */ - public Optional>> annotations() { - return Optional.ofNullable(this.annotations); - } - - /** - * (Computed) Builtin role template (string) - * - */ - @Import(name="builtin") - private @Nullable Output builtin; - - /** - * @return (Computed) Builtin role template (string) - * - */ - public Optional> builtin() { - return Optional.ofNullable(this.builtin); - } - - /** - * Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - */ - @Import(name="context") - private @Nullable Output context; - - /** - * @return Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - */ - public Optional> context() { - return Optional.ofNullable(this.context); - } - - /** - * Default role template for new created cluster or project. Default `false` (bool) - * - */ - @Import(name="defaultRole") - private @Nullable Output defaultRole; - - /** - * @return Default role template for new created cluster or project. Default `false` (bool) - * - */ - public Optional> defaultRole() { - return Optional.ofNullable(this.defaultRole); - } - - /** - * Role template description (string) - * - */ - @Import(name="description") - private @Nullable Output description; - - /** - * @return Role template description (string) - * - */ - public Optional> description() { - return Optional.ofNullable(this.description); - } - - /** - * External role template. Default `false` (bool) - * - */ - @Import(name="external") - private @Nullable Output external; - - /** - * @return External role template. Default `false` (bool) - * - */ - public Optional> external() { - return Optional.ofNullable(this.external); - } - - /** - * Hidden role template. Default `false` (bool) - * - */ - @Import(name="hidden") - private @Nullable Output hidden; - - /** - * @return Hidden role template. Default `false` (bool) - * - */ - public Optional> hidden() { - return Optional.ofNullable(this.hidden); - } - - /** - * Labels for role template object (map) - * - */ - @Import(name="labels") - private @Nullable Output> labels; - - /** - * @return Labels for role template object (map) - * - */ - public Optional>> labels() { - return Optional.ofNullable(this.labels); - } - - /** - * Locked role template. Default `false` (bool) - * - */ - @Import(name="locked") - private @Nullable Output locked; - - /** - * @return Locked role template. Default `false` (bool) - * - */ - public Optional> locked() { - return Optional.ofNullable(this.locked); - } - - /** - * Role template name (string) - * - */ - @Import(name="name") - private @Nullable Output name; - - /** - * @return Role template name (string) - * - */ - public Optional> name() { - return Optional.ofNullable(this.name); - } - - /** - * Inherit role template IDs (list) - * - */ - @Import(name="roleTemplateIds") - private @Nullable Output> roleTemplateIds; - - /** - * @return Inherit role template IDs (list) - * - */ - public Optional>> roleTemplateIds() { - return Optional.ofNullable(this.roleTemplateIds); - } - - /** - * Role template policy rules (list) - * - */ - @Import(name="rules") - private @Nullable Output> rules; - - /** - * @return Role template policy rules (list) - * - */ - public Optional>> rules() { - return Optional.ofNullable(this.rules); - } - - private RoleTempalteState() {} - - private RoleTempalteState(RoleTempalteState $) { - this.administrative = $.administrative; - this.annotations = $.annotations; - this.builtin = $.builtin; - this.context = $.context; - this.defaultRole = $.defaultRole; - this.description = $.description; - this.external = $.external; - this.hidden = $.hidden; - this.labels = $.labels; - this.locked = $.locked; - this.name = $.name; - this.roleTemplateIds = $.roleTemplateIds; - this.rules = $.rules; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(RoleTempalteState defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private RoleTempalteState $; - - public Builder() { - $ = new RoleTempalteState(); - } - - public Builder(RoleTempalteState defaults) { - $ = new RoleTempalteState(Objects.requireNonNull(defaults)); - } - - /** - * @param administrative Administrative role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder administrative(@Nullable Output administrative) { - $.administrative = administrative; - return this; - } - - /** - * @param administrative Administrative role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder administrative(Boolean administrative) { - return administrative(Output.of(administrative)); - } - - /** - * @param annotations Annotations for role template object (map) - * - * @return builder - * - */ - public Builder annotations(@Nullable Output> annotations) { - $.annotations = annotations; - return this; - } - - /** - * @param annotations Annotations for role template object (map) - * - * @return builder - * - */ - public Builder annotations(Map annotations) { - return annotations(Output.of(annotations)); - } - - /** - * @param builtin (Computed) Builtin role template (string) - * - * @return builder - * - */ - public Builder builtin(@Nullable Output builtin) { - $.builtin = builtin; - return this; - } - - /** - * @param builtin (Computed) Builtin role template (string) - * - * @return builder - * - */ - public Builder builtin(Boolean builtin) { - return builtin(Output.of(builtin)); - } - - /** - * @param context Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - * @return builder - * - */ - public Builder context(@Nullable Output context) { - $.context = context; - return this; - } - - /** - * @param context Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - * - * @return builder - * - */ - public Builder context(String context) { - return context(Output.of(context)); - } - - /** - * @param defaultRole Default role template for new created cluster or project. Default `false` (bool) - * - * @return builder - * - */ - public Builder defaultRole(@Nullable Output defaultRole) { - $.defaultRole = defaultRole; - return this; - } - - /** - * @param defaultRole Default role template for new created cluster or project. Default `false` (bool) - * - * @return builder - * - */ - public Builder defaultRole(Boolean defaultRole) { - return defaultRole(Output.of(defaultRole)); - } - - /** - * @param description Role template description (string) - * - * @return builder - * - */ - public Builder description(@Nullable Output description) { - $.description = description; - return this; - } - - /** - * @param description Role template description (string) - * - * @return builder - * - */ - public Builder description(String description) { - return description(Output.of(description)); - } - - /** - * @param external External role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder external(@Nullable Output external) { - $.external = external; - return this; - } - - /** - * @param external External role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder external(Boolean external) { - return external(Output.of(external)); - } - - /** - * @param hidden Hidden role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder hidden(@Nullable Output hidden) { - $.hidden = hidden; - return this; - } - - /** - * @param hidden Hidden role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder hidden(Boolean hidden) { - return hidden(Output.of(hidden)); - } - - /** - * @param labels Labels for role template object (map) - * - * @return builder - * - */ - public Builder labels(@Nullable Output> labels) { - $.labels = labels; - return this; - } - - /** - * @param labels Labels for role template object (map) - * - * @return builder - * - */ - public Builder labels(Map labels) { - return labels(Output.of(labels)); - } - - /** - * @param locked Locked role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder locked(@Nullable Output locked) { - $.locked = locked; - return this; - } - - /** - * @param locked Locked role template. Default `false` (bool) - * - * @return builder - * - */ - public Builder locked(Boolean locked) { - return locked(Output.of(locked)); - } - - /** - * @param name Role template name (string) - * - * @return builder - * - */ - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - /** - * @param name Role template name (string) - * - * @return builder - * - */ - public Builder name(String name) { - return name(Output.of(name)); - } - - /** - * @param roleTemplateIds Inherit role template IDs (list) - * - * @return builder - * - */ - public Builder roleTemplateIds(@Nullable Output> roleTemplateIds) { - $.roleTemplateIds = roleTemplateIds; - return this; - } - - /** - * @param roleTemplateIds Inherit role template IDs (list) - * - * @return builder - * - */ - public Builder roleTemplateIds(List roleTemplateIds) { - return roleTemplateIds(Output.of(roleTemplateIds)); - } - - /** - * @param roleTemplateIds Inherit role template IDs (list) - * - * @return builder - * - */ - public Builder roleTemplateIds(String... roleTemplateIds) { - return roleTemplateIds(List.of(roleTemplateIds)); - } - - /** - * @param rules Role template policy rules (list) - * - * @return builder - * - */ - public Builder rules(@Nullable Output> rules) { - $.rules = rules; - return this; - } - - /** - * @param rules Role template policy rules (list) - * - * @return builder - * - */ - public Builder rules(List rules) { - return rules(Output.of(rules)); - } - - /** - * @param rules Role template policy rules (list) - * - * @return builder - * - */ - public Builder rules(RoleTempalteRuleArgs... rules) { - return rules(List.of(rules)); - } - - public RoleTempalteState build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterGroupRecipient.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterGroupRecipient.java deleted file mode 100644 index 0f2c00150..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterGroupRecipient.java +++ /dev/null @@ -1,124 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.outputs; - -import com.pulumi.core.annotations.CustomType; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.Boolean; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - -@CustomType -public final class ClusterAlterGroupRecipient { - /** - * @return Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - * - */ - private @Nullable Boolean defaultRecipient; - /** - * @return Recipient notifier ID (string) - * - */ - private String notifierId; - /** - * @return Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - * - */ - private @Nullable String notifierType; - /** - * @return Recipient (string) - * - */ - private @Nullable String recipient; - - private ClusterAlterGroupRecipient() {} - /** - * @return Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - * - */ - public Optional defaultRecipient() { - return Optional.ofNullable(this.defaultRecipient); - } - /** - * @return Recipient notifier ID (string) - * - */ - public String notifierId() { - return this.notifierId; - } - /** - * @return Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - * - */ - public Optional notifierType() { - return Optional.ofNullable(this.notifierType); - } - /** - * @return Recipient (string) - * - */ - public Optional recipient() { - return Optional.ofNullable(this.recipient); - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(ClusterAlterGroupRecipient defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private @Nullable Boolean defaultRecipient; - private String notifierId; - private @Nullable String notifierType; - private @Nullable String recipient; - public Builder() {} - public Builder(ClusterAlterGroupRecipient defaults) { - Objects.requireNonNull(defaults); - this.defaultRecipient = defaults.defaultRecipient; - this.notifierId = defaults.notifierId; - this.notifierType = defaults.notifierType; - this.recipient = defaults.recipient; - } - - @CustomType.Setter - public Builder defaultRecipient(@Nullable Boolean defaultRecipient) { - - this.defaultRecipient = defaultRecipient; - return this; - } - @CustomType.Setter - public Builder notifierId(String notifierId) { - if (notifierId == null) { - throw new MissingRequiredPropertyException("ClusterAlterGroupRecipient", "notifierId"); - } - this.notifierId = notifierId; - return this; - } - @CustomType.Setter - public Builder notifierType(@Nullable String notifierType) { - - this.notifierType = notifierType; - return this; - } - @CustomType.Setter - public Builder recipient(@Nullable String recipient) { - - this.recipient = recipient; - return this; - } - public ClusterAlterGroupRecipient build() { - final var _resultValue = new ClusterAlterGroupRecipient(); - _resultValue.defaultRecipient = defaultRecipient; - _resultValue.notifierId = notifierId; - _resultValue.notifierType = notifierType; - _resultValue.recipient = recipient; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleEventRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleEventRule.java deleted file mode 100644 index 3b6f8aada..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleEventRule.java +++ /dev/null @@ -1,81 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.outputs; - -import com.pulumi.core.annotations.CustomType; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - -@CustomType -public final class ClusterAlterRuleEventRule { - /** - * @return Event type - * - */ - private @Nullable String eventType; - /** - * @return Resource kind - * - */ - private String resourceKind; - - private ClusterAlterRuleEventRule() {} - /** - * @return Event type - * - */ - public Optional eventType() { - return Optional.ofNullable(this.eventType); - } - /** - * @return Resource kind - * - */ - public String resourceKind() { - return this.resourceKind; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(ClusterAlterRuleEventRule defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private @Nullable String eventType; - private String resourceKind; - public Builder() {} - public Builder(ClusterAlterRuleEventRule defaults) { - Objects.requireNonNull(defaults); - this.eventType = defaults.eventType; - this.resourceKind = defaults.resourceKind; - } - - @CustomType.Setter - public Builder eventType(@Nullable String eventType) { - - this.eventType = eventType; - return this; - } - @CustomType.Setter - public Builder resourceKind(String resourceKind) { - if (resourceKind == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleEventRule", "resourceKind"); - } - this.resourceKind = resourceKind; - return this; - } - public ClusterAlterRuleEventRule build() { - final var _resultValue = new ClusterAlterRuleEventRule(); - _resultValue.eventType = eventType; - _resultValue.resourceKind = resourceKind; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleMetricRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleMetricRule.java deleted file mode 100644 index 58234131a..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleMetricRule.java +++ /dev/null @@ -1,149 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.outputs; - -import com.pulumi.core.annotations.CustomType; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.Double; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - -@CustomType -public final class ClusterAlterRuleMetricRule { - /** - * @return Metric rule comparison - * - */ - private @Nullable String comparison; - /** - * @return The cluster alert group description (string) - * - */ - private @Nullable String description; - /** - * @return Metric rule duration - * - */ - private String duration; - /** - * @return Metric rule expression - * - */ - private String expression; - /** - * @return Metric rule threshold value - * - */ - private Double thresholdValue; - - private ClusterAlterRuleMetricRule() {} - /** - * @return Metric rule comparison - * - */ - public Optional comparison() { - return Optional.ofNullable(this.comparison); - } - /** - * @return The cluster alert group description (string) - * - */ - public Optional description() { - return Optional.ofNullable(this.description); - } - /** - * @return Metric rule duration - * - */ - public String duration() { - return this.duration; - } - /** - * @return Metric rule expression - * - */ - public String expression() { - return this.expression; - } - /** - * @return Metric rule threshold value - * - */ - public Double thresholdValue() { - return this.thresholdValue; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(ClusterAlterRuleMetricRule defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private @Nullable String comparison; - private @Nullable String description; - private String duration; - private String expression; - private Double thresholdValue; - public Builder() {} - public Builder(ClusterAlterRuleMetricRule defaults) { - Objects.requireNonNull(defaults); - this.comparison = defaults.comparison; - this.description = defaults.description; - this.duration = defaults.duration; - this.expression = defaults.expression; - this.thresholdValue = defaults.thresholdValue; - } - - @CustomType.Setter - public Builder comparison(@Nullable String comparison) { - - this.comparison = comparison; - return this; - } - @CustomType.Setter - public Builder description(@Nullable String description) { - - this.description = description; - return this; - } - @CustomType.Setter - public Builder duration(String duration) { - if (duration == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRule", "duration"); - } - this.duration = duration; - return this; - } - @CustomType.Setter - public Builder expression(String expression) { - if (expression == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRule", "expression"); - } - this.expression = expression; - return this; - } - @CustomType.Setter - public Builder thresholdValue(Double thresholdValue) { - if (thresholdValue == null) { - throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRule", "thresholdValue"); - } - this.thresholdValue = thresholdValue; - return this; - } - public ClusterAlterRuleMetricRule build() { - final var _resultValue = new ClusterAlterRuleMetricRule(); - _resultValue.comparison = comparison; - _resultValue.description = description; - _resultValue.duration = duration; - _resultValue.expression = expression; - _resultValue.thresholdValue = thresholdValue; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleNodeRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleNodeRule.java deleted file mode 100644 index afff9eb76..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleNodeRule.java +++ /dev/null @@ -1,144 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.outputs; - -import com.pulumi.core.annotations.CustomType; -import java.lang.Integer; -import java.lang.Object; -import java.lang.String; -import java.util.Map; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - -@CustomType -public final class ClusterAlterRuleNodeRule { - /** - * @return Node rule condition - * - */ - private @Nullable String condition; - /** - * @return Node rule cpu threshold - * - */ - private @Nullable Integer cpuThreshold; - /** - * @return Node rule mem threshold - * - */ - private @Nullable Integer memThreshold; - /** - * @return Node ID - * - */ - private @Nullable String nodeId; - /** - * @return Node rule selector - * - */ - private @Nullable Map selector; - - private ClusterAlterRuleNodeRule() {} - /** - * @return Node rule condition - * - */ - public Optional condition() { - return Optional.ofNullable(this.condition); - } - /** - * @return Node rule cpu threshold - * - */ - public Optional cpuThreshold() { - return Optional.ofNullable(this.cpuThreshold); - } - /** - * @return Node rule mem threshold - * - */ - public Optional memThreshold() { - return Optional.ofNullable(this.memThreshold); - } - /** - * @return Node ID - * - */ - public Optional nodeId() { - return Optional.ofNullable(this.nodeId); - } - /** - * @return Node rule selector - * - */ - public Map selector() { - return this.selector == null ? Map.of() : this.selector; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(ClusterAlterRuleNodeRule defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private @Nullable String condition; - private @Nullable Integer cpuThreshold; - private @Nullable Integer memThreshold; - private @Nullable String nodeId; - private @Nullable Map selector; - public Builder() {} - public Builder(ClusterAlterRuleNodeRule defaults) { - Objects.requireNonNull(defaults); - this.condition = defaults.condition; - this.cpuThreshold = defaults.cpuThreshold; - this.memThreshold = defaults.memThreshold; - this.nodeId = defaults.nodeId; - this.selector = defaults.selector; - } - - @CustomType.Setter - public Builder condition(@Nullable String condition) { - - this.condition = condition; - return this; - } - @CustomType.Setter - public Builder cpuThreshold(@Nullable Integer cpuThreshold) { - - this.cpuThreshold = cpuThreshold; - return this; - } - @CustomType.Setter - public Builder memThreshold(@Nullable Integer memThreshold) { - - this.memThreshold = memThreshold; - return this; - } - @CustomType.Setter - public Builder nodeId(@Nullable String nodeId) { - - this.nodeId = nodeId; - return this; - } - @CustomType.Setter - public Builder selector(@Nullable Map selector) { - - this.selector = selector; - return this; - } - public ClusterAlterRuleNodeRule build() { - final var _resultValue = new ClusterAlterRuleNodeRule(); - _resultValue.condition = condition; - _resultValue.cpuThreshold = cpuThreshold; - _resultValue.memThreshold = memThreshold; - _resultValue.nodeId = nodeId; - _resultValue.selector = selector; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleSystemServiceRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleSystemServiceRule.java deleted file mode 100644 index ab37d5483..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleSystemServiceRule.java +++ /dev/null @@ -1,57 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.outputs; - -import com.pulumi.core.annotations.CustomType; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - -@CustomType -public final class ClusterAlterRuleSystemServiceRule { - /** - * @return System service rule condition - * - */ - private @Nullable String condition; - - private ClusterAlterRuleSystemServiceRule() {} - /** - * @return System service rule condition - * - */ - public Optional condition() { - return Optional.ofNullable(this.condition); - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(ClusterAlterRuleSystemServiceRule defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private @Nullable String condition; - public Builder() {} - public Builder(ClusterAlterRuleSystemServiceRule defaults) { - Objects.requireNonNull(defaults); - this.condition = defaults.condition; - } - - @CustomType.Setter - public Builder condition(@Nullable String condition) { - - this.condition = condition; - return this; - } - public ClusterAlterRuleSystemServiceRule build() { - final var _resultValue = new ClusterAlterRuleSystemServiceRule(); - _resultValue.condition = condition; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2.java index 922123893..ea5c3c208 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2.java @@ -28,7 +28,7 @@ public final class ClusterEksConfigV2 { */ private @Nullable Boolean imported; /** - * @return The AWS kms key to use (string) + * @return The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) * */ private @Nullable String kmsKey; @@ -114,7 +114,7 @@ public Optional imported() { return Optional.ofNullable(this.imported); } /** - * @return The AWS kms key to use (string) + * @return The AWS kms label ARN to use (string, e.g. arn:aws:kms:<ZONE>:<123456789100>:alias/<NAME>) * */ public Optional kmsKey() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java index 5b19d454f..431bc2dad 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java @@ -18,6 +18,7 @@ public final class ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal { * */ private @Nullable String datacenters; + private @Nullable String gracefulShutdownTimeout; /** * @return (bool) * @@ -52,6 +53,9 @@ private ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal() {} public Optional datacenters() { return Optional.ofNullable(this.datacenters); } + public Optional gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } /** * @return (bool) * @@ -98,6 +102,7 @@ public static Builder builder(ClusterRkeConfigCloudProviderVsphereCloudProviderG @CustomType.Builder public static final class Builder { private @Nullable String datacenters; + private @Nullable String gracefulShutdownTimeout; private @Nullable Boolean insecureFlag; private @Nullable String password; private @Nullable String port; @@ -107,6 +112,7 @@ public Builder() {} public Builder(ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal defaults) { Objects.requireNonNull(defaults); this.datacenters = defaults.datacenters; + this.gracefulShutdownTimeout = defaults.gracefulShutdownTimeout; this.insecureFlag = defaults.insecureFlag; this.password = defaults.password; this.port = defaults.port; @@ -121,6 +127,12 @@ public Builder datacenters(@Nullable String datacenters) { return this; } @CustomType.Setter + public Builder gracefulShutdownTimeout(@Nullable String gracefulShutdownTimeout) { + + this.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + @CustomType.Setter public Builder insecureFlag(@Nullable Boolean insecureFlag) { this.insecureFlag = insecureFlag; @@ -153,6 +165,7 @@ public Builder user(@Nullable String user) { public ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal build() { final var _resultValue = new ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal(); _resultValue.datacenters = datacenters; + _resultValue.gracefulShutdownTimeout = gracefulShutdownTimeout; _resultValue.insecureFlag = insecureFlag; _resultValue.password = password; _resultValue.port = port; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java index 4ecd651d4..843cab8e1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java @@ -14,6 +14,7 @@ @CustomType public final class ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { private @Nullable String datacenters; + private @Nullable String gracefulShutdownTimeout; private @Nullable Boolean insecureFlag; private @Nullable String password; private @Nullable String port; @@ -24,6 +25,9 @@ private ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVspher public Optional datacenters() { return Optional.ofNullable(this.datacenters); } + public Optional gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } public Optional insecureFlag() { return Optional.ofNullable(this.insecureFlag); } @@ -50,6 +54,7 @@ public static Builder builder(ClusterTemplateTemplateRevisionClusterConfigRkeCon @CustomType.Builder public static final class Builder { private @Nullable String datacenters; + private @Nullable String gracefulShutdownTimeout; private @Nullable Boolean insecureFlag; private @Nullable String password; private @Nullable String port; @@ -59,6 +64,7 @@ public Builder() {} public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal defaults) { Objects.requireNonNull(defaults); this.datacenters = defaults.datacenters; + this.gracefulShutdownTimeout = defaults.gracefulShutdownTimeout; this.insecureFlag = defaults.insecureFlag; this.password = defaults.password; this.port = defaults.port; @@ -73,6 +79,12 @@ public Builder datacenters(@Nullable String datacenters) { return this; } @CustomType.Setter + public Builder gracefulShutdownTimeout(@Nullable String gracefulShutdownTimeout) { + + this.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + @CustomType.Setter public Builder insecureFlag(@Nullable Boolean insecureFlag) { this.insecureFlag = insecureFlag; @@ -105,6 +117,7 @@ public Builder user(@Nullable String user) { public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal build() { final var _resultValue = new ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal(); _resultValue.datacenters = datacenters; + _resultValue.gracefulShutdownTimeout = gracefulShutdownTimeout; _resultValue.insecureFlag = insecureFlag; _resultValue.password = password; _resultValue.port = port; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2AgentEnvVar.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2AgentEnvVar.java index d83e8f5d1..9a282ef90 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2AgentEnvVar.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2AgentEnvVar.java @@ -11,26 +11,26 @@ @CustomType public final class ClusterV2AgentEnvVar { /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ private String name; /** - * @return The taint value (string) + * @return The taint value. * */ private String value; private ClusterV2AgentEnvVar() {} /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public String name() { return this.name; } /** - * @return The taint value (string) + * @return The taint value. * */ public String value() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomization.java index 8d0d4a1da..1bde838fe 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomization.java @@ -15,38 +15,38 @@ @CustomType public final class ClusterV2ClusterAgentDeploymentCustomization { /** - * @return User defined tolerations to append to agent (list) + * @return A list of tolerations to be appended to the default tolerations. * */ private @Nullable List appendTolerations; /** - * @return User defined affinity to override default agent affinity (string) + * @return Override affinity overrides the global default affinity setting. * */ private @Nullable String overrideAffinity; /** - * @return User defined resource requirements to set on the agent (list) + * @return Override resource requirements overrides the default value for requests and/or limits. * */ private @Nullable List overrideResourceRequirements; private ClusterV2ClusterAgentDeploymentCustomization() {} /** - * @return User defined tolerations to append to agent (list) + * @return A list of tolerations to be appended to the default tolerations. * */ public List appendTolerations() { return this.appendTolerations == null ? List.of() : this.appendTolerations; } /** - * @return User defined affinity to override default agent affinity (string) + * @return Override affinity overrides the global default affinity setting. * */ public Optional overrideAffinity() { return Optional.ofNullable(this.overrideAffinity); } /** - * @return User defined resource requirements to set on the agent (list) + * @return Override resource requirements overrides the default value for requests and/or limits. * */ public List overrideResourceRequirements() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.java index 83394c388..66f6e4ddc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.java @@ -14,62 +14,62 @@ @CustomType public final class ClusterV2ClusterAgentDeploymentCustomizationAppendToleration { /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ private @Nullable String effect; /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ private String key; /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ private @Nullable String operator; /** - * @return The number of seconds a pod will stay bound to a node with a matching taint (int) + * @return The number of seconds a pod will stay bound to a node with a matching taint. * */ private @Nullable Integer seconds; /** - * @return The taint value (string) + * @return The taint value. * */ private @Nullable String value; private ClusterV2ClusterAgentDeploymentCustomizationAppendToleration() {} /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ public Optional effect() { return Optional.ofNullable(this.effect); } /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ public String key() { return this.key; } /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ public Optional operator() { return Optional.ofNullable(this.operator); } /** - * @return The number of seconds a pod will stay bound to a node with a matching taint (int) + * @return The number of seconds a pod will stay bound to a node with a matching taint. * */ public Optional seconds() { return Optional.ofNullable(this.seconds); } /** - * @return The taint value (string) + * @return The taint value. * */ public Optional value() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.java index 23fdab886..ece6b3659 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.java @@ -12,50 +12,50 @@ @CustomType public final class ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement { /** - * @return The maximum CPU limit for agent (string) + * @return The maximum CPU limit for agent. * */ private @Nullable String cpuLimit; /** - * @return The minimum CPU required for agent (string) + * @return The minimum CPU required for agent. * */ private @Nullable String cpuRequest; /** - * @return The maximum memory limit for agent (string) + * @return The maximum memory limit for agent. * */ private @Nullable String memoryLimit; /** - * @return The minimum memory required for agent (string) + * @return The minimum memory required for agent. * */ private @Nullable String memoryRequest; private ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement() {} /** - * @return The maximum CPU limit for agent (string) + * @return The maximum CPU limit for agent. * */ public Optional cpuLimit() { return Optional.ofNullable(this.cpuLimit); } /** - * @return The minimum CPU required for agent (string) + * @return The minimum CPU required for agent. * */ public Optional cpuRequest() { return Optional.ofNullable(this.cpuRequest); } /** - * @return The maximum memory limit for agent (string) + * @return The maximum memory limit for agent. * */ public Optional memoryLimit() { return Optional.ofNullable(this.memoryLimit); } /** - * @return The minimum memory required for agent (string) + * @return The minimum memory required for agent. * */ public Optional memoryRequest() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterRegistrationToken.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterRegistrationToken.java index 2dcf5d809..7004136db 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterRegistrationToken.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterRegistrationToken.java @@ -14,158 +14,158 @@ @CustomType public final class ClusterV2ClusterRegistrationToken { /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ private @Nullable Map annotations; /** - * @return Cluster ID (string) + * @return Cluster ID. * */ private @Nullable String clusterId; /** - * @return Command to execute in a imported k8s cluster (string) + * @return Command to execute in an imported k8s cluster. * */ private @Nullable String command; /** - * @return (Computed) The ID of the resource (string) + * @return (Computed, string) The ID of the resource. * */ private @Nullable String id; /** - * @return Insecure command to execute in a imported k8s cluster (string) + * @return Insecure command to execute in an imported k8s cluster. * */ private @Nullable String insecureCommand; /** - * @return Insecure node command to execute in a imported k8s cluster (string) + * @return Insecure node command to execute in an imported k8s cluster. * */ private @Nullable String insecureNodeCommand; /** - * @return Insecure windows command to execute in a imported k8s cluster (string) + * @return Insecure windows command to execute in an imported k8s cluster. * */ private @Nullable String insecureWindowsNodeCommand; /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ private @Nullable Map labels; /** - * @return K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + * @return K8s manifest url to execute with `kubectl` to import an existing k8s cluster. * */ private @Nullable String manifestUrl; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ private @Nullable String name; /** - * @return Node command to execute in linux nodes for custom k8s cluster (string) + * @return Node command to execute in Linux nodes for custom k8s cluster. * */ private @Nullable String nodeCommand; /** - * @return Token for cluster registration token object (string) + * @return Token for cluster registration token object. * */ private @Nullable String token; /** - * @return Node command to execute in windows nodes for custom k8s cluster (string) + * @return Node command to execute in Windows nodes for custom k8s cluster. * */ private @Nullable String windowsNodeCommand; private ClusterV2ClusterRegistrationToken() {} /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ public Map annotations() { return this.annotations == null ? Map.of() : this.annotations; } /** - * @return Cluster ID (string) + * @return Cluster ID. * */ public Optional clusterId() { return Optional.ofNullable(this.clusterId); } /** - * @return Command to execute in a imported k8s cluster (string) + * @return Command to execute in an imported k8s cluster. * */ public Optional command() { return Optional.ofNullable(this.command); } /** - * @return (Computed) The ID of the resource (string) + * @return (Computed, string) The ID of the resource. * */ public Optional id() { return Optional.ofNullable(this.id); } /** - * @return Insecure command to execute in a imported k8s cluster (string) + * @return Insecure command to execute in an imported k8s cluster. * */ public Optional insecureCommand() { return Optional.ofNullable(this.insecureCommand); } /** - * @return Insecure node command to execute in a imported k8s cluster (string) + * @return Insecure node command to execute in an imported k8s cluster. * */ public Optional insecureNodeCommand() { return Optional.ofNullable(this.insecureNodeCommand); } /** - * @return Insecure windows command to execute in a imported k8s cluster (string) + * @return Insecure windows command to execute in an imported k8s cluster. * */ public Optional insecureWindowsNodeCommand() { return Optional.ofNullable(this.insecureWindowsNodeCommand); } /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ public Map labels() { return this.labels == null ? Map.of() : this.labels; } /** - * @return K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + * @return K8s manifest url to execute with `kubectl` to import an existing k8s cluster. * */ public Optional manifestUrl() { return Optional.ofNullable(this.manifestUrl); } /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public Optional name() { return Optional.ofNullable(this.name); } /** - * @return Node command to execute in linux nodes for custom k8s cluster (string) + * @return Node command to execute in Linux nodes for custom k8s cluster. * */ public Optional nodeCommand() { return Optional.ofNullable(this.nodeCommand); } /** - * @return Token for cluster registration token object (string) + * @return Token for cluster registration token object. * */ public Optional token() { return Optional.ofNullable(this.token); } /** - * @return Node command to execute in windows nodes for custom k8s cluster (string) + * @return Node command to execute in Windows nodes for custom k8s cluster. * */ public Optional windowsNodeCommand() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomization.java index 33408a997..b5b09e5d8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomization.java @@ -15,38 +15,38 @@ @CustomType public final class ClusterV2FleetAgentDeploymentCustomization { /** - * @return User defined tolerations to append to agent (list) + * @return A list of tolerations to be appended to the default tolerations. * */ private @Nullable List appendTolerations; /** - * @return User defined affinity to override default agent affinity (string) + * @return Override affinity overrides the global default affinity setting. * */ private @Nullable String overrideAffinity; /** - * @return User defined resource requirements to set on the agent (list) + * @return Override resource requirements overrides the default value for requests and/or limits. * */ private @Nullable List overrideResourceRequirements; private ClusterV2FleetAgentDeploymentCustomization() {} /** - * @return User defined tolerations to append to agent (list) + * @return A list of tolerations to be appended to the default tolerations. * */ public List appendTolerations() { return this.appendTolerations == null ? List.of() : this.appendTolerations; } /** - * @return User defined affinity to override default agent affinity (string) + * @return Override affinity overrides the global default affinity setting. * */ public Optional overrideAffinity() { return Optional.ofNullable(this.overrideAffinity); } /** - * @return User defined resource requirements to set on the agent (list) + * @return Override resource requirements overrides the default value for requests and/or limits. * */ public List overrideResourceRequirements() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.java index e3752d7a4..290389f57 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.java @@ -14,62 +14,62 @@ @CustomType public final class ClusterV2FleetAgentDeploymentCustomizationAppendToleration { /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ private @Nullable String effect; /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ private String key; /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ private @Nullable String operator; /** - * @return The number of seconds a pod will stay bound to a node with a matching taint (int) + * @return The number of seconds a pod will stay bound to a node with a matching taint. * */ private @Nullable Integer seconds; /** - * @return The taint value (string) + * @return The taint value. * */ private @Nullable String value; private ClusterV2FleetAgentDeploymentCustomizationAppendToleration() {} /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ public Optional effect() { return Optional.ofNullable(this.effect); } /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ public String key() { return this.key; } /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ public Optional operator() { return Optional.ofNullable(this.operator); } /** - * @return The number of seconds a pod will stay bound to a node with a matching taint (int) + * @return The number of seconds a pod will stay bound to a node with a matching taint. * */ public Optional seconds() { return Optional.ofNullable(this.seconds); } /** - * @return The taint value (string) + * @return The taint value. * */ public Optional value() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.java index 153e6d749..ad04dffbb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.java @@ -12,50 +12,50 @@ @CustomType public final class ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement { /** - * @return The maximum CPU limit for agent (string) + * @return The maximum CPU limit for agent. * */ private @Nullable String cpuLimit; /** - * @return The minimum CPU required for agent (string) + * @return The minimum CPU required for agent. * */ private @Nullable String cpuRequest; /** - * @return The maximum memory limit for agent (string) + * @return The maximum memory limit for agent. * */ private @Nullable String memoryLimit; /** - * @return The minimum memory required for agent (string) + * @return The minimum memory required for agent. * */ private @Nullable String memoryRequest; private ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement() {} /** - * @return The maximum CPU limit for agent (string) + * @return The maximum CPU limit for agent. * */ public Optional cpuLimit() { return Optional.ofNullable(this.cpuLimit); } /** - * @return The minimum CPU required for agent (string) + * @return The minimum CPU required for agent. * */ public Optional cpuRequest() { return Optional.ofNullable(this.cpuRequest); } /** - * @return The maximum memory limit for agent (string) + * @return The maximum memory limit for agent. * */ public Optional memoryLimit() { return Optional.ofNullable(this.memoryLimit); } /** - * @return The minimum memory required for agent (string) + * @return The minimum memory required for agent. * */ public Optional memoryRequest() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2LocalAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2LocalAuthEndpoint.java index 892ee5ffd..8a03412ce 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2LocalAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2LocalAuthEndpoint.java @@ -13,38 +13,38 @@ @CustomType public final class ClusterV2LocalAuthEndpoint { /** - * @return CA certs for the authorized cluster endpoint (string) + * @return CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * */ private @Nullable String caCerts; /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ private @Nullable Boolean enabled; /** - * @return FQDN for the authorized cluster endpoint (string) + * @return FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * */ private @Nullable String fqdn; private ClusterV2LocalAuthEndpoint() {} /** - * @return CA certs for the authorized cluster endpoint (string) + * @return CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * */ public Optional caCerts() { return Optional.ofNullable(this.caCerts); } /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ public Optional enabled() { return Optional.ofNullable(this.enabled); } /** - * @return FQDN for the authorized cluster endpoint (string) + * @return FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * */ public Optional fqdn() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfig.java index 0d337f73c..41b0797d8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfig.java @@ -11,6 +11,7 @@ import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachinePool; import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachinePoolDefault; import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorConfig; +import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorFile; import com.pulumi.rancher2.outputs.ClusterV2RkeConfigRegistries; import com.pulumi.rancher2.outputs.ClusterV2RkeConfigRotateCertificates; import com.pulumi.rancher2.outputs.ClusterV2RkeConfigUpgradeStrategy; @@ -23,32 +24,32 @@ @CustomType public final class ClusterV2RkeConfig { /** - * @return Cluster V2 additional manifest (string) + * @return The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. * */ private @Nullable String additionalManifest; /** - * @return Cluster V2 chart values. Must be in YAML format (string) + * @return The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). * */ private @Nullable String chartValues; /** - * @return Cluster V2 etcd (list maxitems:1) + * @return Etcd configures the behavior of the automatic etcd snapshot feature. * */ private @Nullable ClusterV2RkeConfigEtcd etcd; /** - * @return Cluster V2 etcd snapshot create (list maxitems:1) + * @return Cluster V2 etcd snapshot create. * */ private @Nullable ClusterV2RkeConfigEtcdSnapshotCreate etcdSnapshotCreate; /** - * @return Cluster V2 etcd snapshot restore (list maxitems:1) + * @return Cluster V2 etcd snapshot restore. * */ private @Nullable ClusterV2RkeConfigEtcdSnapshotRestore etcdSnapshotRestore; /** - * @return Cluster V2 local auth endpoint (list maxitems:1) + * @return Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * * @deprecated * Use rancher2_cluster_v2.local_auth_endpoint instead @@ -57,7 +58,7 @@ public final class ClusterV2RkeConfig { @Deprecated /* Use rancher2_cluster_v2.local_auth_endpoint instead */ private @Nullable ClusterV2RkeConfigLocalAuthEndpoint localAuthEndpoint; /** - * @return Cluster V2 machine global config. Must be in YAML format (string) + * @return Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). * */ private @Nullable String machineGlobalConfig; @@ -67,69 +68,74 @@ public final class ClusterV2RkeConfig { */ private @Nullable List machinePoolDefaults; /** - * @return Cluster V2 machine pools (list) + * @return Cluster V2 machine pools. * */ private @Nullable List machinePools; /** - * @return Cluster V2 machine selector config (list) + * @return Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. * */ private @Nullable List machineSelectorConfigs; /** - * @return Cluster V2 docker registries (list maxitems:1) + * @return Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + * + */ + private @Nullable List machineSelectorFiles; + /** + * @return Docker registries from which the cluster pulls images. * */ private @Nullable ClusterV2RkeConfigRegistries registries; /** - * @return Cluster V2 certificate rotation (list maxitems:1) + * @return Cluster V2 certificate rotation. * */ private @Nullable ClusterV2RkeConfigRotateCertificates rotateCertificates; /** - * @return Cluster V2 upgrade strategy (list maxitems:1) + * @return Cluster upgrade strategy. * */ private @Nullable ClusterV2RkeConfigUpgradeStrategy upgradeStrategy; private ClusterV2RkeConfig() {} /** - * @return Cluster V2 additional manifest (string) + * @return The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. * */ public Optional additionalManifest() { return Optional.ofNullable(this.additionalManifest); } /** - * @return Cluster V2 chart values. Must be in YAML format (string) + * @return The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). * */ public Optional chartValues() { return Optional.ofNullable(this.chartValues); } /** - * @return Cluster V2 etcd (list maxitems:1) + * @return Etcd configures the behavior of the automatic etcd snapshot feature. * */ public Optional etcd() { return Optional.ofNullable(this.etcd); } /** - * @return Cluster V2 etcd snapshot create (list maxitems:1) + * @return Cluster V2 etcd snapshot create. * */ public Optional etcdSnapshotCreate() { return Optional.ofNullable(this.etcdSnapshotCreate); } /** - * @return Cluster V2 etcd snapshot restore (list maxitems:1) + * @return Cluster V2 etcd snapshot restore. * */ public Optional etcdSnapshotRestore() { return Optional.ofNullable(this.etcdSnapshotRestore); } /** - * @return Cluster V2 local auth endpoint (list maxitems:1) + * @return Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * * @deprecated * Use rancher2_cluster_v2.local_auth_endpoint instead @@ -140,7 +146,7 @@ public Optional localAuthEndpoint() { return Optional.ofNullable(this.localAuthEndpoint); } /** - * @return Cluster V2 machine global config. Must be in YAML format (string) + * @return Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). * */ public Optional machineGlobalConfig() { @@ -154,35 +160,42 @@ public List machinePoolDefaults() { return this.machinePoolDefaults == null ? List.of() : this.machinePoolDefaults; } /** - * @return Cluster V2 machine pools (list) + * @return Cluster V2 machine pools. * */ public List machinePools() { return this.machinePools == null ? List.of() : this.machinePools; } /** - * @return Cluster V2 machine selector config (list) + * @return Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. * */ public List machineSelectorConfigs() { return this.machineSelectorConfigs == null ? List.of() : this.machineSelectorConfigs; } /** - * @return Cluster V2 docker registries (list maxitems:1) + * @return Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + * + */ + public List machineSelectorFiles() { + return this.machineSelectorFiles == null ? List.of() : this.machineSelectorFiles; + } + /** + * @return Docker registries from which the cluster pulls images. * */ public Optional registries() { return Optional.ofNullable(this.registries); } /** - * @return Cluster V2 certificate rotation (list maxitems:1) + * @return Cluster V2 certificate rotation. * */ public Optional rotateCertificates() { return Optional.ofNullable(this.rotateCertificates); } /** - * @return Cluster V2 upgrade strategy (list maxitems:1) + * @return Cluster upgrade strategy. * */ public Optional upgradeStrategy() { @@ -208,6 +221,7 @@ public static final class Builder { private @Nullable List machinePoolDefaults; private @Nullable List machinePools; private @Nullable List machineSelectorConfigs; + private @Nullable List machineSelectorFiles; private @Nullable ClusterV2RkeConfigRegistries registries; private @Nullable ClusterV2RkeConfigRotateCertificates rotateCertificates; private @Nullable ClusterV2RkeConfigUpgradeStrategy upgradeStrategy; @@ -224,6 +238,7 @@ public Builder(ClusterV2RkeConfig defaults) { this.machinePoolDefaults = defaults.machinePoolDefaults; this.machinePools = defaults.machinePools; this.machineSelectorConfigs = defaults.machineSelectorConfigs; + this.machineSelectorFiles = defaults.machineSelectorFiles; this.registries = defaults.registries; this.rotateCertificates = defaults.rotateCertificates; this.upgradeStrategy = defaults.upgradeStrategy; @@ -299,6 +314,15 @@ public Builder machineSelectorConfigs(ClusterV2RkeConfigMachineSelectorConfig... return machineSelectorConfigs(List.of(machineSelectorConfigs)); } @CustomType.Setter + public Builder machineSelectorFiles(@Nullable List machineSelectorFiles) { + + this.machineSelectorFiles = machineSelectorFiles; + return this; + } + public Builder machineSelectorFiles(ClusterV2RkeConfigMachineSelectorFile... machineSelectorFiles) { + return machineSelectorFiles(List.of(machineSelectorFiles)); + } + @CustomType.Setter public Builder registries(@Nullable ClusterV2RkeConfigRegistries registries) { this.registries = registries; @@ -328,6 +352,7 @@ public ClusterV2RkeConfig build() { _resultValue.machinePoolDefaults = machinePoolDefaults; _resultValue.machinePools = machinePools; _resultValue.machineSelectorConfigs = machineSelectorConfigs; + _resultValue.machineSelectorFiles = machineSelectorFiles; _resultValue.registries = registries; _resultValue.rotateCertificates = rotateCertificates; _resultValue.upgradeStrategy = upgradeStrategy; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcd.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcd.java index eff536a35..c5dc5a02f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcd.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcd.java @@ -15,50 +15,50 @@ @CustomType public final class ClusterV2RkeConfigEtcd { /** - * @return Disable ETCD snapshots. Default: `false` (bool) + * @return Disable ETCD snapshots. * */ private @Nullable Boolean disableSnapshots; /** - * @return Creation option for etcd service (list maxitems:1) + * @return Creation option for etcd service. * */ private @Nullable ClusterV2RkeConfigEtcdS3Config s3Config; /** - * @return ETCD snapshot retention (int) + * @return ETCD snapshot retention. * */ private @Nullable Integer snapshotRetention; /** - * @return ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`) (string) + * @return ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`). * */ private @Nullable String snapshotScheduleCron; private ClusterV2RkeConfigEtcd() {} /** - * @return Disable ETCD snapshots. Default: `false` (bool) + * @return Disable ETCD snapshots. * */ public Optional disableSnapshots() { return Optional.ofNullable(this.disableSnapshots); } /** - * @return Creation option for etcd service (list maxitems:1) + * @return Creation option for etcd service. * */ public Optional s3Config() { return Optional.ofNullable(this.s3Config); } /** - * @return ETCD snapshot retention (int) + * @return ETCD snapshot retention. * */ public Optional snapshotRetention() { return Optional.ofNullable(this.snapshotRetention); } /** - * @return ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`) (string) + * @return ETCD snapshot schedule cron (e.g `\"0 *{@literal /}5 * * *\"`). * */ public Optional snapshotScheduleCron() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdS3Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdS3Config.java index ae7601e35..d05b87420 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdS3Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdS3Config.java @@ -14,86 +14,86 @@ @CustomType public final class ClusterV2RkeConfigEtcdS3Config { /** - * @return Bucket name for S3 service (string) + * @return Bucket name for S3 service. * */ private String bucket; /** - * @return ETCD snapshot S3 cloud credential name (string) + * @return ETCD snapshot S3 cloud credential name. * */ private @Nullable String cloudCredentialName; /** - * @return ETCD snapshot S3 endpoint (string) + * @return ETCD snapshot S3 endpoint. * */ private String endpoint; /** - * @return ETCD snapshot S3 endpoint CA (string) + * @return ETCD snapshot S3 endpoint CA. * */ private @Nullable String endpointCa; /** - * @return ETCD snapshot S3 folder (string) + * @return ETCD snapshot S3 folder. * */ private @Nullable String folder; /** - * @return ETCD snapshot S3 region (string) + * @return ETCD snapshot S3 region. * */ private @Nullable String region; /** - * @return Disable ETCD skip ssl verify. Default: `false` (bool) + * @return Disable ETCD skip ssl verify. * */ private @Nullable Boolean skipSslVerify; private ClusterV2RkeConfigEtcdS3Config() {} /** - * @return Bucket name for S3 service (string) + * @return Bucket name for S3 service. * */ public String bucket() { return this.bucket; } /** - * @return ETCD snapshot S3 cloud credential name (string) + * @return ETCD snapshot S3 cloud credential name. * */ public Optional cloudCredentialName() { return Optional.ofNullable(this.cloudCredentialName); } /** - * @return ETCD snapshot S3 endpoint (string) + * @return ETCD snapshot S3 endpoint. * */ public String endpoint() { return this.endpoint; } /** - * @return ETCD snapshot S3 endpoint CA (string) + * @return ETCD snapshot S3 endpoint CA. * */ public Optional endpointCa() { return Optional.ofNullable(this.endpointCa); } /** - * @return ETCD snapshot S3 folder (string) + * @return ETCD snapshot S3 folder. * */ public Optional folder() { return Optional.ofNullable(this.folder); } /** - * @return ETCD snapshot S3 region (string) + * @return ETCD snapshot S3 region. * */ public Optional region() { return Optional.ofNullable(this.region); } /** - * @return Disable ETCD skip ssl verify. Default: `false` (bool) + * @return Disable ETCD skip ssl verify. * */ public Optional skipSslVerify() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotCreate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotCreate.java index 8cff64dca..7cae52b39 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotCreate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotCreate.java @@ -11,14 +11,14 @@ @CustomType public final class ClusterV2RkeConfigEtcdSnapshotCreate { /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ private Integer generation; private ClusterV2RkeConfigEtcdSnapshotCreate() {} /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ public Integer generation() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotRestore.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotRestore.java index 90ee879e4..e269f34dd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotRestore.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotRestore.java @@ -14,38 +14,38 @@ @CustomType public final class ClusterV2RkeConfigEtcdSnapshotRestore { /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ private Integer generation; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ private String name; /** - * @return ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + * @return ETCD restore RKE config (set to none, all, or kubernetesVersion). * */ private @Nullable String restoreRkeConfig; private ClusterV2RkeConfigEtcdSnapshotRestore() {} /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ public Integer generation() { return this.generation; } /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public String name() { return this.name; } /** - * @return ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + * @return ETCD restore RKE config (set to none, all, or kubernetesVersion). * */ public Optional restoreRkeConfig() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigLocalAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigLocalAuthEndpoint.java index a082ca2c2..3b56b5d84 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigLocalAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigLocalAuthEndpoint.java @@ -13,38 +13,38 @@ @CustomType public final class ClusterV2RkeConfigLocalAuthEndpoint { /** - * @return CA certs for the authorized cluster endpoint (string) + * @return CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * */ private @Nullable String caCerts; /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ private @Nullable Boolean enabled; /** - * @return FQDN for the authorized cluster endpoint (string) + * @return FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * */ private @Nullable String fqdn; private ClusterV2RkeConfigLocalAuthEndpoint() {} /** - * @return CA certs for the authorized cluster endpoint (string) + * @return CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. * */ public Optional caCerts() { return Optional.ofNullable(this.caCerts); } /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ public Optional enabled() { return Optional.ofNullable(this.enabled); } /** - * @return FQDN for the authorized cluster endpoint (string) + * @return FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. * */ public Optional fqdn() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePool.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePool.java index e10a44080..6c9b049e2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePool.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePool.java @@ -21,27 +21,27 @@ @CustomType public final class ClusterV2RkeConfigMachinePool { /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ private @Nullable Map annotations; /** - * @return Cluster V2 cloud credential secret name (string) + * @return Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ private @Nullable String cloudCredentialSecretName; /** - * @return Machine pool control plane role? (bool) + * @return Machine pool control plane role? * */ private @Nullable Boolean controlPlaneRole; /** - * @return Machine Pool Drain Before Delete? (bool) + * @return Machine Pool Drain Before Delete? * */ private @Nullable Boolean drainBeforeDelete; /** - * @return Machine pool etcd role? (bool) + * @return Machine pool etcd role? * */ private @Nullable Boolean etcdRole; @@ -51,107 +51,107 @@ public final class ClusterV2RkeConfigMachinePool { */ private @Nullable Integer hostnameLengthLimit; /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ private @Nullable Map labels; /** - * @return Machine pool node config (list) + * @return Machine pool node config. * */ private ClusterV2RkeConfigMachinePoolMachineConfig machineConfig; /** - * @return Labels for Machine pool nodes (map) + * @return Labels for Machine pool nodes. * */ private @Nullable Map machineLabels; /** - * @return Max unhealthy nodes for automated replacement to be allowed (string) + * @return Max unhealthy nodes for automated replacement to be allowed. * */ private @Nullable String maxUnhealthy; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ private String name; /** - * @return Seconds a machine has to drain before deletion (int) + * @return Seconds a machine has to drain before deletion. * */ private @Nullable Integer nodeDrainTimeout; /** - * @return Seconds a new node has to become active before it is replaced (int) + * @return Seconds a new node has to become active before it is replaced. * */ private @Nullable Integer nodeStartupTimeoutSeconds; /** - * @return Machine pool paused? (bool) + * @return Machine pool paused? * */ private @Nullable Boolean paused; /** - * @return Machine pool quantity (int) + * @return Machine pool quantity. * */ private @Nullable Integer quantity; /** - * @return Machine pool rolling update (List maxitems:1) + * @return Machine pool rolling update. * */ private @Nullable ClusterV2RkeConfigMachinePoolRollingUpdate rollingUpdate; /** - * @return Machine pool taints (list) + * @return Machine pool taints. * */ private @Nullable List taints; /** - * @return Seconds an unhealthy node has to become active before it is replaced (int) + * @return Seconds an unhealthy node has to become active before it is replaced. * */ private @Nullable Integer unhealthyNodeTimeoutSeconds; /** - * @return Range of unhealthy nodes for automated replacement to be allowed (string) + * @return Range of unhealthy nodes for automated replacement to be allowed. * */ private @Nullable String unhealthyRange; /** - * @return Machine pool worker role? (bool) + * @return Machine pool worker role? * */ private @Nullable Boolean workerRole; private ClusterV2RkeConfigMachinePool() {} /** - * @return Annotations for the Cluster V2 (map) + * @return Annotations for the Cluster. * */ public Map annotations() { return this.annotations == null ? Map.of() : this.annotations; } /** - * @return Cluster V2 cloud credential secret name (string) + * @return Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. * */ public Optional cloudCredentialSecretName() { return Optional.ofNullable(this.cloudCredentialSecretName); } /** - * @return Machine pool control plane role? (bool) + * @return Machine pool control plane role? * */ public Optional controlPlaneRole() { return Optional.ofNullable(this.controlPlaneRole); } /** - * @return Machine Pool Drain Before Delete? (bool) + * @return Machine Pool Drain Before Delete? * */ public Optional drainBeforeDelete() { return Optional.ofNullable(this.drainBeforeDelete); } /** - * @return Machine pool etcd role? (bool) + * @return Machine pool etcd role? * */ public Optional etcdRole() { @@ -165,98 +165,98 @@ public Optional hostnameLengthLimit() { return Optional.ofNullable(this.hostnameLengthLimit); } /** - * @return Labels for the Cluster V2 (map) + * @return Labels for the Cluster. * */ public Map labels() { return this.labels == null ? Map.of() : this.labels; } /** - * @return Machine pool node config (list) + * @return Machine pool node config. * */ public ClusterV2RkeConfigMachinePoolMachineConfig machineConfig() { return this.machineConfig; } /** - * @return Labels for Machine pool nodes (map) + * @return Labels for Machine pool nodes. * */ public Map machineLabels() { return this.machineLabels == null ? Map.of() : this.machineLabels; } /** - * @return Max unhealthy nodes for automated replacement to be allowed (string) + * @return Max unhealthy nodes for automated replacement to be allowed. * */ public Optional maxUnhealthy() { return Optional.ofNullable(this.maxUnhealthy); } /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public String name() { return this.name; } /** - * @return Seconds a machine has to drain before deletion (int) + * @return Seconds a machine has to drain before deletion. * */ public Optional nodeDrainTimeout() { return Optional.ofNullable(this.nodeDrainTimeout); } /** - * @return Seconds a new node has to become active before it is replaced (int) + * @return Seconds a new node has to become active before it is replaced. * */ public Optional nodeStartupTimeoutSeconds() { return Optional.ofNullable(this.nodeStartupTimeoutSeconds); } /** - * @return Machine pool paused? (bool) + * @return Machine pool paused? * */ public Optional paused() { return Optional.ofNullable(this.paused); } /** - * @return Machine pool quantity (int) + * @return Machine pool quantity. * */ public Optional quantity() { return Optional.ofNullable(this.quantity); } /** - * @return Machine pool rolling update (List maxitems:1) + * @return Machine pool rolling update. * */ public Optional rollingUpdate() { return Optional.ofNullable(this.rollingUpdate); } /** - * @return Machine pool taints (list) + * @return Machine pool taints. * */ public List taints() { return this.taints == null ? List.of() : this.taints; } /** - * @return Seconds an unhealthy node has to become active before it is replaced (int) + * @return Seconds an unhealthy node has to become active before it is replaced. * */ public Optional unhealthyNodeTimeoutSeconds() { return Optional.ofNullable(this.unhealthyNodeTimeoutSeconds); } /** - * @return Range of unhealthy nodes for automated replacement to be allowed (string) + * @return Range of unhealthy nodes for automated replacement to be allowed. * */ public Optional unhealthyRange() { return Optional.ofNullable(this.unhealthyRange); } /** - * @return Machine pool worker role? (bool) + * @return Machine pool worker role? * */ public Optional workerRole() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolMachineConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolMachineConfig.java index b6ec10d7d..89c0bce2f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolMachineConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolMachineConfig.java @@ -7,30 +7,44 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class ClusterV2RkeConfigMachinePoolMachineConfig { /** - * @return Machine config kind (string) + * @return Api version of the machine_config. + * + */ + private @Nullable String apiVersion; + /** + * @return Machine config kind. * */ private String kind; /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ private String name; private ClusterV2RkeConfigMachinePoolMachineConfig() {} /** - * @return Machine config kind (string) + * @return Api version of the machine_config. + * + */ + public Optional apiVersion() { + return Optional.ofNullable(this.apiVersion); + } + /** + * @return Machine config kind. * */ public String kind() { return this.kind; } /** - * @return The name of the Cluster v2 (string) + * @return The name of the cluster. * */ public String name() { @@ -46,15 +60,23 @@ public static Builder builder(ClusterV2RkeConfigMachinePoolMachineConfig default } @CustomType.Builder public static final class Builder { + private @Nullable String apiVersion; private String kind; private String name; public Builder() {} public Builder(ClusterV2RkeConfigMachinePoolMachineConfig defaults) { Objects.requireNonNull(defaults); + this.apiVersion = defaults.apiVersion; this.kind = defaults.kind; this.name = defaults.name; } + @CustomType.Setter + public Builder apiVersion(@Nullable String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } @CustomType.Setter public Builder kind(String kind) { if (kind == null) { @@ -73,6 +95,7 @@ public Builder name(String name) { } public ClusterV2RkeConfigMachinePoolMachineConfig build() { final var _resultValue = new ClusterV2RkeConfigMachinePoolMachineConfig(); + _resultValue.apiVersion = apiVersion; _resultValue.kind = kind; _resultValue.name = name; return _resultValue; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.java index 8bfa9a22c..a4ff22b71 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.java @@ -12,26 +12,26 @@ @CustomType public final class ClusterV2RkeConfigMachinePoolRollingUpdate { /** - * @return Rolling update max surge (string) + * @return Rolling update max surge. * */ private @Nullable String maxSurge; /** - * @return Rolling update max unavailable (string) + * @return Rolling update max unavailable. * */ private @Nullable String maxUnavailable; private ClusterV2RkeConfigMachinePoolRollingUpdate() {} /** - * @return Rolling update max surge (string) + * @return Rolling update max surge. * */ public Optional maxSurge() { return Optional.ofNullable(this.maxSurge); } /** - * @return Rolling update max unavailable (string) + * @return Rolling update max unavailable. * */ public Optional maxUnavailable() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolTaint.java index 089364355..16189b9b8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolTaint.java @@ -13,38 +13,38 @@ @CustomType public final class ClusterV2RkeConfigMachinePoolTaint { /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ private @Nullable String effect; /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ private String key; /** - * @return The taint value (string) + * @return The taint value. * */ private String value; private ClusterV2RkeConfigMachinePoolTaint() {} /** - * @return The taint effect. Default: `\"NoExecute\"` (string) + * @return The taint effect. Default: `\"NoExecute\"`. * */ public Optional effect() { return Optional.ofNullable(this.effect); } /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ public String key() { return this.key; } /** - * @return The taint value (string) + * @return The taint value. * */ public String value() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfig.java index a9ad86293..0d7edac4c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfig.java @@ -13,26 +13,26 @@ @CustomType public final class ClusterV2RkeConfigMachineSelectorConfig { /** - * @return Machine selector config. Must be in YAML format (string) + * @return Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) * */ private @Nullable String config; /** - * @return Machine selector label (list maxitems:1) + * @return Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. * */ private @Nullable ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector machineLabelSelector; private ClusterV2RkeConfigMachineSelectorConfig() {} /** - * @return Machine selector config. Must be in YAML format (string) + * @return Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) * */ public Optional config() { return Optional.ofNullable(this.config); } /** - * @return Machine selector label (list maxitems:1) + * @return Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. * */ public Optional machineLabelSelector() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java index 82e9d61d6..efb0503e1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java @@ -15,26 +15,26 @@ @CustomType public final class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { /** - * @return Machine selector label match expressions (list) + * @return Match expressions is a list of label selector requirements. The requirements are ANDed. * */ private @Nullable List matchExpressions; /** - * @return Machine selector label match labels (map) + * @return Machine selector label is a map of {key,value} pairs, the requirements are ANDed. * */ private @Nullable Map matchLabels; private ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector() {} /** - * @return Machine selector label match expressions (list) + * @return Match expressions is a list of label selector requirements. The requirements are ANDed. * */ public List matchExpressions() { return this.matchExpressions == null ? List.of() : this.matchExpressions; } /** - * @return Machine selector label match labels (map) + * @return Machine selector label is a map of {key,value} pairs, the requirements are ANDed. * */ public Map matchLabels() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java index 64c3535e7..e5dcb7667 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java @@ -13,38 +13,38 @@ @CustomType public final class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ private @Nullable String key; /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ private @Nullable String operator; /** - * @return Machine selector label match expressions values (List string) + * @return Values is a list of string values. * */ private @Nullable List values; private ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression() {} /** - * @return Machine selector label match expressions key (string) + * @return Key is the name of the key of the item to retrieve. * */ public Optional key() { return Optional.ofNullable(this.key); } /** - * @return Machine selector label match expressions operator (string) + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. * */ public Optional operator() { return Optional.ofNullable(this.operator); } /** - * @return Machine selector label match expressions values (List string) + * @return Values is a list of string values. * */ public List values() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFile.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFile.java new file mode 100644 index 000000000..d881aac91 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFile.java @@ -0,0 +1,83 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorFileFileSource; +import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class ClusterV2RkeConfigMachineSelectorFile { + /** + * @return File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + * + */ + private @Nullable List fileSources; + /** + * @return Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * + */ + private @Nullable ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector machineLabelSelector; + + private ClusterV2RkeConfigMachineSelectorFile() {} + /** + * @return File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + * + */ + public List fileSources() { + return this.fileSources == null ? List.of() : this.fileSources; + } + /** + * @return Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + * + */ + public Optional machineLabelSelector() { + return Optional.ofNullable(this.machineLabelSelector); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ClusterV2RkeConfigMachineSelectorFile defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable List fileSources; + private @Nullable ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector machineLabelSelector; + public Builder() {} + public Builder(ClusterV2RkeConfigMachineSelectorFile defaults) { + Objects.requireNonNull(defaults); + this.fileSources = defaults.fileSources; + this.machineLabelSelector = defaults.machineLabelSelector; + } + + @CustomType.Setter + public Builder fileSources(@Nullable List fileSources) { + + this.fileSources = fileSources; + return this; + } + public Builder fileSources(ClusterV2RkeConfigMachineSelectorFileFileSource... fileSources) { + return fileSources(List.of(fileSources)); + } + @CustomType.Setter + public Builder machineLabelSelector(@Nullable ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector machineLabelSelector) { + + this.machineLabelSelector = machineLabelSelector; + return this; + } + public ClusterV2RkeConfigMachineSelectorFile build() { + final var _resultValue = new ClusterV2RkeConfigMachineSelectorFile(); + _resultValue.fileSources = fileSources; + _resultValue.machineLabelSelector = machineLabelSelector; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSource.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSource.java new file mode 100644 index 000000000..a7ea08d5e --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSource.java @@ -0,0 +1,79 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap; +import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecret; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class ClusterV2RkeConfigMachineSelectorFileFileSource { + /** + * @return Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + * + */ + private @Nullable ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap configmap; + /** + * @return Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + * + */ + private @Nullable ClusterV2RkeConfigMachineSelectorFileFileSourceSecret secret; + + private ClusterV2RkeConfigMachineSelectorFileFileSource() {} + /** + * @return Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + * + */ + public Optional configmap() { + return Optional.ofNullable(this.configmap); + } + /** + * @return Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + * + */ + public Optional secret() { + return Optional.ofNullable(this.secret); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSource defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap configmap; + private @Nullable ClusterV2RkeConfigMachineSelectorFileFileSourceSecret secret; + public Builder() {} + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSource defaults) { + Objects.requireNonNull(defaults); + this.configmap = defaults.configmap; + this.secret = defaults.secret; + } + + @CustomType.Setter + public Builder configmap(@Nullable ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap configmap) { + + this.configmap = configmap; + return this; + } + @CustomType.Setter + public Builder secret(@Nullable ClusterV2RkeConfigMachineSelectorFileFileSourceSecret secret) { + + this.secret = secret; + return this; + } + public ClusterV2RkeConfigMachineSelectorFileFileSource build() { + final var _resultValue = new ClusterV2RkeConfigMachineSelectorFileFileSource(); + _resultValue.configmap = configmap; + _resultValue.secret = secret; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.java new file mode 100644 index 000000000..0ee7db8f3 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.java @@ -0,0 +1,107 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + /** + * @return The numeric representation of the default file permissions for all files defined under the items. + * + */ + private @Nullable String defaultPermissions; + /** + * @return Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + */ + private @Nullable List items; + /** + * @return The name of the cluster. + * + */ + private String name; + + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap() {} + /** + * @return The numeric representation of the default file permissions for all files defined under the items. + * + */ + public Optional defaultPermissions() { + return Optional.ofNullable(this.defaultPermissions); + } + /** + * @return Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + */ + public List items() { + return this.items == null ? List.of() : this.items; + } + /** + * @return The name of the cluster. + * + */ + public String name() { + return this.name; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String defaultPermissions; + private @Nullable List items; + private String name; + public Builder() {} + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap defaults) { + Objects.requireNonNull(defaults); + this.defaultPermissions = defaults.defaultPermissions; + this.items = defaults.items; + this.name = defaults.name; + } + + @CustomType.Setter + public Builder defaultPermissions(@Nullable String defaultPermissions) { + + this.defaultPermissions = defaultPermissions; + return this; + } + @CustomType.Setter + public Builder items(@Nullable List items) { + + this.items = items; + return this; + } + public Builder items(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem... items) { + return items(List.of(items)); + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap", "name"); + } + this.name = name; + return this; + } + public ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap build() { + final var _resultValue = new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap(); + _resultValue.defaultPermissions = defaultPermissions; + _resultValue.items = items; + _resultValue.name = name; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.java new file mode 100644 index 000000000..f3179d1c1 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.java @@ -0,0 +1,147 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + /** + * @return If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + */ + private @Nullable Boolean dynamic; + /** + * @return Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + */ + private @Nullable String hash; + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + private String key; + /** + * @return Path is the absolute path to put the file in the target node. + * + */ + private String path; + /** + * @return Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + */ + private @Nullable String permissions; + + private ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem() {} + /** + * @return If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + */ + public Optional dynamic() { + return Optional.ofNullable(this.dynamic); + } + /** + * @return Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + */ + public Optional hash() { + return Optional.ofNullable(this.hash); + } + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + public String key() { + return this.key; + } + /** + * @return Path is the absolute path to put the file in the target node. + * + */ + public String path() { + return this.path; + } + /** + * @return Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + */ + public Optional permissions() { + return Optional.ofNullable(this.permissions); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean dynamic; + private @Nullable String hash; + private String key; + private String path; + private @Nullable String permissions; + public Builder() {} + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem defaults) { + Objects.requireNonNull(defaults); + this.dynamic = defaults.dynamic; + this.hash = defaults.hash; + this.key = defaults.key; + this.path = defaults.path; + this.permissions = defaults.permissions; + } + + @CustomType.Setter + public Builder dynamic(@Nullable Boolean dynamic) { + + this.dynamic = dynamic; + return this; + } + @CustomType.Setter + public Builder hash(@Nullable String hash) { + + this.hash = hash; + return this; + } + @CustomType.Setter + public Builder key(String key) { + if (key == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem", "key"); + } + this.key = key; + return this; + } + @CustomType.Setter + public Builder path(String path) { + if (path == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem", "path"); + } + this.path = path; + return this; + } + @CustomType.Setter + public Builder permissions(@Nullable String permissions) { + + this.permissions = permissions; + return this; + } + public ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem build() { + final var _resultValue = new ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem(); + _resultValue.dynamic = dynamic; + _resultValue.hash = hash; + _resultValue.key = key; + _resultValue.path = path; + _resultValue.permissions = permissions; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret.java new file mode 100644 index 000000000..c5a83aac4 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecret.java @@ -0,0 +1,107 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceSecret { + /** + * @return The numeric representation of the default file permissions for all files defined under the items. + * + */ + private @Nullable String defaultPermissions; + /** + * @return Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + */ + private @Nullable List items; + /** + * @return The name of the cluster. + * + */ + private String name; + + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecret() {} + /** + * @return The numeric representation of the default file permissions for all files defined under the items. + * + */ + public Optional defaultPermissions() { + return Optional.ofNullable(this.defaultPermissions); + } + /** + * @return Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + * + */ + public List items() { + return this.items == null ? List.of() : this.items; + } + /** + * @return The name of the cluster. + * + */ + public String name() { + return this.name; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceSecret defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String defaultPermissions; + private @Nullable List items; + private String name; + public Builder() {} + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceSecret defaults) { + Objects.requireNonNull(defaults); + this.defaultPermissions = defaults.defaultPermissions; + this.items = defaults.items; + this.name = defaults.name; + } + + @CustomType.Setter + public Builder defaultPermissions(@Nullable String defaultPermissions) { + + this.defaultPermissions = defaultPermissions; + return this; + } + @CustomType.Setter + public Builder items(@Nullable List items) { + + this.items = items; + return this; + } + public Builder items(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem... items) { + return items(List.of(items)); + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceSecret", "name"); + } + this.name = name; + return this; + } + public ClusterV2RkeConfigMachineSelectorFileFileSourceSecret build() { + final var _resultValue = new ClusterV2RkeConfigMachineSelectorFileFileSourceSecret(); + _resultValue.defaultPermissions = defaultPermissions; + _resultValue.items = items; + _resultValue.name = name; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.java new file mode 100644 index 000000000..3acf1bf98 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.java @@ -0,0 +1,147 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + /** + * @return If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + */ + private @Nullable Boolean dynamic; + /** + * @return Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + */ + private @Nullable String hash; + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + private String key; + /** + * @return Path is the absolute path to put the file in the target node. + * + */ + private String path; + /** + * @return Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + */ + private @Nullable String permissions; + + private ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem() {} + /** + * @return If true, the file is ignored when determining whether the node should be drained before updating the node plan. + * + */ + public Optional dynamic() { + return Optional.ofNullable(this.dynamic); + } + /** + * @return Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + * + */ + public Optional hash() { + return Optional.ofNullable(this.hash); + } + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + public String key() { + return this.key; + } + /** + * @return Path is the absolute path to put the file in the target node. + * + */ + public String path() { + return this.path; + } + /** + * @return Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + * + */ + public Optional permissions() { + return Optional.ofNullable(this.permissions); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean dynamic; + private @Nullable String hash; + private String key; + private String path; + private @Nullable String permissions; + public Builder() {} + public Builder(ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem defaults) { + Objects.requireNonNull(defaults); + this.dynamic = defaults.dynamic; + this.hash = defaults.hash; + this.key = defaults.key; + this.path = defaults.path; + this.permissions = defaults.permissions; + } + + @CustomType.Setter + public Builder dynamic(@Nullable Boolean dynamic) { + + this.dynamic = dynamic; + return this; + } + @CustomType.Setter + public Builder hash(@Nullable String hash) { + + this.hash = hash; + return this; + } + @CustomType.Setter + public Builder key(String key) { + if (key == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem", "key"); + } + this.key = key; + return this; + } + @CustomType.Setter + public Builder path(String path) { + if (path == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem", "path"); + } + this.path = path; + return this; + } + @CustomType.Setter + public Builder permissions(@Nullable String permissions) { + + this.permissions = permissions; + return this; + } + public ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem build() { + final var _resultValue = new ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem(); + _resultValue.dynamic = dynamic; + _resultValue.hash = hash; + _resultValue.key = key; + _resultValue.path = path; + _resultValue.permissions = permissions; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.java new file mode 100644 index 000000000..697a82054 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.java @@ -0,0 +1,84 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression; +import java.lang.Object; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Nullable; + +@CustomType +public final class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + /** + * @return Match expressions is a list of label selector requirements. The requirements are ANDed. + * + */ + private @Nullable List matchExpressions; + /** + * @return Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + * + */ + private @Nullable Map matchLabels; + + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector() {} + /** + * @return Match expressions is a list of label selector requirements. The requirements are ANDed. + * + */ + public List matchExpressions() { + return this.matchExpressions == null ? List.of() : this.matchExpressions; + } + /** + * @return Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + * + */ + public Map matchLabels() { + return this.matchLabels == null ? Map.of() : this.matchLabels; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable List matchExpressions; + private @Nullable Map matchLabels; + public Builder() {} + public Builder(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector defaults) { + Objects.requireNonNull(defaults); + this.matchExpressions = defaults.matchExpressions; + this.matchLabels = defaults.matchLabels; + } + + @CustomType.Setter + public Builder matchExpressions(@Nullable List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + public Builder matchExpressions(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression... matchExpressions) { + return matchExpressions(List.of(matchExpressions)); + } + @CustomType.Setter + public Builder matchLabels(@Nullable Map matchLabels) { + + this.matchLabels = matchLabels; + return this; + } + public ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector build() { + final var _resultValue = new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector(); + _resultValue.matchExpressions = matchExpressions; + _resultValue.matchLabels = matchLabels; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.java new file mode 100644 index 000000000..366a85888 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.java @@ -0,0 +1,103 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + private @Nullable String key; + /** + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * + */ + private @Nullable String operator; + /** + * @return Values is a list of string values. + * + */ + private @Nullable List values; + + private ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression() {} + /** + * @return Key is the name of the key of the item to retrieve. + * + */ + public Optional key() { + return Optional.ofNullable(this.key); + } + /** + * @return Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * + */ + public Optional operator() { + return Optional.ofNullable(this.operator); + } + /** + * @return Values is a list of string values. + * + */ + public List values() { + return this.values == null ? List.of() : this.values; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String key; + private @Nullable String operator; + private @Nullable List values; + public Builder() {} + public Builder(ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression defaults) { + Objects.requireNonNull(defaults); + this.key = defaults.key; + this.operator = defaults.operator; + this.values = defaults.values; + } + + @CustomType.Setter + public Builder key(@Nullable String key) { + + this.key = key; + return this; + } + @CustomType.Setter + public Builder operator(@Nullable String operator) { + + this.operator = operator; + return this; + } + @CustomType.Setter + public Builder values(@Nullable List values) { + + this.values = values; + return this; + } + public Builder values(String... values) { + return values(List.of(values)); + } + public ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression build() { + final var _resultValue = new ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression(); + _resultValue.key = key; + _resultValue.operator = operator; + _resultValue.values = values; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistries.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistries.java index 79ee8b0ce..abc8001ff 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistries.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistries.java @@ -13,26 +13,26 @@ @CustomType public final class ClusterV2RkeConfigRegistries { /** - * @return Cluster V2 docker registries config (list) + * @return Cluster V2 docker registries config. * */ private @Nullable List configs; /** - * @return Cluster V2 docker registries mirror (list) + * @return Cluster V2 docker registries mirror. * */ private @Nullable List mirrors; private ClusterV2RkeConfigRegistries() {} /** - * @return Cluster V2 docker registries config (list) + * @return Cluster V2 docker registries config. * */ public List configs() { return this.configs == null ? List.of() : this.configs; } /** - * @return Cluster V2 docker registries mirror (list) + * @return Cluster V2 docker registries mirror. * */ public List mirrors() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesConfig.java index 179feca23..968efbf16 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesConfig.java @@ -14,62 +14,62 @@ @CustomType public final class ClusterV2RkeConfigRegistriesConfig { /** - * @return Registry auth config secret name (string) + * @return Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. * */ private @Nullable String authConfigSecretName; /** - * @return Registry CA bundle (string) + * @return Registry CA bundle. * */ private @Nullable String caBundle; /** - * @return Registry hostname (string) + * @return Registry hostname. * */ private String hostname; /** - * @return Registry insecure connectivity (bool) + * @return Registry insecure connectivity. * */ private @Nullable Boolean insecure; /** - * @return Registry TLS secret name. TLS is a pair of Cert/Key (string) + * @return Registry TLS secret name. TLS is a pair of Cert/Key. * */ private @Nullable String tlsSecretName; private ClusterV2RkeConfigRegistriesConfig() {} /** - * @return Registry auth config secret name (string) + * @return Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. * */ public Optional authConfigSecretName() { return Optional.ofNullable(this.authConfigSecretName); } /** - * @return Registry CA bundle (string) + * @return Registry CA bundle. * */ public Optional caBundle() { return Optional.ofNullable(this.caBundle); } /** - * @return Registry hostname (string) + * @return Registry hostname. * */ public String hostname() { return this.hostname; } /** - * @return Registry insecure connectivity (bool) + * @return Registry insecure connectivity. * */ public Optional insecure() { return Optional.ofNullable(this.insecure); } /** - * @return Registry TLS secret name. TLS is a pair of Cert/Key (string) + * @return Registry TLS secret name. TLS is a pair of Cert/Key. * */ public Optional tlsSecretName() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesMirror.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesMirror.java index 27c7c1b50..c0f2cccd3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesMirror.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesMirror.java @@ -15,38 +15,38 @@ @CustomType public final class ClusterV2RkeConfigRegistriesMirror { /** - * @return Registry mirror endpoints (List) + * @return Registry mirror endpoints. * */ private @Nullable List endpoints; /** - * @return Registry hostname (string) + * @return Registry hostname. * */ private String hostname; /** - * @return Registry mirror rewrites (map) + * @return Registry mirror rewrites. * */ private @Nullable Map rewrites; private ClusterV2RkeConfigRegistriesMirror() {} /** - * @return Registry mirror endpoints (List) + * @return Registry mirror endpoints. * */ public List endpoints() { return this.endpoints == null ? List.of() : this.endpoints; } /** - * @return Registry hostname (string) + * @return Registry hostname. * */ public String hostname() { return this.hostname; } /** - * @return Registry mirror rewrites (map) + * @return Registry mirror rewrites. * */ public Map rewrites() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRotateCertificates.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRotateCertificates.java index abe907d22..0d92bbac9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRotateCertificates.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRotateCertificates.java @@ -14,26 +14,26 @@ @CustomType public final class ClusterV2RkeConfigRotateCertificates { /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ private Integer generation; /** - * @return Service certificates to rotate with this generation (string) + * @return Service certificates to rotate with this generation. * */ private @Nullable List services; private ClusterV2RkeConfigRotateCertificates() {} /** - * @return ETCD snapshot desired generation (int) + * @return ETCD snapshot desired generation. * */ public Integer generation() { return this.generation; } /** - * @return Service certificates to rotate with this generation (string) + * @return Service certificates to rotate with this generation. * */ public List services() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategy.java index d78618717..c3a88bebb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategy.java @@ -14,50 +14,50 @@ @CustomType public final class ClusterV2RkeConfigUpgradeStrategy { /** - * @return How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + * @return How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. * */ private @Nullable String controlPlaneConcurrency; /** - * @return Controlplane nodes drain options (list maxitems:1) + * @return Controlplane nodes drain options. * */ private @Nullable ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions controlPlaneDrainOptions; /** - * @return How many worker nodes should be upgrade at time. Percentages are also accepted (string) + * @return How many worker nodes should be upgraded at a time. Percentages are also accepted. * */ private @Nullable String workerConcurrency; /** - * @return Worker nodes drain options (list maxitems:1) + * @return Worker nodes drain options. * */ private @Nullable ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions workerDrainOptions; private ClusterV2RkeConfigUpgradeStrategy() {} /** - * @return How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + * @return How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. * */ public Optional controlPlaneConcurrency() { return Optional.ofNullable(this.controlPlaneConcurrency); } /** - * @return Controlplane nodes drain options (list maxitems:1) + * @return Controlplane nodes drain options. * */ public Optional controlPlaneDrainOptions() { return Optional.ofNullable(this.controlPlaneDrainOptions); } /** - * @return How many worker nodes should be upgrade at time. Percentages are also accepted (string) + * @return How many worker nodes should be upgraded at a time. Percentages are also accepted. * */ public Optional workerConcurrency() { return Optional.ofNullable(this.workerConcurrency); } /** - * @return Worker nodes drain options (list maxitems:1) + * @return Worker nodes drain options. * */ public Optional workerDrainOptions() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java index a98079d79..6bd7085c3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java @@ -13,110 +13,110 @@ @CustomType public final class ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { /** - * @return Drain options delete empty dir data. Default `false` (bool) + * @return if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * */ private @Nullable Boolean deleteEmptyDirData; /** - * @return Drain options disable eviction. Default `false` (bool) + * @return If `disable_eviction` is set to true, force drain to use delete rather than evict. * */ private @Nullable Boolean disableEviction; /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ private @Nullable Boolean enabled; /** - * @return Drain options force. Default `false` (bool) + * @return If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * */ private @Nullable Boolean force; /** - * @return Drain options grace period (int) + * @return Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * */ private @Nullable Integer gracePeriod; /** - * @return Drain options ignore daemon sets. Default `true` (bool) + * @return If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * */ private @Nullable Boolean ignoreDaemonSets; /** - * @return Drain options ignore errors. Default `false` (bool) + * @return If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * */ private @Nullable Boolean ignoreErrors; /** - * @return Drain options skip wait for delete timeout seconds (int) + * @return Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * */ private @Nullable Integer skipWaitForDeleteTimeoutSeconds; /** - * @return Drain options timeout (int) + * @return Time to wait (in seconds) before giving up for one try. * */ private @Nullable Integer timeout; private ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions() {} /** - * @return Drain options delete empty dir data. Default `false` (bool) + * @return if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * */ public Optional deleteEmptyDirData() { return Optional.ofNullable(this.deleteEmptyDirData); } /** - * @return Drain options disable eviction. Default `false` (bool) + * @return If `disable_eviction` is set to true, force drain to use delete rather than evict. * */ public Optional disableEviction() { return Optional.ofNullable(this.disableEviction); } /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ public Optional enabled() { return Optional.ofNullable(this.enabled); } /** - * @return Drain options force. Default `false` (bool) + * @return If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * */ public Optional force() { return Optional.ofNullable(this.force); } /** - * @return Drain options grace period (int) + * @return Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * */ public Optional gracePeriod() { return Optional.ofNullable(this.gracePeriod); } /** - * @return Drain options ignore daemon sets. Default `true` (bool) + * @return If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * */ public Optional ignoreDaemonSets() { return Optional.ofNullable(this.ignoreDaemonSets); } /** - * @return Drain options ignore errors. Default `false` (bool) + * @return If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * */ public Optional ignoreErrors() { return Optional.ofNullable(this.ignoreErrors); } /** - * @return Drain options skip wait for delete timeout seconds (int) + * @return Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * */ public Optional skipWaitForDeleteTimeoutSeconds() { return Optional.ofNullable(this.skipWaitForDeleteTimeoutSeconds); } /** - * @return Drain options timeout (int) + * @return Time to wait (in seconds) before giving up for one try. * */ public Optional timeout() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java index 677457f29..2d655ef51 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java @@ -13,110 +13,110 @@ @CustomType public final class ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { /** - * @return Drain options delete empty dir data. Default `false` (bool) + * @return if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * */ private @Nullable Boolean deleteEmptyDirData; /** - * @return Drain options disable eviction. Default `false` (bool) + * @return If `disable_eviction` is set to true, force drain to use delete rather than evict. * */ private @Nullable Boolean disableEviction; /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ private @Nullable Boolean enabled; /** - * @return Drain options force. Default `false` (bool) + * @return If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * */ private @Nullable Boolean force; /** - * @return Drain options grace period (int) + * @return Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * */ private @Nullable Integer gracePeriod; /** - * @return Drain options ignore daemon sets. Default `true` (bool) + * @return If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * */ private @Nullable Boolean ignoreDaemonSets; /** - * @return Drain options ignore errors. Default `false` (bool) + * @return If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * */ private @Nullable Boolean ignoreErrors; /** - * @return Drain options skip wait for delete timeout seconds (int) + * @return Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * */ private @Nullable Integer skipWaitForDeleteTimeoutSeconds; /** - * @return Drain options timeout (int) + * @return Time to wait (in seconds) before giving up for one try. * */ private @Nullable Integer timeout; private ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions() {} /** - * @return Drain options delete empty dir data. Default `false` (bool) + * @return if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). * */ public Optional deleteEmptyDirData() { return Optional.ofNullable(this.deleteEmptyDirData); } /** - * @return Drain options disable eviction. Default `false` (bool) + * @return If `disable_eviction` is set to true, force drain to use delete rather than evict. * */ public Optional disableEviction() { return Optional.ofNullable(this.disableEviction); } /** - * @return Drain options enabled? Default `true` (bool) + * @return If `enabled` is set to true, nodes will be drained before upgrade. * */ public Optional enabled() { return Optional.ofNullable(this.enabled); } /** - * @return Drain options force. Default `false` (bool) + * @return If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. * */ public Optional force() { return Optional.ofNullable(this.force); } /** - * @return Drain options grace period (int) + * @return Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. * */ public Optional gracePeriod() { return Optional.ofNullable(this.gracePeriod); } /** - * @return Drain options ignore daemon sets. Default `true` (bool) + * @return If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. * */ public Optional ignoreDaemonSets() { return Optional.ofNullable(this.ignoreDaemonSets); } /** - * @return Drain options ignore errors. Default `false` (bool) + * @return If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. * */ public Optional ignoreErrors() { return Optional.ofNullable(this.ignoreErrors); } /** - * @return Drain options skip wait for delete timeout seconds (int) + * @return Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. * */ public Optional skipWaitForDeleteTimeoutSeconds() { return Optional.ofNullable(this.skipWaitForDeleteTimeoutSeconds); } /** - * @return Drain options timeout (int) + * @return Time to wait (in seconds) before giving up for one try. * */ public Optional timeout() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleEventRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleEventRule.java similarity index 83% rename from sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleEventRule.java rename to sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleEventRule.java index c4dae67aa..ff4f0aea2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleEventRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleEventRule.java @@ -11,7 +11,7 @@ import javax.annotation.Nullable; @CustomType -public final class GetClusterAlterRuleEventRule { +public final class GetClusterAlertRuleEventRule { /** * @return Event type * @@ -23,7 +23,7 @@ public final class GetClusterAlterRuleEventRule { */ private String resourceKind; - private GetClusterAlterRuleEventRule() {} + private GetClusterAlertRuleEventRule() {} /** * @return Event type * @@ -43,7 +43,7 @@ public static Builder builder() { return new Builder(); } - public static Builder builder(GetClusterAlterRuleEventRule defaults) { + public static Builder builder(GetClusterAlertRuleEventRule defaults) { return new Builder(defaults); } @CustomType.Builder @@ -51,7 +51,7 @@ public static final class Builder { private @Nullable String eventType; private String resourceKind; public Builder() {} - public Builder(GetClusterAlterRuleEventRule defaults) { + public Builder(GetClusterAlertRuleEventRule defaults) { Objects.requireNonNull(defaults); this.eventType = defaults.eventType; this.resourceKind = defaults.resourceKind; @@ -66,13 +66,13 @@ public Builder eventType(@Nullable String eventType) { @CustomType.Setter public Builder resourceKind(String resourceKind) { if (resourceKind == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleEventRule", "resourceKind"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleEventRule", "resourceKind"); } this.resourceKind = resourceKind; return this; } - public GetClusterAlterRuleEventRule build() { - final var _resultValue = new GetClusterAlterRuleEventRule(); + public GetClusterAlertRuleEventRule build() { + final var _resultValue = new GetClusterAlertRuleEventRule(); _resultValue.eventType = eventType; _resultValue.resourceKind = resourceKind; return _resultValue; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleMetricRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleMetricRule.java similarity index 89% rename from sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleMetricRule.java rename to sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleMetricRule.java index 08e9edc45..a9922a13c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleMetricRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleMetricRule.java @@ -12,7 +12,7 @@ import javax.annotation.Nullable; @CustomType -public final class GetClusterAlterRuleMetricRule { +public final class GetClusterAlertRuleMetricRule { /** * @return Metric rule comparison * @@ -39,7 +39,7 @@ public final class GetClusterAlterRuleMetricRule { */ private Double thresholdValue; - private GetClusterAlterRuleMetricRule() {} + private GetClusterAlertRuleMetricRule() {} /** * @return Metric rule comparison * @@ -80,7 +80,7 @@ public static Builder builder() { return new Builder(); } - public static Builder builder(GetClusterAlterRuleMetricRule defaults) { + public static Builder builder(GetClusterAlertRuleMetricRule defaults) { return new Builder(defaults); } @CustomType.Builder @@ -91,7 +91,7 @@ public static final class Builder { private String expression; private Double thresholdValue; public Builder() {} - public Builder(GetClusterAlterRuleMetricRule defaults) { + public Builder(GetClusterAlertRuleMetricRule defaults) { Objects.requireNonNull(defaults); this.comparison = defaults.comparison; this.description = defaults.description; @@ -115,7 +115,7 @@ public Builder description(@Nullable String description) { @CustomType.Setter public Builder duration(String duration) { if (duration == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleMetricRule", "duration"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleMetricRule", "duration"); } this.duration = duration; return this; @@ -123,7 +123,7 @@ public Builder duration(String duration) { @CustomType.Setter public Builder expression(String expression) { if (expression == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleMetricRule", "expression"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleMetricRule", "expression"); } this.expression = expression; return this; @@ -131,13 +131,13 @@ public Builder expression(String expression) { @CustomType.Setter public Builder thresholdValue(Double thresholdValue) { if (thresholdValue == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleMetricRule", "thresholdValue"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleMetricRule", "thresholdValue"); } this.thresholdValue = thresholdValue; return this; } - public GetClusterAlterRuleMetricRule build() { - final var _resultValue = new GetClusterAlterRuleMetricRule(); + public GetClusterAlertRuleMetricRule build() { + final var _resultValue = new GetClusterAlertRuleMetricRule(); _resultValue.comparison = comparison; _resultValue.description = description; _resultValue.duration = duration; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleNodeRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleNodeRule.java similarity index 91% rename from sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleNodeRule.java rename to sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleNodeRule.java index 62afe45d2..7eb55cdc6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleNodeRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleNodeRule.java @@ -13,7 +13,7 @@ import javax.annotation.Nullable; @CustomType -public final class GetClusterAlterRuleNodeRule { +public final class GetClusterAlertRuleNodeRule { /** * @return Node rule condition * @@ -40,7 +40,7 @@ public final class GetClusterAlterRuleNodeRule { */ private @Nullable Map selector; - private GetClusterAlterRuleNodeRule() {} + private GetClusterAlertRuleNodeRule() {} /** * @return Node rule condition * @@ -81,7 +81,7 @@ public static Builder builder() { return new Builder(); } - public static Builder builder(GetClusterAlterRuleNodeRule defaults) { + public static Builder builder(GetClusterAlertRuleNodeRule defaults) { return new Builder(defaults); } @CustomType.Builder @@ -92,7 +92,7 @@ public static final class Builder { private @Nullable String nodeId; private @Nullable Map selector; public Builder() {} - public Builder(GetClusterAlterRuleNodeRule defaults) { + public Builder(GetClusterAlertRuleNodeRule defaults) { Objects.requireNonNull(defaults); this.condition = defaults.condition; this.cpuThreshold = defaults.cpuThreshold; @@ -131,8 +131,8 @@ public Builder selector(@Nullable Map selector) { this.selector = selector; return this; } - public GetClusterAlterRuleNodeRule build() { - final var _resultValue = new GetClusterAlterRuleNodeRule(); + public GetClusterAlertRuleNodeRule build() { + final var _resultValue = new GetClusterAlertRuleNodeRule(); _resultValue.condition = condition; _resultValue.cpuThreshold = cpuThreshold; _resultValue.memThreshold = memThreshold; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleResult.java similarity index 85% rename from sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleResult.java rename to sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleResult.java index 8be5d47c5..c66ad1e10 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleResult.java @@ -5,10 +5,10 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.exceptions.MissingRequiredPropertyException; -import com.pulumi.rancher2.outputs.GetClusterAlterRuleEventRule; -import com.pulumi.rancher2.outputs.GetClusterAlterRuleMetricRule; -import com.pulumi.rancher2.outputs.GetClusterAlterRuleNodeRule; -import com.pulumi.rancher2.outputs.GetClusterAlterRuleSystemServiceRule; +import com.pulumi.rancher2.outputs.GetClusterAlertRuleEventRule; +import com.pulumi.rancher2.outputs.GetClusterAlertRuleMetricRule; +import com.pulumi.rancher2.outputs.GetClusterAlertRuleNodeRule; +import com.pulumi.rancher2.outputs.GetClusterAlertRuleSystemServiceRule; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -18,7 +18,7 @@ import javax.annotation.Nullable; @CustomType -public final class GetClusterAlterRuleResult { +public final class GetClusterAlertRuleResult { /** * @return (Computed) The cluster alert rule annotations (map) * @@ -29,7 +29,7 @@ public final class GetClusterAlterRuleResult { * @return (Computed) The cluster alert rule event rule. ConflictsWith: `"metric_rule", "node_rule", "system_service_rule"` (list Maxitems:1) * */ - private GetClusterAlterRuleEventRule eventRule; + private GetClusterAlertRuleEventRule eventRule; /** * @return (Computed) The cluster alert rule alert group ID (string) * @@ -64,13 +64,13 @@ public final class GetClusterAlterRuleResult { * @return (Computed) The cluster alert rule metric rule. ConflictsWith: `"event_rule", "node_rule", "system_service_rule"`` (list Maxitems:1) * */ - private GetClusterAlterRuleMetricRule metricRule; + private GetClusterAlertRuleMetricRule metricRule; private String name; /** * @return (Computed) The cluster alert rule node rule. ConflictsWith: `"event_rule", "metric_rule", "system_service_rule"`` (list Maxitems:1) * */ - private GetClusterAlterRuleNodeRule nodeRule; + private GetClusterAlertRuleNodeRule nodeRule; /** * @return (Optional) The cluster alert rule wait seconds. Default: `3600` (int) * @@ -85,9 +85,9 @@ public final class GetClusterAlterRuleResult { * @return (Computed) The cluster alert rule system service rule. ConflictsWith: `"event_rule", "metric_rule", "node_rule"`` (list Maxitems:1) * */ - private GetClusterAlterRuleSystemServiceRule systemServiceRule; + private GetClusterAlertRuleSystemServiceRule systemServiceRule; - private GetClusterAlterRuleResult() {} + private GetClusterAlertRuleResult() {} /** * @return (Computed) The cluster alert rule annotations (map) * @@ -102,7 +102,7 @@ public String clusterId() { * @return (Computed) The cluster alert rule event rule. ConflictsWith: `"metric_rule", "node_rule", "system_service_rule"` (list Maxitems:1) * */ - public GetClusterAlterRuleEventRule eventRule() { + public GetClusterAlertRuleEventRule eventRule() { return this.eventRule; } /** @@ -151,7 +151,7 @@ public Map labels() { * @return (Computed) The cluster alert rule metric rule. ConflictsWith: `"event_rule", "node_rule", "system_service_rule"`` (list Maxitems:1) * */ - public GetClusterAlterRuleMetricRule metricRule() { + public GetClusterAlertRuleMetricRule metricRule() { return this.metricRule; } public String name() { @@ -161,7 +161,7 @@ public String name() { * @return (Computed) The cluster alert rule node rule. ConflictsWith: `"event_rule", "metric_rule", "system_service_rule"`` (list Maxitems:1) * */ - public GetClusterAlterRuleNodeRule nodeRule() { + public GetClusterAlertRuleNodeRule nodeRule() { return this.nodeRule; } /** @@ -182,7 +182,7 @@ public String severity() { * @return (Computed) The cluster alert rule system service rule. ConflictsWith: `"event_rule", "metric_rule", "node_rule"`` (list Maxitems:1) * */ - public GetClusterAlterRuleSystemServiceRule systemServiceRule() { + public GetClusterAlertRuleSystemServiceRule systemServiceRule() { return this.systemServiceRule; } @@ -190,28 +190,28 @@ public static Builder builder() { return new Builder(); } - public static Builder builder(GetClusterAlterRuleResult defaults) { + public static Builder builder(GetClusterAlertRuleResult defaults) { return new Builder(defaults); } @CustomType.Builder public static final class Builder { private Map annotations; private String clusterId; - private GetClusterAlterRuleEventRule eventRule; + private GetClusterAlertRuleEventRule eventRule; private String groupId; private Integer groupIntervalSeconds; private Integer groupWaitSeconds; private String id; private Boolean inherited; private @Nullable Map labels; - private GetClusterAlterRuleMetricRule metricRule; + private GetClusterAlertRuleMetricRule metricRule; private String name; - private GetClusterAlterRuleNodeRule nodeRule; + private GetClusterAlertRuleNodeRule nodeRule; private Integer repeatIntervalSeconds; private String severity; - private GetClusterAlterRuleSystemServiceRule systemServiceRule; + private GetClusterAlertRuleSystemServiceRule systemServiceRule; public Builder() {} - public Builder(GetClusterAlterRuleResult defaults) { + public Builder(GetClusterAlertRuleResult defaults) { Objects.requireNonNull(defaults); this.annotations = defaults.annotations; this.clusterId = defaults.clusterId; @@ -233,7 +233,7 @@ public Builder(GetClusterAlterRuleResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { if (annotations == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "annotations"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "annotations"); } this.annotations = annotations; return this; @@ -241,15 +241,15 @@ public Builder annotations(Map annotations) { @CustomType.Setter public Builder clusterId(String clusterId) { if (clusterId == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "clusterId"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "clusterId"); } this.clusterId = clusterId; return this; } @CustomType.Setter - public Builder eventRule(GetClusterAlterRuleEventRule eventRule) { + public Builder eventRule(GetClusterAlertRuleEventRule eventRule) { if (eventRule == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "eventRule"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "eventRule"); } this.eventRule = eventRule; return this; @@ -257,7 +257,7 @@ public Builder eventRule(GetClusterAlterRuleEventRule eventRule) { @CustomType.Setter public Builder groupId(String groupId) { if (groupId == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "groupId"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "groupId"); } this.groupId = groupId; return this; @@ -265,7 +265,7 @@ public Builder groupId(String groupId) { @CustomType.Setter public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { if (groupIntervalSeconds == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "groupIntervalSeconds"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "groupIntervalSeconds"); } this.groupIntervalSeconds = groupIntervalSeconds; return this; @@ -273,7 +273,7 @@ public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { @CustomType.Setter public Builder groupWaitSeconds(Integer groupWaitSeconds) { if (groupWaitSeconds == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "groupWaitSeconds"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "groupWaitSeconds"); } this.groupWaitSeconds = groupWaitSeconds; return this; @@ -281,7 +281,7 @@ public Builder groupWaitSeconds(Integer groupWaitSeconds) { @CustomType.Setter public Builder id(String id) { if (id == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "id"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "id"); } this.id = id; return this; @@ -289,7 +289,7 @@ public Builder id(String id) { @CustomType.Setter public Builder inherited(Boolean inherited) { if (inherited == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "inherited"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "inherited"); } this.inherited = inherited; return this; @@ -301,9 +301,9 @@ public Builder labels(@Nullable Map labels) { return this; } @CustomType.Setter - public Builder metricRule(GetClusterAlterRuleMetricRule metricRule) { + public Builder metricRule(GetClusterAlertRuleMetricRule metricRule) { if (metricRule == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "metricRule"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "metricRule"); } this.metricRule = metricRule; return this; @@ -311,15 +311,15 @@ public Builder metricRule(GetClusterAlterRuleMetricRule metricRule) { @CustomType.Setter public Builder name(String name) { if (name == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "name"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "name"); } this.name = name; return this; } @CustomType.Setter - public Builder nodeRule(GetClusterAlterRuleNodeRule nodeRule) { + public Builder nodeRule(GetClusterAlertRuleNodeRule nodeRule) { if (nodeRule == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "nodeRule"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "nodeRule"); } this.nodeRule = nodeRule; return this; @@ -327,7 +327,7 @@ public Builder nodeRule(GetClusterAlterRuleNodeRule nodeRule) { @CustomType.Setter public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { if (repeatIntervalSeconds == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "repeatIntervalSeconds"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "repeatIntervalSeconds"); } this.repeatIntervalSeconds = repeatIntervalSeconds; return this; @@ -335,21 +335,21 @@ public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { @CustomType.Setter public Builder severity(String severity) { if (severity == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "severity"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "severity"); } this.severity = severity; return this; } @CustomType.Setter - public Builder systemServiceRule(GetClusterAlterRuleSystemServiceRule systemServiceRule) { + public Builder systemServiceRule(GetClusterAlertRuleSystemServiceRule systemServiceRule) { if (systemServiceRule == null) { - throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "systemServiceRule"); + throw new MissingRequiredPropertyException("GetClusterAlertRuleResult", "systemServiceRule"); } this.systemServiceRule = systemServiceRule; return this; } - public GetClusterAlterRuleResult build() { - final var _resultValue = new GetClusterAlterRuleResult(); + public GetClusterAlertRuleResult build() { + final var _resultValue = new GetClusterAlertRuleResult(); _resultValue.annotations = annotations; _resultValue.clusterId = clusterId; _resultValue.eventRule = eventRule; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleSystemServiceRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleSystemServiceRule.java similarity index 78% rename from sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleSystemServiceRule.java rename to sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleSystemServiceRule.java index fd571c75f..6c07f5d54 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleSystemServiceRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertRuleSystemServiceRule.java @@ -10,14 +10,14 @@ import javax.annotation.Nullable; @CustomType -public final class GetClusterAlterRuleSystemServiceRule { +public final class GetClusterAlertRuleSystemServiceRule { /** * @return System service rule condition * */ private @Nullable String condition; - private GetClusterAlterRuleSystemServiceRule() {} + private GetClusterAlertRuleSystemServiceRule() {} /** * @return System service rule condition * @@ -30,14 +30,14 @@ public static Builder builder() { return new Builder(); } - public static Builder builder(GetClusterAlterRuleSystemServiceRule defaults) { + public static Builder builder(GetClusterAlertRuleSystemServiceRule defaults) { return new Builder(defaults); } @CustomType.Builder public static final class Builder { private @Nullable String condition; public Builder() {} - public Builder(GetClusterAlterRuleSystemServiceRule defaults) { + public Builder(GetClusterAlertRuleSystemServiceRule defaults) { Objects.requireNonNull(defaults); this.condition = defaults.condition; } @@ -48,8 +48,8 @@ public Builder condition(@Nullable String condition) { this.condition = condition; return this; } - public GetClusterAlterRuleSystemServiceRule build() { - final var _resultValue = new GetClusterAlterRuleSystemServiceRule(); + public GetClusterAlertRuleSystemServiceRule build() { + final var _resultValue = new GetClusterAlertRuleSystemServiceRule(); _resultValue.condition = condition; return _resultValue; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java index 80461d478..ea35f2f49 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java @@ -9,10 +9,13 @@ import java.lang.Integer; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal { private String datacenters; + private @Nullable String gracefulShutdownTimeout; private Boolean insecureFlag; private String password; private String port; @@ -23,6 +26,9 @@ private GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal() {} public String datacenters() { return this.datacenters; } + public Optional gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } public Boolean insecureFlag() { return this.insecureFlag; } @@ -49,6 +55,7 @@ public static Builder builder(GetClusterRkeConfigCloudProviderVsphereCloudProvid @CustomType.Builder public static final class Builder { private String datacenters; + private @Nullable String gracefulShutdownTimeout; private Boolean insecureFlag; private String password; private String port; @@ -58,6 +65,7 @@ public Builder() {} public Builder(GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal defaults) { Objects.requireNonNull(defaults); this.datacenters = defaults.datacenters; + this.gracefulShutdownTimeout = defaults.gracefulShutdownTimeout; this.insecureFlag = defaults.insecureFlag; this.password = defaults.password; this.port = defaults.port; @@ -74,6 +82,12 @@ public Builder datacenters(String datacenters) { return this; } @CustomType.Setter + public Builder gracefulShutdownTimeout(@Nullable String gracefulShutdownTimeout) { + + this.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + @CustomType.Setter public Builder insecureFlag(Boolean insecureFlag) { if (insecureFlag == null) { throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal", "insecureFlag"); @@ -116,6 +130,7 @@ public Builder user(String user) { public GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal build() { final var _resultValue = new GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal(); _resultValue.datacenters = datacenters; + _resultValue.gracefulShutdownTimeout = gracefulShutdownTimeout; _resultValue.insecureFlag = insecureFlag; _resultValue.password = password; _resultValue.port = port; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java index fbf8bc02f..644ad0de4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java @@ -9,10 +9,13 @@ import java.lang.Integer; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { private String datacenters; + private @Nullable String gracefulShutdownTimeout; private Boolean insecureFlag; private String password; private String port; @@ -23,6 +26,9 @@ private GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsp public String datacenters() { return this.datacenters; } + public Optional gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } public Boolean insecureFlag() { return this.insecureFlag; } @@ -49,6 +55,7 @@ public static Builder builder(GetClusterTemplateTemplateRevisionClusterConfigRke @CustomType.Builder public static final class Builder { private String datacenters; + private @Nullable String gracefulShutdownTimeout; private Boolean insecureFlag; private String password; private String port; @@ -58,6 +65,7 @@ public Builder() {} public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal defaults) { Objects.requireNonNull(defaults); this.datacenters = defaults.datacenters; + this.gracefulShutdownTimeout = defaults.gracefulShutdownTimeout; this.insecureFlag = defaults.insecureFlag; this.password = defaults.password; this.port = defaults.port; @@ -74,6 +82,12 @@ public Builder datacenters(String datacenters) { return this; } @CustomType.Setter + public Builder gracefulShutdownTimeout(@Nullable String gracefulShutdownTimeout) { + + this.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + @CustomType.Setter public Builder insecureFlag(Boolean insecureFlag) { if (insecureFlag == null) { throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal", "insecureFlag"); @@ -116,6 +130,7 @@ public Builder user(String user) { public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal build() { final var _resultValue = new GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal(); _resultValue.datacenters = datacenters; + _resultValue.gracefulShutdownTimeout = gracefulShutdownTimeout; _resultValue.insecureFlag = insecureFlag; _resultValue.password = password; _resultValue.port = port; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfig.java index 7e344f18c..4069a1fc5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfig.java @@ -12,6 +12,7 @@ import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachinePool; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachinePoolDefault; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorConfig; +import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorFile; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigRegistries; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigRotateCertificates; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigUpgradeStrategy; @@ -77,6 +78,11 @@ public final class GetClusterV2RkeConfig { * */ private List machineSelectorConfigs; + /** + * @return Cluster V2 machine selector files + * + */ + private List machineSelectorFiles; /** * @return Cluster V2 registries * @@ -168,6 +174,13 @@ public List machinePools() { public List machineSelectorConfigs() { return this.machineSelectorConfigs; } + /** + * @return Cluster V2 machine selector files + * + */ + public List machineSelectorFiles() { + return this.machineSelectorFiles; + } /** * @return Cluster V2 registries * @@ -209,6 +222,7 @@ public static final class Builder { private List machinePoolDefaults; private List machinePools; private List machineSelectorConfigs; + private List machineSelectorFiles; private @Nullable GetClusterV2RkeConfigRegistries registries; private @Nullable GetClusterV2RkeConfigRotateCertificates rotateCertificates; private @Nullable GetClusterV2RkeConfigUpgradeStrategy upgradeStrategy; @@ -225,6 +239,7 @@ public Builder(GetClusterV2RkeConfig defaults) { this.machinePoolDefaults = defaults.machinePoolDefaults; this.machinePools = defaults.machinePools; this.machineSelectorConfigs = defaults.machineSelectorConfigs; + this.machineSelectorFiles = defaults.machineSelectorFiles; this.registries = defaults.registries; this.rotateCertificates = defaults.rotateCertificates; this.upgradeStrategy = defaults.upgradeStrategy; @@ -308,6 +323,17 @@ public Builder machineSelectorConfigs(GetClusterV2RkeConfigMachineSelectorConfig return machineSelectorConfigs(List.of(machineSelectorConfigs)); } @CustomType.Setter + public Builder machineSelectorFiles(List machineSelectorFiles) { + if (machineSelectorFiles == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfig", "machineSelectorFiles"); + } + this.machineSelectorFiles = machineSelectorFiles; + return this; + } + public Builder machineSelectorFiles(GetClusterV2RkeConfigMachineSelectorFile... machineSelectorFiles) { + return machineSelectorFiles(List.of(machineSelectorFiles)); + } + @CustomType.Setter public Builder registries(@Nullable GetClusterV2RkeConfigRegistries registries) { this.registries = registries; @@ -337,6 +363,7 @@ public GetClusterV2RkeConfig build() { _resultValue.machinePoolDefaults = machinePoolDefaults; _resultValue.machinePools = machinePools; _resultValue.machineSelectorConfigs = machineSelectorConfigs; + _resultValue.machineSelectorFiles = machineSelectorFiles; _resultValue.registries = registries; _resultValue.rotateCertificates = rotateCertificates; _resultValue.upgradeStrategy = upgradeStrategy; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolMachineConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolMachineConfig.java index 5d6b7c08d..ffab0c11c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolMachineConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolMachineConfig.java @@ -7,9 +7,16 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class GetClusterV2RkeConfigMachinePoolMachineConfig { + /** + * @return Machine config API version + * + */ + private @Nullable String apiVersion; /** * @return Machine config kind * @@ -22,6 +29,13 @@ public final class GetClusterV2RkeConfigMachinePoolMachineConfig { private String name; private GetClusterV2RkeConfigMachinePoolMachineConfig() {} + /** + * @return Machine config API version + * + */ + public Optional apiVersion() { + return Optional.ofNullable(this.apiVersion); + } /** * @return Machine config kind * @@ -46,15 +60,23 @@ public static Builder builder(GetClusterV2RkeConfigMachinePoolMachineConfig defa } @CustomType.Builder public static final class Builder { + private @Nullable String apiVersion; private String kind; private String name; public Builder() {} public Builder(GetClusterV2RkeConfigMachinePoolMachineConfig defaults) { Objects.requireNonNull(defaults); + this.apiVersion = defaults.apiVersion; this.kind = defaults.kind; this.name = defaults.name; } + @CustomType.Setter + public Builder apiVersion(@Nullable String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } @CustomType.Setter public Builder kind(String kind) { if (kind == null) { @@ -73,6 +95,7 @@ public Builder name(String name) { } public GetClusterV2RkeConfigMachinePoolMachineConfig build() { final var _resultValue = new GetClusterV2RkeConfigMachinePoolMachineConfig(); + _resultValue.apiVersion = apiVersion; _resultValue.kind = kind; _resultValue.name = name; return _resultValue; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFile.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFile.java new file mode 100644 index 000000000..be7112d78 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFile.java @@ -0,0 +1,83 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorFileFileSource; +import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class GetClusterV2RkeConfigMachineSelectorFile { + /** + * @return File sources + * + */ + private @Nullable List fileSources; + /** + * @return Machine label selector + * + */ + private @Nullable GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector machineLabelSelector; + + private GetClusterV2RkeConfigMachineSelectorFile() {} + /** + * @return File sources + * + */ + public List fileSources() { + return this.fileSources == null ? List.of() : this.fileSources; + } + /** + * @return Machine label selector + * + */ + public Optional machineLabelSelector() { + return Optional.ofNullable(this.machineLabelSelector); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetClusterV2RkeConfigMachineSelectorFile defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable List fileSources; + private @Nullable GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector machineLabelSelector; + public Builder() {} + public Builder(GetClusterV2RkeConfigMachineSelectorFile defaults) { + Objects.requireNonNull(defaults); + this.fileSources = defaults.fileSources; + this.machineLabelSelector = defaults.machineLabelSelector; + } + + @CustomType.Setter + public Builder fileSources(@Nullable List fileSources) { + + this.fileSources = fileSources; + return this; + } + public Builder fileSources(GetClusterV2RkeConfigMachineSelectorFileFileSource... fileSources) { + return fileSources(List.of(fileSources)); + } + @CustomType.Setter + public Builder machineLabelSelector(@Nullable GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector machineLabelSelector) { + + this.machineLabelSelector = machineLabelSelector; + return this; + } + public GetClusterV2RkeConfigMachineSelectorFile build() { + final var _resultValue = new GetClusterV2RkeConfigMachineSelectorFile(); + _resultValue.fileSources = fileSources; + _resultValue.machineLabelSelector = machineLabelSelector; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSource.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSource.java new file mode 100644 index 000000000..91761f0d3 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSource.java @@ -0,0 +1,79 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap; +import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class GetClusterV2RkeConfigMachineSelectorFileFileSource { + /** + * @return The configmap which is the source of files + * + */ + private @Nullable GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap configmap; + /** + * @return The secret which is the source of files + * + */ + private @Nullable GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret secret; + + private GetClusterV2RkeConfigMachineSelectorFileFileSource() {} + /** + * @return The configmap which is the source of files + * + */ + public Optional configmap() { + return Optional.ofNullable(this.configmap); + } + /** + * @return The secret which is the source of files + * + */ + public Optional secret() { + return Optional.ofNullable(this.secret); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetClusterV2RkeConfigMachineSelectorFileFileSource defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap configmap; + private @Nullable GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret secret; + public Builder() {} + public Builder(GetClusterV2RkeConfigMachineSelectorFileFileSource defaults) { + Objects.requireNonNull(defaults); + this.configmap = defaults.configmap; + this.secret = defaults.secret; + } + + @CustomType.Setter + public Builder configmap(@Nullable GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap configmap) { + + this.configmap = configmap; + return this; + } + @CustomType.Setter + public Builder secret(@Nullable GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret secret) { + + this.secret = secret; + return this; + } + public GetClusterV2RkeConfigMachineSelectorFileFileSource build() { + final var _resultValue = new GetClusterV2RkeConfigMachineSelectorFileFileSource(); + _resultValue.configmap = configmap; + _resultValue.secret = secret; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.java new file mode 100644 index 000000000..5221fb82f --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.java @@ -0,0 +1,107 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + /** + * @return The default permissions to be applied when they are not set at the item level + * + */ + private @Nullable String defaultPermissions; + /** + * @return Items(files) to retrieve from the K8s object + * + */ + private @Nullable List items; + /** + * @return The name of the Cluster v2 (string) + * + */ + private String name; + + private GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap() {} + /** + * @return The default permissions to be applied when they are not set at the item level + * + */ + public Optional defaultPermissions() { + return Optional.ofNullable(this.defaultPermissions); + } + /** + * @return Items(files) to retrieve from the K8s object + * + */ + public List items() { + return this.items == null ? List.of() : this.items; + } + /** + * @return The name of the Cluster v2 (string) + * + */ + public String name() { + return this.name; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String defaultPermissions; + private @Nullable List items; + private String name; + public Builder() {} + public Builder(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap defaults) { + Objects.requireNonNull(defaults); + this.defaultPermissions = defaults.defaultPermissions; + this.items = defaults.items; + this.name = defaults.name; + } + + @CustomType.Setter + public Builder defaultPermissions(@Nullable String defaultPermissions) { + + this.defaultPermissions = defaultPermissions; + return this; + } + @CustomType.Setter + public Builder items(@Nullable List items) { + + this.items = items; + return this; + } + public Builder items(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem... items) { + return items(List.of(items)); + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap", "name"); + } + this.name = name; + return this; + } + public GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap build() { + final var _resultValue = new GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap(); + _resultValue.defaultPermissions = defaultPermissions; + _resultValue.items = items; + _resultValue.name = name; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.java new file mode 100644 index 000000000..529056f0d --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem.java @@ -0,0 +1,147 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + /** + * @return If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + * + */ + private @Nullable Boolean dynamic; + /** + * @return The base64 encoded value of the SHA256 checksum of the file's content + * + */ + private @Nullable String hash; + /** + * @return The key of the item(file) to retrieve + * + */ + private String key; + /** + * @return The path to put the file in the target node + * + */ + private String path; + /** + * @return The numeric representation of the file permissions + * + */ + private @Nullable String permissions; + + private GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem() {} + /** + * @return If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + * + */ + public Optional dynamic() { + return Optional.ofNullable(this.dynamic); + } + /** + * @return The base64 encoded value of the SHA256 checksum of the file's content + * + */ + public Optional hash() { + return Optional.ofNullable(this.hash); + } + /** + * @return The key of the item(file) to retrieve + * + */ + public String key() { + return this.key; + } + /** + * @return The path to put the file in the target node + * + */ + public String path() { + return this.path; + } + /** + * @return The numeric representation of the file permissions + * + */ + public Optional permissions() { + return Optional.ofNullable(this.permissions); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean dynamic; + private @Nullable String hash; + private String key; + private String path; + private @Nullable String permissions; + public Builder() {} + public Builder(GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem defaults) { + Objects.requireNonNull(defaults); + this.dynamic = defaults.dynamic; + this.hash = defaults.hash; + this.key = defaults.key; + this.path = defaults.path; + this.permissions = defaults.permissions; + } + + @CustomType.Setter + public Builder dynamic(@Nullable Boolean dynamic) { + + this.dynamic = dynamic; + return this; + } + @CustomType.Setter + public Builder hash(@Nullable String hash) { + + this.hash = hash; + return this; + } + @CustomType.Setter + public Builder key(String key) { + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem", "key"); + } + this.key = key; + return this; + } + @CustomType.Setter + public Builder path(String path) { + if (path == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem", "path"); + } + this.path = path; + return this; + } + @CustomType.Setter + public Builder permissions(@Nullable String permissions) { + + this.permissions = permissions; + return this; + } + public GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem build() { + final var _resultValue = new GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem(); + _resultValue.dynamic = dynamic; + _resultValue.hash = hash; + _resultValue.key = key; + _resultValue.path = path; + _resultValue.permissions = permissions; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret.java new file mode 100644 index 000000000..9e31bc100 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret.java @@ -0,0 +1,107 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret { + /** + * @return The default permissions to be applied when they are not set at the item level + * + */ + private @Nullable String defaultPermissions; + /** + * @return Items(files) to retrieve from the K8s object + * + */ + private @Nullable List items; + /** + * @return The name of the Cluster v2 (string) + * + */ + private String name; + + private GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret() {} + /** + * @return The default permissions to be applied when they are not set at the item level + * + */ + public Optional defaultPermissions() { + return Optional.ofNullable(this.defaultPermissions); + } + /** + * @return Items(files) to retrieve from the K8s object + * + */ + public List items() { + return this.items == null ? List.of() : this.items; + } + /** + * @return The name of the Cluster v2 (string) + * + */ + public String name() { + return this.name; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String defaultPermissions; + private @Nullable List items; + private String name; + public Builder() {} + public Builder(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret defaults) { + Objects.requireNonNull(defaults); + this.defaultPermissions = defaults.defaultPermissions; + this.items = defaults.items; + this.name = defaults.name; + } + + @CustomType.Setter + public Builder defaultPermissions(@Nullable String defaultPermissions) { + + this.defaultPermissions = defaultPermissions; + return this; + } + @CustomType.Setter + public Builder items(@Nullable List items) { + + this.items = items; + return this; + } + public Builder items(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem... items) { + return items(List.of(items)); + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret", "name"); + } + this.name = name; + return this; + } + public GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret build() { + final var _resultValue = new GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret(); + _resultValue.defaultPermissions = defaultPermissions; + _resultValue.items = items; + _resultValue.name = name; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.java new file mode 100644 index 000000000..462af740e --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem.java @@ -0,0 +1,147 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + /** + * @return If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + * + */ + private @Nullable Boolean dynamic; + /** + * @return The base64 encoded value of the SHA256 checksum of the file's content + * + */ + private @Nullable String hash; + /** + * @return The key of the item(file) to retrieve + * + */ + private String key; + /** + * @return The path to put the file in the target node + * + */ + private String path; + /** + * @return The numeric representation of the file permissions + * + */ + private @Nullable String permissions; + + private GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem() {} + /** + * @return If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + * + */ + public Optional dynamic() { + return Optional.ofNullable(this.dynamic); + } + /** + * @return The base64 encoded value of the SHA256 checksum of the file's content + * + */ + public Optional hash() { + return Optional.ofNullable(this.hash); + } + /** + * @return The key of the item(file) to retrieve + * + */ + public String key() { + return this.key; + } + /** + * @return The path to put the file in the target node + * + */ + public String path() { + return this.path; + } + /** + * @return The numeric representation of the file permissions + * + */ + public Optional permissions() { + return Optional.ofNullable(this.permissions); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean dynamic; + private @Nullable String hash; + private String key; + private String path; + private @Nullable String permissions; + public Builder() {} + public Builder(GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem defaults) { + Objects.requireNonNull(defaults); + this.dynamic = defaults.dynamic; + this.hash = defaults.hash; + this.key = defaults.key; + this.path = defaults.path; + this.permissions = defaults.permissions; + } + + @CustomType.Setter + public Builder dynamic(@Nullable Boolean dynamic) { + + this.dynamic = dynamic; + return this; + } + @CustomType.Setter + public Builder hash(@Nullable String hash) { + + this.hash = hash; + return this; + } + @CustomType.Setter + public Builder key(String key) { + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem", "key"); + } + this.key = key; + return this; + } + @CustomType.Setter + public Builder path(String path) { + if (path == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem", "path"); + } + this.path = path; + return this; + } + @CustomType.Setter + public Builder permissions(@Nullable String permissions) { + + this.permissions = permissions; + return this; + } + public GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem build() { + final var _resultValue = new GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem(); + _resultValue.dynamic = dynamic; + _resultValue.hash = hash; + _resultValue.key = key; + _resultValue.path = path; + _resultValue.permissions = permissions; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.java new file mode 100644 index 000000000..9f98cbce9 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.java @@ -0,0 +1,84 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression; +import java.lang.Object; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Nullable; + +@CustomType +public final class GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + /** + * @return Label selector match expressions + * + */ + private @Nullable List matchExpressions; + /** + * @return Label selector match labels + * + */ + private @Nullable Map matchLabels; + + private GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector() {} + /** + * @return Label selector match expressions + * + */ + public List matchExpressions() { + return this.matchExpressions == null ? List.of() : this.matchExpressions; + } + /** + * @return Label selector match labels + * + */ + public Map matchLabels() { + return this.matchLabels == null ? Map.of() : this.matchLabels; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable List matchExpressions; + private @Nullable Map matchLabels; + public Builder() {} + public Builder(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector defaults) { + Objects.requireNonNull(defaults); + this.matchExpressions = defaults.matchExpressions; + this.matchLabels = defaults.matchLabels; + } + + @CustomType.Setter + public Builder matchExpressions(@Nullable List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + public Builder matchExpressions(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression... matchExpressions) { + return matchExpressions(List.of(matchExpressions)); + } + @CustomType.Setter + public Builder matchLabels(@Nullable Map matchLabels) { + + this.matchLabels = matchLabels; + return this; + } + public GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector build() { + final var _resultValue = new GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector(); + _resultValue.matchExpressions = matchExpressions; + _resultValue.matchLabels = matchLabels; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.java new file mode 100644 index 000000000..6c72e5b40 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression.java @@ -0,0 +1,103 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.rancher2.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { + /** + * @return Label selector requirement key + * + */ + private @Nullable String key; + /** + * @return Label selector operator + * + */ + private @Nullable String operator; + /** + * @return Label selector requirement values + * + */ + private @Nullable List values; + + private GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression() {} + /** + * @return Label selector requirement key + * + */ + public Optional key() { + return Optional.ofNullable(this.key); + } + /** + * @return Label selector operator + * + */ + public Optional operator() { + return Optional.ofNullable(this.operator); + } + /** + * @return Label selector requirement values + * + */ + public List values() { + return this.values == null ? List.of() : this.values; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String key; + private @Nullable String operator; + private @Nullable List values; + public Builder() {} + public Builder(GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression defaults) { + Objects.requireNonNull(defaults); + this.key = defaults.key; + this.operator = defaults.operator; + this.values = defaults.values; + } + + @CustomType.Setter + public Builder key(@Nullable String key) { + + this.key = key; + return this; + } + @CustomType.Setter + public Builder operator(@Nullable String operator) { + + this.operator = operator; + return this; + } + @CustomType.Setter + public Builder values(@Nullable List values) { + + this.values = values; + return this; + } + public Builder values(String... values) { + return values(List.of(values)); + } + public GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression build() { + final var _resultValue = new GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression(); + _resultValue.key = key; + _resultValue.operator = operator; + _resultValue.values = values; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleResult.java index 7e4fef910..f465bc7d2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleResult.java @@ -12,6 +12,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import javax.annotation.Nullable; @CustomType public final class GetGlobalRoleResult { @@ -35,6 +36,11 @@ public final class GetGlobalRoleResult { * */ private String id; + /** + * @return (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + */ + private @Nullable List inheritedClusterRoles; /** * @return (Computed) Labels for global role object (map) * @@ -81,6 +87,13 @@ public String description() { public String id() { return this.id; } + /** + * @return (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + * + */ + public List inheritedClusterRoles() { + return this.inheritedClusterRoles == null ? List.of() : this.inheritedClusterRoles; + } /** * @return (Computed) Labels for global role object (map) * @@ -119,6 +132,7 @@ public static final class Builder { private Boolean builtin; private String description; private String id; + private @Nullable List inheritedClusterRoles; private Map labels; private String name; private Boolean newUserDefault; @@ -130,6 +144,7 @@ public Builder(GetGlobalRoleResult defaults) { this.builtin = defaults.builtin; this.description = defaults.description; this.id = defaults.id; + this.inheritedClusterRoles = defaults.inheritedClusterRoles; this.labels = defaults.labels; this.name = defaults.name; this.newUserDefault = defaults.newUserDefault; @@ -169,6 +184,15 @@ public Builder id(String id) { return this; } @CustomType.Setter + public Builder inheritedClusterRoles(@Nullable List inheritedClusterRoles) { + + this.inheritedClusterRoles = inheritedClusterRoles; + return this; + } + public Builder inheritedClusterRoles(String... inheritedClusterRoles) { + return inheritedClusterRoles(List.of(inheritedClusterRoles)); + } + @CustomType.Setter public Builder labels(Map labels) { if (labels == null) { throw new MissingRequiredPropertyException("GetGlobalRoleResult", "labels"); @@ -209,6 +233,7 @@ public GetGlobalRoleResult build() { _resultValue.builtin = builtin; _resultValue.description = description; _resultValue.id = id; + _resultValue.inheritedClusterRoles = inheritedClusterRoles; _resultValue.labels = labels; _resultValue.name = name; _resultValue.newUserDefault = newUserDefault; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteResult.java deleted file mode 100644 index 3c41d140e..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteResult.java +++ /dev/null @@ -1,352 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.outputs; - -import com.pulumi.core.annotations.CustomType; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import com.pulumi.rancher2.outputs.GetRoleTempalteRule; -import java.lang.Boolean; -import java.lang.Object; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -@CustomType -public final class GetRoleTempalteResult { - /** - * @return (Computed) Administrative role template (bool) - * - */ - private Boolean administrative; - /** - * @return (Computed) Annotations for role template object (map) - * - */ - private Map annotations; - /** - * @return (Computed) Builtin role template (string) - * - */ - private Boolean builtin; - private String context; - /** - * @return (Computed) Default role template for new created cluster or project (bool) - * - */ - private Boolean defaultRole; - /** - * @return (Computed) Role template description (string) - * - */ - private String description; - /** - * @return (Computed) External role template (bool) - * - */ - private Boolean external; - /** - * @return (Computed) Hidden role template (bool) - * - */ - private Boolean hidden; - /** - * @return The provider-assigned unique ID for this managed resource. - * - */ - private String id; - /** - * @return (Computed) Labels for role template object (map) - * - */ - private Map labels; - /** - * @return (Computed) Locked role template (bool) - * - */ - private Boolean locked; - private String name; - /** - * @return (Computed) Inherit role template IDs (list) - * - */ - private List roleTemplateIds; - /** - * @return (Computed) Role template policy rules (list) - * - */ - private List rules; - - private GetRoleTempalteResult() {} - /** - * @return (Computed) Administrative role template (bool) - * - */ - public Boolean administrative() { - return this.administrative; - } - /** - * @return (Computed) Annotations for role template object (map) - * - */ - public Map annotations() { - return this.annotations; - } - /** - * @return (Computed) Builtin role template (string) - * - */ - public Boolean builtin() { - return this.builtin; - } - public String context() { - return this.context; - } - /** - * @return (Computed) Default role template for new created cluster or project (bool) - * - */ - public Boolean defaultRole() { - return this.defaultRole; - } - /** - * @return (Computed) Role template description (string) - * - */ - public String description() { - return this.description; - } - /** - * @return (Computed) External role template (bool) - * - */ - public Boolean external() { - return this.external; - } - /** - * @return (Computed) Hidden role template (bool) - * - */ - public Boolean hidden() { - return this.hidden; - } - /** - * @return The provider-assigned unique ID for this managed resource. - * - */ - public String id() { - return this.id; - } - /** - * @return (Computed) Labels for role template object (map) - * - */ - public Map labels() { - return this.labels; - } - /** - * @return (Computed) Locked role template (bool) - * - */ - public Boolean locked() { - return this.locked; - } - public String name() { - return this.name; - } - /** - * @return (Computed) Inherit role template IDs (list) - * - */ - public List roleTemplateIds() { - return this.roleTemplateIds; - } - /** - * @return (Computed) Role template policy rules (list) - * - */ - public List rules() { - return this.rules; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(GetRoleTempalteResult defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private Boolean administrative; - private Map annotations; - private Boolean builtin; - private String context; - private Boolean defaultRole; - private String description; - private Boolean external; - private Boolean hidden; - private String id; - private Map labels; - private Boolean locked; - private String name; - private List roleTemplateIds; - private List rules; - public Builder() {} - public Builder(GetRoleTempalteResult defaults) { - Objects.requireNonNull(defaults); - this.administrative = defaults.administrative; - this.annotations = defaults.annotations; - this.builtin = defaults.builtin; - this.context = defaults.context; - this.defaultRole = defaults.defaultRole; - this.description = defaults.description; - this.external = defaults.external; - this.hidden = defaults.hidden; - this.id = defaults.id; - this.labels = defaults.labels; - this.locked = defaults.locked; - this.name = defaults.name; - this.roleTemplateIds = defaults.roleTemplateIds; - this.rules = defaults.rules; - } - - @CustomType.Setter - public Builder administrative(Boolean administrative) { - if (administrative == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "administrative"); - } - this.administrative = administrative; - return this; - } - @CustomType.Setter - public Builder annotations(Map annotations) { - if (annotations == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "annotations"); - } - this.annotations = annotations; - return this; - } - @CustomType.Setter - public Builder builtin(Boolean builtin) { - if (builtin == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "builtin"); - } - this.builtin = builtin; - return this; - } - @CustomType.Setter - public Builder context(String context) { - if (context == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "context"); - } - this.context = context; - return this; - } - @CustomType.Setter - public Builder defaultRole(Boolean defaultRole) { - if (defaultRole == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "defaultRole"); - } - this.defaultRole = defaultRole; - return this; - } - @CustomType.Setter - public Builder description(String description) { - if (description == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "description"); - } - this.description = description; - return this; - } - @CustomType.Setter - public Builder external(Boolean external) { - if (external == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "external"); - } - this.external = external; - return this; - } - @CustomType.Setter - public Builder hidden(Boolean hidden) { - if (hidden == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "hidden"); - } - this.hidden = hidden; - return this; - } - @CustomType.Setter - public Builder id(String id) { - if (id == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "id"); - } - this.id = id; - return this; - } - @CustomType.Setter - public Builder labels(Map labels) { - if (labels == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "labels"); - } - this.labels = labels; - return this; - } - @CustomType.Setter - public Builder locked(Boolean locked) { - if (locked == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "locked"); - } - this.locked = locked; - return this; - } - @CustomType.Setter - public Builder name(String name) { - if (name == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "name"); - } - this.name = name; - return this; - } - @CustomType.Setter - public Builder roleTemplateIds(List roleTemplateIds) { - if (roleTemplateIds == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "roleTemplateIds"); - } - this.roleTemplateIds = roleTemplateIds; - return this; - } - public Builder roleTemplateIds(String... roleTemplateIds) { - return roleTemplateIds(List.of(roleTemplateIds)); - } - @CustomType.Setter - public Builder rules(List rules) { - if (rules == null) { - throw new MissingRequiredPropertyException("GetRoleTempalteResult", "rules"); - } - this.rules = rules; - return this; - } - public Builder rules(GetRoleTempalteRule... rules) { - return rules(List.of(rules)); - } - public GetRoleTempalteResult build() { - final var _resultValue = new GetRoleTempalteResult(); - _resultValue.administrative = administrative; - _resultValue.annotations = annotations; - _resultValue.builtin = builtin; - _resultValue.context = context; - _resultValue.defaultRole = defaultRole; - _resultValue.description = description; - _resultValue.external = external; - _resultValue.hidden = hidden; - _resultValue.id = id; - _resultValue.labels = labels; - _resultValue.locked = locked; - _resultValue.name = name; - _resultValue.roleTemplateIds = roleTemplateIds; - _resultValue.rules = rules; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteRule.java deleted file mode 100644 index 98cbc8eeb..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteRule.java +++ /dev/null @@ -1,156 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.outputs; - -import com.pulumi.core.annotations.CustomType; -import java.lang.String; -import java.util.List; -import java.util.Objects; -import javax.annotation.Nullable; - -@CustomType -public final class GetRoleTempalteRule { - /** - * @return Policy rule api groups - * - */ - private @Nullable List apiGroups; - /** - * @return Policy rule non resource urls - * - */ - private @Nullable List nonResourceUrls; - /** - * @return Policy rule resource names - * - */ - private @Nullable List resourceNames; - /** - * @return Policy rule resources - * - */ - private @Nullable List resources; - /** - * @return Policy rule verbs - * - */ - private @Nullable List verbs; - - private GetRoleTempalteRule() {} - /** - * @return Policy rule api groups - * - */ - public List apiGroups() { - return this.apiGroups == null ? List.of() : this.apiGroups; - } - /** - * @return Policy rule non resource urls - * - */ - public List nonResourceUrls() { - return this.nonResourceUrls == null ? List.of() : this.nonResourceUrls; - } - /** - * @return Policy rule resource names - * - */ - public List resourceNames() { - return this.resourceNames == null ? List.of() : this.resourceNames; - } - /** - * @return Policy rule resources - * - */ - public List resources() { - return this.resources == null ? List.of() : this.resources; - } - /** - * @return Policy rule verbs - * - */ - public List verbs() { - return this.verbs == null ? List.of() : this.verbs; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(GetRoleTempalteRule defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private @Nullable List apiGroups; - private @Nullable List nonResourceUrls; - private @Nullable List resourceNames; - private @Nullable List resources; - private @Nullable List verbs; - public Builder() {} - public Builder(GetRoleTempalteRule defaults) { - Objects.requireNonNull(defaults); - this.apiGroups = defaults.apiGroups; - this.nonResourceUrls = defaults.nonResourceUrls; - this.resourceNames = defaults.resourceNames; - this.resources = defaults.resources; - this.verbs = defaults.verbs; - } - - @CustomType.Setter - public Builder apiGroups(@Nullable List apiGroups) { - - this.apiGroups = apiGroups; - return this; - } - public Builder apiGroups(String... apiGroups) { - return apiGroups(List.of(apiGroups)); - } - @CustomType.Setter - public Builder nonResourceUrls(@Nullable List nonResourceUrls) { - - this.nonResourceUrls = nonResourceUrls; - return this; - } - public Builder nonResourceUrls(String... nonResourceUrls) { - return nonResourceUrls(List.of(nonResourceUrls)); - } - @CustomType.Setter - public Builder resourceNames(@Nullable List resourceNames) { - - this.resourceNames = resourceNames; - return this; - } - public Builder resourceNames(String... resourceNames) { - return resourceNames(List.of(resourceNames)); - } - @CustomType.Setter - public Builder resources(@Nullable List resources) { - - this.resources = resources; - return this; - } - public Builder resources(String... resources) { - return resources(List.of(resources)); - } - @CustomType.Setter - public Builder verbs(@Nullable List verbs) { - - this.verbs = verbs; - return this; - } - public Builder verbs(String... verbs) { - return verbs(List.of(verbs)); - } - public GetRoleTempalteRule build() { - final var _resultValue = new GetRoleTempalteRule(); - _resultValue.apiGroups = apiGroups; - _resultValue.nonResourceUrls = nonResourceUrls; - _resultValue.resourceNames = resourceNames; - _resultValue.resources = resources; - _resultValue.verbs = verbs; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2VsphereConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2VsphereConfig.java index 423ed10e5..c1413d728 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2VsphereConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2VsphereConfig.java @@ -82,6 +82,11 @@ public final class MachineConfigV2VsphereConfig { * */ private @Nullable String folder; + /** + * @return Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + * + */ + private @Nullable String gracefulShutdownTimeout; /** * @return vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) * @@ -267,6 +272,13 @@ public Optional diskSize() { public Optional folder() { return Optional.ofNullable(this.folder); } + /** + * @return Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + * + */ + public Optional gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } /** * @return vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) * @@ -410,6 +422,7 @@ public static final class Builder { private @Nullable String datastoreCluster; private @Nullable String diskSize; private @Nullable String folder; + private @Nullable String gracefulShutdownTimeout; private @Nullable String hostsystem; private @Nullable String memorySize; private @Nullable List networks; @@ -444,6 +457,7 @@ public Builder(MachineConfigV2VsphereConfig defaults) { this.datastoreCluster = defaults.datastoreCluster; this.diskSize = defaults.diskSize; this.folder = defaults.folder; + this.gracefulShutdownTimeout = defaults.gracefulShutdownTimeout; this.hostsystem = defaults.hostsystem; this.memorySize = defaults.memorySize; this.networks = defaults.networks; @@ -554,6 +568,12 @@ public Builder folder(@Nullable String folder) { return this; } @CustomType.Setter + public Builder gracefulShutdownTimeout(@Nullable String gracefulShutdownTimeout) { + + this.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + @CustomType.Setter public Builder hostsystem(@Nullable String hostsystem) { this.hostsystem = hostsystem; @@ -680,6 +700,7 @@ public MachineConfigV2VsphereConfig build() { _resultValue.datastoreCluster = datastoreCluster; _resultValue.diskSize = diskSize; _resultValue.folder = folder; + _resultValue.gracefulShutdownTimeout = gracefulShutdownTimeout; _resultValue.hostsystem = hostsystem; _resultValue.memorySize = memorySize; _resultValue.networks = networks; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateVsphereConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateVsphereConfig.java index 643d810db..24ab83c4d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateVsphereConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateVsphereConfig.java @@ -82,6 +82,11 @@ public final class NodeTemplateVsphereConfig { * */ private @Nullable String folder; + /** + * @return Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + * + */ + private @Nullable String gracefulShutdownTimeout; /** * @return vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) * @@ -267,6 +272,13 @@ public Optional diskSize() { public Optional folder() { return Optional.ofNullable(this.folder); } + /** + * @return Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + * + */ + public Optional gracefulShutdownTimeout() { + return Optional.ofNullable(this.gracefulShutdownTimeout); + } /** * @return vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) * @@ -410,6 +422,7 @@ public static final class Builder { private @Nullable String datastoreCluster; private @Nullable String diskSize; private @Nullable String folder; + private @Nullable String gracefulShutdownTimeout; private @Nullable String hostsystem; private @Nullable String memorySize; private @Nullable List networks; @@ -444,6 +457,7 @@ public Builder(NodeTemplateVsphereConfig defaults) { this.datastoreCluster = defaults.datastoreCluster; this.diskSize = defaults.diskSize; this.folder = defaults.folder; + this.gracefulShutdownTimeout = defaults.gracefulShutdownTimeout; this.hostsystem = defaults.hostsystem; this.memorySize = defaults.memorySize; this.networks = defaults.networks; @@ -554,6 +568,12 @@ public Builder folder(@Nullable String folder) { return this; } @CustomType.Setter + public Builder gracefulShutdownTimeout(@Nullable String gracefulShutdownTimeout) { + + this.gracefulShutdownTimeout = gracefulShutdownTimeout; + return this; + } + @CustomType.Setter public Builder hostsystem(@Nullable String hostsystem) { this.hostsystem = hostsystem; @@ -680,6 +700,7 @@ public NodeTemplateVsphereConfig build() { _resultValue.datastoreCluster = datastoreCluster; _resultValue.diskSize = diskSize; _resultValue.folder = folder; + _resultValue.gracefulShutdownTimeout = gracefulShutdownTimeout; _resultValue.hostsystem = hostsystem; _resultValue.memorySize = memorySize; _resultValue.networks = networks; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTempalteRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTempalteRule.java deleted file mode 100644 index 05c6393df..000000000 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTempalteRule.java +++ /dev/null @@ -1,156 +0,0 @@ -// *** WARNING: this file was generated by pulumi-java-gen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package com.pulumi.rancher2.outputs; - -import com.pulumi.core.annotations.CustomType; -import java.lang.String; -import java.util.List; -import java.util.Objects; -import javax.annotation.Nullable; - -@CustomType -public final class RoleTempalteRule { - /** - * @return Policy rule api groups (list) - * - */ - private @Nullable List apiGroups; - /** - * @return Policy rule non resource urls (list) - * - */ - private @Nullable List nonResourceUrls; - /** - * @return Policy rule resource names (list) - * - */ - private @Nullable List resourceNames; - /** - * @return Policy rule resources (list) - * - */ - private @Nullable List resources; - /** - * @return Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - * - */ - private @Nullable List verbs; - - private RoleTempalteRule() {} - /** - * @return Policy rule api groups (list) - * - */ - public List apiGroups() { - return this.apiGroups == null ? List.of() : this.apiGroups; - } - /** - * @return Policy rule non resource urls (list) - * - */ - public List nonResourceUrls() { - return this.nonResourceUrls == null ? List.of() : this.nonResourceUrls; - } - /** - * @return Policy rule resource names (list) - * - */ - public List resourceNames() { - return this.resourceNames == null ? List.of() : this.resourceNames; - } - /** - * @return Policy rule resources (list) - * - */ - public List resources() { - return this.resources == null ? List.of() : this.resources; - } - /** - * @return Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - * - */ - public List verbs() { - return this.verbs == null ? List.of() : this.verbs; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(RoleTempalteRule defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private @Nullable List apiGroups; - private @Nullable List nonResourceUrls; - private @Nullable List resourceNames; - private @Nullable List resources; - private @Nullable List verbs; - public Builder() {} - public Builder(RoleTempalteRule defaults) { - Objects.requireNonNull(defaults); - this.apiGroups = defaults.apiGroups; - this.nonResourceUrls = defaults.nonResourceUrls; - this.resourceNames = defaults.resourceNames; - this.resources = defaults.resources; - this.verbs = defaults.verbs; - } - - @CustomType.Setter - public Builder apiGroups(@Nullable List apiGroups) { - - this.apiGroups = apiGroups; - return this; - } - public Builder apiGroups(String... apiGroups) { - return apiGroups(List.of(apiGroups)); - } - @CustomType.Setter - public Builder nonResourceUrls(@Nullable List nonResourceUrls) { - - this.nonResourceUrls = nonResourceUrls; - return this; - } - public Builder nonResourceUrls(String... nonResourceUrls) { - return nonResourceUrls(List.of(nonResourceUrls)); - } - @CustomType.Setter - public Builder resourceNames(@Nullable List resourceNames) { - - this.resourceNames = resourceNames; - return this; - } - public Builder resourceNames(String... resourceNames) { - return resourceNames(List.of(resourceNames)); - } - @CustomType.Setter - public Builder resources(@Nullable List resources) { - - this.resources = resources; - return this; - } - public Builder resources(String... resources) { - return resources(List.of(resources)); - } - @CustomType.Setter - public Builder verbs(@Nullable List verbs) { - - this.verbs = verbs; - return this; - } - public Builder verbs(String... verbs) { - return verbs(List.of(verbs)); - } - public RoleTempalteRule build() { - final var _resultValue = new RoleTempalteRule(); - _resultValue.apiGroups = apiGroups; - _resultValue.nonResourceUrls = nonResourceUrls; - _resultValue.resourceNames = resourceNames; - _resultValue.resources = resources; - _resultValue.verbs = verbs; - return _resultValue; - } - } -} diff --git a/sdk/nodejs/activeDirectory.ts b/sdk/nodejs/activeDirectory.ts deleted file mode 100644 index 49b5b8305..000000000 --- a/sdk/nodejs/activeDirectory.ts +++ /dev/null @@ -1,580 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -import * as pulumi from "@pulumi/pulumi"; -import * as utilities from "./utilities"; - -/** - * Provides a Rancher v2 Auth Config ActiveDirectory resource. This can be used to configure and enable Auth Config ActiveDirectory for Rancher v2 RKE clusters and retrieve their information. - * - * In addition to the built-in local auth, only one external auth config provider can be enabled at a time. - * - * @deprecated rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory - */ -export class ActiveDirectory extends pulumi.CustomResource { - /** - * Get an existing ActiveDirectory resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param state Any extra arguments used during the lookup. - * @param opts Optional settings to control the behavior of the CustomResource. - */ - public static get(name: string, id: pulumi.Input, state?: ActiveDirectoryState, opts?: pulumi.CustomResourceOptions): ActiveDirectory { - pulumi.log.warn("ActiveDirectory is deprecated: rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory") - return new ActiveDirectory(name, state, { ...opts, id: id }); - } - - /** @internal */ - public static readonly __pulumiType = 'rancher2:index/activeDirectory:ActiveDirectory'; - - /** - * Returns true if the given object is an instance of ActiveDirectory. This is designed to work even - * when multiple copies of the Pulumi SDK have been loaded into the same process. - */ - public static isInstance(obj: any): obj is ActiveDirectory { - if (obj === undefined || obj === null) { - return false; - } - return obj['__pulumiType'] === ActiveDirectory.__pulumiType; - } - - /** - * Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - */ - public readonly accessMode!: pulumi.Output; - /** - * Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) - */ - public readonly allowedPrincipalIds!: pulumi.Output; - /** - * Annotations of the resource (map) - */ - public readonly annotations!: pulumi.Output<{[key: string]: any}>; - /** - * CA certificate for TLS if selfsigned (string) - */ - public readonly certificate!: pulumi.Output; - /** - * ActiveDirectory connection timeout. Default `5000` (int) - */ - public readonly connectionTimeout!: pulumi.Output; - /** - * ActiveDirectory defult login domain (string) - */ - public readonly defaultLoginDomain!: pulumi.Output; - /** - * Enable auth config provider. Default `true` (bool) - */ - public readonly enabled!: pulumi.Output; - /** - * Group DN attribute. Default `distinguishedName` (string) - */ - public readonly groupDnAttribute!: pulumi.Output; - /** - * Group member mapping attribute. Default `member` (string) - */ - public readonly groupMemberMappingAttribute!: pulumi.Output; - /** - * Group member user attribute. Default `distinguishedName` (string) - */ - public readonly groupMemberUserAttribute!: pulumi.Output; - /** - * Group name attribute. Default `name` (string) - */ - public readonly groupNameAttribute!: pulumi.Output; - /** - * Group object class. Default `group` (string) - */ - public readonly groupObjectClass!: pulumi.Output; - /** - * Group search attribute. Default `sAMAccountName` (string) - */ - public readonly groupSearchAttribute!: pulumi.Output; - /** - * Group search base (string) - */ - public readonly groupSearchBase!: pulumi.Output; - /** - * Group search filter (string) - */ - public readonly groupSearchFilter!: pulumi.Output; - /** - * Labels of the resource (map) - */ - public readonly labels!: pulumi.Output<{[key: string]: any}>; - /** - * (Computed) The name of the resource (string) - */ - public /*out*/ readonly name!: pulumi.Output; - /** - * Nested group membership enable. Default `false` (bool) - */ - public readonly nestedGroupMembershipEnabled!: pulumi.Output; - /** - * ActiveDirectory port. Default `389` (int) - */ - public readonly port!: pulumi.Output; - /** - * ActiveDirectory servers list (list) - */ - public readonly servers!: pulumi.Output; - /** - * Service account password for access ActiveDirectory service (string) - */ - public readonly serviceAccountPassword!: pulumi.Output; - /** - * Service account DN for access ActiveDirectory service (string) - */ - public readonly serviceAccountUsername!: pulumi.Output; - /** - * Enable start TLS connection (bool) - */ - public readonly startTls!: pulumi.Output; - /** - * Password for test access to ActiveDirectory service (string) - */ - public readonly testPassword!: pulumi.Output; - /** - * Username for test access to ActiveDirectory service (string) - */ - public readonly testUsername!: pulumi.Output; - /** - * Enable TLS connection (bool) - */ - public readonly tls!: pulumi.Output; - /** - * (Computed) The type of the resource (string) - */ - public /*out*/ readonly type!: pulumi.Output; - /** - * User disabled bit mask. Default `2` (int) - */ - public readonly userDisabledBitMask!: pulumi.Output; - /** - * User enable attribute (string) - */ - public readonly userEnabledAttribute!: pulumi.Output; - /** - * User login attribute. Default `sAMAccountName` (string) - */ - public readonly userLoginAttribute!: pulumi.Output; - /** - * User name attribute. Default `name` (string) - */ - public readonly userNameAttribute!: pulumi.Output; - /** - * User object class. Default `person` (string) - */ - public readonly userObjectClass!: pulumi.Output; - /** - * User search attribute. Default `sAMAccountName|sn|givenName` (string) - */ - public readonly userSearchAttribute!: pulumi.Output; - /** - * User search base DN (string) - */ - public readonly userSearchBase!: pulumi.Output; - /** - * User search filter (string) - */ - public readonly userSearchFilter!: pulumi.Output; - - /** - * Create a ActiveDirectory resource with the given unique name, arguments, and options. - * - * @param name The _unique_ name of the resource. - * @param args The arguments to use to populate this resource's properties. - * @param opts A bag of options that control this resource's behavior. - */ - /** @deprecated rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory */ - constructor(name: string, args: ActiveDirectoryArgs, opts?: pulumi.CustomResourceOptions) - /** @deprecated rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory */ - constructor(name: string, argsOrState?: ActiveDirectoryArgs | ActiveDirectoryState, opts?: pulumi.CustomResourceOptions) { - pulumi.log.warn("ActiveDirectory is deprecated: rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory") - let resourceInputs: pulumi.Inputs = {}; - opts = opts || {}; - if (opts.id) { - const state = argsOrState as ActiveDirectoryState | undefined; - resourceInputs["accessMode"] = state ? state.accessMode : undefined; - resourceInputs["allowedPrincipalIds"] = state ? state.allowedPrincipalIds : undefined; - resourceInputs["annotations"] = state ? state.annotations : undefined; - resourceInputs["certificate"] = state ? state.certificate : undefined; - resourceInputs["connectionTimeout"] = state ? state.connectionTimeout : undefined; - resourceInputs["defaultLoginDomain"] = state ? state.defaultLoginDomain : undefined; - resourceInputs["enabled"] = state ? state.enabled : undefined; - resourceInputs["groupDnAttribute"] = state ? state.groupDnAttribute : undefined; - resourceInputs["groupMemberMappingAttribute"] = state ? state.groupMemberMappingAttribute : undefined; - resourceInputs["groupMemberUserAttribute"] = state ? state.groupMemberUserAttribute : undefined; - resourceInputs["groupNameAttribute"] = state ? state.groupNameAttribute : undefined; - resourceInputs["groupObjectClass"] = state ? state.groupObjectClass : undefined; - resourceInputs["groupSearchAttribute"] = state ? state.groupSearchAttribute : undefined; - resourceInputs["groupSearchBase"] = state ? state.groupSearchBase : undefined; - resourceInputs["groupSearchFilter"] = state ? state.groupSearchFilter : undefined; - resourceInputs["labels"] = state ? state.labels : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["nestedGroupMembershipEnabled"] = state ? state.nestedGroupMembershipEnabled : undefined; - resourceInputs["port"] = state ? state.port : undefined; - resourceInputs["servers"] = state ? state.servers : undefined; - resourceInputs["serviceAccountPassword"] = state ? state.serviceAccountPassword : undefined; - resourceInputs["serviceAccountUsername"] = state ? state.serviceAccountUsername : undefined; - resourceInputs["startTls"] = state ? state.startTls : undefined; - resourceInputs["testPassword"] = state ? state.testPassword : undefined; - resourceInputs["testUsername"] = state ? state.testUsername : undefined; - resourceInputs["tls"] = state ? state.tls : undefined; - resourceInputs["type"] = state ? state.type : undefined; - resourceInputs["userDisabledBitMask"] = state ? state.userDisabledBitMask : undefined; - resourceInputs["userEnabledAttribute"] = state ? state.userEnabledAttribute : undefined; - resourceInputs["userLoginAttribute"] = state ? state.userLoginAttribute : undefined; - resourceInputs["userNameAttribute"] = state ? state.userNameAttribute : undefined; - resourceInputs["userObjectClass"] = state ? state.userObjectClass : undefined; - resourceInputs["userSearchAttribute"] = state ? state.userSearchAttribute : undefined; - resourceInputs["userSearchBase"] = state ? state.userSearchBase : undefined; - resourceInputs["userSearchFilter"] = state ? state.userSearchFilter : undefined; - } else { - const args = argsOrState as ActiveDirectoryArgs | undefined; - if ((!args || args.servers === undefined) && !opts.urn) { - throw new Error("Missing required property 'servers'"); - } - if ((!args || args.serviceAccountPassword === undefined) && !opts.urn) { - throw new Error("Missing required property 'serviceAccountPassword'"); - } - if ((!args || args.serviceAccountUsername === undefined) && !opts.urn) { - throw new Error("Missing required property 'serviceAccountUsername'"); - } - if ((!args || args.testPassword === undefined) && !opts.urn) { - throw new Error("Missing required property 'testPassword'"); - } - if ((!args || args.testUsername === undefined) && !opts.urn) { - throw new Error("Missing required property 'testUsername'"); - } - if ((!args || args.userSearchBase === undefined) && !opts.urn) { - throw new Error("Missing required property 'userSearchBase'"); - } - resourceInputs["accessMode"] = args ? args.accessMode : undefined; - resourceInputs["allowedPrincipalIds"] = args ? args.allowedPrincipalIds : undefined; - resourceInputs["annotations"] = args ? args.annotations : undefined; - resourceInputs["certificate"] = args?.certificate ? pulumi.secret(args.certificate) : undefined; - resourceInputs["connectionTimeout"] = args ? args.connectionTimeout : undefined; - resourceInputs["defaultLoginDomain"] = args ? args.defaultLoginDomain : undefined; - resourceInputs["enabled"] = args ? args.enabled : undefined; - resourceInputs["groupDnAttribute"] = args ? args.groupDnAttribute : undefined; - resourceInputs["groupMemberMappingAttribute"] = args ? args.groupMemberMappingAttribute : undefined; - resourceInputs["groupMemberUserAttribute"] = args ? args.groupMemberUserAttribute : undefined; - resourceInputs["groupNameAttribute"] = args ? args.groupNameAttribute : undefined; - resourceInputs["groupObjectClass"] = args ? args.groupObjectClass : undefined; - resourceInputs["groupSearchAttribute"] = args ? args.groupSearchAttribute : undefined; - resourceInputs["groupSearchBase"] = args ? args.groupSearchBase : undefined; - resourceInputs["groupSearchFilter"] = args ? args.groupSearchFilter : undefined; - resourceInputs["labels"] = args ? args.labels : undefined; - resourceInputs["nestedGroupMembershipEnabled"] = args ? args.nestedGroupMembershipEnabled : undefined; - resourceInputs["port"] = args ? args.port : undefined; - resourceInputs["servers"] = args ? args.servers : undefined; - resourceInputs["serviceAccountPassword"] = args?.serviceAccountPassword ? pulumi.secret(args.serviceAccountPassword) : undefined; - resourceInputs["serviceAccountUsername"] = args?.serviceAccountUsername ? pulumi.secret(args.serviceAccountUsername) : undefined; - resourceInputs["startTls"] = args ? args.startTls : undefined; - resourceInputs["testPassword"] = args?.testPassword ? pulumi.secret(args.testPassword) : undefined; - resourceInputs["testUsername"] = args ? args.testUsername : undefined; - resourceInputs["tls"] = args ? args.tls : undefined; - resourceInputs["userDisabledBitMask"] = args ? args.userDisabledBitMask : undefined; - resourceInputs["userEnabledAttribute"] = args ? args.userEnabledAttribute : undefined; - resourceInputs["userLoginAttribute"] = args ? args.userLoginAttribute : undefined; - resourceInputs["userNameAttribute"] = args ? args.userNameAttribute : undefined; - resourceInputs["userObjectClass"] = args ? args.userObjectClass : undefined; - resourceInputs["userSearchAttribute"] = args ? args.userSearchAttribute : undefined; - resourceInputs["userSearchBase"] = args ? args.userSearchBase : undefined; - resourceInputs["userSearchFilter"] = args ? args.userSearchFilter : undefined; - resourceInputs["name"] = undefined /*out*/; - resourceInputs["type"] = undefined /*out*/; - } - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const secretOpts = { additionalSecretOutputs: ["certificate", "serviceAccountPassword", "serviceAccountUsername", "testPassword"] }; - opts = pulumi.mergeOptions(opts, secretOpts); - super(ActiveDirectory.__pulumiType, name, resourceInputs, opts); - } -} - -/** - * Input properties used for looking up and filtering ActiveDirectory resources. - */ -export interface ActiveDirectoryState { - /** - * Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - */ - accessMode?: pulumi.Input; - /** - * Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) - */ - allowedPrincipalIds?: pulumi.Input[]>; - /** - * Annotations of the resource (map) - */ - annotations?: pulumi.Input<{[key: string]: any}>; - /** - * CA certificate for TLS if selfsigned (string) - */ - certificate?: pulumi.Input; - /** - * ActiveDirectory connection timeout. Default `5000` (int) - */ - connectionTimeout?: pulumi.Input; - /** - * ActiveDirectory defult login domain (string) - */ - defaultLoginDomain?: pulumi.Input; - /** - * Enable auth config provider. Default `true` (bool) - */ - enabled?: pulumi.Input; - /** - * Group DN attribute. Default `distinguishedName` (string) - */ - groupDnAttribute?: pulumi.Input; - /** - * Group member mapping attribute. Default `member` (string) - */ - groupMemberMappingAttribute?: pulumi.Input; - /** - * Group member user attribute. Default `distinguishedName` (string) - */ - groupMemberUserAttribute?: pulumi.Input; - /** - * Group name attribute. Default `name` (string) - */ - groupNameAttribute?: pulumi.Input; - /** - * Group object class. Default `group` (string) - */ - groupObjectClass?: pulumi.Input; - /** - * Group search attribute. Default `sAMAccountName` (string) - */ - groupSearchAttribute?: pulumi.Input; - /** - * Group search base (string) - */ - groupSearchBase?: pulumi.Input; - /** - * Group search filter (string) - */ - groupSearchFilter?: pulumi.Input; - /** - * Labels of the resource (map) - */ - labels?: pulumi.Input<{[key: string]: any}>; - /** - * (Computed) The name of the resource (string) - */ - name?: pulumi.Input; - /** - * Nested group membership enable. Default `false` (bool) - */ - nestedGroupMembershipEnabled?: pulumi.Input; - /** - * ActiveDirectory port. Default `389` (int) - */ - port?: pulumi.Input; - /** - * ActiveDirectory servers list (list) - */ - servers?: pulumi.Input[]>; - /** - * Service account password for access ActiveDirectory service (string) - */ - serviceAccountPassword?: pulumi.Input; - /** - * Service account DN for access ActiveDirectory service (string) - */ - serviceAccountUsername?: pulumi.Input; - /** - * Enable start TLS connection (bool) - */ - startTls?: pulumi.Input; - /** - * Password for test access to ActiveDirectory service (string) - */ - testPassword?: pulumi.Input; - /** - * Username for test access to ActiveDirectory service (string) - */ - testUsername?: pulumi.Input; - /** - * Enable TLS connection (bool) - */ - tls?: pulumi.Input; - /** - * (Computed) The type of the resource (string) - */ - type?: pulumi.Input; - /** - * User disabled bit mask. Default `2` (int) - */ - userDisabledBitMask?: pulumi.Input; - /** - * User enable attribute (string) - */ - userEnabledAttribute?: pulumi.Input; - /** - * User login attribute. Default `sAMAccountName` (string) - */ - userLoginAttribute?: pulumi.Input; - /** - * User name attribute. Default `name` (string) - */ - userNameAttribute?: pulumi.Input; - /** - * User object class. Default `person` (string) - */ - userObjectClass?: pulumi.Input; - /** - * User search attribute. Default `sAMAccountName|sn|givenName` (string) - */ - userSearchAttribute?: pulumi.Input; - /** - * User search base DN (string) - */ - userSearchBase?: pulumi.Input; - /** - * User search filter (string) - */ - userSearchFilter?: pulumi.Input; -} - -/** - * The set of arguments for constructing a ActiveDirectory resource. - */ -export interface ActiveDirectoryArgs { - /** - * Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - */ - accessMode?: pulumi.Input; - /** - * Allowed principal ids for auth. Required if `accessMode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `testUsername` must be added too. (list) - */ - allowedPrincipalIds?: pulumi.Input[]>; - /** - * Annotations of the resource (map) - */ - annotations?: pulumi.Input<{[key: string]: any}>; - /** - * CA certificate for TLS if selfsigned (string) - */ - certificate?: pulumi.Input; - /** - * ActiveDirectory connection timeout. Default `5000` (int) - */ - connectionTimeout?: pulumi.Input; - /** - * ActiveDirectory defult login domain (string) - */ - defaultLoginDomain?: pulumi.Input; - /** - * Enable auth config provider. Default `true` (bool) - */ - enabled?: pulumi.Input; - /** - * Group DN attribute. Default `distinguishedName` (string) - */ - groupDnAttribute?: pulumi.Input; - /** - * Group member mapping attribute. Default `member` (string) - */ - groupMemberMappingAttribute?: pulumi.Input; - /** - * Group member user attribute. Default `distinguishedName` (string) - */ - groupMemberUserAttribute?: pulumi.Input; - /** - * Group name attribute. Default `name` (string) - */ - groupNameAttribute?: pulumi.Input; - /** - * Group object class. Default `group` (string) - */ - groupObjectClass?: pulumi.Input; - /** - * Group search attribute. Default `sAMAccountName` (string) - */ - groupSearchAttribute?: pulumi.Input; - /** - * Group search base (string) - */ - groupSearchBase?: pulumi.Input; - /** - * Group search filter (string) - */ - groupSearchFilter?: pulumi.Input; - /** - * Labels of the resource (map) - */ - labels?: pulumi.Input<{[key: string]: any}>; - /** - * Nested group membership enable. Default `false` (bool) - */ - nestedGroupMembershipEnabled?: pulumi.Input; - /** - * ActiveDirectory port. Default `389` (int) - */ - port?: pulumi.Input; - /** - * ActiveDirectory servers list (list) - */ - servers: pulumi.Input[]>; - /** - * Service account password for access ActiveDirectory service (string) - */ - serviceAccountPassword: pulumi.Input; - /** - * Service account DN for access ActiveDirectory service (string) - */ - serviceAccountUsername: pulumi.Input; - /** - * Enable start TLS connection (bool) - */ - startTls?: pulumi.Input; - /** - * Password for test access to ActiveDirectory service (string) - */ - testPassword: pulumi.Input; - /** - * Username for test access to ActiveDirectory service (string) - */ - testUsername: pulumi.Input; - /** - * Enable TLS connection (bool) - */ - tls?: pulumi.Input; - /** - * User disabled bit mask. Default `2` (int) - */ - userDisabledBitMask?: pulumi.Input; - /** - * User enable attribute (string) - */ - userEnabledAttribute?: pulumi.Input; - /** - * User login attribute. Default `sAMAccountName` (string) - */ - userLoginAttribute?: pulumi.Input; - /** - * User name attribute. Default `name` (string) - */ - userNameAttribute?: pulumi.Input; - /** - * User object class. Default `person` (string) - */ - userObjectClass?: pulumi.Input; - /** - * User search attribute. Default `sAMAccountName|sn|givenName` (string) - */ - userSearchAttribute?: pulumi.Input; - /** - * User search base DN (string) - */ - userSearchBase: pulumi.Input; - /** - * User search filter (string) - */ - userSearchFilter?: pulumi.Input; -} diff --git a/sdk/nodejs/appV2.ts b/sdk/nodejs/appV2.ts index 4b83f622c..1a7cece07 100644 --- a/sdk/nodejs/appV2.ts +++ b/sdk/nodejs/appV2.ts @@ -24,6 +24,22 @@ import * as utilities from "./utilities"; * values: fs.readFileSync("values.yaml", "utf8"), * }); * ``` + * ### Create an App from a Helm Chart using a different registry + * + * The `systemDefaultRegistry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead. + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as rancher2 from "@pulumi/rancher2"; + * + * const cisBenchmark = new rancher2.AppV2("cisBenchmark", { + * chartName: "rancher-cis-benchmark", + * clusterId: "", + * namespace: "cis-operator-system", + * repoName: "rancher-charts", + * systemDefaultRegistry: ":", + * }); + * ``` * * ## Import * @@ -124,9 +140,9 @@ export class AppV2 extends pulumi.CustomResource { */ public readonly repoName!: pulumi.Output; /** - * (Computed) The system default registry of the app (string) + * System default registry providing images for app deployment (string) */ - public /*out*/ readonly systemDefaultRegistry!: pulumi.Output; + public readonly systemDefaultRegistry!: pulumi.Output; /** * The app v2 values yaml. Yaml format is required (string) */ @@ -194,11 +210,11 @@ export class AppV2 extends pulumi.CustomResource { resourceInputs["namespace"] = args ? args.namespace : undefined; resourceInputs["projectId"] = args ? args.projectId : undefined; resourceInputs["repoName"] = args ? args.repoName : undefined; + resourceInputs["systemDefaultRegistry"] = args ? args.systemDefaultRegistry : undefined; resourceInputs["values"] = args ? args.values : undefined; resourceInputs["wait"] = args ? args.wait : undefined; resourceInputs["clusterName"] = undefined /*out*/; resourceInputs["deploymentValues"] = undefined /*out*/; - resourceInputs["systemDefaultRegistry"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AppV2.__pulumiType, name, resourceInputs, opts); @@ -272,7 +288,7 @@ export interface AppV2State { */ repoName?: pulumi.Input; /** - * (Computed) The system default registry of the app (string) + * System default registry providing images for app deployment (string) */ systemDefaultRegistry?: pulumi.Input; /** @@ -341,6 +357,10 @@ export interface AppV2Args { * Repo name (string) */ repoName: pulumi.Input; + /** + * System default registry providing images for app deployment (string) + */ + systemDefaultRegistry?: pulumi.Input; /** * The app v2 values yaml. Yaml format is required (string) */ diff --git a/sdk/nodejs/authConfigActiveDirectory.ts b/sdk/nodejs/authConfigActiveDirectory.ts index 49cd785f8..5429f2b25 100644 --- a/sdk/nodejs/authConfigActiveDirectory.ts +++ b/sdk/nodejs/authConfigActiveDirectory.ts @@ -283,8 +283,6 @@ export class AuthConfigActiveDirectory extends pulumi.CustomResource { resourceInputs["type"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "rancher2:index/activeDirectory:ActiveDirectory" }] }; - opts = pulumi.mergeOptions(opts, aliasOpts); const secretOpts = { additionalSecretOutputs: ["certificate", "serviceAccountPassword", "serviceAccountUsername", "testPassword"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(AuthConfigActiveDirectory.__pulumiType, name, resourceInputs, opts); diff --git a/sdk/nodejs/catalogV2.ts b/sdk/nodejs/catalogV2.ts index 136307f76..324439848 100644 --- a/sdk/nodejs/catalogV2.ts +++ b/sdk/nodejs/catalogV2.ts @@ -48,7 +48,7 @@ export class CatalogV2 extends pulumi.CustomResource { */ public readonly annotations!: pulumi.Output<{[key: string]: any}>; /** - * PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) */ public readonly caBundle!: pulumi.Output; /** @@ -167,7 +167,7 @@ export interface CatalogV2State { */ annotations?: pulumi.Input<{[key: string]: any}>; /** - * PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) */ caBundle?: pulumi.Input; /** @@ -233,7 +233,7 @@ export interface CatalogV2Args { */ annotations?: pulumi.Input<{[key: string]: any}>; /** - * PEM encoded CA bundle which will be used to validate the repo's certificate (string) + * CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) */ caBundle?: pulumi.Input; /** diff --git a/sdk/nodejs/clusterAlertGroup.ts b/sdk/nodejs/clusterAlertGroup.ts index e87e693d1..53182c906 100644 --- a/sdk/nodejs/clusterAlertGroup.ts +++ b/sdk/nodejs/clusterAlertGroup.ts @@ -135,8 +135,6 @@ export class ClusterAlertGroup extends pulumi.CustomResource { resourceInputs["repeatIntervalSeconds"] = args ? args.repeatIntervalSeconds : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "rancher2:index/clusterAlterGroup:ClusterAlterGroup" }] }; - opts = pulumi.mergeOptions(opts, aliasOpts); super(ClusterAlertGroup.__pulumiType, name, resourceInputs, opts); } } diff --git a/sdk/nodejs/clusterAlertRule.ts b/sdk/nodejs/clusterAlertRule.ts index b79de77b6..f1a7ba9ed 100644 --- a/sdk/nodejs/clusterAlertRule.ts +++ b/sdk/nodejs/clusterAlertRule.ts @@ -175,8 +175,6 @@ export class ClusterAlertRule extends pulumi.CustomResource { resourceInputs["systemServiceRule"] = args ? args.systemServiceRule : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "rancher2:index/clusterAlterRule:ClusterAlterRule" }] }; - opts = pulumi.mergeOptions(opts, aliasOpts); super(ClusterAlertRule.__pulumiType, name, resourceInputs, opts); } } diff --git a/sdk/nodejs/clusterAlterGroup.ts b/sdk/nodejs/clusterAlterGroup.ts deleted file mode 100644 index 523d9dd81..000000000 --- a/sdk/nodejs/clusterAlterGroup.ts +++ /dev/null @@ -1,230 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "./types/input"; -import * as outputs from "./types/output"; -import * as utilities from "./utilities"; - -/** - * Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as rancher2 from "@pulumi/rancher2"; - * - * // Create a new Rancher2 Cluster Alert Group - * const foo = new rancher2.ClusterAlertGroup("foo", { - * clusterId: "", - * description: "Terraform cluster alert group", - * groupIntervalSeconds: 300, - * repeatIntervalSeconds: 3600, - * }); - * ``` - * - * ## Import - * - * Cluster Alert Group can be imported using the Rancher cluster alert group ID - * - * ```sh - * $ pulumi import rancher2:index/clusterAlterGroup:ClusterAlterGroup foo <CLUSTER_ALERT_GROUP_ID> - * ``` - * - * @deprecated rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup - */ -export class ClusterAlterGroup extends pulumi.CustomResource { - /** - * Get an existing ClusterAlterGroup resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param state Any extra arguments used during the lookup. - * @param opts Optional settings to control the behavior of the CustomResource. - */ - public static get(name: string, id: pulumi.Input, state?: ClusterAlterGroupState, opts?: pulumi.CustomResourceOptions): ClusterAlterGroup { - pulumi.log.warn("ClusterAlterGroup is deprecated: rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup") - return new ClusterAlterGroup(name, state, { ...opts, id: id }); - } - - /** @internal */ - public static readonly __pulumiType = 'rancher2:index/clusterAlterGroup:ClusterAlterGroup'; - - /** - * Returns true if the given object is an instance of ClusterAlterGroup. This is designed to work even - * when multiple copies of the Pulumi SDK have been loaded into the same process. - */ - public static isInstance(obj: any): obj is ClusterAlterGroup { - if (obj === undefined || obj === null) { - return false; - } - return obj['__pulumiType'] === ClusterAlterGroup.__pulumiType; - } - - /** - * The cluster alert group annotations (map) - */ - public readonly annotations!: pulumi.Output<{[key: string]: any}>; - /** - * The cluster id where create cluster alert group (string) - */ - public readonly clusterId!: pulumi.Output; - /** - * The cluster alert group description (string) - */ - public readonly description!: pulumi.Output; - /** - * The cluster alert group interval seconds. Default: `180` (int) - */ - public readonly groupIntervalSeconds!: pulumi.Output; - /** - * The cluster alert group wait seconds. Default: `180` (int) - */ - public readonly groupWaitSeconds!: pulumi.Output; - /** - * The cluster alert group labels (map) - */ - public readonly labels!: pulumi.Output<{[key: string]: any}>; - /** - * The cluster alert group name (string) - */ - public readonly name!: pulumi.Output; - /** - * The cluster alert group recipients (list) - */ - public readonly recipients!: pulumi.Output; - /** - * The cluster alert group wait seconds. Default: `3600` (int) - */ - public readonly repeatIntervalSeconds!: pulumi.Output; - - /** - * Create a ClusterAlterGroup resource with the given unique name, arguments, and options. - * - * @param name The _unique_ name of the resource. - * @param args The arguments to use to populate this resource's properties. - * @param opts A bag of options that control this resource's behavior. - */ - /** @deprecated rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup */ - constructor(name: string, args: ClusterAlterGroupArgs, opts?: pulumi.CustomResourceOptions) - /** @deprecated rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup */ - constructor(name: string, argsOrState?: ClusterAlterGroupArgs | ClusterAlterGroupState, opts?: pulumi.CustomResourceOptions) { - pulumi.log.warn("ClusterAlterGroup is deprecated: rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup") - let resourceInputs: pulumi.Inputs = {}; - opts = opts || {}; - if (opts.id) { - const state = argsOrState as ClusterAlterGroupState | undefined; - resourceInputs["annotations"] = state ? state.annotations : undefined; - resourceInputs["clusterId"] = state ? state.clusterId : undefined; - resourceInputs["description"] = state ? state.description : undefined; - resourceInputs["groupIntervalSeconds"] = state ? state.groupIntervalSeconds : undefined; - resourceInputs["groupWaitSeconds"] = state ? state.groupWaitSeconds : undefined; - resourceInputs["labels"] = state ? state.labels : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["recipients"] = state ? state.recipients : undefined; - resourceInputs["repeatIntervalSeconds"] = state ? state.repeatIntervalSeconds : undefined; - } else { - const args = argsOrState as ClusterAlterGroupArgs | undefined; - if ((!args || args.clusterId === undefined) && !opts.urn) { - throw new Error("Missing required property 'clusterId'"); - } - resourceInputs["annotations"] = args ? args.annotations : undefined; - resourceInputs["clusterId"] = args ? args.clusterId : undefined; - resourceInputs["description"] = args ? args.description : undefined; - resourceInputs["groupIntervalSeconds"] = args ? args.groupIntervalSeconds : undefined; - resourceInputs["groupWaitSeconds"] = args ? args.groupWaitSeconds : undefined; - resourceInputs["labels"] = args ? args.labels : undefined; - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["recipients"] = args ? args.recipients : undefined; - resourceInputs["repeatIntervalSeconds"] = args ? args.repeatIntervalSeconds : undefined; - } - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(ClusterAlterGroup.__pulumiType, name, resourceInputs, opts); - } -} - -/** - * Input properties used for looking up and filtering ClusterAlterGroup resources. - */ -export interface ClusterAlterGroupState { - /** - * The cluster alert group annotations (map) - */ - annotations?: pulumi.Input<{[key: string]: any}>; - /** - * The cluster id where create cluster alert group (string) - */ - clusterId?: pulumi.Input; - /** - * The cluster alert group description (string) - */ - description?: pulumi.Input; - /** - * The cluster alert group interval seconds. Default: `180` (int) - */ - groupIntervalSeconds?: pulumi.Input; - /** - * The cluster alert group wait seconds. Default: `180` (int) - */ - groupWaitSeconds?: pulumi.Input; - /** - * The cluster alert group labels (map) - */ - labels?: pulumi.Input<{[key: string]: any}>; - /** - * The cluster alert group name (string) - */ - name?: pulumi.Input; - /** - * The cluster alert group recipients (list) - */ - recipients?: pulumi.Input[]>; - /** - * The cluster alert group wait seconds. Default: `3600` (int) - */ - repeatIntervalSeconds?: pulumi.Input; -} - -/** - * The set of arguments for constructing a ClusterAlterGroup resource. - */ -export interface ClusterAlterGroupArgs { - /** - * The cluster alert group annotations (map) - */ - annotations?: pulumi.Input<{[key: string]: any}>; - /** - * The cluster id where create cluster alert group (string) - */ - clusterId: pulumi.Input; - /** - * The cluster alert group description (string) - */ - description?: pulumi.Input; - /** - * The cluster alert group interval seconds. Default: `180` (int) - */ - groupIntervalSeconds?: pulumi.Input; - /** - * The cluster alert group wait seconds. Default: `180` (int) - */ - groupWaitSeconds?: pulumi.Input; - /** - * The cluster alert group labels (map) - */ - labels?: pulumi.Input<{[key: string]: any}>; - /** - * The cluster alert group name (string) - */ - name?: pulumi.Input; - /** - * The cluster alert group recipients (list) - */ - recipients?: pulumi.Input[]>; - /** - * The cluster alert group wait seconds. Default: `3600` (int) - */ - repeatIntervalSeconds?: pulumi.Input; -} diff --git a/sdk/nodejs/clusterAlterRule.ts b/sdk/nodejs/clusterAlterRule.ts deleted file mode 100644 index b7c546fdc..000000000 --- a/sdk/nodejs/clusterAlterRule.ts +++ /dev/null @@ -1,303 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "./types/input"; -import * as outputs from "./types/output"; -import * as utilities from "./utilities"; - -/** - * Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as rancher2 from "@pulumi/rancher2"; - * - * // Create a new Rancher2 Cluster Alert Group - * const foo = new rancher2.ClusterAlertGroup("foo", { - * clusterId: "", - * description: "Terraform cluster alert group", - * groupIntervalSeconds: 300, - * repeatIntervalSeconds: 3600, - * }); - * ``` - * - * ## Import - * - * Cluster Alert Group can be imported using the Rancher cluster alert group ID - * - * ```sh - * $ pulumi import rancher2:index/clusterAlterRule:ClusterAlterRule foo <CLUSTER_ALERT_GROUP_ID> - * ``` - * - * @deprecated rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule - */ -export class ClusterAlterRule extends pulumi.CustomResource { - /** - * Get an existing ClusterAlterRule resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param state Any extra arguments used during the lookup. - * @param opts Optional settings to control the behavior of the CustomResource. - */ - public static get(name: string, id: pulumi.Input, state?: ClusterAlterRuleState, opts?: pulumi.CustomResourceOptions): ClusterAlterRule { - pulumi.log.warn("ClusterAlterRule is deprecated: rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule") - return new ClusterAlterRule(name, state, { ...opts, id: id }); - } - - /** @internal */ - public static readonly __pulumiType = 'rancher2:index/clusterAlterRule:ClusterAlterRule'; - - /** - * Returns true if the given object is an instance of ClusterAlterRule. This is designed to work even - * when multiple copies of the Pulumi SDK have been loaded into the same process. - */ - public static isInstance(obj: any): obj is ClusterAlterRule { - if (obj === undefined || obj === null) { - return false; - } - return obj['__pulumiType'] === ClusterAlterRule.__pulumiType; - } - - /** - * The cluster alert group annotations (map) - */ - public readonly annotations!: pulumi.Output<{[key: string]: any}>; - /** - * The cluster id where create cluster alert group (string) - */ - public readonly clusterId!: pulumi.Output; - /** - * Alert event rule - */ - public readonly eventRule!: pulumi.Output; - /** - * Alert rule group ID - */ - public readonly groupId!: pulumi.Output; - /** - * The cluster alert group interval seconds. Default: `180` (int) - */ - public readonly groupIntervalSeconds!: pulumi.Output; - /** - * The cluster alert group wait seconds. Default: `180` (int) - */ - public readonly groupWaitSeconds!: pulumi.Output; - /** - * Alert rule inherited - */ - public readonly inherited!: pulumi.Output; - /** - * The cluster alert group labels (map) - */ - public readonly labels!: pulumi.Output<{[key: string]: any}>; - /** - * Alert metric rule - */ - public readonly metricRule!: pulumi.Output; - /** - * The cluster alert group name (string) - */ - public readonly name!: pulumi.Output; - /** - * Alert node rule - */ - public readonly nodeRule!: pulumi.Output; - /** - * The cluster alert group wait seconds. Default: `3600` (int) - */ - public readonly repeatIntervalSeconds!: pulumi.Output; - /** - * Alert rule severity - */ - public readonly severity!: pulumi.Output; - /** - * Alert system service rule - */ - public readonly systemServiceRule!: pulumi.Output; - - /** - * Create a ClusterAlterRule resource with the given unique name, arguments, and options. - * - * @param name The _unique_ name of the resource. - * @param args The arguments to use to populate this resource's properties. - * @param opts A bag of options that control this resource's behavior. - */ - /** @deprecated rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule */ - constructor(name: string, args: ClusterAlterRuleArgs, opts?: pulumi.CustomResourceOptions) - /** @deprecated rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule */ - constructor(name: string, argsOrState?: ClusterAlterRuleArgs | ClusterAlterRuleState, opts?: pulumi.CustomResourceOptions) { - pulumi.log.warn("ClusterAlterRule is deprecated: rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule") - let resourceInputs: pulumi.Inputs = {}; - opts = opts || {}; - if (opts.id) { - const state = argsOrState as ClusterAlterRuleState | undefined; - resourceInputs["annotations"] = state ? state.annotations : undefined; - resourceInputs["clusterId"] = state ? state.clusterId : undefined; - resourceInputs["eventRule"] = state ? state.eventRule : undefined; - resourceInputs["groupId"] = state ? state.groupId : undefined; - resourceInputs["groupIntervalSeconds"] = state ? state.groupIntervalSeconds : undefined; - resourceInputs["groupWaitSeconds"] = state ? state.groupWaitSeconds : undefined; - resourceInputs["inherited"] = state ? state.inherited : undefined; - resourceInputs["labels"] = state ? state.labels : undefined; - resourceInputs["metricRule"] = state ? state.metricRule : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["nodeRule"] = state ? state.nodeRule : undefined; - resourceInputs["repeatIntervalSeconds"] = state ? state.repeatIntervalSeconds : undefined; - resourceInputs["severity"] = state ? state.severity : undefined; - resourceInputs["systemServiceRule"] = state ? state.systemServiceRule : undefined; - } else { - const args = argsOrState as ClusterAlterRuleArgs | undefined; - if ((!args || args.clusterId === undefined) && !opts.urn) { - throw new Error("Missing required property 'clusterId'"); - } - if ((!args || args.groupId === undefined) && !opts.urn) { - throw new Error("Missing required property 'groupId'"); - } - resourceInputs["annotations"] = args ? args.annotations : undefined; - resourceInputs["clusterId"] = args ? args.clusterId : undefined; - resourceInputs["eventRule"] = args ? args.eventRule : undefined; - resourceInputs["groupId"] = args ? args.groupId : undefined; - resourceInputs["groupIntervalSeconds"] = args ? args.groupIntervalSeconds : undefined; - resourceInputs["groupWaitSeconds"] = args ? args.groupWaitSeconds : undefined; - resourceInputs["inherited"] = args ? args.inherited : undefined; - resourceInputs["labels"] = args ? args.labels : undefined; - resourceInputs["metricRule"] = args ? args.metricRule : undefined; - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["nodeRule"] = args ? args.nodeRule : undefined; - resourceInputs["repeatIntervalSeconds"] = args ? args.repeatIntervalSeconds : undefined; - resourceInputs["severity"] = args ? args.severity : undefined; - resourceInputs["systemServiceRule"] = args ? args.systemServiceRule : undefined; - } - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(ClusterAlterRule.__pulumiType, name, resourceInputs, opts); - } -} - -/** - * Input properties used for looking up and filtering ClusterAlterRule resources. - */ -export interface ClusterAlterRuleState { - /** - * The cluster alert group annotations (map) - */ - annotations?: pulumi.Input<{[key: string]: any}>; - /** - * The cluster id where create cluster alert group (string) - */ - clusterId?: pulumi.Input; - /** - * Alert event rule - */ - eventRule?: pulumi.Input; - /** - * Alert rule group ID - */ - groupId?: pulumi.Input; - /** - * The cluster alert group interval seconds. Default: `180` (int) - */ - groupIntervalSeconds?: pulumi.Input; - /** - * The cluster alert group wait seconds. Default: `180` (int) - */ - groupWaitSeconds?: pulumi.Input; - /** - * Alert rule inherited - */ - inherited?: pulumi.Input; - /** - * The cluster alert group labels (map) - */ - labels?: pulumi.Input<{[key: string]: any}>; - /** - * Alert metric rule - */ - metricRule?: pulumi.Input; - /** - * The cluster alert group name (string) - */ - name?: pulumi.Input; - /** - * Alert node rule - */ - nodeRule?: pulumi.Input; - /** - * The cluster alert group wait seconds. Default: `3600` (int) - */ - repeatIntervalSeconds?: pulumi.Input; - /** - * Alert rule severity - */ - severity?: pulumi.Input; - /** - * Alert system service rule - */ - systemServiceRule?: pulumi.Input; -} - -/** - * The set of arguments for constructing a ClusterAlterRule resource. - */ -export interface ClusterAlterRuleArgs { - /** - * The cluster alert group annotations (map) - */ - annotations?: pulumi.Input<{[key: string]: any}>; - /** - * The cluster id where create cluster alert group (string) - */ - clusterId: pulumi.Input; - /** - * Alert event rule - */ - eventRule?: pulumi.Input; - /** - * Alert rule group ID - */ - groupId: pulumi.Input; - /** - * The cluster alert group interval seconds. Default: `180` (int) - */ - groupIntervalSeconds?: pulumi.Input; - /** - * The cluster alert group wait seconds. Default: `180` (int) - */ - groupWaitSeconds?: pulumi.Input; - /** - * Alert rule inherited - */ - inherited?: pulumi.Input; - /** - * The cluster alert group labels (map) - */ - labels?: pulumi.Input<{[key: string]: any}>; - /** - * Alert metric rule - */ - metricRule?: pulumi.Input; - /** - * The cluster alert group name (string) - */ - name?: pulumi.Input; - /** - * Alert node rule - */ - nodeRule?: pulumi.Input; - /** - * The cluster alert group wait seconds. Default: `3600` (int) - */ - repeatIntervalSeconds?: pulumi.Input; - /** - * Alert rule severity - */ - severity?: pulumi.Input; - /** - * Alert system service rule - */ - systemServiceRule?: pulumi.Input; -} diff --git a/sdk/nodejs/clusterV2.ts b/sdk/nodejs/clusterV2.ts index 7472e5af7..d73364d17 100644 --- a/sdk/nodejs/clusterV2.ts +++ b/sdk/nodejs/clusterV2.ts @@ -12,7 +12,7 @@ import * as utilities from "./utilities"; * Clusters v2 can be imported using the Rancher Cluster v2 ID, that is in the form <FLEET_NAMESPACE>/<CLUSTER_NAME> * * ```sh - * $ pulumi import rancher2:index/clusterV2:ClusterV2 foo <FLEET_NAMESPACE>/<CLUSTER_NAME> + * $ pulumi import rancher2:index/clusterV2:ClusterV2 foo / * ``` */ export class ClusterV2 extends pulumi.CustomResource { @@ -44,79 +44,79 @@ export class ClusterV2 extends pulumi.CustomResource { } /** - * Optional Agent Env Vars for Rancher agent (list) + * Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. */ public readonly agentEnvVars!: pulumi.Output; /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. */ public readonly annotations!: pulumi.Output<{[key: string]: any}>; /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. */ public readonly cloudCredentialSecretName!: pulumi.Output; /** - * Optional customization for cluster agent (list) + * Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. */ public readonly clusterAgentDeploymentCustomizations!: pulumi.Output; /** - * (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + * (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. */ public /*out*/ readonly clusterRegistrationToken!: pulumi.Output; /** - * (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2Sync`) (string) + * (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2Sync`). */ public /*out*/ readonly clusterV1Id!: pulumi.Output; /** - * Cluster V2 default cluster role for project members (string) + * Default cluster role for project members. */ public readonly defaultClusterRoleForProjectMembers!: pulumi.Output; /** - * Cluster V2 default pod security admission configuration template name (string) + * The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. */ public readonly defaultPodSecurityAdmissionConfigurationTemplateName!: pulumi.Output; /** - * Cluster V2 default pod security policy template name (string) + * Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). */ public readonly defaultPodSecurityPolicyTemplateName!: pulumi.Output; /** - * Enable k8s network policy at Cluster V2 (bool) + * Enable k8s network policy on the cluster. */ public readonly enableNetworkPolicy!: pulumi.Output; /** - * Optional customization for fleet agent (list) + * Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. */ public readonly fleetAgentDeploymentCustomizations!: pulumi.Output; /** - * The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. */ public readonly fleetNamespace!: pulumi.Output; /** - * (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected` (string) + * (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected`. */ public /*out*/ readonly kubeConfig!: pulumi.Output; /** - * The kubernetes version of the Cluster v2 (list maxitems:1) + * The RKE2 or K3s version for the cluster. */ public readonly kubernetesVersion!: pulumi.Output; /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. */ public readonly labels!: pulumi.Output<{[key: string]: any}>; /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). */ public readonly localAuthEndpoint!: pulumi.Output; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ public readonly name!: pulumi.Output; /** - * (Computed) Cluster v2 k8s resource version (string) + * (Computed, string) Cluster's k8s resource version. */ public /*out*/ readonly resourceVersion!: pulumi.Output; /** - * The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * The RKE configuration for the cluster. */ public readonly rkeConfig!: pulumi.Output; @@ -189,79 +189,79 @@ export class ClusterV2 extends pulumi.CustomResource { */ export interface ClusterV2State { /** - * Optional Agent Env Vars for Rancher agent (list) + * Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. */ agentEnvVars?: pulumi.Input[]>; /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. */ annotations?: pulumi.Input<{[key: string]: any}>; /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. */ cloudCredentialSecretName?: pulumi.Input; /** - * Optional customization for cluster agent (list) + * Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. */ clusterAgentDeploymentCustomizations?: pulumi.Input[]>; /** - * (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + * (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. */ clusterRegistrationToken?: pulumi.Input; /** - * (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2Sync`) (string) + * (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2Sync`). */ clusterV1Id?: pulumi.Input; /** - * Cluster V2 default cluster role for project members (string) + * Default cluster role for project members. */ defaultClusterRoleForProjectMembers?: pulumi.Input; /** - * Cluster V2 default pod security admission configuration template name (string) + * The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. */ defaultPodSecurityAdmissionConfigurationTemplateName?: pulumi.Input; /** - * Cluster V2 default pod security policy template name (string) + * Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). */ defaultPodSecurityPolicyTemplateName?: pulumi.Input; /** - * Enable k8s network policy at Cluster V2 (bool) + * Enable k8s network policy on the cluster. */ enableNetworkPolicy?: pulumi.Input; /** - * Optional customization for fleet agent (list) + * Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. */ fleetAgentDeploymentCustomizations?: pulumi.Input[]>; /** - * The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. */ fleetNamespace?: pulumi.Input; /** - * (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected` (string) + * (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `localAuthEndpoint` enabled, the kubeConfig will not be available until the cluster is `connected`. */ kubeConfig?: pulumi.Input; /** - * The kubernetes version of the Cluster v2 (list maxitems:1) + * The RKE2 or K3s version for the cluster. */ kubernetesVersion?: pulumi.Input; /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. */ labels?: pulumi.Input<{[key: string]: any}>; /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). */ localAuthEndpoint?: pulumi.Input; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name?: pulumi.Input; /** - * (Computed) Cluster v2 k8s resource version (string) + * (Computed, string) Cluster's k8s resource version. */ resourceVersion?: pulumi.Input; /** - * The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * The RKE configuration for the cluster. */ rkeConfig?: pulumi.Input; } @@ -271,63 +271,63 @@ export interface ClusterV2State { */ export interface ClusterV2Args { /** - * Optional Agent Env Vars for Rancher agent (list) + * Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. */ agentEnvVars?: pulumi.Input[]>; /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. */ annotations?: pulumi.Input<{[key: string]: any}>; /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. */ cloudCredentialSecretName?: pulumi.Input; /** - * Optional customization for cluster agent (list) + * Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. */ clusterAgentDeploymentCustomizations?: pulumi.Input[]>; /** - * Cluster V2 default cluster role for project members (string) + * Default cluster role for project members. */ defaultClusterRoleForProjectMembers?: pulumi.Input; /** - * Cluster V2 default pod security admission configuration template name (string) + * The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. */ defaultPodSecurityAdmissionConfigurationTemplateName?: pulumi.Input; /** - * Cluster V2 default pod security policy template name (string) + * Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). */ defaultPodSecurityPolicyTemplateName?: pulumi.Input; /** - * Enable k8s network policy at Cluster V2 (bool) + * Enable k8s network policy on the cluster. */ enableNetworkPolicy?: pulumi.Input; /** - * Optional customization for fleet agent (list) + * Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. */ fleetAgentDeploymentCustomizations?: pulumi.Input[]>; /** - * The fleet namespace of the Cluster v2. Default: `\"fleet-default\"` (string) + * Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. */ fleetNamespace?: pulumi.Input; /** - * The kubernetes version of the Cluster v2 (list maxitems:1) + * The RKE2 or K3s version for the cluster. */ kubernetesVersion: pulumi.Input; /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. */ labels?: pulumi.Input<{[key: string]: any}>; /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). */ localAuthEndpoint?: pulumi.Input; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name?: pulumi.Input; /** - * The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + * The RKE configuration for the cluster. */ rkeConfig?: pulumi.Input; } diff --git a/sdk/nodejs/getClusterAlterRule.ts b/sdk/nodejs/getClusterAlertRule.ts similarity index 78% rename from sdk/nodejs/getClusterAlterRule.ts rename to sdk/nodejs/getClusterAlertRule.ts index 516a47c6d..0693dd541 100644 --- a/sdk/nodejs/getClusterAlterRule.ts +++ b/sdk/nodejs/getClusterAlertRule.ts @@ -15,16 +15,16 @@ import * as utilities from "./utilities"; * import * as pulumi from "@pulumi/pulumi"; * import * as rancher2 from "@pulumi/rancher2"; * - * const foo = rancher2.getClusterAlterRule({ + * const foo = rancher2.getClusterAlertRule({ * clusterId: "", * name: "", * }); * ``` */ -export function getClusterAlterRule(args: GetClusterAlterRuleArgs, opts?: pulumi.InvokeOptions): Promise { +export function getClusterAlertRule(args: GetClusterAlertRuleArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("rancher2:index/getClusterAlterRule:getClusterAlterRule", { + return pulumi.runtime.invoke("rancher2:index/getClusterAlertRule:getClusterAlertRule", { "clusterId": args.clusterId, "labels": args.labels, "name": args.name, @@ -32,9 +32,9 @@ export function getClusterAlterRule(args: GetClusterAlterRuleArgs, opts?: pulumi } /** - * A collection of arguments for invoking getClusterAlterRule. + * A collection of arguments for invoking getClusterAlertRule. */ -export interface GetClusterAlterRuleArgs { +export interface GetClusterAlertRuleArgs { /** * The cluster id where create cluster alert rule (string) */ @@ -50,9 +50,9 @@ export interface GetClusterAlterRuleArgs { } /** - * A collection of values returned by getClusterAlterRule. + * A collection of values returned by getClusterAlertRule. */ -export interface GetClusterAlterRuleResult { +export interface GetClusterAlertRuleResult { /** * (Computed) The cluster alert rule annotations (map) */ @@ -61,7 +61,7 @@ export interface GetClusterAlterRuleResult { /** * (Computed) The cluster alert rule event rule. ConflictsWith: `"metricRule", "nodeRule", "systemServiceRule"` (list Maxitems:1) */ - readonly eventRule: outputs.GetClusterAlterRuleEventRule; + readonly eventRule: outputs.GetClusterAlertRuleEventRule; /** * (Computed) The cluster alert rule alert group ID (string) */ @@ -89,12 +89,12 @@ export interface GetClusterAlterRuleResult { /** * (Computed) The cluster alert rule metric rule. ConflictsWith: `"eventRule", "nodeRule", "systemServiceRule"`` (list Maxitems:1) */ - readonly metricRule: outputs.GetClusterAlterRuleMetricRule; + readonly metricRule: outputs.GetClusterAlertRuleMetricRule; readonly name: string; /** * (Computed) The cluster alert rule node rule. ConflictsWith: `"eventRule", "metricRule", "systemServiceRule"`` (list Maxitems:1) */ - readonly nodeRule: outputs.GetClusterAlterRuleNodeRule; + readonly nodeRule: outputs.GetClusterAlertRuleNodeRule; /** * (Optional) The cluster alert rule wait seconds. Default: `3600` (int) */ @@ -106,7 +106,7 @@ export interface GetClusterAlterRuleResult { /** * (Computed) The cluster alert rule system service rule. ConflictsWith: `"eventRule", "metricRule", "nodeRule"`` (list Maxitems:1) */ - readonly systemServiceRule: outputs.GetClusterAlterRuleSystemServiceRule; + readonly systemServiceRule: outputs.GetClusterAlertRuleSystemServiceRule; } /** * Use this data source to retrieve information about a Rancher v2 cluster alert rule. @@ -117,20 +117,20 @@ export interface GetClusterAlterRuleResult { * import * as pulumi from "@pulumi/pulumi"; * import * as rancher2 from "@pulumi/rancher2"; * - * const foo = rancher2.getClusterAlterRule({ + * const foo = rancher2.getClusterAlertRule({ * clusterId: "", * name: "", * }); * ``` */ -export function getClusterAlterRuleOutput(args: GetClusterAlterRuleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getClusterAlterRule(a, opts)) +export function getClusterAlertRuleOutput(args: GetClusterAlertRuleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + return pulumi.output(args).apply((a: any) => getClusterAlertRule(a, opts)) } /** - * A collection of arguments for invoking getClusterAlterRule. + * A collection of arguments for invoking getClusterAlertRule. */ -export interface GetClusterAlterRuleOutputArgs { +export interface GetClusterAlertRuleOutputArgs { /** * The cluster id where create cluster alert rule (string) */ diff --git a/sdk/nodejs/getGlobalRole.ts b/sdk/nodejs/getGlobalRole.ts index 86b0d8697..63fe41c92 100644 --- a/sdk/nodejs/getGlobalRole.ts +++ b/sdk/nodejs/getGlobalRole.ts @@ -24,6 +24,7 @@ export function getGlobalRole(args: GetGlobalRoleArgs, opts?: pulumi.InvokeOptio opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("rancher2:index/getGlobalRole:getGlobalRole", { + "inheritedClusterRoles": args.inheritedClusterRoles, "name": args.name, }, opts); } @@ -32,6 +33,10 @@ export function getGlobalRole(args: GetGlobalRoleArgs, opts?: pulumi.InvokeOptio * A collection of arguments for invoking getGlobalRole. */ export interface GetGlobalRoleArgs { + /** + * (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + */ + inheritedClusterRoles?: string[]; /** * The name of the Global Role (string) */ @@ -58,6 +63,10 @@ export interface GetGlobalRoleResult { * The provider-assigned unique ID for this managed resource. */ readonly id: string; + /** + * (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + */ + readonly inheritedClusterRoles?: string[]; /** * (Computed) Labels for global role object (map) */ @@ -94,6 +103,10 @@ export function getGlobalRoleOutput(args: GetGlobalRoleOutputArgs, opts?: pulumi * A collection of arguments for invoking getGlobalRole. */ export interface GetGlobalRoleOutputArgs { + /** + * (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + */ + inheritedClusterRoles?: pulumi.Input[]>; /** * The name of the Global Role (string) */ diff --git a/sdk/nodejs/getRoleTempalte.ts b/sdk/nodejs/getRoleTempalte.ts deleted file mode 100644 index ba42da51c..000000000 --- a/sdk/nodejs/getRoleTempalte.ts +++ /dev/null @@ -1,134 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "./types/input"; -import * as outputs from "./types/output"; -import * as utilities from "./utilities"; - -/** - * Use this data source to retrieve information about a Rancher v2 role template resource. - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as rancher2 from "@pulumi/rancher2"; - * - * const foo = rancher2.getRoleTemplate({ - * name: "foo", - * }); - * ``` - */ -/** @deprecated rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate */ -export function getRoleTempalte(args: GetRoleTempalteArgs, opts?: pulumi.InvokeOptions): Promise { - pulumi.log.warn("getRoleTempalte is deprecated: rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate") - - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); - return pulumi.runtime.invoke("rancher2:index/getRoleTempalte:getRoleTempalte", { - "context": args.context, - "name": args.name, - }, opts); -} - -/** - * A collection of arguments for invoking getRoleTempalte. - */ -export interface GetRoleTempalteArgs { - /** - * Role template context. `cluster` and `project` values are supported (string) - */ - context?: string; - /** - * The name of the Role Template (string) - */ - name: string; -} - -/** - * A collection of values returned by getRoleTempalte. - */ -export interface GetRoleTempalteResult { - /** - * (Computed) Administrative role template (bool) - */ - readonly administrative: boolean; - /** - * (Computed) Annotations for role template object (map) - */ - readonly annotations: {[key: string]: any}; - /** - * (Computed) Builtin role template (string) - */ - readonly builtin: boolean; - readonly context: string; - /** - * (Computed) Default role template for new created cluster or project (bool) - */ - readonly defaultRole: boolean; - /** - * (Computed) Role template description (string) - */ - readonly description: string; - /** - * (Computed) External role template (bool) - */ - readonly external: boolean; - /** - * (Computed) Hidden role template (bool) - */ - readonly hidden: boolean; - /** - * The provider-assigned unique ID for this managed resource. - */ - readonly id: string; - /** - * (Computed) Labels for role template object (map) - */ - readonly labels: {[key: string]: any}; - /** - * (Computed) Locked role template (bool) - */ - readonly locked: boolean; - readonly name: string; - /** - * (Computed) Inherit role template IDs (list) - */ - readonly roleTemplateIds: string[]; - /** - * (Computed) Role template policy rules (list) - */ - readonly rules: outputs.GetRoleTempalteRule[]; -} -/** - * Use this data source to retrieve information about a Rancher v2 role template resource. - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as rancher2 from "@pulumi/rancher2"; - * - * const foo = rancher2.getRoleTemplate({ - * name: "foo", - * }); - * ``` - */ -/** @deprecated rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate */ -export function getRoleTempalteOutput(args: GetRoleTempalteOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRoleTempalte(a, opts)) -} - -/** - * A collection of arguments for invoking getRoleTempalte. - */ -export interface GetRoleTempalteOutputArgs { - /** - * Role template context. `cluster` and `project` values are supported (string) - */ - context?: pulumi.Input; - /** - * The name of the Role Template (string) - */ - name: pulumi.Input; -} diff --git a/sdk/nodejs/globalRole.ts b/sdk/nodejs/globalRole.ts index b21864df4..f09c0583a 100644 --- a/sdk/nodejs/globalRole.ts +++ b/sdk/nodejs/globalRole.ts @@ -75,6 +75,10 @@ export class GlobalRole extends pulumi.CustomResource { * Global role description (string) */ public readonly description!: pulumi.Output; + /** + * Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + */ + public readonly inheritedClusterRoles!: pulumi.Output; /** * Labels for global role object (map) */ @@ -108,6 +112,7 @@ export class GlobalRole extends pulumi.CustomResource { resourceInputs["annotations"] = state ? state.annotations : undefined; resourceInputs["builtin"] = state ? state.builtin : undefined; resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["inheritedClusterRoles"] = state ? state.inheritedClusterRoles : undefined; resourceInputs["labels"] = state ? state.labels : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["newUserDefault"] = state ? state.newUserDefault : undefined; @@ -116,6 +121,7 @@ export class GlobalRole extends pulumi.CustomResource { const args = argsOrState as GlobalRoleArgs | undefined; resourceInputs["annotations"] = args ? args.annotations : undefined; resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["inheritedClusterRoles"] = args ? args.inheritedClusterRoles : undefined; resourceInputs["labels"] = args ? args.labels : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["newUserDefault"] = args ? args.newUserDefault : undefined; @@ -143,6 +149,10 @@ export interface GlobalRoleState { * Global role description (string) */ description?: pulumi.Input; + /** + * Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + */ + inheritedClusterRoles?: pulumi.Input[]>; /** * Labels for global role object (map) */ @@ -173,6 +183,10 @@ export interface GlobalRoleArgs { * Global role description (string) */ description?: pulumi.Input; + /** + * Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + */ + inheritedClusterRoles?: pulumi.Input[]>; /** * Labels for global role object (map) */ diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index 122d14531..370f86a3c 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -5,11 +5,6 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; // Export members: -export { ActiveDirectoryArgs, ActiveDirectoryState } from "./activeDirectory"; -export type ActiveDirectory = import("./activeDirectory").ActiveDirectory; -export const ActiveDirectory: typeof import("./activeDirectory").ActiveDirectory = null as any; -utilities.lazyLoad(exports, ["ActiveDirectory"], () => require("./activeDirectory")); - export { AppArgs, AppState } from "./app"; export type App = import("./app").App; export const App: typeof import("./app").App = null as any; @@ -105,16 +100,6 @@ export type ClusterAlertRule = import("./clusterAlertRule").ClusterAlertRule; export const ClusterAlertRule: typeof import("./clusterAlertRule").ClusterAlertRule = null as any; utilities.lazyLoad(exports, ["ClusterAlertRule"], () => require("./clusterAlertRule")); -export { ClusterAlterGroupArgs, ClusterAlterGroupState } from "./clusterAlterGroup"; -export type ClusterAlterGroup = import("./clusterAlterGroup").ClusterAlterGroup; -export const ClusterAlterGroup: typeof import("./clusterAlterGroup").ClusterAlterGroup = null as any; -utilities.lazyLoad(exports, ["ClusterAlterGroup"], () => require("./clusterAlterGroup")); - -export { ClusterAlterRuleArgs, ClusterAlterRuleState } from "./clusterAlterRule"; -export type ClusterAlterRule = import("./clusterAlterRule").ClusterAlterRule; -export const ClusterAlterRule: typeof import("./clusterAlterRule").ClusterAlterRule = null as any; -utilities.lazyLoad(exports, ["ClusterAlterRule"], () => require("./clusterAlterRule")); - export { ClusterDriverArgs, ClusterDriverState } from "./clusterDriver"; export type ClusterDriver = import("./clusterDriver").ClusterDriver; export const ClusterDriver: typeof import("./clusterDriver").ClusterDriver = null as any; @@ -195,10 +180,10 @@ export const getClusterAlertGroup: typeof import("./getClusterAlertGroup").getCl export const getClusterAlertGroupOutput: typeof import("./getClusterAlertGroup").getClusterAlertGroupOutput = null as any; utilities.lazyLoad(exports, ["getClusterAlertGroup","getClusterAlertGroupOutput"], () => require("./getClusterAlertGroup")); -export { GetClusterAlterRuleArgs, GetClusterAlterRuleResult, GetClusterAlterRuleOutputArgs } from "./getClusterAlterRule"; -export const getClusterAlterRule: typeof import("./getClusterAlterRule").getClusterAlterRule = null as any; -export const getClusterAlterRuleOutput: typeof import("./getClusterAlterRule").getClusterAlterRuleOutput = null as any; -utilities.lazyLoad(exports, ["getClusterAlterRule","getClusterAlterRuleOutput"], () => require("./getClusterAlterRule")); +export { GetClusterAlertRuleArgs, GetClusterAlertRuleResult, GetClusterAlertRuleOutputArgs } from "./getClusterAlertRule"; +export const getClusterAlertRule: typeof import("./getClusterAlertRule").getClusterAlertRule = null as any; +export const getClusterAlertRuleOutput: typeof import("./getClusterAlertRule").getClusterAlertRuleOutput = null as any; +utilities.lazyLoad(exports, ["getClusterAlertRule","getClusterAlertRuleOutput"], () => require("./getClusterAlertRule")); export { GetClusterDriverArgs, GetClusterDriverResult, GetClusterDriverOutputArgs } from "./getClusterDriver"; export const getClusterDriver: typeof import("./getClusterDriver").getClusterDriver = null as any; @@ -310,11 +295,6 @@ export const getRegistry: typeof import("./getRegistry").getRegistry = null as a export const getRegistryOutput: typeof import("./getRegistry").getRegistryOutput = null as any; utilities.lazyLoad(exports, ["getRegistry","getRegistryOutput"], () => require("./getRegistry")); -export { GetRoleTempalteArgs, GetRoleTempalteResult, GetRoleTempalteOutputArgs } from "./getRoleTempalte"; -export const getRoleTempalte: typeof import("./getRoleTempalte").getRoleTempalte = null as any; -export const getRoleTempalteOutput: typeof import("./getRoleTempalte").getRoleTempalteOutput = null as any; -utilities.lazyLoad(exports, ["getRoleTempalte","getRoleTempalteOutput"], () => require("./getRoleTempalte")); - export { GetRoleTemplateArgs, GetRoleTemplateResult, GetRoleTemplateOutputArgs } from "./getRoleTemplate"; export const getRoleTemplate: typeof import("./getRoleTemplate").getRoleTemplate = null as any; export const getRoleTemplateOutput: typeof import("./getRoleTemplate").getRoleTemplateOutput = null as any; @@ -435,11 +415,6 @@ export type Registry = import("./registry").Registry; export const Registry: typeof import("./registry").Registry = null as any; utilities.lazyLoad(exports, ["Registry"], () => require("./registry")); -export { RoleTempalteArgs, RoleTempalteState } from "./roleTempalte"; -export type RoleTempalte = import("./roleTempalte").RoleTempalte; -export const RoleTempalte: typeof import("./roleTempalte").RoleTempalte = null as any; -utilities.lazyLoad(exports, ["RoleTempalte"], () => require("./roleTempalte")); - export { RoleTemplateArgs, RoleTemplateState } from "./roleTemplate"; export type RoleTemplate = import("./roleTemplate").RoleTemplate; export const RoleTemplate: typeof import("./roleTemplate").RoleTemplate = null as any; @@ -489,8 +464,6 @@ const _module = { version: utilities.getVersion(), construct: (name: string, type: string, urn: string): pulumi.Resource => { switch (type) { - case "rancher2:index/activeDirectory:ActiveDirectory": - return new ActiveDirectory(name, undefined, { urn }) case "rancher2:index/app:App": return new App(name, undefined, { urn }) case "rancher2:index/appV2:AppV2": @@ -529,10 +502,6 @@ const _module = { return new ClusterAlertGroup(name, undefined, { urn }) case "rancher2:index/clusterAlertRule:ClusterAlertRule": return new ClusterAlertRule(name, undefined, { urn }) - case "rancher2:index/clusterAlterGroup:ClusterAlterGroup": - return new ClusterAlterGroup(name, undefined, { urn }) - case "rancher2:index/clusterAlterRule:ClusterAlterRule": - return new ClusterAlterRule(name, undefined, { urn }) case "rancher2:index/clusterDriver:ClusterDriver": return new ClusterDriver(name, undefined, { urn }) case "rancher2:index/clusterRoleTemplateBinding:ClusterRoleTemplateBinding": @@ -585,8 +554,6 @@ const _module = { return new ProjectRoleTemplateBinding(name, undefined, { urn }) case "rancher2:index/registry:Registry": return new Registry(name, undefined, { urn }) - case "rancher2:index/roleTempalte:RoleTempalte": - return new RoleTempalte(name, undefined, { urn }) case "rancher2:index/roleTemplate:RoleTemplate": return new RoleTemplate(name, undefined, { urn }) case "rancher2:index/secret:Secret": @@ -606,7 +573,6 @@ const _module = { } }, }; -pulumi.runtime.registerResourceModule("rancher2", "index/activeDirectory", _module) pulumi.runtime.registerResourceModule("rancher2", "index/app", _module) pulumi.runtime.registerResourceModule("rancher2", "index/appV2", _module) pulumi.runtime.registerResourceModule("rancher2", "index/authConfigActiveDirectory", _module) @@ -626,8 +592,6 @@ pulumi.runtime.registerResourceModule("rancher2", "index/cloudCredential", _modu pulumi.runtime.registerResourceModule("rancher2", "index/cluster", _module) pulumi.runtime.registerResourceModule("rancher2", "index/clusterAlertGroup", _module) pulumi.runtime.registerResourceModule("rancher2", "index/clusterAlertRule", _module) -pulumi.runtime.registerResourceModule("rancher2", "index/clusterAlterGroup", _module) -pulumi.runtime.registerResourceModule("rancher2", "index/clusterAlterRule", _module) pulumi.runtime.registerResourceModule("rancher2", "index/clusterDriver", _module) pulumi.runtime.registerResourceModule("rancher2", "index/clusterRoleTemplateBinding", _module) pulumi.runtime.registerResourceModule("rancher2", "index/clusterSync", _module) @@ -654,7 +618,6 @@ pulumi.runtime.registerResourceModule("rancher2", "index/projectAlertGroup", _mo pulumi.runtime.registerResourceModule("rancher2", "index/projectAlertRule", _module) pulumi.runtime.registerResourceModule("rancher2", "index/projectRoleTemplateBinding", _module) pulumi.runtime.registerResourceModule("rancher2", "index/registry", _module) -pulumi.runtime.registerResourceModule("rancher2", "index/roleTempalte", _module) pulumi.runtime.registerResourceModule("rancher2", "index/roleTemplate", _module) pulumi.runtime.registerResourceModule("rancher2", "index/secret", _module) pulumi.runtime.registerResourceModule("rancher2", "index/secretV2", _module) diff --git a/sdk/nodejs/machineConfigV2.ts b/sdk/nodejs/machineConfigV2.ts index 655e45d35..68766be19 100644 --- a/sdk/nodejs/machineConfigV2.ts +++ b/sdk/nodejs/machineConfigV2.ts @@ -9,9 +9,7 @@ import * as utilities from "./utilities"; /** * Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above. * - * `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere` cloud providers are supported for machine config V2 - * - * **Note:** This resource is used by + * The supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`. * * ## Example Usage * ### Using the Harvester Node Driver diff --git a/sdk/nodejs/projectRoleTemplateBinding.ts b/sdk/nodejs/projectRoleTemplateBinding.ts index 429ea8ae8..d83b9e7c0 100644 --- a/sdk/nodejs/projectRoleTemplateBinding.ts +++ b/sdk/nodejs/projectRoleTemplateBinding.ts @@ -80,7 +80,7 @@ export class ProjectRoleTemplateBinding extends pulumi.CustomResource { */ public readonly name!: pulumi.Output; /** - * The project id where bind project role template (string) + * The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) */ public readonly projectId!: pulumi.Output; /** @@ -168,7 +168,7 @@ export interface ProjectRoleTemplateBindingState { */ name?: pulumi.Input; /** - * The project id where bind project role template (string) + * The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) */ projectId?: pulumi.Input; /** @@ -212,7 +212,7 @@ export interface ProjectRoleTemplateBindingArgs { */ name?: pulumi.Input; /** - * The project id where bind project role template (string) + * The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) */ projectId: pulumi.Input; /** diff --git a/sdk/nodejs/roleTempalte.ts b/sdk/nodejs/roleTempalte.ts deleted file mode 100644 index efa0001b4..000000000 --- a/sdk/nodejs/roleTempalte.ts +++ /dev/null @@ -1,302 +0,0 @@ -// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "./types/input"; -import * as outputs from "./types/output"; -import * as utilities from "./utilities"; - -/** - * Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. - * - * `cluster` and `project` scopes are supported for role templates. - * - * ## Example Usage - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as rancher2 from "@pulumi/rancher2"; - * - * // Create a new rancher2 cluster Role Template - * const foo = new rancher2.RoleTemplate("foo", { - * context: "cluster", - * defaultRole: true, - * description: "Terraform role template acceptance test", - * rules: [{ - * apiGroups: ["*"], - * resources: ["secrets"], - * verbs: ["create"], - * }], - * }); - * ``` - * - * ```typescript - * import * as pulumi from "@pulumi/pulumi"; - * import * as rancher2 from "@pulumi/rancher2"; - * - * // Create a new rancher2 project Role Template - * const foo = new rancher2.RoleTemplate("foo", { - * context: "project", - * defaultRole: true, - * description: "Terraform role template acceptance test", - * rules: [{ - * apiGroups: ["*"], - * resources: ["secrets"], - * verbs: ["create"], - * }], - * }); - * ``` - * - * ## Import - * - * Role Template can be imported using the Rancher Role Template ID - * - * ```sh - * $ pulumi import rancher2:index/roleTempalte:RoleTempalte foo <role_template_id> - * ``` - * - * @deprecated rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate - */ -export class RoleTempalte extends pulumi.CustomResource { - /** - * Get an existing RoleTempalte resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param state Any extra arguments used during the lookup. - * @param opts Optional settings to control the behavior of the CustomResource. - */ - public static get(name: string, id: pulumi.Input, state?: RoleTempalteState, opts?: pulumi.CustomResourceOptions): RoleTempalte { - pulumi.log.warn("RoleTempalte is deprecated: rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate") - return new RoleTempalte(name, state, { ...opts, id: id }); - } - - /** @internal */ - public static readonly __pulumiType = 'rancher2:index/roleTempalte:RoleTempalte'; - - /** - * Returns true if the given object is an instance of RoleTempalte. This is designed to work even - * when multiple copies of the Pulumi SDK have been loaded into the same process. - */ - public static isInstance(obj: any): obj is RoleTempalte { - if (obj === undefined || obj === null) { - return false; - } - return obj['__pulumiType'] === RoleTempalte.__pulumiType; - } - - /** - * Administrative role template. Default `false` (bool) - */ - public readonly administrative!: pulumi.Output; - /** - * Annotations for role template object (map) - */ - public readonly annotations!: pulumi.Output<{[key: string]: any}>; - /** - * (Computed) Builtin role template (string) - */ - public /*out*/ readonly builtin!: pulumi.Output; - /** - * Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - */ - public readonly context!: pulumi.Output; - /** - * Default role template for new created cluster or project. Default `false` (bool) - */ - public readonly defaultRole!: pulumi.Output; - /** - * Role template description (string) - */ - public readonly description!: pulumi.Output; - /** - * External role template. Default `false` (bool) - */ - public readonly external!: pulumi.Output; - /** - * Hidden role template. Default `false` (bool) - */ - public readonly hidden!: pulumi.Output; - /** - * Labels for role template object (map) - */ - public readonly labels!: pulumi.Output<{[key: string]: any}>; - /** - * Locked role template. Default `false` (bool) - */ - public readonly locked!: pulumi.Output; - /** - * Role template name (string) - */ - public readonly name!: pulumi.Output; - /** - * Inherit role template IDs (list) - */ - public readonly roleTemplateIds!: pulumi.Output; - /** - * Role template policy rules (list) - */ - public readonly rules!: pulumi.Output; - - /** - * Create a RoleTempalte resource with the given unique name, arguments, and options. - * - * @param name The _unique_ name of the resource. - * @param args The arguments to use to populate this resource's properties. - * @param opts A bag of options that control this resource's behavior. - */ - /** @deprecated rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate */ - constructor(name: string, args?: RoleTempalteArgs, opts?: pulumi.CustomResourceOptions) - /** @deprecated rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate */ - constructor(name: string, argsOrState?: RoleTempalteArgs | RoleTempalteState, opts?: pulumi.CustomResourceOptions) { - pulumi.log.warn("RoleTempalte is deprecated: rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate") - let resourceInputs: pulumi.Inputs = {}; - opts = opts || {}; - if (opts.id) { - const state = argsOrState as RoleTempalteState | undefined; - resourceInputs["administrative"] = state ? state.administrative : undefined; - resourceInputs["annotations"] = state ? state.annotations : undefined; - resourceInputs["builtin"] = state ? state.builtin : undefined; - resourceInputs["context"] = state ? state.context : undefined; - resourceInputs["defaultRole"] = state ? state.defaultRole : undefined; - resourceInputs["description"] = state ? state.description : undefined; - resourceInputs["external"] = state ? state.external : undefined; - resourceInputs["hidden"] = state ? state.hidden : undefined; - resourceInputs["labels"] = state ? state.labels : undefined; - resourceInputs["locked"] = state ? state.locked : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["roleTemplateIds"] = state ? state.roleTemplateIds : undefined; - resourceInputs["rules"] = state ? state.rules : undefined; - } else { - const args = argsOrState as RoleTempalteArgs | undefined; - resourceInputs["administrative"] = args ? args.administrative : undefined; - resourceInputs["annotations"] = args ? args.annotations : undefined; - resourceInputs["context"] = args ? args.context : undefined; - resourceInputs["defaultRole"] = args ? args.defaultRole : undefined; - resourceInputs["description"] = args ? args.description : undefined; - resourceInputs["external"] = args ? args.external : undefined; - resourceInputs["hidden"] = args ? args.hidden : undefined; - resourceInputs["labels"] = args ? args.labels : undefined; - resourceInputs["locked"] = args ? args.locked : undefined; - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["roleTemplateIds"] = args ? args.roleTemplateIds : undefined; - resourceInputs["rules"] = args ? args.rules : undefined; - resourceInputs["builtin"] = undefined /*out*/; - } - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(RoleTempalte.__pulumiType, name, resourceInputs, opts); - } -} - -/** - * Input properties used for looking up and filtering RoleTempalte resources. - */ -export interface RoleTempalteState { - /** - * Administrative role template. Default `false` (bool) - */ - administrative?: pulumi.Input; - /** - * Annotations for role template object (map) - */ - annotations?: pulumi.Input<{[key: string]: any}>; - /** - * (Computed) Builtin role template (string) - */ - builtin?: pulumi.Input; - /** - * Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - */ - context?: pulumi.Input; - /** - * Default role template for new created cluster or project. Default `false` (bool) - */ - defaultRole?: pulumi.Input; - /** - * Role template description (string) - */ - description?: pulumi.Input; - /** - * External role template. Default `false` (bool) - */ - external?: pulumi.Input; - /** - * Hidden role template. Default `false` (bool) - */ - hidden?: pulumi.Input; - /** - * Labels for role template object (map) - */ - labels?: pulumi.Input<{[key: string]: any}>; - /** - * Locked role template. Default `false` (bool) - */ - locked?: pulumi.Input; - /** - * Role template name (string) - */ - name?: pulumi.Input; - /** - * Inherit role template IDs (list) - */ - roleTemplateIds?: pulumi.Input[]>; - /** - * Role template policy rules (list) - */ - rules?: pulumi.Input[]>; -} - -/** - * The set of arguments for constructing a RoleTempalte resource. - */ -export interface RoleTempalteArgs { - /** - * Administrative role template. Default `false` (bool) - */ - administrative?: pulumi.Input; - /** - * Annotations for role template object (map) - */ - annotations?: pulumi.Input<{[key: string]: any}>; - /** - * Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - */ - context?: pulumi.Input; - /** - * Default role template for new created cluster or project. Default `false` (bool) - */ - defaultRole?: pulumi.Input; - /** - * Role template description (string) - */ - description?: pulumi.Input; - /** - * External role template. Default `false` (bool) - */ - external?: pulumi.Input; - /** - * Hidden role template. Default `false` (bool) - */ - hidden?: pulumi.Input; - /** - * Labels for role template object (map) - */ - labels?: pulumi.Input<{[key: string]: any}>; - /** - * Locked role template. Default `false` (bool) - */ - locked?: pulumi.Input; - /** - * Role template name (string) - */ - name?: pulumi.Input; - /** - * Inherit role template IDs (list) - */ - roleTemplateIds?: pulumi.Input[]>; - /** - * Role template policy rules (list) - */ - rules?: pulumi.Input[]>; -} diff --git a/sdk/nodejs/roleTemplate.ts b/sdk/nodejs/roleTemplate.ts index 1582e2a7c..b72e0cb33 100644 --- a/sdk/nodejs/roleTemplate.ts +++ b/sdk/nodejs/roleTemplate.ts @@ -179,8 +179,6 @@ export class RoleTemplate extends pulumi.CustomResource { resourceInputs["builtin"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const aliasOpts = { aliases: [{ type: "rancher2:index/roleTempalte:RoleTempalte" }] }; - opts = pulumi.mergeOptions(opts, aliasOpts); super(RoleTemplate.__pulumiType, name, resourceInputs, opts); } } diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 4e5ddb85f..33b93e826 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -13,7 +13,6 @@ "strict": true }, "files": [ - "activeDirectory.ts", "app.ts", "appV2.ts", "authConfigActiveDirectory.ts", @@ -33,8 +32,6 @@ "cluster.ts", "clusterAlertGroup.ts", "clusterAlertRule.ts", - "clusterAlterGroup.ts", - "clusterAlterRule.ts", "clusterDriver.ts", "clusterRoleTemplateBinding.ts", "clusterSync.ts", @@ -53,7 +50,7 @@ "getCloudCredential.ts", "getCluster.ts", "getClusterAlertGroup.ts", - "getClusterAlterRule.ts", + "getClusterAlertRule.ts", "getClusterDriver.ts", "getClusterRoleTemplateBinding.ts", "getClusterTemplate.ts", @@ -76,7 +73,6 @@ "getProjectAlertRule.ts", "getProjectRoleTemplateBinding.ts", "getRegistry.ts", - "getRoleTempalte.ts", "getRoleTemplate.ts", "getSecret.ts", "getSecretV2.ts", @@ -102,7 +98,6 @@ "projectRoleTemplateBinding.ts", "provider.ts", "registry.ts", - "roleTempalte.ts", "roleTemplate.ts", "secret.ts", "secretV2.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index a2c25653b..45a53c975 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -581,89 +581,6 @@ export interface ClusterAlertRuleSystemServiceRule { condition?: pulumi.Input; } -export interface ClusterAlterGroupRecipient { - /** - * Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - */ - defaultRecipient?: pulumi.Input; - /** - * Recipient notifier ID (string) - */ - notifierId: pulumi.Input; - /** - * Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - */ - notifierType?: pulumi.Input; - /** - * Recipient (string) - */ - recipient?: pulumi.Input; -} - -export interface ClusterAlterRuleEventRule { - /** - * Event type - */ - eventType?: pulumi.Input; - /** - * Resource kind - */ - resourceKind: pulumi.Input; -} - -export interface ClusterAlterRuleMetricRule { - /** - * Metric rule comparison - */ - comparison?: pulumi.Input; - /** - * The cluster alert group description (string) - */ - description?: pulumi.Input; - /** - * Metric rule duration - */ - duration: pulumi.Input; - /** - * Metric rule expression - */ - expression: pulumi.Input; - /** - * Metric rule threshold value - */ - thresholdValue: pulumi.Input; -} - -export interface ClusterAlterRuleNodeRule { - /** - * Node rule condition - */ - condition?: pulumi.Input; - /** - * Node rule cpu threshold - */ - cpuThreshold?: pulumi.Input; - /** - * Node rule mem threshold - */ - memThreshold?: pulumi.Input; - /** - * Node ID - */ - nodeId?: pulumi.Input; - /** - * Node rule selector - */ - selector?: pulumi.Input<{[key: string]: any}>; -} - -export interface ClusterAlterRuleSystemServiceRule { - /** - * System service rule condition - */ - condition?: pulumi.Input; -} - export interface ClusterClusterAgentDeploymentCustomization { /** * User defined tolerations to append to agent (list) @@ -925,7 +842,7 @@ export interface ClusterEksConfigV2 { */ imported?: pulumi.Input; /** - * The AWS kms key to use (string) + * The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) */ kmsKey?: pulumi.Input; /** @@ -2388,6 +2305,7 @@ export interface ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal { * (string) */ datacenters?: pulumi.Input; + gracefulShutdownTimeout?: pulumi.Input; /** * (bool) */ @@ -4089,6 +4007,7 @@ export interface ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvi export interface ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { datacenters?: pulumi.Input; + gracefulShutdownTimeout?: pulumi.Input; insecureFlag?: pulumi.Input; password?: pulumi.Input; port?: pulumi.Input; @@ -4633,228 +4552,228 @@ export interface ClusterTemplateTemplateRevisionQuestion { export interface ClusterV2AgentEnvVar { /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: pulumi.Input; /** - * The taint value (string) + * The taint value. */ value: pulumi.Input; } export interface ClusterV2ClusterAgentDeploymentCustomization { /** - * User defined tolerations to append to agent (list) + * A list of tolerations to be appended to the default tolerations. */ appendTolerations?: pulumi.Input[]>; /** - * User defined affinity to override default agent affinity (string) + * Override affinity overrides the global default affinity setting. */ overrideAffinity?: pulumi.Input; /** - * User defined resource requirements to set on the agent (list) + * Override resource requirements overrides the default value for requests and/or limits. */ overrideResourceRequirements?: pulumi.Input[]>; } export interface ClusterV2ClusterAgentDeploymentCustomizationAppendToleration { /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. */ effect?: pulumi.Input; /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. */ key: pulumi.Input; /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator?: pulumi.Input; /** - * The number of seconds a pod will stay bound to a node with a matching taint (int) + * The number of seconds a pod will stay bound to a node with a matching taint. */ seconds?: pulumi.Input; /** - * The taint value (string) + * The taint value. */ value?: pulumi.Input; } export interface ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement { /** - * The maximum CPU limit for agent (string) + * The maximum CPU limit for agent. */ cpuLimit?: pulumi.Input; /** - * The minimum CPU required for agent (string) + * The minimum CPU required for agent. */ cpuRequest?: pulumi.Input; /** - * The maximum memory limit for agent (string) + * The maximum memory limit for agent. */ memoryLimit?: pulumi.Input; /** - * The minimum memory required for agent (string) + * The minimum memory required for agent. */ memoryRequest?: pulumi.Input; } export interface ClusterV2ClusterRegistrationToken { /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. */ annotations?: pulumi.Input<{[key: string]: any}>; /** - * Cluster ID (string) + * Cluster ID. */ clusterId?: pulumi.Input; /** - * Command to execute in a imported k8s cluster (string) + * Command to execute in an imported k8s cluster. */ command?: pulumi.Input; /** - * (Computed) The ID of the resource (string) + * (Computed, string) The ID of the resource. */ id?: pulumi.Input; /** - * Insecure command to execute in a imported k8s cluster (string) + * Insecure command to execute in an imported k8s cluster. */ insecureCommand?: pulumi.Input; /** - * Insecure node command to execute in a imported k8s cluster (string) + * Insecure node command to execute in an imported k8s cluster. */ insecureNodeCommand?: pulumi.Input; /** - * Insecure windows command to execute in a imported k8s cluster (string) + * Insecure windows command to execute in an imported k8s cluster. */ insecureWindowsNodeCommand?: pulumi.Input; /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. */ labels?: pulumi.Input<{[key: string]: any}>; /** - * K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + * K8s manifest url to execute with `kubectl` to import an existing k8s cluster. */ manifestUrl?: pulumi.Input; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name?: pulumi.Input; /** - * Node command to execute in linux nodes for custom k8s cluster (string) + * Node command to execute in Linux nodes for custom k8s cluster. */ nodeCommand?: pulumi.Input; /** - * Token for cluster registration token object (string) + * Token for cluster registration token object. */ token?: pulumi.Input; /** - * Node command to execute in windows nodes for custom k8s cluster (string) + * Node command to execute in Windows nodes for custom k8s cluster. */ windowsNodeCommand?: pulumi.Input; } export interface ClusterV2FleetAgentDeploymentCustomization { /** - * User defined tolerations to append to agent (list) + * A list of tolerations to be appended to the default tolerations. */ appendTolerations?: pulumi.Input[]>; /** - * User defined affinity to override default agent affinity (string) + * Override affinity overrides the global default affinity setting. */ overrideAffinity?: pulumi.Input; /** - * User defined resource requirements to set on the agent (list) + * Override resource requirements overrides the default value for requests and/or limits. */ overrideResourceRequirements?: pulumi.Input[]>; } export interface ClusterV2FleetAgentDeploymentCustomizationAppendToleration { /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. */ effect?: pulumi.Input; /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. */ key: pulumi.Input; /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator?: pulumi.Input; /** - * The number of seconds a pod will stay bound to a node with a matching taint (int) + * The number of seconds a pod will stay bound to a node with a matching taint. */ seconds?: pulumi.Input; /** - * The taint value (string) + * The taint value. */ value?: pulumi.Input; } export interface ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement { /** - * The maximum CPU limit for agent (string) + * The maximum CPU limit for agent. */ cpuLimit?: pulumi.Input; /** - * The minimum CPU required for agent (string) + * The minimum CPU required for agent. */ cpuRequest?: pulumi.Input; /** - * The maximum memory limit for agent (string) + * The maximum memory limit for agent. */ memoryLimit?: pulumi.Input; /** - * The minimum memory required for agent (string) + * The minimum memory required for agent. */ memoryRequest?: pulumi.Input; } export interface ClusterV2LocalAuthEndpoint { /** - * CA certs for the authorized cluster endpoint (string) + * CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. */ caCerts?: pulumi.Input; /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. */ enabled?: pulumi.Input; /** - * FQDN for the authorized cluster endpoint (string) + * FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. */ fqdn?: pulumi.Input; } export interface ClusterV2RkeConfig { /** - * Cluster V2 additional manifest (string) + * The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. */ additionalManifest?: pulumi.Input; /** - * Cluster V2 chart values. Must be in YAML format (string) + * The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). */ chartValues?: pulumi.Input; /** - * Cluster V2 etcd (list maxitems:1) + * Etcd configures the behavior of the automatic etcd snapshot feature. */ etcd?: pulumi.Input; /** - * Cluster V2 etcd snapshot create (list maxitems:1) + * Cluster V2 etcd snapshot create. */ etcdSnapshotCreate?: pulumi.Input; /** - * Cluster V2 etcd snapshot restore (list maxitems:1) + * Cluster V2 etcd snapshot restore. */ etcdSnapshotRestore?: pulumi.Input; /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * * @deprecated Use rancher2_cluster_v2.local_auth_endpoint instead */ localAuthEndpoint?: pulumi.Input; /** - * Cluster V2 machine global config. Must be in YAML format (string) + * Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). */ machineGlobalConfig?: pulumi.Input; /** @@ -4862,133 +4781,137 @@ export interface ClusterV2RkeConfig { */ machinePoolDefaults?: pulumi.Input[]>; /** - * Cluster V2 machine pools (list) + * Cluster V2 machine pools. */ machinePools?: pulumi.Input[]>; /** - * Cluster V2 machine selector config (list) + * Machine selector config is the same as machineGlobalConfig except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machineSelectorConfig takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. */ machineSelectorConfigs?: pulumi.Input[]>; /** - * Cluster V2 docker registries (list maxitems:1) + * Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + */ + machineSelectorFiles?: pulumi.Input[]>; + /** + * Docker registries from which the cluster pulls images. */ registries?: pulumi.Input; /** - * Cluster V2 certificate rotation (list maxitems:1) + * Cluster V2 certificate rotation. */ rotateCertificates?: pulumi.Input; /** - * Cluster V2 upgrade strategy (list maxitems:1) + * Cluster upgrade strategy. */ upgradeStrategy?: pulumi.Input; } export interface ClusterV2RkeConfigEtcd { /** - * Disable ETCD snapshots. Default: `false` (bool) + * Disable ETCD snapshots. */ disableSnapshots?: pulumi.Input; /** - * Creation option for etcd service (list maxitems:1) + * Creation option for etcd service. */ s3Config?: pulumi.Input; /** - * ETCD snapshot retention (int) + * ETCD snapshot retention. */ snapshotRetention?: pulumi.Input; /** - * ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) + * ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). */ snapshotScheduleCron?: pulumi.Input; } export interface ClusterV2RkeConfigEtcdS3Config { /** - * Bucket name for S3 service (string) + * Bucket name for S3 service. */ bucket: pulumi.Input; /** - * ETCD snapshot S3 cloud credential name (string) + * ETCD snapshot S3 cloud credential name. */ cloudCredentialName?: pulumi.Input; /** - * ETCD snapshot S3 endpoint (string) + * ETCD snapshot S3 endpoint. */ endpoint: pulumi.Input; /** - * ETCD snapshot S3 endpoint CA (string) + * ETCD snapshot S3 endpoint CA. */ endpointCa?: pulumi.Input; /** - * ETCD snapshot S3 folder (string) + * ETCD snapshot S3 folder. */ folder?: pulumi.Input; /** - * ETCD snapshot S3 region (string) + * ETCD snapshot S3 region. */ region?: pulumi.Input; /** - * Disable ETCD skip ssl verify. Default: `false` (bool) + * Disable ETCD skip ssl verify. */ skipSslVerify?: pulumi.Input; } export interface ClusterV2RkeConfigEtcdSnapshotCreate { /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. */ generation: pulumi.Input; } export interface ClusterV2RkeConfigEtcdSnapshotRestore { /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. */ generation: pulumi.Input; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: pulumi.Input; /** - * ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + * ETCD restore RKE config (set to none, all, or kubernetesVersion). */ restoreRkeConfig?: pulumi.Input; } export interface ClusterV2RkeConfigLocalAuthEndpoint { /** - * CA certs for the authorized cluster endpoint (string) + * CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. */ caCerts?: pulumi.Input; /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. */ enabled?: pulumi.Input; /** - * FQDN for the authorized cluster endpoint (string) + * FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. */ fqdn?: pulumi.Input; } export interface ClusterV2RkeConfigMachinePool { /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. */ annotations?: pulumi.Input<{[key: string]: any}>; /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. */ cloudCredentialSecretName?: pulumi.Input; /** - * Machine pool control plane role? (bool) + * Machine pool control plane role? */ controlPlaneRole?: pulumi.Input; /** - * Machine Pool Drain Before Delete? (bool) + * Machine Pool Drain Before Delete? */ drainBeforeDelete?: pulumi.Input; /** - * Machine pool etcd role? (bool) + * Machine pool etcd role? */ etcdRole?: pulumi.Input; /** @@ -4996,59 +4919,59 @@ export interface ClusterV2RkeConfigMachinePool { */ hostnameLengthLimit?: pulumi.Input; /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. */ labels?: pulumi.Input<{[key: string]: any}>; /** - * Machine pool node config (list) + * Machine pool node config. */ machineConfig: pulumi.Input; /** - * Labels for Machine pool nodes (map) + * Labels for Machine pool nodes. */ machineLabels?: pulumi.Input<{[key: string]: any}>; /** - * Max unhealthy nodes for automated replacement to be allowed (string) + * Max unhealthy nodes for automated replacement to be allowed. */ maxUnhealthy?: pulumi.Input; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: pulumi.Input; /** - * Seconds a machine has to drain before deletion (int) + * Seconds a machine has to drain before deletion. */ nodeDrainTimeout?: pulumi.Input; /** - * Seconds a new node has to become active before it is replaced (int) + * Seconds a new node has to become active before it is replaced. */ nodeStartupTimeoutSeconds?: pulumi.Input; /** - * Machine pool paused? (bool) + * Machine pool paused? */ paused?: pulumi.Input; /** - * Machine pool quantity (int) + * Machine pool quantity. */ quantity?: pulumi.Input; /** - * Machine pool rolling update (List maxitems:1) + * Machine pool rolling update. */ rollingUpdate?: pulumi.Input; /** - * Machine pool taints (list) + * Machine pool taints. */ taints?: pulumi.Input[]>; /** - * Seconds an unhealthy node has to become active before it is replaced (int) + * Seconds an unhealthy node has to become active before it is replaced. */ unhealthyNodeTimeoutSeconds?: pulumi.Input; /** - * Range of unhealthy nodes for automated replacement to be allowed (string) + * Range of unhealthy nodes for automated replacement to be allowed. */ unhealthyRange?: pulumi.Input; /** - * Machine pool worker role? (bool) + * Machine pool worker role? */ workerRole?: pulumi.Input; } @@ -5062,231 +4985,359 @@ export interface ClusterV2RkeConfigMachinePoolDefault { export interface ClusterV2RkeConfigMachinePoolMachineConfig { /** - * Machine config kind (string) + * Api version of the machine_config. + */ + apiVersion?: pulumi.Input; + /** + * Machine config kind. */ kind: pulumi.Input; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: pulumi.Input; } export interface ClusterV2RkeConfigMachinePoolRollingUpdate { /** - * Rolling update max surge (string) + * Rolling update max surge. */ maxSurge?: pulumi.Input; /** - * Rolling update max unavailable (string) + * Rolling update max unavailable. */ maxUnavailable?: pulumi.Input; } export interface ClusterV2RkeConfigMachinePoolTaint { /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. */ effect?: pulumi.Input; /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. */ key: pulumi.Input; /** - * The taint value (string) + * The taint value. */ value: pulumi.Input; } export interface ClusterV2RkeConfigMachineSelectorConfig { /** - * Machine selector config. Must be in YAML format (string) + * Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) */ config?: pulumi.Input; /** - * Machine selector label (list maxitems:1) + * Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. */ machineLabelSelector?: pulumi.Input; } export interface ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { /** - * Machine selector label match expressions (list) + * Match expressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: pulumi.Input[]>; /** - * Machine selector label match labels (map) + * Machine selector label is a map of {key,value} pairs, the requirements are ANDed. */ matchLabels?: pulumi.Input<{[key: string]: any}>; } export interface ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. + */ + key?: pulumi.Input; + /** + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator?: pulumi.Input; + /** + * Values is a list of string values. + */ + values?: pulumi.Input[]>; +} + +export interface ClusterV2RkeConfigMachineSelectorFile { + /** + * File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + */ + fileSources?: pulumi.Input[]>; + /** + * Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + */ + machineLabelSelector?: pulumi.Input; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSource { + /** + * Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + */ + configmap?: pulumi.Input; + /** + * Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + */ + secret?: pulumi.Input; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + /** + * The numeric representation of the default file permissions for all files defined under the items. + */ + defaultPermissions?: pulumi.Input; + /** + * Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + */ + items?: pulumi.Input[]>; + /** + * The name of the cluster. + */ + name: pulumi.Input; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + /** + * If true, the file is ignored when determining whether the node should be drained before updating the node plan. + */ + dynamic?: pulumi.Input; + /** + * Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + */ + hash?: pulumi.Input; + /** + * Key is the name of the key of the item to retrieve. + */ + key: pulumi.Input; + /** + * Path is the absolute path to put the file in the target node. + */ + path: pulumi.Input; + /** + * Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + */ + permissions?: pulumi.Input; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSourceSecret { + /** + * The numeric representation of the default file permissions for all files defined under the items. + */ + defaultPermissions?: pulumi.Input; + /** + * Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + */ + items?: pulumi.Input[]>; + /** + * The name of the cluster. + */ + name: pulumi.Input; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + /** + * If true, the file is ignored when determining whether the node should be drained before updating the node plan. + */ + dynamic?: pulumi.Input; + /** + * Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + */ + hash?: pulumi.Input; + /** + * Key is the name of the key of the item to retrieve. + */ + key: pulumi.Input; + /** + * Path is the absolute path to put the file in the target node. + */ + path: pulumi.Input; + /** + * Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + */ + permissions?: pulumi.Input; +} + +export interface ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + /** + * Match expressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: pulumi.Input[]>; + /** + * Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + */ + matchLabels?: pulumi.Input<{[key: string]: any}>; +} + +export interface ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { + /** + * Key is the name of the key of the item to retrieve. */ key?: pulumi.Input; /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator?: pulumi.Input; /** - * Machine selector label match expressions values (List string) + * Values is a list of string values. */ values?: pulumi.Input[]>; } export interface ClusterV2RkeConfigRegistries { /** - * Cluster V2 docker registries config (list) + * Cluster V2 docker registries config. */ configs?: pulumi.Input[]>; /** - * Cluster V2 docker registries mirror (list) + * Cluster V2 docker registries mirror. */ mirrors?: pulumi.Input[]>; } export interface ClusterV2RkeConfigRegistriesConfig { /** - * Registry auth config secret name (string) + * Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. */ authConfigSecretName?: pulumi.Input; /** - * Registry CA bundle (string) + * Registry CA bundle. */ caBundle?: pulumi.Input; /** - * Registry hostname (string) + * Registry hostname. */ hostname: pulumi.Input; /** - * Registry insecure connectivity (bool) + * Registry insecure connectivity. */ insecure?: pulumi.Input; /** - * Registry TLS secret name. TLS is a pair of Cert/Key (string) + * Registry TLS secret name. TLS is a pair of Cert/Key. */ tlsSecretName?: pulumi.Input; } export interface ClusterV2RkeConfigRegistriesMirror { /** - * Registry mirror endpoints (List) + * Registry mirror endpoints. */ endpoints?: pulumi.Input[]>; /** - * Registry hostname (string) + * Registry hostname. */ hostname: pulumi.Input; /** - * Registry mirror rewrites (map) + * Registry mirror rewrites. */ rewrites?: pulumi.Input<{[key: string]: any}>; } export interface ClusterV2RkeConfigRotateCertificates { /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. */ generation: pulumi.Input; /** - * Service certificates to rotate with this generation (string) + * Service certificates to rotate with this generation. */ services?: pulumi.Input[]>; } export interface ClusterV2RkeConfigUpgradeStrategy { /** - * How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + * How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. */ controlPlaneConcurrency?: pulumi.Input; /** - * Controlplane nodes drain options (list maxitems:1) + * Controlplane nodes drain options. */ controlPlaneDrainOptions?: pulumi.Input; /** - * How many worker nodes should be upgrade at time. Percentages are also accepted (string) + * How many worker nodes should be upgraded at a time. Percentages are also accepted. */ workerConcurrency?: pulumi.Input; /** - * Worker nodes drain options (list maxitems:1) + * Worker nodes drain options. */ workerDrainOptions?: pulumi.Input; } export interface ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { /** - * Drain options delete empty dir data. Default `false` (bool) + * if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). */ deleteEmptyDirData?: pulumi.Input; /** - * Drain options disable eviction. Default `false` (bool) + * If `disableEviction` is set to true, force drain to use delete rather than evict. */ disableEviction?: pulumi.Input; /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. */ enabled?: pulumi.Input; /** - * Drain options force. Default `false` (bool) + * If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. */ force?: pulumi.Input; /** - * Drain options grace period (int) + * Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. */ gracePeriod?: pulumi.Input; /** - * Drain options ignore daemon sets. Default `true` (bool) + * If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. */ ignoreDaemonSets?: pulumi.Input; /** - * Drain options ignore errors. Default `false` (bool) + * If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. */ ignoreErrors?: pulumi.Input; /** - * Drain options skip wait for delete timeout seconds (int) + * Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. */ skipWaitForDeleteTimeoutSeconds?: pulumi.Input; /** - * Drain options timeout (int) + * Time to wait (in seconds) before giving up for one try. */ timeout?: pulumi.Input; } export interface ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { /** - * Drain options delete empty dir data. Default `false` (bool) + * if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). */ deleteEmptyDirData?: pulumi.Input; /** - * Drain options disable eviction. Default `false` (bool) + * If `disableEviction` is set to true, force drain to use delete rather than evict. */ disableEviction?: pulumi.Input; /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. */ enabled?: pulumi.Input; /** - * Drain options force. Default `false` (bool) + * If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. */ force?: pulumi.Input; /** - * Drain options grace period (int) + * Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. */ gracePeriod?: pulumi.Input; /** - * Drain options ignore daemon sets. Default `true` (bool) + * If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. */ ignoreDaemonSets?: pulumi.Input; /** - * Drain options ignore errors. Default `false` (bool) + * If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. */ ignoreErrors?: pulumi.Input; /** - * Drain options skip wait for delete timeout seconds (int) + * Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. */ skipWaitForDeleteTimeoutSeconds?: pulumi.Input; /** - * Drain options timeout (int) + * Time to wait (in seconds) before giving up for one try. */ timeout?: pulumi.Input; } @@ -6505,6 +6556,10 @@ export interface MachineConfigV2VsphereConfig { * vSphere folder for the docker VM. This folder must already exist in the datacenter (string) */ folder?: pulumi.Input; + /** + * Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + */ + gracefulShutdownTimeout?: pulumi.Input; /** * vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) */ @@ -7620,6 +7675,10 @@ export interface NodeTemplateVsphereConfig { * vSphere folder for the docker VM. This folder must already exist in the datacenter (string) */ folder?: pulumi.Input; + /** + * Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + */ + gracefulShutdownTimeout?: pulumi.Input; /** * vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) */ @@ -8216,29 +8275,6 @@ export interface RegistryRegistry { username?: pulumi.Input; } -export interface RoleTempalteRule { - /** - * Policy rule api groups (list) - */ - apiGroups?: pulumi.Input[]>; - /** - * Policy rule non resource urls (list) - */ - nonResourceUrls?: pulumi.Input[]>; - /** - * Policy rule resource names (list) - */ - resourceNames?: pulumi.Input[]>; - /** - * Policy rule resources (list) - */ - resources?: pulumi.Input[]>; - /** - * Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - */ - verbs?: pulumi.Input[]>; -} - export interface RoleTemplateRule { /** * Policy rule api groups (list) diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index a13fa66b1..0a56f02c6 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -581,89 +581,6 @@ export interface ClusterAlertRuleSystemServiceRule { condition?: string; } -export interface ClusterAlterGroupRecipient { - /** - * Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - */ - defaultRecipient?: boolean; - /** - * Recipient notifier ID (string) - */ - notifierId: string; - /** - * Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - */ - notifierType: string; - /** - * Recipient (string) - */ - recipient: string; -} - -export interface ClusterAlterRuleEventRule { - /** - * Event type - */ - eventType?: string; - /** - * Resource kind - */ - resourceKind: string; -} - -export interface ClusterAlterRuleMetricRule { - /** - * Metric rule comparison - */ - comparison?: string; - /** - * The cluster alert group description (string) - */ - description?: string; - /** - * Metric rule duration - */ - duration: string; - /** - * Metric rule expression - */ - expression: string; - /** - * Metric rule threshold value - */ - thresholdValue: number; -} - -export interface ClusterAlterRuleNodeRule { - /** - * Node rule condition - */ - condition?: string; - /** - * Node rule cpu threshold - */ - cpuThreshold?: number; - /** - * Node rule mem threshold - */ - memThreshold?: number; - /** - * Node ID - */ - nodeId?: string; - /** - * Node rule selector - */ - selector?: {[key: string]: any}; -} - -export interface ClusterAlterRuleSystemServiceRule { - /** - * System service rule condition - */ - condition?: string; -} - export interface ClusterClusterAgentDeploymentCustomization { /** * User defined tolerations to append to agent (list) @@ -925,7 +842,7 @@ export interface ClusterEksConfigV2 { */ imported?: boolean; /** - * The AWS kms key to use (string) + * The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) */ kmsKey?: string; /** @@ -2388,6 +2305,7 @@ export interface ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal { * (string) */ datacenters: string; + gracefulShutdownTimeout?: string; /** * (bool) */ @@ -4089,6 +4007,7 @@ export interface ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvi export interface ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { datacenters: string; + gracefulShutdownTimeout?: string; insecureFlag: boolean; password: string; port: string; @@ -4633,228 +4552,228 @@ export interface ClusterTemplateTemplateRevisionQuestion { export interface ClusterV2AgentEnvVar { /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: string; /** - * The taint value (string) + * The taint value. */ value: string; } export interface ClusterV2ClusterAgentDeploymentCustomization { /** - * User defined tolerations to append to agent (list) + * A list of tolerations to be appended to the default tolerations. */ appendTolerations?: outputs.ClusterV2ClusterAgentDeploymentCustomizationAppendToleration[]; /** - * User defined affinity to override default agent affinity (string) + * Override affinity overrides the global default affinity setting. */ overrideAffinity?: string; /** - * User defined resource requirements to set on the agent (list) + * Override resource requirements overrides the default value for requests and/or limits. */ overrideResourceRequirements?: outputs.ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement[]; } export interface ClusterV2ClusterAgentDeploymentCustomizationAppendToleration { /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. */ effect?: string; /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. */ key: string; /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator?: string; /** - * The number of seconds a pod will stay bound to a node with a matching taint (int) + * The number of seconds a pod will stay bound to a node with a matching taint. */ seconds: number; /** - * The taint value (string) + * The taint value. */ value?: string; } export interface ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement { /** - * The maximum CPU limit for agent (string) + * The maximum CPU limit for agent. */ cpuLimit?: string; /** - * The minimum CPU required for agent (string) + * The minimum CPU required for agent. */ cpuRequest?: string; /** - * The maximum memory limit for agent (string) + * The maximum memory limit for agent. */ memoryLimit?: string; /** - * The minimum memory required for agent (string) + * The minimum memory required for agent. */ memoryRequest?: string; } export interface ClusterV2ClusterRegistrationToken { /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. */ annotations: {[key: string]: any}; /** - * Cluster ID (string) + * Cluster ID. */ clusterId: string; /** - * Command to execute in a imported k8s cluster (string) + * Command to execute in an imported k8s cluster. */ command: string; /** - * (Computed) The ID of the resource (string) + * (Computed, string) The ID of the resource. */ id: string; /** - * Insecure command to execute in a imported k8s cluster (string) + * Insecure command to execute in an imported k8s cluster. */ insecureCommand: string; /** - * Insecure node command to execute in a imported k8s cluster (string) + * Insecure node command to execute in an imported k8s cluster. */ insecureNodeCommand: string; /** - * Insecure windows command to execute in a imported k8s cluster (string) + * Insecure windows command to execute in an imported k8s cluster. */ insecureWindowsNodeCommand: string; /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. */ labels: {[key: string]: any}; /** - * K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + * K8s manifest url to execute with `kubectl` to import an existing k8s cluster. */ manifestUrl: string; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: string; /** - * Node command to execute in linux nodes for custom k8s cluster (string) + * Node command to execute in Linux nodes for custom k8s cluster. */ nodeCommand: string; /** - * Token for cluster registration token object (string) + * Token for cluster registration token object. */ token: string; /** - * Node command to execute in windows nodes for custom k8s cluster (string) + * Node command to execute in Windows nodes for custom k8s cluster. */ windowsNodeCommand: string; } export interface ClusterV2FleetAgentDeploymentCustomization { /** - * User defined tolerations to append to agent (list) + * A list of tolerations to be appended to the default tolerations. */ appendTolerations?: outputs.ClusterV2FleetAgentDeploymentCustomizationAppendToleration[]; /** - * User defined affinity to override default agent affinity (string) + * Override affinity overrides the global default affinity setting. */ overrideAffinity?: string; /** - * User defined resource requirements to set on the agent (list) + * Override resource requirements overrides the default value for requests and/or limits. */ overrideResourceRequirements?: outputs.ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement[]; } export interface ClusterV2FleetAgentDeploymentCustomizationAppendToleration { /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. */ effect?: string; /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. */ key: string; /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator?: string; /** - * The number of seconds a pod will stay bound to a node with a matching taint (int) + * The number of seconds a pod will stay bound to a node with a matching taint. */ seconds: number; /** - * The taint value (string) + * The taint value. */ value?: string; } export interface ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement { /** - * The maximum CPU limit for agent (string) + * The maximum CPU limit for agent. */ cpuLimit?: string; /** - * The minimum CPU required for agent (string) + * The minimum CPU required for agent. */ cpuRequest?: string; /** - * The maximum memory limit for agent (string) + * The maximum memory limit for agent. */ memoryLimit?: string; /** - * The minimum memory required for agent (string) + * The minimum memory required for agent. */ memoryRequest?: string; } export interface ClusterV2LocalAuthEndpoint { /** - * CA certs for the authorized cluster endpoint (string) + * CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. */ caCerts?: string; /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. */ enabled?: boolean; /** - * FQDN for the authorized cluster endpoint (string) + * FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. */ fqdn?: string; } export interface ClusterV2RkeConfig { /** - * Cluster V2 additional manifest (string) + * The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. */ additionalManifest?: string; /** - * Cluster V2 chart values. Must be in YAML format (string) + * The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). */ chartValues?: string; /** - * Cluster V2 etcd (list maxitems:1) + * Etcd configures the behavior of the automatic etcd snapshot feature. */ etcd: outputs.ClusterV2RkeConfigEtcd; /** - * Cluster V2 etcd snapshot create (list maxitems:1) + * Cluster V2 etcd snapshot create. */ etcdSnapshotCreate?: outputs.ClusterV2RkeConfigEtcdSnapshotCreate; /** - * Cluster V2 etcd snapshot restore (list maxitems:1) + * Cluster V2 etcd snapshot restore. */ etcdSnapshotRestore?: outputs.ClusterV2RkeConfigEtcdSnapshotRestore; /** - * Cluster V2 local auth endpoint (list maxitems:1) + * Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). * * @deprecated Use rancher2_cluster_v2.local_auth_endpoint instead */ localAuthEndpoint?: outputs.ClusterV2RkeConfigLocalAuthEndpoint; /** - * Cluster V2 machine global config. Must be in YAML format (string) + * Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). */ machineGlobalConfig?: string; /** @@ -4862,133 +4781,137 @@ export interface ClusterV2RkeConfig { */ machinePoolDefaults: outputs.ClusterV2RkeConfigMachinePoolDefault[]; /** - * Cluster V2 machine pools (list) + * Cluster V2 machine pools. */ machinePools: outputs.ClusterV2RkeConfigMachinePool[]; /** - * Cluster V2 machine selector config (list) + * Machine selector config is the same as machineGlobalConfig except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machineSelectorConfig takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. */ machineSelectorConfigs: outputs.ClusterV2RkeConfigMachineSelectorConfig[]; /** - * Cluster V2 docker registries (list maxitems:1) + * Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + */ + machineSelectorFiles: outputs.ClusterV2RkeConfigMachineSelectorFile[]; + /** + * Docker registries from which the cluster pulls images. */ registries?: outputs.ClusterV2RkeConfigRegistries; /** - * Cluster V2 certificate rotation (list maxitems:1) + * Cluster V2 certificate rotation. */ rotateCertificates?: outputs.ClusterV2RkeConfigRotateCertificates; /** - * Cluster V2 upgrade strategy (list maxitems:1) + * Cluster upgrade strategy. */ upgradeStrategy?: outputs.ClusterV2RkeConfigUpgradeStrategy; } export interface ClusterV2RkeConfigEtcd { /** - * Disable ETCD snapshots. Default: `false` (bool) + * Disable ETCD snapshots. */ disableSnapshots?: boolean; /** - * Creation option for etcd service (list maxitems:1) + * Creation option for etcd service. */ s3Config?: outputs.ClusterV2RkeConfigEtcdS3Config; /** - * ETCD snapshot retention (int) + * ETCD snapshot retention. */ snapshotRetention?: number; /** - * ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`) (string) + * ETCD snapshot schedule cron (e.g `\"0 */5 * * *\"`). */ snapshotScheduleCron?: string; } export interface ClusterV2RkeConfigEtcdS3Config { /** - * Bucket name for S3 service (string) + * Bucket name for S3 service. */ bucket: string; /** - * ETCD snapshot S3 cloud credential name (string) + * ETCD snapshot S3 cloud credential name. */ cloudCredentialName?: string; /** - * ETCD snapshot S3 endpoint (string) + * ETCD snapshot S3 endpoint. */ endpoint: string; /** - * ETCD snapshot S3 endpoint CA (string) + * ETCD snapshot S3 endpoint CA. */ endpointCa?: string; /** - * ETCD snapshot S3 folder (string) + * ETCD snapshot S3 folder. */ folder?: string; /** - * ETCD snapshot S3 region (string) + * ETCD snapshot S3 region. */ region?: string; /** - * Disable ETCD skip ssl verify. Default: `false` (bool) + * Disable ETCD skip ssl verify. */ skipSslVerify?: boolean; } export interface ClusterV2RkeConfigEtcdSnapshotCreate { /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. */ generation: number; } export interface ClusterV2RkeConfigEtcdSnapshotRestore { /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. */ generation: number; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: string; /** - * ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + * ETCD restore RKE config (set to none, all, or kubernetesVersion). */ restoreRkeConfig?: string; } export interface ClusterV2RkeConfigLocalAuthEndpoint { /** - * CA certs for the authorized cluster endpoint (string) + * CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. */ caCerts?: string; /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. */ enabled?: boolean; /** - * FQDN for the authorized cluster endpoint (string) + * FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. */ fqdn?: string; } export interface ClusterV2RkeConfigMachinePool { /** - * Annotations for the Cluster V2 (map) + * Annotations for the Cluster. */ annotations: {[key: string]: any}; /** - * Cluster V2 cloud credential secret name (string) + * Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. */ cloudCredentialSecretName?: string; /** - * Machine pool control plane role? (bool) + * Machine pool control plane role? */ controlPlaneRole?: boolean; /** - * Machine Pool Drain Before Delete? (bool) + * Machine Pool Drain Before Delete? */ drainBeforeDelete?: boolean; /** - * Machine pool etcd role? (bool) + * Machine pool etcd role? */ etcdRole?: boolean; /** @@ -4996,59 +4919,59 @@ export interface ClusterV2RkeConfigMachinePool { */ hostnameLengthLimit?: number; /** - * Labels for the Cluster V2 (map) + * Labels for the Cluster. */ labels: {[key: string]: any}; /** - * Machine pool node config (list) + * Machine pool node config. */ machineConfig: outputs.ClusterV2RkeConfigMachinePoolMachineConfig; /** - * Labels for Machine pool nodes (map) + * Labels for Machine pool nodes. */ machineLabels: {[key: string]: any}; /** - * Max unhealthy nodes for automated replacement to be allowed (string) + * Max unhealthy nodes for automated replacement to be allowed. */ maxUnhealthy?: string; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: string; /** - * Seconds a machine has to drain before deletion (int) + * Seconds a machine has to drain before deletion. */ nodeDrainTimeout?: number; /** - * Seconds a new node has to become active before it is replaced (int) + * Seconds a new node has to become active before it is replaced. */ nodeStartupTimeoutSeconds?: number; /** - * Machine pool paused? (bool) + * Machine pool paused? */ paused?: boolean; /** - * Machine pool quantity (int) + * Machine pool quantity. */ quantity?: number; /** - * Machine pool rolling update (List maxitems:1) + * Machine pool rolling update. */ rollingUpdate?: outputs.ClusterV2RkeConfigMachinePoolRollingUpdate; /** - * Machine pool taints (list) + * Machine pool taints. */ taints?: outputs.ClusterV2RkeConfigMachinePoolTaint[]; /** - * Seconds an unhealthy node has to become active before it is replaced (int) + * Seconds an unhealthy node has to become active before it is replaced. */ unhealthyNodeTimeoutSeconds?: number; /** - * Range of unhealthy nodes for automated replacement to be allowed (string) + * Range of unhealthy nodes for automated replacement to be allowed. */ unhealthyRange?: string; /** - * Machine pool worker role? (bool) + * Machine pool worker role? */ workerRole?: boolean; } @@ -5062,231 +4985,359 @@ export interface ClusterV2RkeConfigMachinePoolDefault { export interface ClusterV2RkeConfigMachinePoolMachineConfig { /** - * Machine config kind (string) + * Api version of the machine_config. + */ + apiVersion?: string; + /** + * Machine config kind. */ kind: string; /** - * The name of the Cluster v2 (string) + * The name of the cluster. */ name: string; } export interface ClusterV2RkeConfigMachinePoolRollingUpdate { /** - * Rolling update max surge (string) + * Rolling update max surge. */ maxSurge?: string; /** - * Rolling update max unavailable (string) + * Rolling update max unavailable. */ maxUnavailable?: string; } export interface ClusterV2RkeConfigMachinePoolTaint { /** - * The taint effect. Default: `\"NoExecute\"` (string) + * The taint effect. Default: `\"NoExecute\"`. */ effect?: string; /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. */ key: string; /** - * The taint value (string) + * The taint value. */ value: string; } export interface ClusterV2RkeConfigMachineSelectorConfig { /** - * Machine selector config. Must be in YAML format (string) + * Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) */ config?: string; /** - * Machine selector label (list maxitems:1) + * Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. */ machineLabelSelector?: outputs.ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector; } export interface ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector { /** - * Machine selector label match expressions (list) + * Match expressions is a list of label selector requirements. The requirements are ANDed. */ matchExpressions?: outputs.ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression[]; /** - * Machine selector label match labels (map) + * Machine selector label is a map of {key,value} pairs, the requirements are ANDed. */ matchLabels?: {[key: string]: any}; } export interface ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression { /** - * Machine selector label match expressions key (string) + * Key is the name of the key of the item to retrieve. + */ + key?: string; + /** + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + */ + operator?: string; + /** + * Values is a list of string values. + */ + values?: string[]; +} + +export interface ClusterV2RkeConfigMachineSelectorFile { + /** + * File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + */ + fileSources?: outputs.ClusterV2RkeConfigMachineSelectorFileFileSource[]; + /** + * Machine selector label is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + */ + machineLabelSelector?: outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSource { + /** + * Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + */ + configmap?: outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap; + /** + * Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + */ + secret?: outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecret; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + /** + * The numeric representation of the default file permissions for all files defined under the items. + */ + defaultPermissions?: string; + /** + * Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + */ + items?: outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem[]; + /** + * The name of the cluster. + */ + name: string; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + /** + * If true, the file is ignored when determining whether the node should be drained before updating the node plan. + */ + dynamic?: boolean; + /** + * Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + */ + hash?: string; + /** + * Key is the name of the key of the item to retrieve. + */ + key: string; + /** + * Path is the absolute path to put the file in the target node. + */ + path: string; + /** + * Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + */ + permissions?: string; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSourceSecret { + /** + * The numeric representation of the default file permissions for all files defined under the items. + */ + defaultPermissions?: string; + /** + * Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + */ + items?: outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem[]; + /** + * The name of the cluster. + */ + name: string; +} + +export interface ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + /** + * If true, the file is ignored when determining whether the node should be drained before updating the node plan. + */ + dynamic?: boolean; + /** + * Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + */ + hash?: string; + /** + * Key is the name of the key of the item to retrieve. + */ + key: string; + /** + * Path is the absolute path to put the file in the target node. + */ + path: string; + /** + * Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + */ + permissions?: string; +} + +export interface ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + /** + * Match expressions is a list of label selector requirements. The requirements are ANDed. + */ + matchExpressions?: outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression[]; + /** + * Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + */ + matchLabels?: {[key: string]: any}; +} + +export interface ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { + /** + * Key is the name of the key of the item to retrieve. */ key?: string; /** - * Machine selector label match expressions operator (string) + * Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. */ operator?: string; /** - * Machine selector label match expressions values (List string) + * Values is a list of string values. */ values?: string[]; } export interface ClusterV2RkeConfigRegistries { /** - * Cluster V2 docker registries config (list) + * Cluster V2 docker registries config. */ configs?: outputs.ClusterV2RkeConfigRegistriesConfig[]; /** - * Cluster V2 docker registries mirror (list) + * Cluster V2 docker registries mirror. */ mirrors?: outputs.ClusterV2RkeConfigRegistriesMirror[]; } export interface ClusterV2RkeConfigRegistriesConfig { /** - * Registry auth config secret name (string) + * Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. */ authConfigSecretName?: string; /** - * Registry CA bundle (string) + * Registry CA bundle. */ caBundle?: string; /** - * Registry hostname (string) + * Registry hostname. */ hostname: string; /** - * Registry insecure connectivity (bool) + * Registry insecure connectivity. */ insecure?: boolean; /** - * Registry TLS secret name. TLS is a pair of Cert/Key (string) + * Registry TLS secret name. TLS is a pair of Cert/Key. */ tlsSecretName?: string; } export interface ClusterV2RkeConfigRegistriesMirror { /** - * Registry mirror endpoints (List) + * Registry mirror endpoints. */ endpoints?: string[]; /** - * Registry hostname (string) + * Registry hostname. */ hostname: string; /** - * Registry mirror rewrites (map) + * Registry mirror rewrites. */ rewrites?: {[key: string]: any}; } export interface ClusterV2RkeConfigRotateCertificates { /** - * ETCD snapshot desired generation (int) + * ETCD snapshot desired generation. */ generation: number; /** - * Service certificates to rotate with this generation (string) + * Service certificates to rotate with this generation. */ services?: string[]; } export interface ClusterV2RkeConfigUpgradeStrategy { /** - * How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + * How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. */ controlPlaneConcurrency?: string; /** - * Controlplane nodes drain options (list maxitems:1) + * Controlplane nodes drain options. */ controlPlaneDrainOptions?: outputs.ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions; /** - * How many worker nodes should be upgrade at time. Percentages are also accepted (string) + * How many worker nodes should be upgraded at a time. Percentages are also accepted. */ workerConcurrency?: string; /** - * Worker nodes drain options (list maxitems:1) + * Worker nodes drain options. */ workerDrainOptions?: outputs.ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions; } export interface ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions { /** - * Drain options delete empty dir data. Default `false` (bool) + * if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). */ deleteEmptyDirData?: boolean; /** - * Drain options disable eviction. Default `false` (bool) + * If `disableEviction` is set to true, force drain to use delete rather than evict. */ disableEviction?: boolean; /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. */ enabled?: boolean; /** - * Drain options force. Default `false` (bool) + * If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. */ force?: boolean; /** - * Drain options grace period (int) + * Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. */ gracePeriod: number; /** - * Drain options ignore daemon sets. Default `true` (bool) + * If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. */ ignoreDaemonSets?: boolean; /** - * Drain options ignore errors. Default `false` (bool) + * If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. */ ignoreErrors?: boolean; /** - * Drain options skip wait for delete timeout seconds (int) + * Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. */ skipWaitForDeleteTimeoutSeconds: number; /** - * Drain options timeout (int) + * Time to wait (in seconds) before giving up for one try. */ timeout: number; } export interface ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions { /** - * Drain options delete empty dir data. Default `false` (bool) + * if `deleteEmptyDirData` is set to true, continue draining even if there are pods using emptyDir (local storage). */ deleteEmptyDirData?: boolean; /** - * Drain options disable eviction. Default `false` (bool) + * If `disableEviction` is set to true, force drain to use delete rather than evict. */ disableEviction?: boolean; /** - * Drain options enabled? Default `true` (bool) + * If `enabled` is set to true, nodes will be drained before upgrade. */ enabled?: boolean; /** - * Drain options force. Default `false` (bool) + * If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. */ force?: boolean; /** - * Drain options grace period (int) + * Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. */ gracePeriod: number; /** - * Drain options ignore daemon sets. Default `true` (bool) + * If `ignoreDaemonSets` is set to false, drain will not proceed if there are DaemonSet-managed pods. */ ignoreDaemonSets?: boolean; /** - * Drain options ignore errors. Default `false` (bool) + * If `ignoreErrors` is set to true, errors that occurred between drain nodes in group are ignored. */ ignoreErrors?: boolean; /** - * Drain options skip wait for delete timeout seconds (int) + * Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. */ skipWaitForDeleteTimeoutSeconds: number; /** - * Drain options timeout (int) + * Time to wait (in seconds) before giving up for one try. */ timeout: number; } @@ -5709,7 +5760,7 @@ export interface GetClusterAlertGroupRecipient { recipient: string; } -export interface GetClusterAlterRuleEventRule { +export interface GetClusterAlertRuleEventRule { /** * Event type */ @@ -5720,7 +5771,7 @@ export interface GetClusterAlterRuleEventRule { resourceKind: string; } -export interface GetClusterAlterRuleMetricRule { +export interface GetClusterAlertRuleMetricRule { /** * Metric rule comparison */ @@ -5743,7 +5794,7 @@ export interface GetClusterAlterRuleMetricRule { thresholdValue: number; } -export interface GetClusterAlterRuleNodeRule { +export interface GetClusterAlertRuleNodeRule { /** * Node rule condition */ @@ -5766,7 +5817,7 @@ export interface GetClusterAlterRuleNodeRule { selector?: {[key: string]: any}; } -export interface GetClusterAlterRuleSystemServiceRule { +export interface GetClusterAlertRuleSystemServiceRule { /** * System service rule condition */ @@ -7032,6 +7083,7 @@ export interface GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk { export interface GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal { datacenters: string; + gracefulShutdownTimeout?: string; insecureFlag: boolean; password: string; port: string; @@ -7903,6 +7955,7 @@ export interface GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudPr export interface GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal { datacenters: string; + gracefulShutdownTimeout?: string; insecureFlag: boolean; password: string; port: string; @@ -8512,6 +8565,10 @@ export interface GetClusterV2RkeConfig { * Cluster V2 machine selector config */ machineSelectorConfigs: outputs.GetClusterV2RkeConfigMachineSelectorConfig[]; + /** + * Cluster V2 machine selector files + */ + machineSelectorFiles: outputs.GetClusterV2RkeConfigMachineSelectorFile[]; /** * Cluster V2 registries */ @@ -8695,6 +8752,10 @@ export interface GetClusterV2RkeConfigMachinePoolDefault { } export interface GetClusterV2RkeConfigMachinePoolMachineConfig { + /** + * Machine config API version + */ + apiVersion?: string; /** * Machine config kind */ @@ -8759,6 +8820,130 @@ export interface GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorM values?: string[]; } +export interface GetClusterV2RkeConfigMachineSelectorFile { + /** + * File sources + */ + fileSources?: outputs.GetClusterV2RkeConfigMachineSelectorFileFileSource[]; + /** + * Machine label selector + */ + machineLabelSelector?: outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector; +} + +export interface GetClusterV2RkeConfigMachineSelectorFileFileSource { + /** + * The configmap which is the source of files + */ + configmap?: outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap; + /** + * The secret which is the source of files + */ + secret?: outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret; +} + +export interface GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap { + /** + * The default permissions to be applied when they are not set at the item level + */ + defaultPermissions?: string; + /** + * Items(files) to retrieve from the K8s object + */ + items?: outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem[]; + /** + * The name of the Cluster v2 (string) + */ + name: string; +} + +export interface GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem { + /** + * If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + */ + dynamic?: boolean; + /** + * The base64 encoded value of the SHA256 checksum of the file's content + */ + hash?: string; + /** + * The key of the item(file) to retrieve + */ + key: string; + /** + * The path to put the file in the target node + */ + path: string; + /** + * The numeric representation of the file permissions + */ + permissions?: string; +} + +export interface GetClusterV2RkeConfigMachineSelectorFileFileSourceSecret { + /** + * The default permissions to be applied when they are not set at the item level + */ + defaultPermissions?: string; + /** + * Items(files) to retrieve from the K8s object + */ + items?: outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem[]; + /** + * The name of the Cluster v2 (string) + */ + name: string; +} + +export interface GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem { + /** + * If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + */ + dynamic?: boolean; + /** + * The base64 encoded value of the SHA256 checksum of the file's content + */ + hash?: string; + /** + * The key of the item(file) to retrieve + */ + key: string; + /** + * The path to put the file in the target node + */ + path: string; + /** + * The numeric representation of the file permissions + */ + permissions?: string; +} + +export interface GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelector { + /** + * Label selector match expressions + */ + matchExpressions?: outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression[]; + /** + * Label selector match labels + */ + matchLabels?: {[key: string]: any}; +} + +export interface GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression { + /** + * Label selector requirement key + */ + key?: string; + /** + * Label selector operator + */ + operator?: string; + /** + * Label selector requirement values + */ + values?: string[]; +} + export interface GetClusterV2RkeConfigRegistries { /** * Registry config @@ -9498,29 +9683,6 @@ export interface GetRegistryRegistry { username?: string; } -export interface GetRoleTempalteRule { - /** - * Policy rule api groups - */ - apiGroups?: string[]; - /** - * Policy rule non resource urls - */ - nonResourceUrls?: string[]; - /** - * Policy rule resource names - */ - resourceNames?: string[]; - /** - * Policy rule resources - */ - resources?: string[]; - /** - * Policy rule verbs - */ - verbs?: string[]; -} - export interface GetRoleTemplateRule { /** * Policy rule api groups @@ -10324,6 +10486,10 @@ export interface MachineConfigV2VsphereConfig { * vSphere folder for the docker VM. This folder must already exist in the datacenter (string) */ folder?: string; + /** + * Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + */ + gracefulShutdownTimeout?: string; /** * vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) */ @@ -11439,6 +11605,10 @@ export interface NodeTemplateVsphereConfig { * vSphere folder for the docker VM. This folder must already exist in the datacenter (string) */ folder?: string; + /** + * Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + */ + gracefulShutdownTimeout?: string; /** * vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) */ @@ -12035,29 +12205,6 @@ export interface RegistryRegistry { username?: string; } -export interface RoleTempalteRule { - /** - * Policy rule api groups (list) - */ - apiGroups?: string[]; - /** - * Policy rule non resource urls (list) - */ - nonResourceUrls?: string[]; - /** - * Policy rule resource names (list) - */ - resourceNames?: string[]; - /** - * Policy rule resources (list) - */ - resources?: string[]; - /** - * Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - */ - verbs?: string[]; -} - export interface RoleTemplateRule { /** * Policy rule api groups (list) diff --git a/sdk/python/README.md b/sdk/python/README.md index c8a862db5..07d4f9d3e 100644 --- a/sdk/python/README.md +++ b/sdk/python/README.md @@ -3,7 +3,7 @@ [![NPM version](https://badge.fury.io/js/%40pulumi%2Francher2.svg)](https://www.npmjs.com/package/@pulumi/rancher2) [![Python version](https://badge.fury.io/py/pulumi-rancher2.svg)](https://pypi.org/project/pulumi-rancher2) [![NuGet version](https://badge.fury.io/nu/pulumi.rancher2.svg)](https://badge.fury.io/nu/pulumi.rancher2) -[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-rancher2/sdk/v5/go)](https://pkg.go.dev/github.com/pulumi/pulumi-rancher2/sdk/v5/go) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-rancher2/sdk/v6/go)](https://pkg.go.dev/github.com/pulumi/pulumi-rancher2/sdk/v6/go) [![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](https://github.com/pulumi/pulumi-rancher2/blob/master/LICENSE) # Rancher2 Resource Provider diff --git a/sdk/python/pulumi_rancher2/__init__.py b/sdk/python/pulumi_rancher2/__init__.py index 46f675141..8f2af4b46 100644 --- a/sdk/python/pulumi_rancher2/__init__.py +++ b/sdk/python/pulumi_rancher2/__init__.py @@ -5,7 +5,6 @@ from . import _utilities import typing # Export this package's modules as members: -from .active_directory import * from .app import * from .app_v2 import * from .auth_config_active_directory import * @@ -25,8 +24,6 @@ from .cluster import * from .cluster_alert_group import * from .cluster_alert_rule import * -from .cluster_alter_group import * -from .cluster_alter_rule import * from .cluster_driver import * from .cluster_role_template_binding import * from .cluster_sync import * @@ -43,7 +40,7 @@ from .get_cloud_credential import * from .get_cluster import * from .get_cluster_alert_group import * -from .get_cluster_alter_rule import * +from .get_cluster_alert_rule import * from .get_cluster_driver import * from .get_cluster_role_template_binding import * from .get_cluster_template import * @@ -66,7 +63,6 @@ from .get_project_alert_rule import * from .get_project_role_template_binding import * from .get_registry import * -from .get_role_tempalte import * from .get_role_template import * from .get_secret import * from .get_secret_v2 import * @@ -91,7 +87,6 @@ from .project_role_template_binding import * from .provider import * from .registry import * -from .role_tempalte import * from .role_template import * from .secret import * from .secret_v2 import * @@ -112,14 +107,6 @@ _utilities.register( resource_modules=""" [ - { - "pkg": "rancher2", - "mod": "index/activeDirectory", - "fqn": "pulumi_rancher2", - "classes": { - "rancher2:index/activeDirectory:ActiveDirectory": "ActiveDirectory" - } - }, { "pkg": "rancher2", "mod": "index/app", @@ -272,22 +259,6 @@ "rancher2:index/clusterAlertRule:ClusterAlertRule": "ClusterAlertRule" } }, - { - "pkg": "rancher2", - "mod": "index/clusterAlterGroup", - "fqn": "pulumi_rancher2", - "classes": { - "rancher2:index/clusterAlterGroup:ClusterAlterGroup": "ClusterAlterGroup" - } - }, - { - "pkg": "rancher2", - "mod": "index/clusterAlterRule", - "fqn": "pulumi_rancher2", - "classes": { - "rancher2:index/clusterAlterRule:ClusterAlterRule": "ClusterAlterRule" - } - }, { "pkg": "rancher2", "mod": "index/clusterDriver", @@ -496,14 +467,6 @@ "rancher2:index/registry:Registry": "Registry" } }, - { - "pkg": "rancher2", - "mod": "index/roleTempalte", - "fqn": "pulumi_rancher2", - "classes": { - "rancher2:index/roleTempalte:RoleTempalte": "RoleTempalte" - } - }, { "pkg": "rancher2", "mod": "index/roleTemplate", diff --git a/sdk/python/pulumi_rancher2/_inputs.py b/sdk/python/pulumi_rancher2/_inputs.py index 972f2aaf1..7e6900069 100644 --- a/sdk/python/pulumi_rancher2/_inputs.py +++ b/sdk/python/pulumi_rancher2/_inputs.py @@ -28,11 +28,6 @@ 'ClusterAlertRuleMetricRuleArgs', 'ClusterAlertRuleNodeRuleArgs', 'ClusterAlertRuleSystemServiceRuleArgs', - 'ClusterAlterGroupRecipientArgs', - 'ClusterAlterRuleEventRuleArgs', - 'ClusterAlterRuleMetricRuleArgs', - 'ClusterAlterRuleNodeRuleArgs', - 'ClusterAlterRuleSystemServiceRuleArgs', 'ClusterClusterAgentDeploymentCustomizationArgs', 'ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs', 'ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs', @@ -218,6 +213,14 @@ 'ClusterV2RkeConfigMachineSelectorConfigArgs', 'ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs', 'ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs', + 'ClusterV2RkeConfigMachineSelectorFileArgs', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceArgs', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs', + 'ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs', + 'ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs', 'ClusterV2RkeConfigRegistriesArgs', 'ClusterV2RkeConfigRegistriesConfigArgs', 'ClusterV2RkeConfigRegistriesMirrorArgs', @@ -290,7 +293,6 @@ 'ProjectResourceQuotaNamespaceDefaultLimitArgs', 'ProjectResourceQuotaProjectLimitArgs', 'RegistryRegistryArgs', - 'RoleTempalteRuleArgs', 'RoleTemplateRuleArgs', 'GetNotifierDingtalkConfigArgs', 'GetNotifierMsteamsConfigArgs', @@ -2485,489 +2487,187 @@ def condition(self, value: Optional[pulumi.Input[str]]): @pulumi.input_type -class ClusterAlterGroupRecipientArgs: +class ClusterClusterAgentDeploymentCustomizationArgs: def __init__(__self__, *, - notifier_id: pulumi.Input[str], - default_recipient: Optional[pulumi.Input[bool]] = None, - notifier_type: Optional[pulumi.Input[str]] = None, - recipient: Optional[pulumi.Input[str]] = None): - """ - :param pulumi.Input[str] notifier_id: Recipient notifier ID (string) - :param pulumi.Input[bool] default_recipient: Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - :param pulumi.Input[str] notifier_type: Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - :param pulumi.Input[str] recipient: Recipient (string) - """ - pulumi.set(__self__, "notifier_id", notifier_id) - if default_recipient is not None: - pulumi.set(__self__, "default_recipient", default_recipient) - if notifier_type is not None: - pulumi.set(__self__, "notifier_type", notifier_type) - if recipient is not None: - pulumi.set(__self__, "recipient", recipient) - - @property - @pulumi.getter(name="notifierId") - def notifier_id(self) -> pulumi.Input[str]: - """ - Recipient notifier ID (string) - """ - return pulumi.get(self, "notifier_id") - - @notifier_id.setter - def notifier_id(self, value: pulumi.Input[str]): - pulumi.set(self, "notifier_id", value) - - @property - @pulumi.getter(name="defaultRecipient") - def default_recipient(self) -> Optional[pulumi.Input[bool]]: - """ - Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - """ - return pulumi.get(self, "default_recipient") - - @default_recipient.setter - def default_recipient(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "default_recipient", value) - - @property - @pulumi.getter(name="notifierType") - def notifier_type(self) -> Optional[pulumi.Input[str]]: + append_tolerations: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs']]]] = None, + override_affinity: Optional[pulumi.Input[str]] = None, + override_resource_requirements: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]] = None): """ - Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) + :param pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs']]] append_tolerations: User defined tolerations to append to agent (list) + :param pulumi.Input[str] override_affinity: User defined affinity to override default agent affinity (string) + :param pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]] override_resource_requirements: User defined resource requirements to set on the agent (list) """ - return pulumi.get(self, "notifier_type") - - @notifier_type.setter - def notifier_type(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "notifier_type", value) + if append_tolerations is not None: + pulumi.set(__self__, "append_tolerations", append_tolerations) + if override_affinity is not None: + pulumi.set(__self__, "override_affinity", override_affinity) + if override_resource_requirements is not None: + pulumi.set(__self__, "override_resource_requirements", override_resource_requirements) @property - @pulumi.getter - def recipient(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="appendTolerations") + def append_tolerations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs']]]]: """ - Recipient (string) + User defined tolerations to append to agent (list) """ - return pulumi.get(self, "recipient") - - @recipient.setter - def recipient(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "recipient", value) - + return pulumi.get(self, "append_tolerations") -@pulumi.input_type -class ClusterAlterRuleEventRuleArgs: - def __init__(__self__, *, - resource_kind: pulumi.Input[str], - event_type: Optional[pulumi.Input[str]] = None): - """ - :param pulumi.Input[str] resource_kind: Resource kind - :param pulumi.Input[str] event_type: Event type - """ - pulumi.set(__self__, "resource_kind", resource_kind) - if event_type is not None: - pulumi.set(__self__, "event_type", event_type) + @append_tolerations.setter + def append_tolerations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs']]]]): + pulumi.set(self, "append_tolerations", value) @property - @pulumi.getter(name="resourceKind") - def resource_kind(self) -> pulumi.Input[str]: + @pulumi.getter(name="overrideAffinity") + def override_affinity(self) -> Optional[pulumi.Input[str]]: """ - Resource kind + User defined affinity to override default agent affinity (string) """ - return pulumi.get(self, "resource_kind") + return pulumi.get(self, "override_affinity") - @resource_kind.setter - def resource_kind(self, value: pulumi.Input[str]): - pulumi.set(self, "resource_kind", value) + @override_affinity.setter + def override_affinity(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "override_affinity", value) @property - @pulumi.getter(name="eventType") - def event_type(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="overrideResourceRequirements") + def override_resource_requirements(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]]: """ - Event type + User defined resource requirements to set on the agent (list) """ - return pulumi.get(self, "event_type") + return pulumi.get(self, "override_resource_requirements") - @event_type.setter - def event_type(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "event_type", value) + @override_resource_requirements.setter + def override_resource_requirements(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]]): + pulumi.set(self, "override_resource_requirements", value) @pulumi.input_type -class ClusterAlterRuleMetricRuleArgs: +class ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs: def __init__(__self__, *, - duration: pulumi.Input[str], - expression: pulumi.Input[str], - threshold_value: pulumi.Input[float], - comparison: Optional[pulumi.Input[str]] = None, - description: Optional[pulumi.Input[str]] = None): + key: pulumi.Input[str], + effect: Optional[pulumi.Input[str]] = None, + operator: Optional[pulumi.Input[str]] = None, + seconds: Optional[pulumi.Input[int]] = None, + value: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] duration: Metric rule duration - :param pulumi.Input[str] expression: Metric rule expression - :param pulumi.Input[float] threshold_value: Metric rule threshold value - :param pulumi.Input[str] comparison: Metric rule comparison - :param pulumi.Input[str] description: The cluster alert group description (string) + :param pulumi.Input[str] key: The GKE taint key (string) + :param pulumi.Input[str] effect: The GKE taint effect (string) + :param pulumi.Input[str] operator: The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) + :param pulumi.Input[int] seconds: The toleration seconds (int) + :param pulumi.Input[str] value: The GKE taint value (string) """ - pulumi.set(__self__, "duration", duration) - pulumi.set(__self__, "expression", expression) - pulumi.set(__self__, "threshold_value", threshold_value) - if comparison is not None: - pulumi.set(__self__, "comparison", comparison) - if description is not None: - pulumi.set(__self__, "description", description) + pulumi.set(__self__, "key", key) + if effect is not None: + pulumi.set(__self__, "effect", effect) + if operator is not None: + pulumi.set(__self__, "operator", operator) + if seconds is not None: + pulumi.set(__self__, "seconds", seconds) + if value is not None: + pulumi.set(__self__, "value", value) @property @pulumi.getter - def duration(self) -> pulumi.Input[str]: + def key(self) -> pulumi.Input[str]: """ - Metric rule duration + The GKE taint key (string) """ - return pulumi.get(self, "duration") + return pulumi.get(self, "key") - @duration.setter - def duration(self, value: pulumi.Input[str]): - pulumi.set(self, "duration", value) + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) @property @pulumi.getter - def expression(self) -> pulumi.Input[str]: + def effect(self) -> Optional[pulumi.Input[str]]: """ - Metric rule expression + The GKE taint effect (string) """ - return pulumi.get(self, "expression") + return pulumi.get(self, "effect") - @expression.setter - def expression(self, value: pulumi.Input[str]): - pulumi.set(self, "expression", value) + @effect.setter + def effect(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "effect", value) @property - @pulumi.getter(name="thresholdValue") - def threshold_value(self) -> pulumi.Input[float]: + @pulumi.getter + def operator(self) -> Optional[pulumi.Input[str]]: """ - Metric rule threshold value + The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) """ - return pulumi.get(self, "threshold_value") + return pulumi.get(self, "operator") - @threshold_value.setter - def threshold_value(self, value: pulumi.Input[float]): - pulumi.set(self, "threshold_value", value) + @operator.setter + def operator(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "operator", value) @property @pulumi.getter - def comparison(self) -> Optional[pulumi.Input[str]]: + def seconds(self) -> Optional[pulumi.Input[int]]: """ - Metric rule comparison + The toleration seconds (int) """ - return pulumi.get(self, "comparison") + return pulumi.get(self, "seconds") - @comparison.setter - def comparison(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "comparison", value) + @seconds.setter + def seconds(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "seconds", value) @property @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: + def value(self) -> Optional[pulumi.Input[str]]: """ - The cluster alert group description (string) + The GKE taint value (string) """ - return pulumi.get(self, "description") + return pulumi.get(self, "value") - @description.setter - def description(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "description", value) + @value.setter + def value(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "value", value) @pulumi.input_type -class ClusterAlterRuleNodeRuleArgs: +class ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs: def __init__(__self__, *, - condition: Optional[pulumi.Input[str]] = None, - cpu_threshold: Optional[pulumi.Input[int]] = None, - mem_threshold: Optional[pulumi.Input[int]] = None, - node_id: Optional[pulumi.Input[str]] = None, - selector: Optional[pulumi.Input[Mapping[str, Any]]] = None): + cpu_limit: Optional[pulumi.Input[str]] = None, + cpu_request: Optional[pulumi.Input[str]] = None, + memory_limit: Optional[pulumi.Input[str]] = None, + memory_request: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] condition: Node rule condition - :param pulumi.Input[int] cpu_threshold: Node rule cpu threshold - :param pulumi.Input[int] mem_threshold: Node rule mem threshold - :param pulumi.Input[str] node_id: Node ID - :param pulumi.Input[Mapping[str, Any]] selector: Node rule selector + :param pulumi.Input[str] cpu_limit: The maximum CPU limit for agent (string) + :param pulumi.Input[str] cpu_request: The minimum CPU required for agent (string) + :param pulumi.Input[str] memory_limit: The maximum memory limit for agent (string) + :param pulumi.Input[str] memory_request: The minimum memory required for agent (string) """ - if condition is not None: - pulumi.set(__self__, "condition", condition) - if cpu_threshold is not None: - pulumi.set(__self__, "cpu_threshold", cpu_threshold) - if mem_threshold is not None: - pulumi.set(__self__, "mem_threshold", mem_threshold) - if node_id is not None: - pulumi.set(__self__, "node_id", node_id) - if selector is not None: - pulumi.set(__self__, "selector", selector) + if cpu_limit is not None: + pulumi.set(__self__, "cpu_limit", cpu_limit) + if cpu_request is not None: + pulumi.set(__self__, "cpu_request", cpu_request) + if memory_limit is not None: + pulumi.set(__self__, "memory_limit", memory_limit) + if memory_request is not None: + pulumi.set(__self__, "memory_request", memory_request) @property - @pulumi.getter - def condition(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="cpuLimit") + def cpu_limit(self) -> Optional[pulumi.Input[str]]: """ - Node rule condition + The maximum CPU limit for agent (string) """ - return pulumi.get(self, "condition") + return pulumi.get(self, "cpu_limit") - @condition.setter - def condition(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "condition", value) + @cpu_limit.setter + def cpu_limit(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "cpu_limit", value) @property - @pulumi.getter(name="cpuThreshold") - def cpu_threshold(self) -> Optional[pulumi.Input[int]]: + @pulumi.getter(name="cpuRequest") + def cpu_request(self) -> Optional[pulumi.Input[str]]: """ - Node rule cpu threshold + The minimum CPU required for agent (string) """ - return pulumi.get(self, "cpu_threshold") - - @cpu_threshold.setter - def cpu_threshold(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "cpu_threshold", value) - - @property - @pulumi.getter(name="memThreshold") - def mem_threshold(self) -> Optional[pulumi.Input[int]]: - """ - Node rule mem threshold - """ - return pulumi.get(self, "mem_threshold") - - @mem_threshold.setter - def mem_threshold(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "mem_threshold", value) - - @property - @pulumi.getter(name="nodeId") - def node_id(self) -> Optional[pulumi.Input[str]]: - """ - Node ID - """ - return pulumi.get(self, "node_id") - - @node_id.setter - def node_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "node_id", value) - - @property - @pulumi.getter - def selector(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Node rule selector - """ - return pulumi.get(self, "selector") - - @selector.setter - def selector(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "selector", value) - - -@pulumi.input_type -class ClusterAlterRuleSystemServiceRuleArgs: - def __init__(__self__, *, - condition: Optional[pulumi.Input[str]] = None): - """ - :param pulumi.Input[str] condition: System service rule condition - """ - if condition is not None: - pulumi.set(__self__, "condition", condition) - - @property - @pulumi.getter - def condition(self) -> Optional[pulumi.Input[str]]: - """ - System service rule condition - """ - return pulumi.get(self, "condition") - - @condition.setter - def condition(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "condition", value) - - -@pulumi.input_type -class ClusterClusterAgentDeploymentCustomizationArgs: - def __init__(__self__, *, - append_tolerations: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs']]]] = None, - override_affinity: Optional[pulumi.Input[str]] = None, - override_resource_requirements: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]] = None): - """ - :param pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs']]] append_tolerations: User defined tolerations to append to agent (list) - :param pulumi.Input[str] override_affinity: User defined affinity to override default agent affinity (string) - :param pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]] override_resource_requirements: User defined resource requirements to set on the agent (list) - """ - if append_tolerations is not None: - pulumi.set(__self__, "append_tolerations", append_tolerations) - if override_affinity is not None: - pulumi.set(__self__, "override_affinity", override_affinity) - if override_resource_requirements is not None: - pulumi.set(__self__, "override_resource_requirements", override_resource_requirements) - - @property - @pulumi.getter(name="appendTolerations") - def append_tolerations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs']]]]: - """ - User defined tolerations to append to agent (list) - """ - return pulumi.get(self, "append_tolerations") - - @append_tolerations.setter - def append_tolerations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs']]]]): - pulumi.set(self, "append_tolerations", value) - - @property - @pulumi.getter(name="overrideAffinity") - def override_affinity(self) -> Optional[pulumi.Input[str]]: - """ - User defined affinity to override default agent affinity (string) - """ - return pulumi.get(self, "override_affinity") - - @override_affinity.setter - def override_affinity(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "override_affinity", value) - - @property - @pulumi.getter(name="overrideResourceRequirements") - def override_resource_requirements(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]]: - """ - User defined resource requirements to set on the agent (list) - """ - return pulumi.get(self, "override_resource_requirements") - - @override_resource_requirements.setter - def override_resource_requirements(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]]): - pulumi.set(self, "override_resource_requirements", value) - - -@pulumi.input_type -class ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs: - def __init__(__self__, *, - key: pulumi.Input[str], - effect: Optional[pulumi.Input[str]] = None, - operator: Optional[pulumi.Input[str]] = None, - seconds: Optional[pulumi.Input[int]] = None, - value: Optional[pulumi.Input[str]] = None): - """ - :param pulumi.Input[str] key: The GKE taint key (string) - :param pulumi.Input[str] effect: The GKE taint effect (string) - :param pulumi.Input[str] operator: The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) - :param pulumi.Input[int] seconds: The toleration seconds (int) - :param pulumi.Input[str] value: The GKE taint value (string) - """ - pulumi.set(__self__, "key", key) - if effect is not None: - pulumi.set(__self__, "effect", effect) - if operator is not None: - pulumi.set(__self__, "operator", operator) - if seconds is not None: - pulumi.set(__self__, "seconds", seconds) - if value is not None: - pulumi.set(__self__, "value", value) - - @property - @pulumi.getter - def key(self) -> pulumi.Input[str]: - """ - The GKE taint key (string) - """ - return pulumi.get(self, "key") - - @key.setter - def key(self, value: pulumi.Input[str]): - pulumi.set(self, "key", value) - - @property - @pulumi.getter - def effect(self) -> Optional[pulumi.Input[str]]: - """ - The GKE taint effect (string) - """ - return pulumi.get(self, "effect") - - @effect.setter - def effect(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "effect", value) - - @property - @pulumi.getter - def operator(self) -> Optional[pulumi.Input[str]]: - """ - The toleration operator. `Equal`, and `Exists` are supported. Default: `Equal` (string) - """ - return pulumi.get(self, "operator") - - @operator.setter - def operator(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "operator", value) - - @property - @pulumi.getter - def seconds(self) -> Optional[pulumi.Input[int]]: - """ - The toleration seconds (int) - """ - return pulumi.get(self, "seconds") - - @seconds.setter - def seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "seconds", value) - - @property - @pulumi.getter - def value(self) -> Optional[pulumi.Input[str]]: - """ - The GKE taint value (string) - """ - return pulumi.get(self, "value") - - @value.setter - def value(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "value", value) - - -@pulumi.input_type -class ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs: - def __init__(__self__, *, - cpu_limit: Optional[pulumi.Input[str]] = None, - cpu_request: Optional[pulumi.Input[str]] = None, - memory_limit: Optional[pulumi.Input[str]] = None, - memory_request: Optional[pulumi.Input[str]] = None): - """ - :param pulumi.Input[str] cpu_limit: The maximum CPU limit for agent (string) - :param pulumi.Input[str] cpu_request: The minimum CPU required for agent (string) - :param pulumi.Input[str] memory_limit: The maximum memory limit for agent (string) - :param pulumi.Input[str] memory_request: The minimum memory required for agent (string) - """ - if cpu_limit is not None: - pulumi.set(__self__, "cpu_limit", cpu_limit) - if cpu_request is not None: - pulumi.set(__self__, "cpu_request", cpu_request) - if memory_limit is not None: - pulumi.set(__self__, "memory_limit", memory_limit) - if memory_request is not None: - pulumi.set(__self__, "memory_request", memory_request) - - @property - @pulumi.getter(name="cpuLimit") - def cpu_limit(self) -> Optional[pulumi.Input[str]]: - """ - The maximum CPU limit for agent (string) - """ - return pulumi.get(self, "cpu_limit") - - @cpu_limit.setter - def cpu_limit(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "cpu_limit", value) - - @property - @pulumi.getter(name="cpuRequest") - def cpu_request(self) -> Optional[pulumi.Input[str]]: - """ - The minimum CPU required for agent (string) - """ - return pulumi.get(self, "cpu_request") + return pulumi.get(self, "cpu_request") @cpu_request.setter def cpu_request(self, value: Optional[pulumi.Input[str]]): @@ -3761,7 +3461,7 @@ def __init__(__self__, *, """ :param pulumi.Input[str] cloud_credential_id: The EKS cloud_credential id (string) :param pulumi.Input[bool] imported: Is GKE cluster imported? Default: `false` (bool) - :param pulumi.Input[str] kms_key: The AWS kms key to use (string) + :param pulumi.Input[str] kms_key: The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) :param pulumi.Input[str] kubernetes_version: The Kubernetes version that will be used for your master *and* OKE worker nodes (string) :param pulumi.Input[Sequence[pulumi.Input[str]]] logging_types: The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) :param pulumi.Input[str] name: The name of the Cluster (string) @@ -3836,7 +3536,7 @@ def imported(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="kmsKey") def kms_key(self) -> Optional[pulumi.Input[str]]: """ - The AWS kms key to use (string) + The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) """ return pulumi.get(self, "kms_key") @@ -9355,6 +9055,7 @@ def scsi_controller_type(self, value: Optional[pulumi.Input[str]]): class ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs: def __init__(__self__, *, datacenters: Optional[pulumi.Input[str]] = None, + graceful_shutdown_timeout: Optional[pulumi.Input[str]] = None, insecure_flag: Optional[pulumi.Input[bool]] = None, password: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[str]] = None, @@ -9370,6 +9071,8 @@ def __init__(__self__, *, """ if datacenters is not None: pulumi.set(__self__, "datacenters", datacenters) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) if insecure_flag is not None: pulumi.set(__self__, "insecure_flag", insecure_flag) if password is not None: @@ -9393,6 +9096,15 @@ def datacenters(self) -> Optional[pulumi.Input[str]]: def datacenters(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "datacenters", value) + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "graceful_shutdown_timeout") + + @graceful_shutdown_timeout.setter + def graceful_shutdown_timeout(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "graceful_shutdown_timeout", value) + @property @pulumi.getter(name="insecureFlag") def insecure_flag(self) -> Optional[pulumi.Input[bool]]: @@ -16570,6 +16282,7 @@ def scsi_controller_type(self, value: Optional[pulumi.Input[str]]): class ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs: def __init__(__self__, *, datacenters: Optional[pulumi.Input[str]] = None, + graceful_shutdown_timeout: Optional[pulumi.Input[str]] = None, insecure_flag: Optional[pulumi.Input[bool]] = None, password: Optional[pulumi.Input[str]] = None, port: Optional[pulumi.Input[str]] = None, @@ -16577,6 +16290,8 @@ def __init__(__self__, *, user: Optional[pulumi.Input[str]] = None): if datacenters is not None: pulumi.set(__self__, "datacenters", datacenters) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) if insecure_flag is not None: pulumi.set(__self__, "insecure_flag", insecure_flag) if password is not None: @@ -16597,6 +16312,15 @@ def datacenters(self) -> Optional[pulumi.Input[str]]: def datacenters(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "datacenters", value) + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "graceful_shutdown_timeout") + + @graceful_shutdown_timeout.setter + def graceful_shutdown_timeout(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "graceful_shutdown_timeout", value) + @property @pulumi.getter(name="insecureFlag") def insecure_flag(self) -> Optional[pulumi.Input[bool]]: @@ -20430,8 +20154,8 @@ def __init__(__self__, *, name: pulumi.Input[str], value: pulumi.Input[str]): """ - :param pulumi.Input[str] name: The name of the Cluster v2 (string) - :param pulumi.Input[str] value: The taint value (string) + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[str] value: The taint value. """ pulumi.set(__self__, "name", name) pulumi.set(__self__, "value", value) @@ -20440,7 +20164,7 @@ def __init__(__self__, *, @pulumi.getter def name(self) -> pulumi.Input[str]: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -20452,7 +20176,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.getter def value(self) -> pulumi.Input[str]: """ - The taint value (string) + The taint value. """ return pulumi.get(self, "value") @@ -20468,9 +20192,9 @@ def __init__(__self__, *, override_affinity: Optional[pulumi.Input[str]] = None, override_resource_requirements: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs']]] append_tolerations: User defined tolerations to append to agent (list) - :param pulumi.Input[str] override_affinity: User defined affinity to override default agent affinity (string) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]] override_resource_requirements: User defined resource requirements to set on the agent (list) + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs']]] append_tolerations: A list of tolerations to be appended to the default tolerations. + :param pulumi.Input[str] override_affinity: Override affinity overrides the global default affinity setting. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]] override_resource_requirements: Override resource requirements overrides the default value for requests and/or limits. """ if append_tolerations is not None: pulumi.set(__self__, "append_tolerations", append_tolerations) @@ -20483,7 +20207,7 @@ def __init__(__self__, *, @pulumi.getter(name="appendTolerations") def append_tolerations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs']]]]: """ - User defined tolerations to append to agent (list) + A list of tolerations to be appended to the default tolerations. """ return pulumi.get(self, "append_tolerations") @@ -20495,7 +20219,7 @@ def append_tolerations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[ @pulumi.getter(name="overrideAffinity") def override_affinity(self) -> Optional[pulumi.Input[str]]: """ - User defined affinity to override default agent affinity (string) + Override affinity overrides the global default affinity setting. """ return pulumi.get(self, "override_affinity") @@ -20507,7 +20231,7 @@ def override_affinity(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="overrideResourceRequirements") def override_resource_requirements(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]]: """ - User defined resource requirements to set on the agent (list) + Override resource requirements overrides the default value for requests and/or limits. """ return pulumi.get(self, "override_resource_requirements") @@ -20525,11 +20249,11 @@ def __init__(__self__, *, seconds: Optional[pulumi.Input[int]] = None, value: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] key: Machine selector label match expressions key (string) - :param pulumi.Input[str] effect: The taint effect. Default: `\\"NoExecute\\"` (string) - :param pulumi.Input[str] operator: Machine selector label match expressions operator (string) - :param pulumi.Input[int] seconds: The number of seconds a pod will stay bound to a node with a matching taint (int) - :param pulumi.Input[str] value: The taint value (string) + :param pulumi.Input[str] key: Key is the name of the key of the item to retrieve. + :param pulumi.Input[str] effect: The taint effect. Default: `\\"NoExecute\\"`. + :param pulumi.Input[str] operator: Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + :param pulumi.Input[int] seconds: The number of seconds a pod will stay bound to a node with a matching taint. + :param pulumi.Input[str] value: The taint value. """ pulumi.set(__self__, "key", key) if effect is not None: @@ -20545,7 +20269,7 @@ def __init__(__self__, *, @pulumi.getter def key(self) -> pulumi.Input[str]: """ - Machine selector label match expressions key (string) + Key is the name of the key of the item to retrieve. """ return pulumi.get(self, "key") @@ -20557,7 +20281,7 @@ def key(self, value: pulumi.Input[str]): @pulumi.getter def effect(self) -> Optional[pulumi.Input[str]]: """ - The taint effect. Default: `\\"NoExecute\\"` (string) + The taint effect. Default: `\\"NoExecute\\"`. """ return pulumi.get(self, "effect") @@ -20569,7 +20293,7 @@ def effect(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def operator(self) -> Optional[pulumi.Input[str]]: """ - Machine selector label match expressions operator (string) + Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. """ return pulumi.get(self, "operator") @@ -20581,7 +20305,7 @@ def operator(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def seconds(self) -> Optional[pulumi.Input[int]]: """ - The number of seconds a pod will stay bound to a node with a matching taint (int) + The number of seconds a pod will stay bound to a node with a matching taint. """ return pulumi.get(self, "seconds") @@ -20593,7 +20317,7 @@ def seconds(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def value(self) -> Optional[pulumi.Input[str]]: """ - The taint value (string) + The taint value. """ return pulumi.get(self, "value") @@ -20610,10 +20334,10 @@ def __init__(__self__, *, memory_limit: Optional[pulumi.Input[str]] = None, memory_request: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] cpu_limit: The maximum CPU limit for agent (string) - :param pulumi.Input[str] cpu_request: The minimum CPU required for agent (string) - :param pulumi.Input[str] memory_limit: The maximum memory limit for agent (string) - :param pulumi.Input[str] memory_request: The minimum memory required for agent (string) + :param pulumi.Input[str] cpu_limit: The maximum CPU limit for agent. + :param pulumi.Input[str] cpu_request: The minimum CPU required for agent. + :param pulumi.Input[str] memory_limit: The maximum memory limit for agent. + :param pulumi.Input[str] memory_request: The minimum memory required for agent. """ if cpu_limit is not None: pulumi.set(__self__, "cpu_limit", cpu_limit) @@ -20628,7 +20352,7 @@ def __init__(__self__, *, @pulumi.getter(name="cpuLimit") def cpu_limit(self) -> Optional[pulumi.Input[str]]: """ - The maximum CPU limit for agent (string) + The maximum CPU limit for agent. """ return pulumi.get(self, "cpu_limit") @@ -20640,7 +20364,7 @@ def cpu_limit(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="cpuRequest") def cpu_request(self) -> Optional[pulumi.Input[str]]: """ - The minimum CPU required for agent (string) + The minimum CPU required for agent. """ return pulumi.get(self, "cpu_request") @@ -20652,7 +20376,7 @@ def cpu_request(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="memoryLimit") def memory_limit(self) -> Optional[pulumi.Input[str]]: """ - The maximum memory limit for agent (string) + The maximum memory limit for agent. """ return pulumi.get(self, "memory_limit") @@ -20664,7 +20388,7 @@ def memory_limit(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="memoryRequest") def memory_request(self) -> Optional[pulumi.Input[str]]: """ - The minimum memory required for agent (string) + The minimum memory required for agent. """ return pulumi.get(self, "memory_request") @@ -20690,19 +20414,19 @@ def __init__(__self__, *, token: Optional[pulumi.Input[str]] = None, windows_node_command: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster V2 (map) - :param pulumi.Input[str] cluster_id: Cluster ID (string) - :param pulumi.Input[str] command: Command to execute in a imported k8s cluster (string) - :param pulumi.Input[str] id: (Computed) The ID of the resource (string) - :param pulumi.Input[str] insecure_command: Insecure command to execute in a imported k8s cluster (string) - :param pulumi.Input[str] insecure_node_command: Insecure node command to execute in a imported k8s cluster (string) - :param pulumi.Input[str] insecure_windows_node_command: Insecure windows command to execute in a imported k8s cluster (string) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster V2 (map) - :param pulumi.Input[str] manifest_url: K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) - :param pulumi.Input[str] name: The name of the Cluster v2 (string) - :param pulumi.Input[str] node_command: Node command to execute in linux nodes for custom k8s cluster (string) - :param pulumi.Input[str] token: Token for cluster registration token object (string) - :param pulumi.Input[str] windows_node_command: Node command to execute in windows nodes for custom k8s cluster (string) + :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster. + :param pulumi.Input[str] cluster_id: Cluster ID. + :param pulumi.Input[str] command: Command to execute in an imported k8s cluster. + :param pulumi.Input[str] id: (Computed, string) The ID of the resource. + :param pulumi.Input[str] insecure_command: Insecure command to execute in an imported k8s cluster. + :param pulumi.Input[str] insecure_node_command: Insecure node command to execute in an imported k8s cluster. + :param pulumi.Input[str] insecure_windows_node_command: Insecure windows command to execute in an imported k8s cluster. + :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster. + :param pulumi.Input[str] manifest_url: K8s manifest url to execute with `kubectl` to import an existing k8s cluster. + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[str] node_command: Node command to execute in Linux nodes for custom k8s cluster. + :param pulumi.Input[str] token: Token for cluster registration token object. + :param pulumi.Input[str] windows_node_command: Node command to execute in Windows nodes for custom k8s cluster. """ if annotations is not None: pulumi.set(__self__, "annotations", annotations) @@ -20735,7 +20459,7 @@ def __init__(__self__, *, @pulumi.getter def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - Annotations for the Cluster V2 (map) + Annotations for the Cluster. """ return pulumi.get(self, "annotations") @@ -20747,7 +20471,7 @@ def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.getter(name="clusterId") def cluster_id(self) -> Optional[pulumi.Input[str]]: """ - Cluster ID (string) + Cluster ID. """ return pulumi.get(self, "cluster_id") @@ -20759,7 +20483,7 @@ def cluster_id(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def command(self) -> Optional[pulumi.Input[str]]: """ - Command to execute in a imported k8s cluster (string) + Command to execute in an imported k8s cluster. """ return pulumi.get(self, "command") @@ -20771,7 +20495,7 @@ def command(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def id(self) -> Optional[pulumi.Input[str]]: """ - (Computed) The ID of the resource (string) + (Computed, string) The ID of the resource. """ return pulumi.get(self, "id") @@ -20783,7 +20507,7 @@ def id(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="insecureCommand") def insecure_command(self) -> Optional[pulumi.Input[str]]: """ - Insecure command to execute in a imported k8s cluster (string) + Insecure command to execute in an imported k8s cluster. """ return pulumi.get(self, "insecure_command") @@ -20795,7 +20519,7 @@ def insecure_command(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="insecureNodeCommand") def insecure_node_command(self) -> Optional[pulumi.Input[str]]: """ - Insecure node command to execute in a imported k8s cluster (string) + Insecure node command to execute in an imported k8s cluster. """ return pulumi.get(self, "insecure_node_command") @@ -20807,7 +20531,7 @@ def insecure_node_command(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="insecureWindowsNodeCommand") def insecure_windows_node_command(self) -> Optional[pulumi.Input[str]]: """ - Insecure windows command to execute in a imported k8s cluster (string) + Insecure windows command to execute in an imported k8s cluster. """ return pulumi.get(self, "insecure_windows_node_command") @@ -20819,7 +20543,7 @@ def insecure_windows_node_command(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - Labels for the Cluster V2 (map) + Labels for the Cluster. """ return pulumi.get(self, "labels") @@ -20831,7 +20555,7 @@ def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.getter(name="manifestUrl") def manifest_url(self) -> Optional[pulumi.Input[str]]: """ - K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + K8s manifest url to execute with `kubectl` to import an existing k8s cluster. """ return pulumi.get(self, "manifest_url") @@ -20843,7 +20567,7 @@ def manifest_url(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -20855,7 +20579,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="nodeCommand") def node_command(self) -> Optional[pulumi.Input[str]]: """ - Node command to execute in linux nodes for custom k8s cluster (string) + Node command to execute in Linux nodes for custom k8s cluster. """ return pulumi.get(self, "node_command") @@ -20867,7 +20591,7 @@ def node_command(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def token(self) -> Optional[pulumi.Input[str]]: """ - Token for cluster registration token object (string) + Token for cluster registration token object. """ return pulumi.get(self, "token") @@ -20879,7 +20603,7 @@ def token(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="windowsNodeCommand") def windows_node_command(self) -> Optional[pulumi.Input[str]]: """ - Node command to execute in windows nodes for custom k8s cluster (string) + Node command to execute in Windows nodes for custom k8s cluster. """ return pulumi.get(self, "windows_node_command") @@ -20895,9 +20619,9 @@ def __init__(__self__, *, override_affinity: Optional[pulumi.Input[str]] = None, override_resource_requirements: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs']]] append_tolerations: User defined tolerations to append to agent (list) - :param pulumi.Input[str] override_affinity: User defined affinity to override default agent affinity (string) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs']]] override_resource_requirements: User defined resource requirements to set on the agent (list) + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs']]] append_tolerations: A list of tolerations to be appended to the default tolerations. + :param pulumi.Input[str] override_affinity: Override affinity overrides the global default affinity setting. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs']]] override_resource_requirements: Override resource requirements overrides the default value for requests and/or limits. """ if append_tolerations is not None: pulumi.set(__self__, "append_tolerations", append_tolerations) @@ -20910,7 +20634,7 @@ def __init__(__self__, *, @pulumi.getter(name="appendTolerations") def append_tolerations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs']]]]: """ - User defined tolerations to append to agent (list) + A list of tolerations to be appended to the default tolerations. """ return pulumi.get(self, "append_tolerations") @@ -20922,7 +20646,7 @@ def append_tolerations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[ @pulumi.getter(name="overrideAffinity") def override_affinity(self) -> Optional[pulumi.Input[str]]: """ - User defined affinity to override default agent affinity (string) + Override affinity overrides the global default affinity setting. """ return pulumi.get(self, "override_affinity") @@ -20934,7 +20658,7 @@ def override_affinity(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="overrideResourceRequirements") def override_resource_requirements(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs']]]]: """ - User defined resource requirements to set on the agent (list) + Override resource requirements overrides the default value for requests and/or limits. """ return pulumi.get(self, "override_resource_requirements") @@ -20952,11 +20676,11 @@ def __init__(__self__, *, seconds: Optional[pulumi.Input[int]] = None, value: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] key: Machine selector label match expressions key (string) - :param pulumi.Input[str] effect: The taint effect. Default: `\\"NoExecute\\"` (string) - :param pulumi.Input[str] operator: Machine selector label match expressions operator (string) - :param pulumi.Input[int] seconds: The number of seconds a pod will stay bound to a node with a matching taint (int) - :param pulumi.Input[str] value: The taint value (string) + :param pulumi.Input[str] key: Key is the name of the key of the item to retrieve. + :param pulumi.Input[str] effect: The taint effect. Default: `\\"NoExecute\\"`. + :param pulumi.Input[str] operator: Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + :param pulumi.Input[int] seconds: The number of seconds a pod will stay bound to a node with a matching taint. + :param pulumi.Input[str] value: The taint value. """ pulumi.set(__self__, "key", key) if effect is not None: @@ -20972,7 +20696,7 @@ def __init__(__self__, *, @pulumi.getter def key(self) -> pulumi.Input[str]: """ - Machine selector label match expressions key (string) + Key is the name of the key of the item to retrieve. """ return pulumi.get(self, "key") @@ -20984,7 +20708,7 @@ def key(self, value: pulumi.Input[str]): @pulumi.getter def effect(self) -> Optional[pulumi.Input[str]]: """ - The taint effect. Default: `\\"NoExecute\\"` (string) + The taint effect. Default: `\\"NoExecute\\"`. """ return pulumi.get(self, "effect") @@ -20996,7 +20720,7 @@ def effect(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def operator(self) -> Optional[pulumi.Input[str]]: """ - Machine selector label match expressions operator (string) + Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. """ return pulumi.get(self, "operator") @@ -21008,7 +20732,7 @@ def operator(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def seconds(self) -> Optional[pulumi.Input[int]]: """ - The number of seconds a pod will stay bound to a node with a matching taint (int) + The number of seconds a pod will stay bound to a node with a matching taint. """ return pulumi.get(self, "seconds") @@ -21020,7 +20744,7 @@ def seconds(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def value(self) -> Optional[pulumi.Input[str]]: """ - The taint value (string) + The taint value. """ return pulumi.get(self, "value") @@ -21037,10 +20761,10 @@ def __init__(__self__, *, memory_limit: Optional[pulumi.Input[str]] = None, memory_request: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] cpu_limit: The maximum CPU limit for agent (string) - :param pulumi.Input[str] cpu_request: The minimum CPU required for agent (string) - :param pulumi.Input[str] memory_limit: The maximum memory limit for agent (string) - :param pulumi.Input[str] memory_request: The minimum memory required for agent (string) + :param pulumi.Input[str] cpu_limit: The maximum CPU limit for agent. + :param pulumi.Input[str] cpu_request: The minimum CPU required for agent. + :param pulumi.Input[str] memory_limit: The maximum memory limit for agent. + :param pulumi.Input[str] memory_request: The minimum memory required for agent. """ if cpu_limit is not None: pulumi.set(__self__, "cpu_limit", cpu_limit) @@ -21055,7 +20779,7 @@ def __init__(__self__, *, @pulumi.getter(name="cpuLimit") def cpu_limit(self) -> Optional[pulumi.Input[str]]: """ - The maximum CPU limit for agent (string) + The maximum CPU limit for agent. """ return pulumi.get(self, "cpu_limit") @@ -21067,7 +20791,7 @@ def cpu_limit(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="cpuRequest") def cpu_request(self) -> Optional[pulumi.Input[str]]: """ - The minimum CPU required for agent (string) + The minimum CPU required for agent. """ return pulumi.get(self, "cpu_request") @@ -21079,7 +20803,7 @@ def cpu_request(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="memoryLimit") def memory_limit(self) -> Optional[pulumi.Input[str]]: """ - The maximum memory limit for agent (string) + The maximum memory limit for agent. """ return pulumi.get(self, "memory_limit") @@ -21091,7 +20815,7 @@ def memory_limit(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="memoryRequest") def memory_request(self) -> Optional[pulumi.Input[str]]: """ - The minimum memory required for agent (string) + The minimum memory required for agent. """ return pulumi.get(self, "memory_request") @@ -21107,9 +20831,9 @@ def __init__(__self__, *, enabled: Optional[pulumi.Input[bool]] = None, fqdn: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] ca_certs: CA certs for the authorized cluster endpoint (string) - :param pulumi.Input[bool] enabled: Drain options enabled? Default `true` (bool) - :param pulumi.Input[str] fqdn: FQDN for the authorized cluster endpoint (string) + :param pulumi.Input[str] ca_certs: CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. + :param pulumi.Input[bool] enabled: If `enabled` is set to true, nodes will be drained before upgrade. + :param pulumi.Input[str] fqdn: FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. """ if ca_certs is not None: pulumi.set(__self__, "ca_certs", ca_certs) @@ -21122,7 +20846,7 @@ def __init__(__self__, *, @pulumi.getter(name="caCerts") def ca_certs(self) -> Optional[pulumi.Input[str]]: """ - CA certs for the authorized cluster endpoint (string) + CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. """ return pulumi.get(self, "ca_certs") @@ -21134,7 +20858,7 @@ def ca_certs(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def enabled(self) -> Optional[pulumi.Input[bool]]: """ - Drain options enabled? Default `true` (bool) + If `enabled` is set to true, nodes will be drained before upgrade. """ return pulumi.get(self, "enabled") @@ -21146,7 +20870,7 @@ def enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def fqdn(self) -> Optional[pulumi.Input[str]]: """ - FQDN for the authorized cluster endpoint (string) + FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. """ return pulumi.get(self, "fqdn") @@ -21168,23 +20892,25 @@ def __init__(__self__, *, machine_pool_defaults: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolDefaultArgs']]]] = None, machine_pools: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolArgs']]]] = None, machine_selector_configs: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigArgs']]]] = None, + machine_selector_files: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileArgs']]]] = None, registries: Optional[pulumi.Input['ClusterV2RkeConfigRegistriesArgs']] = None, rotate_certificates: Optional[pulumi.Input['ClusterV2RkeConfigRotateCertificatesArgs']] = None, upgrade_strategy: Optional[pulumi.Input['ClusterV2RkeConfigUpgradeStrategyArgs']] = None): """ - :param pulumi.Input[str] additional_manifest: Cluster V2 additional manifest (string) - :param pulumi.Input[str] chart_values: Cluster V2 chart values. Must be in YAML format (string) - :param pulumi.Input['ClusterV2RkeConfigEtcdArgs'] etcd: Cluster V2 etcd (list maxitems:1) - :param pulumi.Input['ClusterV2RkeConfigEtcdSnapshotCreateArgs'] etcd_snapshot_create: Cluster V2 etcd snapshot create (list maxitems:1) - :param pulumi.Input['ClusterV2RkeConfigEtcdSnapshotRestoreArgs'] etcd_snapshot_restore: Cluster V2 etcd snapshot restore (list maxitems:1) - :param pulumi.Input['ClusterV2RkeConfigLocalAuthEndpointArgs'] local_auth_endpoint: Cluster V2 local auth endpoint (list maxitems:1) - :param pulumi.Input[str] machine_global_config: Cluster V2 machine global config. Must be in YAML format (string) + :param pulumi.Input[str] additional_manifest: The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. + :param pulumi.Input[str] chart_values: The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). + :param pulumi.Input['ClusterV2RkeConfigEtcdArgs'] etcd: Etcd configures the behavior of the automatic etcd snapshot feature. + :param pulumi.Input['ClusterV2RkeConfigEtcdSnapshotCreateArgs'] etcd_snapshot_create: Cluster V2 etcd snapshot create. + :param pulumi.Input['ClusterV2RkeConfigEtcdSnapshotRestoreArgs'] etcd_snapshot_restore: Cluster V2 etcd snapshot restore. + :param pulumi.Input['ClusterV2RkeConfigLocalAuthEndpointArgs'] local_auth_endpoint: Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). + :param pulumi.Input[str] machine_global_config: Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolDefaultArgs']]] machine_pool_defaults: Default values for machine pool configurations if unset - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolArgs']]] machine_pools: Cluster V2 machine pools (list) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigArgs']]] machine_selector_configs: Cluster V2 machine selector config (list) - :param pulumi.Input['ClusterV2RkeConfigRegistriesArgs'] registries: Cluster V2 docker registries (list maxitems:1) - :param pulumi.Input['ClusterV2RkeConfigRotateCertificatesArgs'] rotate_certificates: Cluster V2 certificate rotation (list maxitems:1) - :param pulumi.Input['ClusterV2RkeConfigUpgradeStrategyArgs'] upgrade_strategy: Cluster V2 upgrade strategy (list maxitems:1) + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolArgs']]] machine_pools: Cluster V2 machine pools. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigArgs']]] machine_selector_configs: Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileArgs']]] machine_selector_files: Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + :param pulumi.Input['ClusterV2RkeConfigRegistriesArgs'] registries: Docker registries from which the cluster pulls images. + :param pulumi.Input['ClusterV2RkeConfigRotateCertificatesArgs'] rotate_certificates: Cluster V2 certificate rotation. + :param pulumi.Input['ClusterV2RkeConfigUpgradeStrategyArgs'] upgrade_strategy: Cluster upgrade strategy. """ if additional_manifest is not None: pulumi.set(__self__, "additional_manifest", additional_manifest) @@ -21209,6 +20935,8 @@ def __init__(__self__, *, pulumi.set(__self__, "machine_pools", machine_pools) if machine_selector_configs is not None: pulumi.set(__self__, "machine_selector_configs", machine_selector_configs) + if machine_selector_files is not None: + pulumi.set(__self__, "machine_selector_files", machine_selector_files) if registries is not None: pulumi.set(__self__, "registries", registries) if rotate_certificates is not None: @@ -21220,7 +20948,7 @@ def __init__(__self__, *, @pulumi.getter(name="additionalManifest") def additional_manifest(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 additional manifest (string) + The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. """ return pulumi.get(self, "additional_manifest") @@ -21232,7 +20960,7 @@ def additional_manifest(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="chartValues") def chart_values(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 chart values. Must be in YAML format (string) + The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). """ return pulumi.get(self, "chart_values") @@ -21244,7 +20972,7 @@ def chart_values(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def etcd(self) -> Optional[pulumi.Input['ClusterV2RkeConfigEtcdArgs']]: """ - Cluster V2 etcd (list maxitems:1) + Etcd configures the behavior of the automatic etcd snapshot feature. """ return pulumi.get(self, "etcd") @@ -21256,7 +20984,7 @@ def etcd(self, value: Optional[pulumi.Input['ClusterV2RkeConfigEtcdArgs']]): @pulumi.getter(name="etcdSnapshotCreate") def etcd_snapshot_create(self) -> Optional[pulumi.Input['ClusterV2RkeConfigEtcdSnapshotCreateArgs']]: """ - Cluster V2 etcd snapshot create (list maxitems:1) + Cluster V2 etcd snapshot create. """ return pulumi.get(self, "etcd_snapshot_create") @@ -21268,7 +20996,7 @@ def etcd_snapshot_create(self, value: Optional[pulumi.Input['ClusterV2RkeConfigE @pulumi.getter(name="etcdSnapshotRestore") def etcd_snapshot_restore(self) -> Optional[pulumi.Input['ClusterV2RkeConfigEtcdSnapshotRestoreArgs']]: """ - Cluster V2 etcd snapshot restore (list maxitems:1) + Cluster V2 etcd snapshot restore. """ return pulumi.get(self, "etcd_snapshot_restore") @@ -21280,7 +21008,7 @@ def etcd_snapshot_restore(self, value: Optional[pulumi.Input['ClusterV2RkeConfig @pulumi.getter(name="localAuthEndpoint") def local_auth_endpoint(self) -> Optional[pulumi.Input['ClusterV2RkeConfigLocalAuthEndpointArgs']]: """ - Cluster V2 local auth endpoint (list maxitems:1) + Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). """ warnings.warn("""Use rancher2_cluster_v2.local_auth_endpoint instead""", DeprecationWarning) pulumi.log.warn("""local_auth_endpoint is deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead""") @@ -21295,7 +21023,7 @@ def local_auth_endpoint(self, value: Optional[pulumi.Input['ClusterV2RkeConfigLo @pulumi.getter(name="machineGlobalConfig") def machine_global_config(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 machine global config. Must be in YAML format (string) + Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). """ return pulumi.get(self, "machine_global_config") @@ -21319,7 +21047,7 @@ def machine_pool_defaults(self, value: Optional[pulumi.Input[Sequence[pulumi.Inp @pulumi.getter(name="machinePools") def machine_pools(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolArgs']]]]: """ - Cluster V2 machine pools (list) + Cluster V2 machine pools. """ return pulumi.get(self, "machine_pools") @@ -21331,7 +21059,7 @@ def machine_pools(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['Clus @pulumi.getter(name="machineSelectorConfigs") def machine_selector_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigArgs']]]]: """ - Cluster V2 machine selector config (list) + Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. """ return pulumi.get(self, "machine_selector_configs") @@ -21339,11 +21067,23 @@ def machine_selector_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Inpu def machine_selector_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigArgs']]]]): pulumi.set(self, "machine_selector_configs", value) + @property + @pulumi.getter(name="machineSelectorFiles") + def machine_selector_files(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileArgs']]]]: + """ + Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + """ + return pulumi.get(self, "machine_selector_files") + + @machine_selector_files.setter + def machine_selector_files(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileArgs']]]]): + pulumi.set(self, "machine_selector_files", value) + @property @pulumi.getter def registries(self) -> Optional[pulumi.Input['ClusterV2RkeConfigRegistriesArgs']]: """ - Cluster V2 docker registries (list maxitems:1) + Docker registries from which the cluster pulls images. """ return pulumi.get(self, "registries") @@ -21355,7 +21095,7 @@ def registries(self, value: Optional[pulumi.Input['ClusterV2RkeConfigRegistriesA @pulumi.getter(name="rotateCertificates") def rotate_certificates(self) -> Optional[pulumi.Input['ClusterV2RkeConfigRotateCertificatesArgs']]: """ - Cluster V2 certificate rotation (list maxitems:1) + Cluster V2 certificate rotation. """ return pulumi.get(self, "rotate_certificates") @@ -21367,7 +21107,7 @@ def rotate_certificates(self, value: Optional[pulumi.Input['ClusterV2RkeConfigRo @pulumi.getter(name="upgradeStrategy") def upgrade_strategy(self) -> Optional[pulumi.Input['ClusterV2RkeConfigUpgradeStrategyArgs']]: """ - Cluster V2 upgrade strategy (list maxitems:1) + Cluster upgrade strategy. """ return pulumi.get(self, "upgrade_strategy") @@ -21384,10 +21124,10 @@ def __init__(__self__, *, snapshot_retention: Optional[pulumi.Input[int]] = None, snapshot_schedule_cron: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[bool] disable_snapshots: Disable ETCD snapshots. Default: `false` (bool) - :param pulumi.Input['ClusterV2RkeConfigEtcdS3ConfigArgs'] s3_config: Creation option for etcd service (list maxitems:1) - :param pulumi.Input[int] snapshot_retention: ETCD snapshot retention (int) - :param pulumi.Input[str] snapshot_schedule_cron: ETCD snapshot schedule cron (e.g `\\"0 */5 * * *\\"`) (string) + :param pulumi.Input[bool] disable_snapshots: Disable ETCD snapshots. + :param pulumi.Input['ClusterV2RkeConfigEtcdS3ConfigArgs'] s3_config: Creation option for etcd service. + :param pulumi.Input[int] snapshot_retention: ETCD snapshot retention. + :param pulumi.Input[str] snapshot_schedule_cron: ETCD snapshot schedule cron (e.g `\\"0 */5 * * *\\"`). """ if disable_snapshots is not None: pulumi.set(__self__, "disable_snapshots", disable_snapshots) @@ -21402,7 +21142,7 @@ def __init__(__self__, *, @pulumi.getter(name="disableSnapshots") def disable_snapshots(self) -> Optional[pulumi.Input[bool]]: """ - Disable ETCD snapshots. Default: `false` (bool) + Disable ETCD snapshots. """ return pulumi.get(self, "disable_snapshots") @@ -21414,7 +21154,7 @@ def disable_snapshots(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="s3Config") def s3_config(self) -> Optional[pulumi.Input['ClusterV2RkeConfigEtcdS3ConfigArgs']]: """ - Creation option for etcd service (list maxitems:1) + Creation option for etcd service. """ return pulumi.get(self, "s3_config") @@ -21426,7 +21166,7 @@ def s3_config(self, value: Optional[pulumi.Input['ClusterV2RkeConfigEtcdS3Config @pulumi.getter(name="snapshotRetention") def snapshot_retention(self) -> Optional[pulumi.Input[int]]: """ - ETCD snapshot retention (int) + ETCD snapshot retention. """ return pulumi.get(self, "snapshot_retention") @@ -21438,7 +21178,7 @@ def snapshot_retention(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="snapshotScheduleCron") def snapshot_schedule_cron(self) -> Optional[pulumi.Input[str]]: """ - ETCD snapshot schedule cron (e.g `\\"0 */5 * * *\\"`) (string) + ETCD snapshot schedule cron (e.g `\\"0 */5 * * *\\"`). """ return pulumi.get(self, "snapshot_schedule_cron") @@ -21458,13 +21198,13 @@ def __init__(__self__, *, region: Optional[pulumi.Input[str]] = None, skip_ssl_verify: Optional[pulumi.Input[bool]] = None): """ - :param pulumi.Input[str] bucket: Bucket name for S3 service (string) - :param pulumi.Input[str] endpoint: ETCD snapshot S3 endpoint (string) - :param pulumi.Input[str] cloud_credential_name: ETCD snapshot S3 cloud credential name (string) - :param pulumi.Input[str] endpoint_ca: ETCD snapshot S3 endpoint CA (string) - :param pulumi.Input[str] folder: ETCD snapshot S3 folder (string) - :param pulumi.Input[str] region: ETCD snapshot S3 region (string) - :param pulumi.Input[bool] skip_ssl_verify: Disable ETCD skip ssl verify. Default: `false` (bool) + :param pulumi.Input[str] bucket: Bucket name for S3 service. + :param pulumi.Input[str] endpoint: ETCD snapshot S3 endpoint. + :param pulumi.Input[str] cloud_credential_name: ETCD snapshot S3 cloud credential name. + :param pulumi.Input[str] endpoint_ca: ETCD snapshot S3 endpoint CA. + :param pulumi.Input[str] folder: ETCD snapshot S3 folder. + :param pulumi.Input[str] region: ETCD snapshot S3 region. + :param pulumi.Input[bool] skip_ssl_verify: Disable ETCD skip ssl verify. """ pulumi.set(__self__, "bucket", bucket) pulumi.set(__self__, "endpoint", endpoint) @@ -21481,144 +21221,600 @@ def __init__(__self__, *, @property @pulumi.getter - def bucket(self) -> pulumi.Input[str]: + def bucket(self) -> pulumi.Input[str]: + """ + Bucket name for S3 service. + """ + return pulumi.get(self, "bucket") + + @bucket.setter + def bucket(self, value: pulumi.Input[str]): + pulumi.set(self, "bucket", value) + + @property + @pulumi.getter + def endpoint(self) -> pulumi.Input[str]: + """ + ETCD snapshot S3 endpoint. + """ + return pulumi.get(self, "endpoint") + + @endpoint.setter + def endpoint(self, value: pulumi.Input[str]): + pulumi.set(self, "endpoint", value) + + @property + @pulumi.getter(name="cloudCredentialName") + def cloud_credential_name(self) -> Optional[pulumi.Input[str]]: + """ + ETCD snapshot S3 cloud credential name. + """ + return pulumi.get(self, "cloud_credential_name") + + @cloud_credential_name.setter + def cloud_credential_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "cloud_credential_name", value) + + @property + @pulumi.getter(name="endpointCa") + def endpoint_ca(self) -> Optional[pulumi.Input[str]]: + """ + ETCD snapshot S3 endpoint CA. + """ + return pulumi.get(self, "endpoint_ca") + + @endpoint_ca.setter + def endpoint_ca(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "endpoint_ca", value) + + @property + @pulumi.getter + def folder(self) -> Optional[pulumi.Input[str]]: + """ + ETCD snapshot S3 folder. + """ + return pulumi.get(self, "folder") + + @folder.setter + def folder(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "folder", value) + + @property + @pulumi.getter + def region(self) -> Optional[pulumi.Input[str]]: + """ + ETCD snapshot S3 region. + """ + return pulumi.get(self, "region") + + @region.setter + def region(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "region", value) + + @property + @pulumi.getter(name="skipSslVerify") + def skip_ssl_verify(self) -> Optional[pulumi.Input[bool]]: + """ + Disable ETCD skip ssl verify. + """ + return pulumi.get(self, "skip_ssl_verify") + + @skip_ssl_verify.setter + def skip_ssl_verify(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "skip_ssl_verify", value) + + +@pulumi.input_type +class ClusterV2RkeConfigEtcdSnapshotCreateArgs: + def __init__(__self__, *, + generation: pulumi.Input[int]): + """ + :param pulumi.Input[int] generation: ETCD snapshot desired generation. + """ + pulumi.set(__self__, "generation", generation) + + @property + @pulumi.getter + def generation(self) -> pulumi.Input[int]: + """ + ETCD snapshot desired generation. + """ + return pulumi.get(self, "generation") + + @generation.setter + def generation(self, value: pulumi.Input[int]): + pulumi.set(self, "generation", value) + + +@pulumi.input_type +class ClusterV2RkeConfigEtcdSnapshotRestoreArgs: + def __init__(__self__, *, + generation: pulumi.Input[int], + name: pulumi.Input[str], + restore_rke_config: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[int] generation: ETCD snapshot desired generation. + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[str] restore_rke_config: ETCD restore RKE config (set to none, all, or kubernetesVersion). + """ + pulumi.set(__self__, "generation", generation) + pulumi.set(__self__, "name", name) + if restore_rke_config is not None: + pulumi.set(__self__, "restore_rke_config", restore_rke_config) + + @property + @pulumi.getter + def generation(self) -> pulumi.Input[int]: + """ + ETCD snapshot desired generation. + """ + return pulumi.get(self, "generation") + + @generation.setter + def generation(self, value: pulumi.Input[int]): + pulumi.set(self, "generation", value) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + The name of the cluster. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="restoreRkeConfig") + def restore_rke_config(self) -> Optional[pulumi.Input[str]]: + """ + ETCD restore RKE config (set to none, all, or kubernetesVersion). + """ + return pulumi.get(self, "restore_rke_config") + + @restore_rke_config.setter + def restore_rke_config(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "restore_rke_config", value) + + +@pulumi.input_type +class ClusterV2RkeConfigLocalAuthEndpointArgs: + def __init__(__self__, *, + ca_certs: Optional[pulumi.Input[str]] = None, + enabled: Optional[pulumi.Input[bool]] = None, + fqdn: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] ca_certs: CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. + :param pulumi.Input[bool] enabled: If `enabled` is set to true, nodes will be drained before upgrade. + :param pulumi.Input[str] fqdn: FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. + """ + if ca_certs is not None: + pulumi.set(__self__, "ca_certs", ca_certs) + if enabled is not None: + pulumi.set(__self__, "enabled", enabled) + if fqdn is not None: + pulumi.set(__self__, "fqdn", fqdn) + + @property + @pulumi.getter(name="caCerts") + def ca_certs(self) -> Optional[pulumi.Input[str]]: + """ + CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. + """ + return pulumi.get(self, "ca_certs") + + @ca_certs.setter + def ca_certs(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ca_certs", value) + + @property + @pulumi.getter + def enabled(self) -> Optional[pulumi.Input[bool]]: + """ + If `enabled` is set to true, nodes will be drained before upgrade. + """ + return pulumi.get(self, "enabled") + + @enabled.setter + def enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "enabled", value) + + @property + @pulumi.getter + def fqdn(self) -> Optional[pulumi.Input[str]]: + """ + FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. + """ + return pulumi.get(self, "fqdn") + + @fqdn.setter + def fqdn(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "fqdn", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachinePoolArgs: + def __init__(__self__, *, + machine_config: pulumi.Input['ClusterV2RkeConfigMachinePoolMachineConfigArgs'], + name: pulumi.Input[str], + annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, + cloud_credential_secret_name: Optional[pulumi.Input[str]] = None, + control_plane_role: Optional[pulumi.Input[bool]] = None, + drain_before_delete: Optional[pulumi.Input[bool]] = None, + etcd_role: Optional[pulumi.Input[bool]] = None, + hostname_length_limit: Optional[pulumi.Input[int]] = None, + labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, + machine_labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, + max_unhealthy: Optional[pulumi.Input[str]] = None, + node_drain_timeout: Optional[pulumi.Input[int]] = None, + node_startup_timeout_seconds: Optional[pulumi.Input[int]] = None, + paused: Optional[pulumi.Input[bool]] = None, + quantity: Optional[pulumi.Input[int]] = None, + rolling_update: Optional[pulumi.Input['ClusterV2RkeConfigMachinePoolRollingUpdateArgs']] = None, + taints: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolTaintArgs']]]] = None, + unhealthy_node_timeout_seconds: Optional[pulumi.Input[int]] = None, + unhealthy_range: Optional[pulumi.Input[str]] = None, + worker_role: Optional[pulumi.Input[bool]] = None): + """ + :param pulumi.Input['ClusterV2RkeConfigMachinePoolMachineConfigArgs'] machine_config: Machine pool node config. + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster. + :param pulumi.Input[str] cloud_credential_secret_name: Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + :param pulumi.Input[bool] control_plane_role: Machine pool control plane role? + :param pulumi.Input[bool] drain_before_delete: Machine Pool Drain Before Delete? + :param pulumi.Input[bool] etcd_role: Machine pool etcd role? + :param pulumi.Input[int] hostname_length_limit: maximum length for autogenerated hostname + :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster. + :param pulumi.Input[Mapping[str, Any]] machine_labels: Labels for Machine pool nodes. + :param pulumi.Input[str] max_unhealthy: Max unhealthy nodes for automated replacement to be allowed. + :param pulumi.Input[int] node_drain_timeout: Seconds a machine has to drain before deletion. + :param pulumi.Input[int] node_startup_timeout_seconds: Seconds a new node has to become active before it is replaced. + :param pulumi.Input[bool] paused: Machine pool paused? + :param pulumi.Input[int] quantity: Machine pool quantity. + :param pulumi.Input['ClusterV2RkeConfigMachinePoolRollingUpdateArgs'] rolling_update: Machine pool rolling update. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolTaintArgs']]] taints: Machine pool taints. + :param pulumi.Input[int] unhealthy_node_timeout_seconds: Seconds an unhealthy node has to become active before it is replaced. + :param pulumi.Input[str] unhealthy_range: Range of unhealthy nodes for automated replacement to be allowed. + :param pulumi.Input[bool] worker_role: Machine pool worker role? + """ + pulumi.set(__self__, "machine_config", machine_config) + pulumi.set(__self__, "name", name) + if annotations is not None: + pulumi.set(__self__, "annotations", annotations) + if cloud_credential_secret_name is not None: + pulumi.set(__self__, "cloud_credential_secret_name", cloud_credential_secret_name) + if control_plane_role is not None: + pulumi.set(__self__, "control_plane_role", control_plane_role) + if drain_before_delete is not None: + pulumi.set(__self__, "drain_before_delete", drain_before_delete) + if etcd_role is not None: + pulumi.set(__self__, "etcd_role", etcd_role) + if hostname_length_limit is not None: + pulumi.set(__self__, "hostname_length_limit", hostname_length_limit) + if labels is not None: + pulumi.set(__self__, "labels", labels) + if machine_labels is not None: + pulumi.set(__self__, "machine_labels", machine_labels) + if max_unhealthy is not None: + pulumi.set(__self__, "max_unhealthy", max_unhealthy) + if node_drain_timeout is not None: + pulumi.set(__self__, "node_drain_timeout", node_drain_timeout) + if node_startup_timeout_seconds is not None: + pulumi.set(__self__, "node_startup_timeout_seconds", node_startup_timeout_seconds) + if paused is not None: + pulumi.set(__self__, "paused", paused) + if quantity is not None: + pulumi.set(__self__, "quantity", quantity) + if rolling_update is not None: + pulumi.set(__self__, "rolling_update", rolling_update) + if taints is not None: + pulumi.set(__self__, "taints", taints) + if unhealthy_node_timeout_seconds is not None: + pulumi.set(__self__, "unhealthy_node_timeout_seconds", unhealthy_node_timeout_seconds) + if unhealthy_range is not None: + pulumi.set(__self__, "unhealthy_range", unhealthy_range) + if worker_role is not None: + pulumi.set(__self__, "worker_role", worker_role) + + @property + @pulumi.getter(name="machineConfig") + def machine_config(self) -> pulumi.Input['ClusterV2RkeConfigMachinePoolMachineConfigArgs']: + """ + Machine pool node config. + """ + return pulumi.get(self, "machine_config") + + @machine_config.setter + def machine_config(self, value: pulumi.Input['ClusterV2RkeConfigMachinePoolMachineConfigArgs']): + pulumi.set(self, "machine_config", value) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + The name of the cluster. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + Annotations for the Cluster. + """ + return pulumi.get(self, "annotations") + + @annotations.setter + def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "annotations", value) + + @property + @pulumi.getter(name="cloudCredentialSecretName") + def cloud_credential_secret_name(self) -> Optional[pulumi.Input[str]]: + """ + Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + """ + return pulumi.get(self, "cloud_credential_secret_name") + + @cloud_credential_secret_name.setter + def cloud_credential_secret_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "cloud_credential_secret_name", value) + + @property + @pulumi.getter(name="controlPlaneRole") + def control_plane_role(self) -> Optional[pulumi.Input[bool]]: + """ + Machine pool control plane role? + """ + return pulumi.get(self, "control_plane_role") + + @control_plane_role.setter + def control_plane_role(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "control_plane_role", value) + + @property + @pulumi.getter(name="drainBeforeDelete") + def drain_before_delete(self) -> Optional[pulumi.Input[bool]]: + """ + Machine Pool Drain Before Delete? + """ + return pulumi.get(self, "drain_before_delete") + + @drain_before_delete.setter + def drain_before_delete(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "drain_before_delete", value) + + @property + @pulumi.getter(name="etcdRole") + def etcd_role(self) -> Optional[pulumi.Input[bool]]: + """ + Machine pool etcd role? + """ + return pulumi.get(self, "etcd_role") + + @etcd_role.setter + def etcd_role(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "etcd_role", value) + + @property + @pulumi.getter(name="hostnameLengthLimit") + def hostname_length_limit(self) -> Optional[pulumi.Input[int]]: + """ + maximum length for autogenerated hostname + """ + return pulumi.get(self, "hostname_length_limit") + + @hostname_length_limit.setter + def hostname_length_limit(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "hostname_length_limit", value) + + @property + @pulumi.getter + def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + Labels for the Cluster. + """ + return pulumi.get(self, "labels") + + @labels.setter + def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "labels", value) + + @property + @pulumi.getter(name="machineLabels") + def machine_labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + Labels for Machine pool nodes. + """ + return pulumi.get(self, "machine_labels") + + @machine_labels.setter + def machine_labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "machine_labels", value) + + @property + @pulumi.getter(name="maxUnhealthy") + def max_unhealthy(self) -> Optional[pulumi.Input[str]]: + """ + Max unhealthy nodes for automated replacement to be allowed. + """ + return pulumi.get(self, "max_unhealthy") + + @max_unhealthy.setter + def max_unhealthy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "max_unhealthy", value) + + @property + @pulumi.getter(name="nodeDrainTimeout") + def node_drain_timeout(self) -> Optional[pulumi.Input[int]]: + """ + Seconds a machine has to drain before deletion. + """ + return pulumi.get(self, "node_drain_timeout") + + @node_drain_timeout.setter + def node_drain_timeout(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "node_drain_timeout", value) + + @property + @pulumi.getter(name="nodeStartupTimeoutSeconds") + def node_startup_timeout_seconds(self) -> Optional[pulumi.Input[int]]: + """ + Seconds a new node has to become active before it is replaced. + """ + return pulumi.get(self, "node_startup_timeout_seconds") + + @node_startup_timeout_seconds.setter + def node_startup_timeout_seconds(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "node_startup_timeout_seconds", value) + + @property + @pulumi.getter + def paused(self) -> Optional[pulumi.Input[bool]]: """ - Bucket name for S3 service (string) + Machine pool paused? """ - return pulumi.get(self, "bucket") + return pulumi.get(self, "paused") - @bucket.setter - def bucket(self, value: pulumi.Input[str]): - pulumi.set(self, "bucket", value) + @paused.setter + def paused(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "paused", value) @property @pulumi.getter - def endpoint(self) -> pulumi.Input[str]: + def quantity(self) -> Optional[pulumi.Input[int]]: """ - ETCD snapshot S3 endpoint (string) + Machine pool quantity. """ - return pulumi.get(self, "endpoint") + return pulumi.get(self, "quantity") - @endpoint.setter - def endpoint(self, value: pulumi.Input[str]): - pulumi.set(self, "endpoint", value) + @quantity.setter + def quantity(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "quantity", value) @property - @pulumi.getter(name="cloudCredentialName") - def cloud_credential_name(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="rollingUpdate") + def rolling_update(self) -> Optional[pulumi.Input['ClusterV2RkeConfigMachinePoolRollingUpdateArgs']]: """ - ETCD snapshot S3 cloud credential name (string) + Machine pool rolling update. """ - return pulumi.get(self, "cloud_credential_name") + return pulumi.get(self, "rolling_update") - @cloud_credential_name.setter - def cloud_credential_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "cloud_credential_name", value) + @rolling_update.setter + def rolling_update(self, value: Optional[pulumi.Input['ClusterV2RkeConfigMachinePoolRollingUpdateArgs']]): + pulumi.set(self, "rolling_update", value) @property - @pulumi.getter(name="endpointCa") - def endpoint_ca(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def taints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolTaintArgs']]]]: """ - ETCD snapshot S3 endpoint CA (string) + Machine pool taints. """ - return pulumi.get(self, "endpoint_ca") + return pulumi.get(self, "taints") - @endpoint_ca.setter - def endpoint_ca(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "endpoint_ca", value) + @taints.setter + def taints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolTaintArgs']]]]): + pulumi.set(self, "taints", value) @property - @pulumi.getter - def folder(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="unhealthyNodeTimeoutSeconds") + def unhealthy_node_timeout_seconds(self) -> Optional[pulumi.Input[int]]: """ - ETCD snapshot S3 folder (string) + Seconds an unhealthy node has to become active before it is replaced. """ - return pulumi.get(self, "folder") + return pulumi.get(self, "unhealthy_node_timeout_seconds") - @folder.setter - def folder(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "folder", value) + @unhealthy_node_timeout_seconds.setter + def unhealthy_node_timeout_seconds(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "unhealthy_node_timeout_seconds", value) @property - @pulumi.getter - def region(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="unhealthyRange") + def unhealthy_range(self) -> Optional[pulumi.Input[str]]: """ - ETCD snapshot S3 region (string) + Range of unhealthy nodes for automated replacement to be allowed. """ - return pulumi.get(self, "region") + return pulumi.get(self, "unhealthy_range") - @region.setter - def region(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "region", value) + @unhealthy_range.setter + def unhealthy_range(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "unhealthy_range", value) @property - @pulumi.getter(name="skipSslVerify") - def skip_ssl_verify(self) -> Optional[pulumi.Input[bool]]: + @pulumi.getter(name="workerRole") + def worker_role(self) -> Optional[pulumi.Input[bool]]: """ - Disable ETCD skip ssl verify. Default: `false` (bool) + Machine pool worker role? """ - return pulumi.get(self, "skip_ssl_verify") + return pulumi.get(self, "worker_role") - @skip_ssl_verify.setter - def skip_ssl_verify(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "skip_ssl_verify", value) + @worker_role.setter + def worker_role(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "worker_role", value) @pulumi.input_type -class ClusterV2RkeConfigEtcdSnapshotCreateArgs: +class ClusterV2RkeConfigMachinePoolDefaultArgs: def __init__(__self__, *, - generation: pulumi.Input[int]): + hostname_length_limit: Optional[pulumi.Input[int]] = None): """ - :param pulumi.Input[int] generation: ETCD snapshot desired generation (int) + :param pulumi.Input[int] hostname_length_limit: maximum length for autogenerated hostname """ - pulumi.set(__self__, "generation", generation) + if hostname_length_limit is not None: + pulumi.set(__self__, "hostname_length_limit", hostname_length_limit) @property - @pulumi.getter - def generation(self) -> pulumi.Input[int]: + @pulumi.getter(name="hostnameLengthLimit") + def hostname_length_limit(self) -> Optional[pulumi.Input[int]]: """ - ETCD snapshot desired generation (int) + maximum length for autogenerated hostname """ - return pulumi.get(self, "generation") + return pulumi.get(self, "hostname_length_limit") - @generation.setter - def generation(self, value: pulumi.Input[int]): - pulumi.set(self, "generation", value) + @hostname_length_limit.setter + def hostname_length_limit(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "hostname_length_limit", value) @pulumi.input_type -class ClusterV2RkeConfigEtcdSnapshotRestoreArgs: +class ClusterV2RkeConfigMachinePoolMachineConfigArgs: def __init__(__self__, *, - generation: pulumi.Input[int], + kind: pulumi.Input[str], name: pulumi.Input[str], - restore_rke_config: Optional[pulumi.Input[str]] = None): + api_version: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[int] generation: ETCD snapshot desired generation (int) - :param pulumi.Input[str] name: The name of the Cluster v2 (string) - :param pulumi.Input[str] restore_rke_config: ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + :param pulumi.Input[str] kind: Machine config kind. + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[str] api_version: Api version of the machine_config. """ - pulumi.set(__self__, "generation", generation) + pulumi.set(__self__, "kind", kind) pulumi.set(__self__, "name", name) - if restore_rke_config is not None: - pulumi.set(__self__, "restore_rke_config", restore_rke_config) + if api_version is not None: + pulumi.set(__self__, "api_version", api_version) @property @pulumi.getter - def generation(self) -> pulumi.Input[int]: + def kind(self) -> pulumi.Input[str]: """ - ETCD snapshot desired generation (int) + Machine config kind. """ - return pulumi.get(self, "generation") + return pulumi.get(self, "kind") - @generation.setter - def generation(self, value: pulumi.Input[int]): - pulumi.set(self, "generation", value) + @kind.setter + def kind(self, value: pulumi.Input[str]): + pulumi.set(self, "kind", value) @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -21627,450 +21823,482 @@ def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) @property - @pulumi.getter(name="restoreRkeConfig") - def restore_rke_config(self) -> Optional[pulumi.Input[str]]: - """ - ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) - """ - return pulumi.get(self, "restore_rke_config") - - @restore_rke_config.setter - def restore_rke_config(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "restore_rke_config", value) - - -@pulumi.input_type -class ClusterV2RkeConfigLocalAuthEndpointArgs: - def __init__(__self__, *, - ca_certs: Optional[pulumi.Input[str]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - fqdn: Optional[pulumi.Input[str]] = None): - """ - :param pulumi.Input[str] ca_certs: CA certs for the authorized cluster endpoint (string) - :param pulumi.Input[bool] enabled: Drain options enabled? Default `true` (bool) - :param pulumi.Input[str] fqdn: FQDN for the authorized cluster endpoint (string) - """ - if ca_certs is not None: - pulumi.set(__self__, "ca_certs", ca_certs) - if enabled is not None: - pulumi.set(__self__, "enabled", enabled) - if fqdn is not None: - pulumi.set(__self__, "fqdn", fqdn) - - @property - @pulumi.getter(name="caCerts") - def ca_certs(self) -> Optional[pulumi.Input[str]]: - """ - CA certs for the authorized cluster endpoint (string) - """ - return pulumi.get(self, "ca_certs") - - @ca_certs.setter - def ca_certs(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "ca_certs", value) - - @property - @pulumi.getter - def enabled(self) -> Optional[pulumi.Input[bool]]: - """ - Drain options enabled? Default `true` (bool) - """ - return pulumi.get(self, "enabled") - - @enabled.setter - def enabled(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "enabled", value) - - @property - @pulumi.getter - def fqdn(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[pulumi.Input[str]]: """ - FQDN for the authorized cluster endpoint (string) + Api version of the machine_config. """ - return pulumi.get(self, "fqdn") + return pulumi.get(self, "api_version") - @fqdn.setter - def fqdn(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "fqdn", value) + @api_version.setter + def api_version(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "api_version", value) @pulumi.input_type -class ClusterV2RkeConfigMachinePoolArgs: +class ClusterV2RkeConfigMachinePoolRollingUpdateArgs: def __init__(__self__, *, - machine_config: pulumi.Input['ClusterV2RkeConfigMachinePoolMachineConfigArgs'], - name: pulumi.Input[str], - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cloud_credential_secret_name: Optional[pulumi.Input[str]] = None, - control_plane_role: Optional[pulumi.Input[bool]] = None, - drain_before_delete: Optional[pulumi.Input[bool]] = None, - etcd_role: Optional[pulumi.Input[bool]] = None, - hostname_length_limit: Optional[pulumi.Input[int]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - machine_labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - max_unhealthy: Optional[pulumi.Input[str]] = None, - node_drain_timeout: Optional[pulumi.Input[int]] = None, - node_startup_timeout_seconds: Optional[pulumi.Input[int]] = None, - paused: Optional[pulumi.Input[bool]] = None, - quantity: Optional[pulumi.Input[int]] = None, - rolling_update: Optional[pulumi.Input['ClusterV2RkeConfigMachinePoolRollingUpdateArgs']] = None, - taints: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolTaintArgs']]]] = None, - unhealthy_node_timeout_seconds: Optional[pulumi.Input[int]] = None, - unhealthy_range: Optional[pulumi.Input[str]] = None, - worker_role: Optional[pulumi.Input[bool]] = None): + max_surge: Optional[pulumi.Input[str]] = None, + max_unavailable: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input['ClusterV2RkeConfigMachinePoolMachineConfigArgs'] machine_config: Machine pool node config (list) - :param pulumi.Input[str] name: The name of the Cluster v2 (string) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster V2 (map) - :param pulumi.Input[str] cloud_credential_secret_name: Cluster V2 cloud credential secret name (string) - :param pulumi.Input[bool] control_plane_role: Machine pool control plane role? (bool) - :param pulumi.Input[bool] drain_before_delete: Machine Pool Drain Before Delete? (bool) - :param pulumi.Input[bool] etcd_role: Machine pool etcd role? (bool) - :param pulumi.Input[int] hostname_length_limit: maximum length for autogenerated hostname - :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster V2 (map) - :param pulumi.Input[Mapping[str, Any]] machine_labels: Labels for Machine pool nodes (map) - :param pulumi.Input[str] max_unhealthy: Max unhealthy nodes for automated replacement to be allowed (string) - :param pulumi.Input[int] node_drain_timeout: Seconds a machine has to drain before deletion (int) - :param pulumi.Input[int] node_startup_timeout_seconds: Seconds a new node has to become active before it is replaced (int) - :param pulumi.Input[bool] paused: Machine pool paused? (bool) - :param pulumi.Input[int] quantity: Machine pool quantity (int) - :param pulumi.Input['ClusterV2RkeConfigMachinePoolRollingUpdateArgs'] rolling_update: Machine pool rolling update (List maxitems:1) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolTaintArgs']]] taints: Machine pool taints (list) - :param pulumi.Input[int] unhealthy_node_timeout_seconds: Seconds an unhealthy node has to become active before it is replaced (int) - :param pulumi.Input[str] unhealthy_range: Range of unhealthy nodes for automated replacement to be allowed (string) - :param pulumi.Input[bool] worker_role: Machine pool worker role? (bool) + :param pulumi.Input[str] max_surge: Rolling update max surge. + :param pulumi.Input[str] max_unavailable: Rolling update max unavailable. """ - pulumi.set(__self__, "machine_config", machine_config) - pulumi.set(__self__, "name", name) - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if cloud_credential_secret_name is not None: - pulumi.set(__self__, "cloud_credential_secret_name", cloud_credential_secret_name) - if control_plane_role is not None: - pulumi.set(__self__, "control_plane_role", control_plane_role) - if drain_before_delete is not None: - pulumi.set(__self__, "drain_before_delete", drain_before_delete) - if etcd_role is not None: - pulumi.set(__self__, "etcd_role", etcd_role) - if hostname_length_limit is not None: - pulumi.set(__self__, "hostname_length_limit", hostname_length_limit) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if machine_labels is not None: - pulumi.set(__self__, "machine_labels", machine_labels) - if max_unhealthy is not None: - pulumi.set(__self__, "max_unhealthy", max_unhealthy) - if node_drain_timeout is not None: - pulumi.set(__self__, "node_drain_timeout", node_drain_timeout) - if node_startup_timeout_seconds is not None: - pulumi.set(__self__, "node_startup_timeout_seconds", node_startup_timeout_seconds) - if paused is not None: - pulumi.set(__self__, "paused", paused) - if quantity is not None: - pulumi.set(__self__, "quantity", quantity) - if rolling_update is not None: - pulumi.set(__self__, "rolling_update", rolling_update) - if taints is not None: - pulumi.set(__self__, "taints", taints) - if unhealthy_node_timeout_seconds is not None: - pulumi.set(__self__, "unhealthy_node_timeout_seconds", unhealthy_node_timeout_seconds) - if unhealthy_range is not None: - pulumi.set(__self__, "unhealthy_range", unhealthy_range) - if worker_role is not None: - pulumi.set(__self__, "worker_role", worker_role) + if max_surge is not None: + pulumi.set(__self__, "max_surge", max_surge) + if max_unavailable is not None: + pulumi.set(__self__, "max_unavailable", max_unavailable) @property - @pulumi.getter(name="machineConfig") - def machine_config(self) -> pulumi.Input['ClusterV2RkeConfigMachinePoolMachineConfigArgs']: + @pulumi.getter(name="maxSurge") + def max_surge(self) -> Optional[pulumi.Input[str]]: """ - Machine pool node config (list) + Rolling update max surge. """ - return pulumi.get(self, "machine_config") + return pulumi.get(self, "max_surge") - @machine_config.setter - def machine_config(self, value: pulumi.Input['ClusterV2RkeConfigMachinePoolMachineConfigArgs']): - pulumi.set(self, "machine_config", value) + @max_surge.setter + def max_surge(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "max_surge", value) + + @property + @pulumi.getter(name="maxUnavailable") + def max_unavailable(self) -> Optional[pulumi.Input[str]]: + """ + Rolling update max unavailable. + """ + return pulumi.get(self, "max_unavailable") + + @max_unavailable.setter + def max_unavailable(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "max_unavailable", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachinePoolTaintArgs: + def __init__(__self__, *, + key: pulumi.Input[str], + value: pulumi.Input[str], + effect: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] key: Key is the name of the key of the item to retrieve. + :param pulumi.Input[str] value: The taint value. + :param pulumi.Input[str] effect: The taint effect. Default: `\\"NoExecute\\"`. + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "value", value) + if effect is not None: + pulumi.set(__self__, "effect", effect) @property @pulumi.getter - def name(self) -> pulumi.Input[str]: + def key(self) -> pulumi.Input[str]: """ - The name of the Cluster v2 (string) + Key is the name of the key of the item to retrieve. """ - return pulumi.get(self, "name") + return pulumi.get(self, "key") - @name.setter - def name(self, value: pulumi.Input[str]): - pulumi.set(self, "name", value) + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) @property @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + def value(self) -> pulumi.Input[str]: """ - Annotations for the Cluster V2 (map) + The taint value. """ - return pulumi.get(self, "annotations") + return pulumi.get(self, "value") - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) + @value.setter + def value(self, value: pulumi.Input[str]): + pulumi.set(self, "value", value) @property - @pulumi.getter(name="cloudCredentialSecretName") - def cloud_credential_secret_name(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def effect(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 cloud credential secret name (string) + The taint effect. Default: `\\"NoExecute\\"`. """ - return pulumi.get(self, "cloud_credential_secret_name") + return pulumi.get(self, "effect") - @cloud_credential_secret_name.setter - def cloud_credential_secret_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "cloud_credential_secret_name", value) + @effect.setter + def effect(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "effect", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachineSelectorConfigArgs: + def __init__(__self__, *, + config: Optional[pulumi.Input[str]] = None, + machine_label_selector: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs']] = None): + """ + :param pulumi.Input[str] config: Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) + :param pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs'] machine_label_selector: Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + """ + if config is not None: + pulumi.set(__self__, "config", config) + if machine_label_selector is not None: + pulumi.set(__self__, "machine_label_selector", machine_label_selector) @property - @pulumi.getter(name="controlPlaneRole") - def control_plane_role(self) -> Optional[pulumi.Input[bool]]: + @pulumi.getter + def config(self) -> Optional[pulumi.Input[str]]: """ - Machine pool control plane role? (bool) + Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) """ - return pulumi.get(self, "control_plane_role") + return pulumi.get(self, "config") - @control_plane_role.setter - def control_plane_role(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "control_plane_role", value) + @config.setter + def config(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "config", value) @property - @pulumi.getter(name="drainBeforeDelete") - def drain_before_delete(self) -> Optional[pulumi.Input[bool]]: + @pulumi.getter(name="machineLabelSelector") + def machine_label_selector(self) -> Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs']]: """ - Machine Pool Drain Before Delete? (bool) + Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. """ - return pulumi.get(self, "drain_before_delete") + return pulumi.get(self, "machine_label_selector") - @drain_before_delete.setter - def drain_before_delete(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "drain_before_delete", value) + @machine_label_selector.setter + def machine_label_selector(self, value: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs']]): + pulumi.set(self, "machine_label_selector", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs: + def __init__(__self__, *, + match_expressions: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs']]]] = None, + match_labels: Optional[pulumi.Input[Mapping[str, Any]]] = None): + """ + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs']]] match_expressions: Match expressions is a list of label selector requirements. The requirements are ANDed. + :param pulumi.Input[Mapping[str, Any]] match_labels: Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + """ + if match_expressions is not None: + pulumi.set(__self__, "match_expressions", match_expressions) + if match_labels is not None: + pulumi.set(__self__, "match_labels", match_labels) @property - @pulumi.getter(name="etcdRole") - def etcd_role(self) -> Optional[pulumi.Input[bool]]: + @pulumi.getter(name="matchExpressions") + def match_expressions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs']]]]: """ - Machine pool etcd role? (bool) + Match expressions is a list of label selector requirements. The requirements are ANDed. """ - return pulumi.get(self, "etcd_role") + return pulumi.get(self, "match_expressions") - @etcd_role.setter - def etcd_role(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "etcd_role", value) + @match_expressions.setter + def match_expressions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs']]]]): + pulumi.set(self, "match_expressions", value) @property - @pulumi.getter(name="hostnameLengthLimit") - def hostname_length_limit(self) -> Optional[pulumi.Input[int]]: + @pulumi.getter(name="matchLabels") + def match_labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - maximum length for autogenerated hostname + Machine selector label is a map of {key,value} pairs, the requirements are ANDed. """ - return pulumi.get(self, "hostname_length_limit") + return pulumi.get(self, "match_labels") - @hostname_length_limit.setter - def hostname_length_limit(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "hostname_length_limit", value) + @match_labels.setter + def match_labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "match_labels", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs: + def __init__(__self__, *, + key: Optional[pulumi.Input[str]] = None, + operator: Optional[pulumi.Input[str]] = None, + values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + """ + :param pulumi.Input[str] key: Key is the name of the key of the item to retrieve. + :param pulumi.Input[str] operator: Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + :param pulumi.Input[Sequence[pulumi.Input[str]]] values: Values is a list of string values. + """ + if key is not None: + pulumi.set(__self__, "key", key) + if operator is not None: + pulumi.set(__self__, "operator", operator) + if values is not None: + pulumi.set(__self__, "values", values) @property @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + def key(self) -> Optional[pulumi.Input[str]]: """ - Labels for the Cluster V2 (map) + Key is the name of the key of the item to retrieve. """ - return pulumi.get(self, "labels") + return pulumi.get(self, "key") - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) + @key.setter + def key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "key", value) @property - @pulumi.getter(name="machineLabels") - def machine_labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + @pulumi.getter + def operator(self) -> Optional[pulumi.Input[str]]: """ - Labels for Machine pool nodes (map) + Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. """ - return pulumi.get(self, "machine_labels") + return pulumi.get(self, "operator") - @machine_labels.setter - def machine_labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "machine_labels", value) + @operator.setter + def operator(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "operator", value) @property - @pulumi.getter(name="maxUnhealthy") - def max_unhealthy(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def values(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Max unhealthy nodes for automated replacement to be allowed (string) + Values is a list of string values. """ - return pulumi.get(self, "max_unhealthy") + return pulumi.get(self, "values") - @max_unhealthy.setter - def max_unhealthy(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "max_unhealthy", value) + @values.setter + def values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "values", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachineSelectorFileArgs: + def __init__(__self__, *, + file_sources: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceArgs']]]] = None, + machine_label_selector: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs']] = None): + """ + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceArgs']]] file_sources: File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + :param pulumi.Input['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs'] machine_label_selector: Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + """ + if file_sources is not None: + pulumi.set(__self__, "file_sources", file_sources) + if machine_label_selector is not None: + pulumi.set(__self__, "machine_label_selector", machine_label_selector) @property - @pulumi.getter(name="nodeDrainTimeout") - def node_drain_timeout(self) -> Optional[pulumi.Input[int]]: + @pulumi.getter(name="fileSources") + def file_sources(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceArgs']]]]: """ - Seconds a machine has to drain before deletion (int) + File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. """ - return pulumi.get(self, "node_drain_timeout") + return pulumi.get(self, "file_sources") - @node_drain_timeout.setter - def node_drain_timeout(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "node_drain_timeout", value) + @file_sources.setter + def file_sources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceArgs']]]]): + pulumi.set(self, "file_sources", value) @property - @pulumi.getter(name="nodeStartupTimeoutSeconds") - def node_startup_timeout_seconds(self) -> Optional[pulumi.Input[int]]: + @pulumi.getter(name="machineLabelSelector") + def machine_label_selector(self) -> Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs']]: """ - Seconds a new node has to become active before it is replaced (int) + Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. """ - return pulumi.get(self, "node_startup_timeout_seconds") + return pulumi.get(self, "machine_label_selector") - @node_startup_timeout_seconds.setter - def node_startup_timeout_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "node_startup_timeout_seconds", value) + @machine_label_selector.setter + def machine_label_selector(self, value: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs']]): + pulumi.set(self, "machine_label_selector", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachineSelectorFileFileSourceArgs: + def __init__(__self__, *, + configmap: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs']] = None, + secret: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs']] = None): + """ + :param pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs'] configmap: Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + :param pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs'] secret: Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + """ + if configmap is not None: + pulumi.set(__self__, "configmap", configmap) + if secret is not None: + pulumi.set(__self__, "secret", secret) @property @pulumi.getter - def paused(self) -> Optional[pulumi.Input[bool]]: + def configmap(self) -> Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs']]: """ - Machine pool paused? (bool) + Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. """ - return pulumi.get(self, "paused") + return pulumi.get(self, "configmap") - @paused.setter - def paused(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "paused", value) + @configmap.setter + def configmap(self, value: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs']]): + pulumi.set(self, "configmap", value) @property @pulumi.getter - def quantity(self) -> Optional[pulumi.Input[int]]: + def secret(self) -> Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs']]: """ - Machine pool quantity (int) + Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. """ - return pulumi.get(self, "quantity") + return pulumi.get(self, "secret") - @quantity.setter - def quantity(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "quantity", value) + @secret.setter + def secret(self, value: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs']]): + pulumi.set(self, "secret", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs: + def __init__(__self__, *, + name: pulumi.Input[str], + default_permissions: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs']]]] = None): + """ + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[str] default_permissions: The numeric representation of the default file permissions for all files defined under the items. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs']]] items: Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + """ + pulumi.set(__self__, "name", name) + if default_permissions is not None: + pulumi.set(__self__, "default_permissions", default_permissions) + if items is not None: + pulumi.set(__self__, "items", items) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + The name of the cluster. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) @property - @pulumi.getter(name="rollingUpdate") - def rolling_update(self) -> Optional[pulumi.Input['ClusterV2RkeConfigMachinePoolRollingUpdateArgs']]: + @pulumi.getter(name="defaultPermissions") + def default_permissions(self) -> Optional[pulumi.Input[str]]: """ - Machine pool rolling update (List maxitems:1) + The numeric representation of the default file permissions for all files defined under the items. """ - return pulumi.get(self, "rolling_update") + return pulumi.get(self, "default_permissions") - @rolling_update.setter - def rolling_update(self, value: Optional[pulumi.Input['ClusterV2RkeConfigMachinePoolRollingUpdateArgs']]): - pulumi.set(self, "rolling_update", value) + @default_permissions.setter + def default_permissions(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "default_permissions", value) @property @pulumi.getter - def taints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolTaintArgs']]]]: + def items(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs']]]]: """ - Machine pool taints (list) + Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. """ - return pulumi.get(self, "taints") + return pulumi.get(self, "items") - @taints.setter - def taints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachinePoolTaintArgs']]]]): - pulumi.set(self, "taints", value) + @items.setter + def items(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs']]]]): + pulumi.set(self, "items", value) + + +@pulumi.input_type +class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs: + def __init__(__self__, *, + key: pulumi.Input[str], + path: pulumi.Input[str], + dynamic: Optional[pulumi.Input[bool]] = None, + hash: Optional[pulumi.Input[str]] = None, + permissions: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] key: Key is the name of the key of the item to retrieve. + :param pulumi.Input[str] path: Path is the absolute path to put the file in the target node. + :param pulumi.Input[bool] dynamic: If true, the file is ignored when determining whether the node should be drained before updating the node plan. + :param pulumi.Input[str] hash: Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + :param pulumi.Input[str] permissions: Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "path", path) + if dynamic is not None: + pulumi.set(__self__, "dynamic", dynamic) + if hash is not None: + pulumi.set(__self__, "hash", hash) + if permissions is not None: + pulumi.set(__self__, "permissions", permissions) @property - @pulumi.getter(name="unhealthyNodeTimeoutSeconds") - def unhealthy_node_timeout_seconds(self) -> Optional[pulumi.Input[int]]: + @pulumi.getter + def key(self) -> pulumi.Input[str]: """ - Seconds an unhealthy node has to become active before it is replaced (int) + Key is the name of the key of the item to retrieve. """ - return pulumi.get(self, "unhealthy_node_timeout_seconds") + return pulumi.get(self, "key") - @unhealthy_node_timeout_seconds.setter - def unhealthy_node_timeout_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "unhealthy_node_timeout_seconds", value) + @key.setter + def key(self, value: pulumi.Input[str]): + pulumi.set(self, "key", value) @property - @pulumi.getter(name="unhealthyRange") - def unhealthy_range(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def path(self) -> pulumi.Input[str]: """ - Range of unhealthy nodes for automated replacement to be allowed (string) + Path is the absolute path to put the file in the target node. """ - return pulumi.get(self, "unhealthy_range") + return pulumi.get(self, "path") - @unhealthy_range.setter - def unhealthy_range(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "unhealthy_range", value) + @path.setter + def path(self, value: pulumi.Input[str]): + pulumi.set(self, "path", value) @property - @pulumi.getter(name="workerRole") - def worker_role(self) -> Optional[pulumi.Input[bool]]: + @pulumi.getter + def dynamic(self) -> Optional[pulumi.Input[bool]]: """ - Machine pool worker role? (bool) + If true, the file is ignored when determining whether the node should be drained before updating the node plan. """ - return pulumi.get(self, "worker_role") - - @worker_role.setter - def worker_role(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "worker_role", value) + return pulumi.get(self, "dynamic") + @dynamic.setter + def dynamic(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "dynamic", value) -@pulumi.input_type -class ClusterV2RkeConfigMachinePoolDefaultArgs: - def __init__(__self__, *, - hostname_length_limit: Optional[pulumi.Input[int]] = None): + @property + @pulumi.getter + def hash(self) -> Optional[pulumi.Input[str]]: """ - :param pulumi.Input[int] hostname_length_limit: maximum length for autogenerated hostname + Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. """ - if hostname_length_limit is not None: - pulumi.set(__self__, "hostname_length_limit", hostname_length_limit) + return pulumi.get(self, "hash") + + @hash.setter + def hash(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "hash", value) @property - @pulumi.getter(name="hostnameLengthLimit") - def hostname_length_limit(self) -> Optional[pulumi.Input[int]]: + @pulumi.getter + def permissions(self) -> Optional[pulumi.Input[str]]: """ - maximum length for autogenerated hostname + Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. """ - return pulumi.get(self, "hostname_length_limit") + return pulumi.get(self, "permissions") - @hostname_length_limit.setter - def hostname_length_limit(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "hostname_length_limit", value) + @permissions.setter + def permissions(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "permissions", value) @pulumi.input_type -class ClusterV2RkeConfigMachinePoolMachineConfigArgs: +class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs: def __init__(__self__, *, - kind: pulumi.Input[str], - name: pulumi.Input[str]): + name: pulumi.Input[str], + default_permissions: Optional[pulumi.Input[str]] = None, + items: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs']]]] = None): """ - :param pulumi.Input[str] kind: Machine config kind (string) - :param pulumi.Input[str] name: The name of the Cluster v2 (string) + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[str] default_permissions: The numeric representation of the default file permissions for all files defined under the items. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs']]] items: Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. """ - pulumi.set(__self__, "kind", kind) pulumi.set(__self__, "name", name) - - @property - @pulumi.getter - def kind(self) -> pulumi.Input[str]: - """ - Machine config kind (string) - """ - return pulumi.get(self, "kind") - - @kind.setter - def kind(self, value: pulumi.Input[str]): - pulumi.set(self, "kind", value) + if default_permissions is not None: + pulumi.set(__self__, "default_permissions", default_permissions) + if items is not None: + pulumi.set(__self__, "items", items) @property @pulumi.getter def name(self) -> pulumi.Input[str]: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -22078,67 +22306,60 @@ def name(self) -> pulumi.Input[str]: def name(self, value: pulumi.Input[str]): pulumi.set(self, "name", value) - -@pulumi.input_type -class ClusterV2RkeConfigMachinePoolRollingUpdateArgs: - def __init__(__self__, *, - max_surge: Optional[pulumi.Input[str]] = None, - max_unavailable: Optional[pulumi.Input[str]] = None): - """ - :param pulumi.Input[str] max_surge: Rolling update max surge (string) - :param pulumi.Input[str] max_unavailable: Rolling update max unavailable (string) - """ - if max_surge is not None: - pulumi.set(__self__, "max_surge", max_surge) - if max_unavailable is not None: - pulumi.set(__self__, "max_unavailable", max_unavailable) - @property - @pulumi.getter(name="maxSurge") - def max_surge(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter(name="defaultPermissions") + def default_permissions(self) -> Optional[pulumi.Input[str]]: """ - Rolling update max surge (string) + The numeric representation of the default file permissions for all files defined under the items. """ - return pulumi.get(self, "max_surge") + return pulumi.get(self, "default_permissions") - @max_surge.setter - def max_surge(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "max_surge", value) + @default_permissions.setter + def default_permissions(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "default_permissions", value) @property - @pulumi.getter(name="maxUnavailable") - def max_unavailable(self) -> Optional[pulumi.Input[str]]: + @pulumi.getter + def items(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs']]]]: """ - Rolling update max unavailable (string) + Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. """ - return pulumi.get(self, "max_unavailable") + return pulumi.get(self, "items") - @max_unavailable.setter - def max_unavailable(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "max_unavailable", value) + @items.setter + def items(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs']]]]): + pulumi.set(self, "items", value) @pulumi.input_type -class ClusterV2RkeConfigMachinePoolTaintArgs: +class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs: def __init__(__self__, *, key: pulumi.Input[str], - value: pulumi.Input[str], - effect: Optional[pulumi.Input[str]] = None): + path: pulumi.Input[str], + dynamic: Optional[pulumi.Input[bool]] = None, + hash: Optional[pulumi.Input[str]] = None, + permissions: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] key: Machine selector label match expressions key (string) - :param pulumi.Input[str] value: The taint value (string) - :param pulumi.Input[str] effect: The taint effect. Default: `\\"NoExecute\\"` (string) + :param pulumi.Input[str] key: Key is the name of the key of the item to retrieve. + :param pulumi.Input[str] path: Path is the absolute path to put the file in the target node. + :param pulumi.Input[bool] dynamic: If true, the file is ignored when determining whether the node should be drained before updating the node plan. + :param pulumi.Input[str] hash: Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + :param pulumi.Input[str] permissions: Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. """ pulumi.set(__self__, "key", key) - pulumi.set(__self__, "value", value) - if effect is not None: - pulumi.set(__self__, "effect", effect) + pulumi.set(__self__, "path", path) + if dynamic is not None: + pulumi.set(__self__, "dynamic", dynamic) + if hash is not None: + pulumi.set(__self__, "hash", hash) + if permissions is not None: + pulumi.set(__self__, "permissions", permissions) @property @pulumi.getter def key(self) -> pulumi.Input[str]: """ - Machine selector label match expressions key (string) + Key is the name of the key of the item to retrieve. """ return pulumi.get(self, "key") @@ -22148,76 +22369,61 @@ def key(self, value: pulumi.Input[str]): @property @pulumi.getter - def value(self) -> pulumi.Input[str]: + def path(self) -> pulumi.Input[str]: """ - The taint value (string) + Path is the absolute path to put the file in the target node. """ - return pulumi.get(self, "value") + return pulumi.get(self, "path") - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) + @path.setter + def path(self, value: pulumi.Input[str]): + pulumi.set(self, "path", value) @property @pulumi.getter - def effect(self) -> Optional[pulumi.Input[str]]: + def dynamic(self) -> Optional[pulumi.Input[bool]]: """ - The taint effect. Default: `\\"NoExecute\\"` (string) + If true, the file is ignored when determining whether the node should be drained before updating the node plan. """ - return pulumi.get(self, "effect") - - @effect.setter - def effect(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "effect", value) - + return pulumi.get(self, "dynamic") -@pulumi.input_type -class ClusterV2RkeConfigMachineSelectorConfigArgs: - def __init__(__self__, *, - config: Optional[pulumi.Input[str]] = None, - machine_label_selector: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs']] = None): - """ - :param pulumi.Input[str] config: Machine selector config. Must be in YAML format (string) - :param pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs'] machine_label_selector: Machine selector label (list maxitems:1) - """ - if config is not None: - pulumi.set(__self__, "config", config) - if machine_label_selector is not None: - pulumi.set(__self__, "machine_label_selector", machine_label_selector) + @dynamic.setter + def dynamic(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "dynamic", value) @property @pulumi.getter - def config(self) -> Optional[pulumi.Input[str]]: + def hash(self) -> Optional[pulumi.Input[str]]: """ - Machine selector config. Must be in YAML format (string) + Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. """ - return pulumi.get(self, "config") + return pulumi.get(self, "hash") - @config.setter - def config(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "config", value) + @hash.setter + def hash(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "hash", value) @property - @pulumi.getter(name="machineLabelSelector") - def machine_label_selector(self) -> Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs']]: + @pulumi.getter + def permissions(self) -> Optional[pulumi.Input[str]]: """ - Machine selector label (list maxitems:1) + Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. """ - return pulumi.get(self, "machine_label_selector") + return pulumi.get(self, "permissions") - @machine_label_selector.setter - def machine_label_selector(self, value: Optional[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs']]): - pulumi.set(self, "machine_label_selector", value) + @permissions.setter + def permissions(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "permissions", value) @pulumi.input_type -class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs: +class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs: def __init__(__self__, *, - match_expressions: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs']]]] = None, + match_expressions: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs']]]] = None, match_labels: Optional[pulumi.Input[Mapping[str, Any]]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs']]] match_expressions: Machine selector label match expressions (list) - :param pulumi.Input[Mapping[str, Any]] match_labels: Machine selector label match labels (map) + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs']]] match_expressions: Match expressions is a list of label selector requirements. The requirements are ANDed. + :param pulumi.Input[Mapping[str, Any]] match_labels: Machine selector label is a map of {key,value} pairs, the requirements are ANDed. """ if match_expressions is not None: pulumi.set(__self__, "match_expressions", match_expressions) @@ -22226,21 +22432,21 @@ def __init__(__self__, *, @property @pulumi.getter(name="matchExpressions") - def match_expressions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs']]]]: + def match_expressions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs']]]]: """ - Machine selector label match expressions (list) + Match expressions is a list of label selector requirements. The requirements are ANDed. """ return pulumi.get(self, "match_expressions") @match_expressions.setter - def match_expressions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs']]]]): + def match_expressions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs']]]]): pulumi.set(self, "match_expressions", value) @property @pulumi.getter(name="matchLabels") def match_labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - Machine selector label match labels (map) + Machine selector label is a map of {key,value} pairs, the requirements are ANDed. """ return pulumi.get(self, "match_labels") @@ -22250,15 +22456,15 @@ def match_labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.input_type -class ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs: +class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs: def __init__(__self__, *, key: Optional[pulumi.Input[str]] = None, operator: Optional[pulumi.Input[str]] = None, values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input[str] key: Machine selector label match expressions key (string) - :param pulumi.Input[str] operator: Machine selector label match expressions operator (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] values: Machine selector label match expressions values (List string) + :param pulumi.Input[str] key: Key is the name of the key of the item to retrieve. + :param pulumi.Input[str] operator: Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + :param pulumi.Input[Sequence[pulumi.Input[str]]] values: Values is a list of string values. """ if key is not None: pulumi.set(__self__, "key", key) @@ -22271,7 +22477,7 @@ def __init__(__self__, *, @pulumi.getter def key(self) -> Optional[pulumi.Input[str]]: """ - Machine selector label match expressions key (string) + Key is the name of the key of the item to retrieve. """ return pulumi.get(self, "key") @@ -22283,7 +22489,7 @@ def key(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def operator(self) -> Optional[pulumi.Input[str]]: """ - Machine selector label match expressions operator (string) + Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. """ return pulumi.get(self, "operator") @@ -22295,7 +22501,7 @@ def operator(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def values(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Machine selector label match expressions values (List string) + Values is a list of string values. """ return pulumi.get(self, "values") @@ -22310,8 +22516,8 @@ def __init__(__self__, *, configs: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigRegistriesConfigArgs']]]] = None, mirrors: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigRegistriesMirrorArgs']]]] = None): """ - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigRegistriesConfigArgs']]] configs: Cluster V2 docker registries config (list) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigRegistriesMirrorArgs']]] mirrors: Cluster V2 docker registries mirror (list) + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigRegistriesConfigArgs']]] configs: Cluster V2 docker registries config. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigRegistriesMirrorArgs']]] mirrors: Cluster V2 docker registries mirror. """ if configs is not None: pulumi.set(__self__, "configs", configs) @@ -22322,7 +22528,7 @@ def __init__(__self__, *, @pulumi.getter def configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigRegistriesConfigArgs']]]]: """ - Cluster V2 docker registries config (list) + Cluster V2 docker registries config. """ return pulumi.get(self, "configs") @@ -22334,7 +22540,7 @@ def configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2R @pulumi.getter def mirrors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2RkeConfigRegistriesMirrorArgs']]]]: """ - Cluster V2 docker registries mirror (list) + Cluster V2 docker registries mirror. """ return pulumi.get(self, "mirrors") @@ -22352,11 +22558,11 @@ def __init__(__self__, *, insecure: Optional[pulumi.Input[bool]] = None, tls_secret_name: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] hostname: Registry hostname (string) - :param pulumi.Input[str] auth_config_secret_name: Registry auth config secret name (string) - :param pulumi.Input[str] ca_bundle: Registry CA bundle (string) - :param pulumi.Input[bool] insecure: Registry insecure connectivity (bool) - :param pulumi.Input[str] tls_secret_name: Registry TLS secret name. TLS is a pair of Cert/Key (string) + :param pulumi.Input[str] hostname: Registry hostname. + :param pulumi.Input[str] auth_config_secret_name: Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. + :param pulumi.Input[str] ca_bundle: Registry CA bundle. + :param pulumi.Input[bool] insecure: Registry insecure connectivity. + :param pulumi.Input[str] tls_secret_name: Registry TLS secret name. TLS is a pair of Cert/Key. """ pulumi.set(__self__, "hostname", hostname) if auth_config_secret_name is not None: @@ -22372,7 +22578,7 @@ def __init__(__self__, *, @pulumi.getter def hostname(self) -> pulumi.Input[str]: """ - Registry hostname (string) + Registry hostname. """ return pulumi.get(self, "hostname") @@ -22384,7 +22590,7 @@ def hostname(self, value: pulumi.Input[str]): @pulumi.getter(name="authConfigSecretName") def auth_config_secret_name(self) -> Optional[pulumi.Input[str]]: """ - Registry auth config secret name (string) + Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. """ return pulumi.get(self, "auth_config_secret_name") @@ -22396,7 +22602,7 @@ def auth_config_secret_name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="caBundle") def ca_bundle(self) -> Optional[pulumi.Input[str]]: """ - Registry CA bundle (string) + Registry CA bundle. """ return pulumi.get(self, "ca_bundle") @@ -22408,7 +22614,7 @@ def ca_bundle(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def insecure(self) -> Optional[pulumi.Input[bool]]: """ - Registry insecure connectivity (bool) + Registry insecure connectivity. """ return pulumi.get(self, "insecure") @@ -22420,7 +22626,7 @@ def insecure(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="tlsSecretName") def tls_secret_name(self) -> Optional[pulumi.Input[str]]: """ - Registry TLS secret name. TLS is a pair of Cert/Key (string) + Registry TLS secret name. TLS is a pair of Cert/Key. """ return pulumi.get(self, "tls_secret_name") @@ -22436,9 +22642,9 @@ def __init__(__self__, *, endpoints: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, rewrites: Optional[pulumi.Input[Mapping[str, Any]]] = None): """ - :param pulumi.Input[str] hostname: Registry hostname (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] endpoints: Registry mirror endpoints (List) - :param pulumi.Input[Mapping[str, Any]] rewrites: Registry mirror rewrites (map) + :param pulumi.Input[str] hostname: Registry hostname. + :param pulumi.Input[Sequence[pulumi.Input[str]]] endpoints: Registry mirror endpoints. + :param pulumi.Input[Mapping[str, Any]] rewrites: Registry mirror rewrites. """ pulumi.set(__self__, "hostname", hostname) if endpoints is not None: @@ -22450,7 +22656,7 @@ def __init__(__self__, *, @pulumi.getter def hostname(self) -> pulumi.Input[str]: """ - Registry hostname (string) + Registry hostname. """ return pulumi.get(self, "hostname") @@ -22462,7 +22668,7 @@ def hostname(self, value: pulumi.Input[str]): @pulumi.getter def endpoints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Registry mirror endpoints (List) + Registry mirror endpoints. """ return pulumi.get(self, "endpoints") @@ -22474,7 +22680,7 @@ def endpoints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @pulumi.getter def rewrites(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - Registry mirror rewrites (map) + Registry mirror rewrites. """ return pulumi.get(self, "rewrites") @@ -22489,8 +22695,8 @@ def __init__(__self__, *, generation: pulumi.Input[int], services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ - :param pulumi.Input[int] generation: ETCD snapshot desired generation (int) - :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Service certificates to rotate with this generation (string) + :param pulumi.Input[int] generation: ETCD snapshot desired generation. + :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Service certificates to rotate with this generation. """ pulumi.set(__self__, "generation", generation) if services is not None: @@ -22500,7 +22706,7 @@ def __init__(__self__, *, @pulumi.getter def generation(self) -> pulumi.Input[int]: """ - ETCD snapshot desired generation (int) + ETCD snapshot desired generation. """ return pulumi.get(self, "generation") @@ -22512,7 +22718,7 @@ def generation(self, value: pulumi.Input[int]): @pulumi.getter def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Service certificates to rotate with this generation (string) + Service certificates to rotate with this generation. """ return pulumi.get(self, "services") @@ -22529,10 +22735,10 @@ def __init__(__self__, *, worker_concurrency: Optional[pulumi.Input[str]] = None, worker_drain_options: Optional[pulumi.Input['ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs']] = None): """ - :param pulumi.Input[str] control_plane_concurrency: How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) - :param pulumi.Input['ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs'] control_plane_drain_options: Controlplane nodes drain options (list maxitems:1) - :param pulumi.Input[str] worker_concurrency: How many worker nodes should be upgrade at time. Percentages are also accepted (string) - :param pulumi.Input['ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs'] worker_drain_options: Worker nodes drain options (list maxitems:1) + :param pulumi.Input[str] control_plane_concurrency: How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. + :param pulumi.Input['ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs'] control_plane_drain_options: Controlplane nodes drain options. + :param pulumi.Input[str] worker_concurrency: How many worker nodes should be upgraded at a time. Percentages are also accepted. + :param pulumi.Input['ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs'] worker_drain_options: Worker nodes drain options. """ if control_plane_concurrency is not None: pulumi.set(__self__, "control_plane_concurrency", control_plane_concurrency) @@ -22547,7 +22753,7 @@ def __init__(__self__, *, @pulumi.getter(name="controlPlaneConcurrency") def control_plane_concurrency(self) -> Optional[pulumi.Input[str]]: """ - How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. """ return pulumi.get(self, "control_plane_concurrency") @@ -22559,7 +22765,7 @@ def control_plane_concurrency(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="controlPlaneDrainOptions") def control_plane_drain_options(self) -> Optional[pulumi.Input['ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs']]: """ - Controlplane nodes drain options (list maxitems:1) + Controlplane nodes drain options. """ return pulumi.get(self, "control_plane_drain_options") @@ -22571,7 +22777,7 @@ def control_plane_drain_options(self, value: Optional[pulumi.Input['ClusterV2Rke @pulumi.getter(name="workerConcurrency") def worker_concurrency(self) -> Optional[pulumi.Input[str]]: """ - How many worker nodes should be upgrade at time. Percentages are also accepted (string) + How many worker nodes should be upgraded at a time. Percentages are also accepted. """ return pulumi.get(self, "worker_concurrency") @@ -22583,7 +22789,7 @@ def worker_concurrency(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="workerDrainOptions") def worker_drain_options(self) -> Optional[pulumi.Input['ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs']]: """ - Worker nodes drain options (list maxitems:1) + Worker nodes drain options. """ return pulumi.get(self, "worker_drain_options") @@ -22605,15 +22811,15 @@ def __init__(__self__, *, skip_wait_for_delete_timeout_seconds: Optional[pulumi.Input[int]] = None, timeout: Optional[pulumi.Input[int]] = None): """ - :param pulumi.Input[bool] delete_empty_dir_data: Drain options delete empty dir data. Default `false` (bool) - :param pulumi.Input[bool] disable_eviction: Drain options disable eviction. Default `false` (bool) - :param pulumi.Input[bool] enabled: Drain options enabled? Default `true` (bool) - :param pulumi.Input[bool] force: Drain options force. Default `false` (bool) - :param pulumi.Input[int] grace_period: Drain options grace period (int) - :param pulumi.Input[bool] ignore_daemon_sets: Drain options ignore daemon sets. Default `true` (bool) - :param pulumi.Input[bool] ignore_errors: Drain options ignore errors. Default `false` (bool) - :param pulumi.Input[int] skip_wait_for_delete_timeout_seconds: Drain options skip wait for delete timeout seconds (int) - :param pulumi.Input[int] timeout: Drain options timeout (int) + :param pulumi.Input[bool] delete_empty_dir_data: if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). + :param pulumi.Input[bool] disable_eviction: If `disable_eviction` is set to true, force drain to use delete rather than evict. + :param pulumi.Input[bool] enabled: If `enabled` is set to true, nodes will be drained before upgrade. + :param pulumi.Input[bool] force: If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. + :param pulumi.Input[int] grace_period: Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. + :param pulumi.Input[bool] ignore_daemon_sets: If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. + :param pulumi.Input[bool] ignore_errors: If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. + :param pulumi.Input[int] skip_wait_for_delete_timeout_seconds: Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. + :param pulumi.Input[int] timeout: Time to wait (in seconds) before giving up for one try. """ if delete_empty_dir_data is not None: pulumi.set(__self__, "delete_empty_dir_data", delete_empty_dir_data) @@ -22638,7 +22844,7 @@ def __init__(__self__, *, @pulumi.getter(name="deleteEmptyDirData") def delete_empty_dir_data(self) -> Optional[pulumi.Input[bool]]: """ - Drain options delete empty dir data. Default `false` (bool) + if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). """ return pulumi.get(self, "delete_empty_dir_data") @@ -22650,7 +22856,7 @@ def delete_empty_dir_data(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="disableEviction") def disable_eviction(self) -> Optional[pulumi.Input[bool]]: """ - Drain options disable eviction. Default `false` (bool) + If `disable_eviction` is set to true, force drain to use delete rather than evict. """ return pulumi.get(self, "disable_eviction") @@ -22662,7 +22868,7 @@ def disable_eviction(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def enabled(self) -> Optional[pulumi.Input[bool]]: """ - Drain options enabled? Default `true` (bool) + If `enabled` is set to true, nodes will be drained before upgrade. """ return pulumi.get(self, "enabled") @@ -22674,7 +22880,7 @@ def enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def force(self) -> Optional[pulumi.Input[bool]]: """ - Drain options force. Default `false` (bool) + If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. """ return pulumi.get(self, "force") @@ -22686,7 +22892,7 @@ def force(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="gracePeriod") def grace_period(self) -> Optional[pulumi.Input[int]]: """ - Drain options grace period (int) + Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. """ return pulumi.get(self, "grace_period") @@ -22698,7 +22904,7 @@ def grace_period(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="ignoreDaemonSets") def ignore_daemon_sets(self) -> Optional[pulumi.Input[bool]]: """ - Drain options ignore daemon sets. Default `true` (bool) + If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. """ return pulumi.get(self, "ignore_daemon_sets") @@ -22710,7 +22916,7 @@ def ignore_daemon_sets(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="ignoreErrors") def ignore_errors(self) -> Optional[pulumi.Input[bool]]: """ - Drain options ignore errors. Default `false` (bool) + If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. """ return pulumi.get(self, "ignore_errors") @@ -22722,7 +22928,7 @@ def ignore_errors(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="skipWaitForDeleteTimeoutSeconds") def skip_wait_for_delete_timeout_seconds(self) -> Optional[pulumi.Input[int]]: """ - Drain options skip wait for delete timeout seconds (int) + Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. """ return pulumi.get(self, "skip_wait_for_delete_timeout_seconds") @@ -22734,7 +22940,7 @@ def skip_wait_for_delete_timeout_seconds(self, value: Optional[pulumi.Input[int] @pulumi.getter def timeout(self) -> Optional[pulumi.Input[int]]: """ - Drain options timeout (int) + Time to wait (in seconds) before giving up for one try. """ return pulumi.get(self, "timeout") @@ -22756,15 +22962,15 @@ def __init__(__self__, *, skip_wait_for_delete_timeout_seconds: Optional[pulumi.Input[int]] = None, timeout: Optional[pulumi.Input[int]] = None): """ - :param pulumi.Input[bool] delete_empty_dir_data: Drain options delete empty dir data. Default `false` (bool) - :param pulumi.Input[bool] disable_eviction: Drain options disable eviction. Default `false` (bool) - :param pulumi.Input[bool] enabled: Drain options enabled? Default `true` (bool) - :param pulumi.Input[bool] force: Drain options force. Default `false` (bool) - :param pulumi.Input[int] grace_period: Drain options grace period (int) - :param pulumi.Input[bool] ignore_daemon_sets: Drain options ignore daemon sets. Default `true` (bool) - :param pulumi.Input[bool] ignore_errors: Drain options ignore errors. Default `false` (bool) - :param pulumi.Input[int] skip_wait_for_delete_timeout_seconds: Drain options skip wait for delete timeout seconds (int) - :param pulumi.Input[int] timeout: Drain options timeout (int) + :param pulumi.Input[bool] delete_empty_dir_data: if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). + :param pulumi.Input[bool] disable_eviction: If `disable_eviction` is set to true, force drain to use delete rather than evict. + :param pulumi.Input[bool] enabled: If `enabled` is set to true, nodes will be drained before upgrade. + :param pulumi.Input[bool] force: If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. + :param pulumi.Input[int] grace_period: Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. + :param pulumi.Input[bool] ignore_daemon_sets: If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. + :param pulumi.Input[bool] ignore_errors: If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. + :param pulumi.Input[int] skip_wait_for_delete_timeout_seconds: Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. + :param pulumi.Input[int] timeout: Time to wait (in seconds) before giving up for one try. """ if delete_empty_dir_data is not None: pulumi.set(__self__, "delete_empty_dir_data", delete_empty_dir_data) @@ -22789,7 +22995,7 @@ def __init__(__self__, *, @pulumi.getter(name="deleteEmptyDirData") def delete_empty_dir_data(self) -> Optional[pulumi.Input[bool]]: """ - Drain options delete empty dir data. Default `false` (bool) + if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). """ return pulumi.get(self, "delete_empty_dir_data") @@ -22801,7 +23007,7 @@ def delete_empty_dir_data(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="disableEviction") def disable_eviction(self) -> Optional[pulumi.Input[bool]]: """ - Drain options disable eviction. Default `false` (bool) + If `disable_eviction` is set to true, force drain to use delete rather than evict. """ return pulumi.get(self, "disable_eviction") @@ -22813,7 +23019,7 @@ def disable_eviction(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def enabled(self) -> Optional[pulumi.Input[bool]]: """ - Drain options enabled? Default `true` (bool) + If `enabled` is set to true, nodes will be drained before upgrade. """ return pulumi.get(self, "enabled") @@ -22825,7 +23031,7 @@ def enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def force(self) -> Optional[pulumi.Input[bool]]: """ - Drain options force. Default `false` (bool) + If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. """ return pulumi.get(self, "force") @@ -22837,7 +23043,7 @@ def force(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="gracePeriod") def grace_period(self) -> Optional[pulumi.Input[int]]: """ - Drain options grace period (int) + Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. """ return pulumi.get(self, "grace_period") @@ -22849,7 +23055,7 @@ def grace_period(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="ignoreDaemonSets") def ignore_daemon_sets(self) -> Optional[pulumi.Input[bool]]: """ - Drain options ignore daemon sets. Default `true` (bool) + If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. """ return pulumi.get(self, "ignore_daemon_sets") @@ -22861,7 +23067,7 @@ def ignore_daemon_sets(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="ignoreErrors") def ignore_errors(self) -> Optional[pulumi.Input[bool]]: """ - Drain options ignore errors. Default `false` (bool) + If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. """ return pulumi.get(self, "ignore_errors") @@ -22873,7 +23079,7 @@ def ignore_errors(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="skipWaitForDeleteTimeoutSeconds") def skip_wait_for_delete_timeout_seconds(self) -> Optional[pulumi.Input[int]]: """ - Drain options skip wait for delete timeout seconds (int) + Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. """ return pulumi.get(self, "skip_wait_for_delete_timeout_seconds") @@ -22885,7 +23091,7 @@ def skip_wait_for_delete_timeout_seconds(self, value: Optional[pulumi.Input[int] @pulumi.getter def timeout(self) -> Optional[pulumi.Input[int]]: """ - Drain options timeout (int) + Time to wait (in seconds) before giving up for one try. """ return pulumi.get(self, "timeout") @@ -25932,6 +26138,7 @@ def __init__(__self__, *, datastore_cluster: Optional[pulumi.Input[str]] = None, disk_size: Optional[pulumi.Input[str]] = None, folder: Optional[pulumi.Input[str]] = None, + graceful_shutdown_timeout: Optional[pulumi.Input[str]] = None, hostsystem: Optional[pulumi.Input[str]] = None, memory_size: Optional[pulumi.Input[str]] = None, networks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -25964,6 +26171,7 @@ def __init__(__self__, *, :param pulumi.Input[str] datastore_cluster: vSphere datastore cluster for virtual machine (string) :param pulumi.Input[str] disk_size: vSphere size of disk for docker VM (in MB). Default `20480` (string) :param pulumi.Input[str] folder: vSphere folder for the docker VM. This folder must already exist in the datacenter (string) + :param pulumi.Input[str] graceful_shutdown_timeout: Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) :param pulumi.Input[str] hostsystem: vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) :param pulumi.Input[str] memory_size: vSphere size of memory for docker VM (in MB). Default `2048` (string) :param pulumi.Input[Sequence[pulumi.Input[str]]] networks: vSphere network where the docker VM will be attached (list) @@ -26010,6 +26218,8 @@ def __init__(__self__, *, pulumi.set(__self__, "disk_size", disk_size) if folder is not None: pulumi.set(__self__, "folder", folder) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) if hostsystem is not None: pulumi.set(__self__, "hostsystem", hostsystem) if memory_size is not None: @@ -26213,6 +26423,18 @@ def folder(self) -> Optional[pulumi.Input[str]]: def folder(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "folder", value) + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[pulumi.Input[str]]: + """ + Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + """ + return pulumi.get(self, "graceful_shutdown_timeout") + + @graceful_shutdown_timeout.setter + def graceful_shutdown_timeout(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "graceful_shutdown_timeout", value) + @property @pulumi.getter def hostsystem(self) -> Optional[pulumi.Input[str]]: @@ -30235,6 +30457,7 @@ def __init__(__self__, *, datastore_cluster: Optional[pulumi.Input[str]] = None, disk_size: Optional[pulumi.Input[str]] = None, folder: Optional[pulumi.Input[str]] = None, + graceful_shutdown_timeout: Optional[pulumi.Input[str]] = None, hostsystem: Optional[pulumi.Input[str]] = None, memory_size: Optional[pulumi.Input[str]] = None, networks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -30267,6 +30490,7 @@ def __init__(__self__, *, :param pulumi.Input[str] datastore_cluster: vSphere datastore cluster for virtual machine. From Rancher v2.3.3 (string) :param pulumi.Input[str] disk_size: vSphere size of disk for docker VM (in MB). Default `20480` (string) :param pulumi.Input[str] folder: vSphere folder for the docker VM. This folder must already exist in the datacenter (string) + :param pulumi.Input[str] graceful_shutdown_timeout: Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero :param pulumi.Input[str] hostsystem: vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) :param pulumi.Input[str] memory_size: vSphere size of memory for docker VM (in MB). Default `2048` (string) :param pulumi.Input[Sequence[pulumi.Input[str]]] networks: vSphere network where the docker VM will be attached (list) @@ -30313,6 +30537,8 @@ def __init__(__self__, *, pulumi.set(__self__, "disk_size", disk_size) if folder is not None: pulumi.set(__self__, "folder", folder) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) if hostsystem is not None: pulumi.set(__self__, "hostsystem", hostsystem) if memory_size is not None: @@ -30516,6 +30742,18 @@ def folder(self) -> Optional[pulumi.Input[str]]: def folder(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "folder", value) + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[pulumi.Input[str]]: + """ + Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + """ + return pulumi.get(self, "graceful_shutdown_timeout") + + @graceful_shutdown_timeout.setter + def graceful_shutdown_timeout(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "graceful_shutdown_timeout", value) + @property @pulumi.getter def hostsystem(self) -> Optional[pulumi.Input[str]]: @@ -32634,93 +32872,6 @@ def username(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "username", value) -@pulumi.input_type -class RoleTempalteRuleArgs: - def __init__(__self__, *, - api_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - non_resource_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - resource_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - resources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - verbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): - """ - :param pulumi.Input[Sequence[pulumi.Input[str]]] api_groups: Policy rule api groups (list) - :param pulumi.Input[Sequence[pulumi.Input[str]]] non_resource_urls: Policy rule non resource urls (list) - :param pulumi.Input[Sequence[pulumi.Input[str]]] resource_names: Policy rule resource names (list) - :param pulumi.Input[Sequence[pulumi.Input[str]]] resources: Policy rule resources (list) - :param pulumi.Input[Sequence[pulumi.Input[str]]] verbs: Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - """ - if api_groups is not None: - pulumi.set(__self__, "api_groups", api_groups) - if non_resource_urls is not None: - pulumi.set(__self__, "non_resource_urls", non_resource_urls) - if resource_names is not None: - pulumi.set(__self__, "resource_names", resource_names) - if resources is not None: - pulumi.set(__self__, "resources", resources) - if verbs is not None: - pulumi.set(__self__, "verbs", verbs) - - @property - @pulumi.getter(name="apiGroups") - def api_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Policy rule api groups (list) - """ - return pulumi.get(self, "api_groups") - - @api_groups.setter - def api_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "api_groups", value) - - @property - @pulumi.getter(name="nonResourceUrls") - def non_resource_urls(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Policy rule non resource urls (list) - """ - return pulumi.get(self, "non_resource_urls") - - @non_resource_urls.setter - def non_resource_urls(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "non_resource_urls", value) - - @property - @pulumi.getter(name="resourceNames") - def resource_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Policy rule resource names (list) - """ - return pulumi.get(self, "resource_names") - - @resource_names.setter - def resource_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "resource_names", value) - - @property - @pulumi.getter - def resources(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Policy rule resources (list) - """ - return pulumi.get(self, "resources") - - @resources.setter - def resources(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "resources", value) - - @property - @pulumi.getter - def verbs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - """ - return pulumi.get(self, "verbs") - - @verbs.setter - def verbs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "verbs", value) - - @pulumi.input_type class RoleTemplateRuleArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_rancher2/active_directory.py b/sdk/python/pulumi_rancher2/active_directory.py deleted file mode 100644 index 6b891d82f..000000000 --- a/sdk/python/pulumi_rancher2/active_directory.py +++ /dev/null @@ -1,1723 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities - -__all__ = ['ActiveDirectoryArgs', 'ActiveDirectory'] - -@pulumi.input_type -class ActiveDirectoryArgs: - def __init__(__self__, *, - servers: pulumi.Input[Sequence[pulumi.Input[str]]], - service_account_password: pulumi.Input[str], - service_account_username: pulumi.Input[str], - test_password: pulumi.Input[str], - test_username: pulumi.Input[str], - user_search_base: pulumi.Input[str], - access_mode: Optional[pulumi.Input[str]] = None, - allowed_principal_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - certificate: Optional[pulumi.Input[str]] = None, - connection_timeout: Optional[pulumi.Input[int]] = None, - default_login_domain: Optional[pulumi.Input[str]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - group_dn_attribute: Optional[pulumi.Input[str]] = None, - group_member_mapping_attribute: Optional[pulumi.Input[str]] = None, - group_member_user_attribute: Optional[pulumi.Input[str]] = None, - group_name_attribute: Optional[pulumi.Input[str]] = None, - group_object_class: Optional[pulumi.Input[str]] = None, - group_search_attribute: Optional[pulumi.Input[str]] = None, - group_search_base: Optional[pulumi.Input[str]] = None, - group_search_filter: Optional[pulumi.Input[str]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - nested_group_membership_enabled: Optional[pulumi.Input[bool]] = None, - port: Optional[pulumi.Input[int]] = None, - start_tls: Optional[pulumi.Input[bool]] = None, - tls: Optional[pulumi.Input[bool]] = None, - user_disabled_bit_mask: Optional[pulumi.Input[int]] = None, - user_enabled_attribute: Optional[pulumi.Input[str]] = None, - user_login_attribute: Optional[pulumi.Input[str]] = None, - user_name_attribute: Optional[pulumi.Input[str]] = None, - user_object_class: Optional[pulumi.Input[str]] = None, - user_search_attribute: Optional[pulumi.Input[str]] = None, - user_search_filter: Optional[pulumi.Input[str]] = None): - """ - The set of arguments for constructing a ActiveDirectory resource. - :param pulumi.Input[Sequence[pulumi.Input[str]]] servers: ActiveDirectory servers list (list) - :param pulumi.Input[str] service_account_password: Service account password for access ActiveDirectory service (string) - :param pulumi.Input[str] service_account_username: Service account DN for access ActiveDirectory service (string) - :param pulumi.Input[str] test_password: Password for test access to ActiveDirectory service (string) - :param pulumi.Input[str] test_username: Username for test access to ActiveDirectory service (string) - :param pulumi.Input[str] user_search_base: User search base DN (string) - :param pulumi.Input[str] access_mode: Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_principal_ids: Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `test_username` must be added too. (list) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations of the resource (map) - :param pulumi.Input[str] certificate: CA certificate for TLS if selfsigned (string) - :param pulumi.Input[int] connection_timeout: ActiveDirectory connection timeout. Default `5000` (int) - :param pulumi.Input[str] default_login_domain: ActiveDirectory defult login domain (string) - :param pulumi.Input[bool] enabled: Enable auth config provider. Default `true` (bool) - :param pulumi.Input[str] group_dn_attribute: Group DN attribute. Default `distinguishedName` (string) - :param pulumi.Input[str] group_member_mapping_attribute: Group member mapping attribute. Default `member` (string) - :param pulumi.Input[str] group_member_user_attribute: Group member user attribute. Default `distinguishedName` (string) - :param pulumi.Input[str] group_name_attribute: Group name attribute. Default `name` (string) - :param pulumi.Input[str] group_object_class: Group object class. Default `group` (string) - :param pulumi.Input[str] group_search_attribute: Group search attribute. Default `sAMAccountName` (string) - :param pulumi.Input[str] group_search_base: Group search base (string) - :param pulumi.Input[str] group_search_filter: Group search filter (string) - :param pulumi.Input[Mapping[str, Any]] labels: Labels of the resource (map) - :param pulumi.Input[bool] nested_group_membership_enabled: Nested group membership enable. Default `false` (bool) - :param pulumi.Input[int] port: ActiveDirectory port. Default `389` (int) - :param pulumi.Input[bool] start_tls: Enable start TLS connection (bool) - :param pulumi.Input[bool] tls: Enable TLS connection (bool) - :param pulumi.Input[int] user_disabled_bit_mask: User disabled bit mask. Default `2` (int) - :param pulumi.Input[str] user_enabled_attribute: User enable attribute (string) - :param pulumi.Input[str] user_login_attribute: User login attribute. Default `sAMAccountName` (string) - :param pulumi.Input[str] user_name_attribute: User name attribute. Default `name` (string) - :param pulumi.Input[str] user_object_class: User object class. Default `person` (string) - :param pulumi.Input[str] user_search_attribute: User search attribute. Default `sAMAccountName|sn|givenName` (string) - :param pulumi.Input[str] user_search_filter: User search filter (string) - """ - pulumi.set(__self__, "servers", servers) - pulumi.set(__self__, "service_account_password", service_account_password) - pulumi.set(__self__, "service_account_username", service_account_username) - pulumi.set(__self__, "test_password", test_password) - pulumi.set(__self__, "test_username", test_username) - pulumi.set(__self__, "user_search_base", user_search_base) - if access_mode is not None: - pulumi.set(__self__, "access_mode", access_mode) - if allowed_principal_ids is not None: - pulumi.set(__self__, "allowed_principal_ids", allowed_principal_ids) - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if certificate is not None: - pulumi.set(__self__, "certificate", certificate) - if connection_timeout is not None: - pulumi.set(__self__, "connection_timeout", connection_timeout) - if default_login_domain is not None: - pulumi.set(__self__, "default_login_domain", default_login_domain) - if enabled is not None: - pulumi.set(__self__, "enabled", enabled) - if group_dn_attribute is not None: - pulumi.set(__self__, "group_dn_attribute", group_dn_attribute) - if group_member_mapping_attribute is not None: - pulumi.set(__self__, "group_member_mapping_attribute", group_member_mapping_attribute) - if group_member_user_attribute is not None: - pulumi.set(__self__, "group_member_user_attribute", group_member_user_attribute) - if group_name_attribute is not None: - pulumi.set(__self__, "group_name_attribute", group_name_attribute) - if group_object_class is not None: - pulumi.set(__self__, "group_object_class", group_object_class) - if group_search_attribute is not None: - pulumi.set(__self__, "group_search_attribute", group_search_attribute) - if group_search_base is not None: - pulumi.set(__self__, "group_search_base", group_search_base) - if group_search_filter is not None: - pulumi.set(__self__, "group_search_filter", group_search_filter) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if nested_group_membership_enabled is not None: - pulumi.set(__self__, "nested_group_membership_enabled", nested_group_membership_enabled) - if port is not None: - pulumi.set(__self__, "port", port) - if start_tls is not None: - pulumi.set(__self__, "start_tls", start_tls) - if tls is not None: - pulumi.set(__self__, "tls", tls) - if user_disabled_bit_mask is not None: - pulumi.set(__self__, "user_disabled_bit_mask", user_disabled_bit_mask) - if user_enabled_attribute is not None: - pulumi.set(__self__, "user_enabled_attribute", user_enabled_attribute) - if user_login_attribute is not None: - pulumi.set(__self__, "user_login_attribute", user_login_attribute) - if user_name_attribute is not None: - pulumi.set(__self__, "user_name_attribute", user_name_attribute) - if user_object_class is not None: - pulumi.set(__self__, "user_object_class", user_object_class) - if user_search_attribute is not None: - pulumi.set(__self__, "user_search_attribute", user_search_attribute) - if user_search_filter is not None: - pulumi.set(__self__, "user_search_filter", user_search_filter) - - @property - @pulumi.getter - def servers(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: - """ - ActiveDirectory servers list (list) - """ - return pulumi.get(self, "servers") - - @servers.setter - def servers(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): - pulumi.set(self, "servers", value) - - @property - @pulumi.getter(name="serviceAccountPassword") - def service_account_password(self) -> pulumi.Input[str]: - """ - Service account password for access ActiveDirectory service (string) - """ - return pulumi.get(self, "service_account_password") - - @service_account_password.setter - def service_account_password(self, value: pulumi.Input[str]): - pulumi.set(self, "service_account_password", value) - - @property - @pulumi.getter(name="serviceAccountUsername") - def service_account_username(self) -> pulumi.Input[str]: - """ - Service account DN for access ActiveDirectory service (string) - """ - return pulumi.get(self, "service_account_username") - - @service_account_username.setter - def service_account_username(self, value: pulumi.Input[str]): - pulumi.set(self, "service_account_username", value) - - @property - @pulumi.getter(name="testPassword") - def test_password(self) -> pulumi.Input[str]: - """ - Password for test access to ActiveDirectory service (string) - """ - return pulumi.get(self, "test_password") - - @test_password.setter - def test_password(self, value: pulumi.Input[str]): - pulumi.set(self, "test_password", value) - - @property - @pulumi.getter(name="testUsername") - def test_username(self) -> pulumi.Input[str]: - """ - Username for test access to ActiveDirectory service (string) - """ - return pulumi.get(self, "test_username") - - @test_username.setter - def test_username(self, value: pulumi.Input[str]): - pulumi.set(self, "test_username", value) - - @property - @pulumi.getter(name="userSearchBase") - def user_search_base(self) -> pulumi.Input[str]: - """ - User search base DN (string) - """ - return pulumi.get(self, "user_search_base") - - @user_search_base.setter - def user_search_base(self, value: pulumi.Input[str]): - pulumi.set(self, "user_search_base", value) - - @property - @pulumi.getter(name="accessMode") - def access_mode(self) -> Optional[pulumi.Input[str]]: - """ - Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - """ - return pulumi.get(self, "access_mode") - - @access_mode.setter - def access_mode(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "access_mode", value) - - @property - @pulumi.getter(name="allowedPrincipalIds") - def allowed_principal_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `test_username` must be added too. (list) - """ - return pulumi.get(self, "allowed_principal_ids") - - @allowed_principal_ids.setter - def allowed_principal_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "allowed_principal_ids", value) - - @property - @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Annotations of the resource (map) - """ - return pulumi.get(self, "annotations") - - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) - - @property - @pulumi.getter - def certificate(self) -> Optional[pulumi.Input[str]]: - """ - CA certificate for TLS if selfsigned (string) - """ - return pulumi.get(self, "certificate") - - @certificate.setter - def certificate(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "certificate", value) - - @property - @pulumi.getter(name="connectionTimeout") - def connection_timeout(self) -> Optional[pulumi.Input[int]]: - """ - ActiveDirectory connection timeout. Default `5000` (int) - """ - return pulumi.get(self, "connection_timeout") - - @connection_timeout.setter - def connection_timeout(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "connection_timeout", value) - - @property - @pulumi.getter(name="defaultLoginDomain") - def default_login_domain(self) -> Optional[pulumi.Input[str]]: - """ - ActiveDirectory defult login domain (string) - """ - return pulumi.get(self, "default_login_domain") - - @default_login_domain.setter - def default_login_domain(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "default_login_domain", value) - - @property - @pulumi.getter - def enabled(self) -> Optional[pulumi.Input[bool]]: - """ - Enable auth config provider. Default `true` (bool) - """ - return pulumi.get(self, "enabled") - - @enabled.setter - def enabled(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "enabled", value) - - @property - @pulumi.getter(name="groupDnAttribute") - def group_dn_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group DN attribute. Default `distinguishedName` (string) - """ - return pulumi.get(self, "group_dn_attribute") - - @group_dn_attribute.setter - def group_dn_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_dn_attribute", value) - - @property - @pulumi.getter(name="groupMemberMappingAttribute") - def group_member_mapping_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group member mapping attribute. Default `member` (string) - """ - return pulumi.get(self, "group_member_mapping_attribute") - - @group_member_mapping_attribute.setter - def group_member_mapping_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_member_mapping_attribute", value) - - @property - @pulumi.getter(name="groupMemberUserAttribute") - def group_member_user_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group member user attribute. Default `distinguishedName` (string) - """ - return pulumi.get(self, "group_member_user_attribute") - - @group_member_user_attribute.setter - def group_member_user_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_member_user_attribute", value) - - @property - @pulumi.getter(name="groupNameAttribute") - def group_name_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group name attribute. Default `name` (string) - """ - return pulumi.get(self, "group_name_attribute") - - @group_name_attribute.setter - def group_name_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_name_attribute", value) - - @property - @pulumi.getter(name="groupObjectClass") - def group_object_class(self) -> Optional[pulumi.Input[str]]: - """ - Group object class. Default `group` (string) - """ - return pulumi.get(self, "group_object_class") - - @group_object_class.setter - def group_object_class(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_object_class", value) - - @property - @pulumi.getter(name="groupSearchAttribute") - def group_search_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group search attribute. Default `sAMAccountName` (string) - """ - return pulumi.get(self, "group_search_attribute") - - @group_search_attribute.setter - def group_search_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_search_attribute", value) - - @property - @pulumi.getter(name="groupSearchBase") - def group_search_base(self) -> Optional[pulumi.Input[str]]: - """ - Group search base (string) - """ - return pulumi.get(self, "group_search_base") - - @group_search_base.setter - def group_search_base(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_search_base", value) - - @property - @pulumi.getter(name="groupSearchFilter") - def group_search_filter(self) -> Optional[pulumi.Input[str]]: - """ - Group search filter (string) - """ - return pulumi.get(self, "group_search_filter") - - @group_search_filter.setter - def group_search_filter(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_search_filter", value) - - @property - @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Labels of the resource (map) - """ - return pulumi.get(self, "labels") - - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) - - @property - @pulumi.getter(name="nestedGroupMembershipEnabled") - def nested_group_membership_enabled(self) -> Optional[pulumi.Input[bool]]: - """ - Nested group membership enable. Default `false` (bool) - """ - return pulumi.get(self, "nested_group_membership_enabled") - - @nested_group_membership_enabled.setter - def nested_group_membership_enabled(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "nested_group_membership_enabled", value) - - @property - @pulumi.getter - def port(self) -> Optional[pulumi.Input[int]]: - """ - ActiveDirectory port. Default `389` (int) - """ - return pulumi.get(self, "port") - - @port.setter - def port(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "port", value) - - @property - @pulumi.getter(name="startTls") - def start_tls(self) -> Optional[pulumi.Input[bool]]: - """ - Enable start TLS connection (bool) - """ - return pulumi.get(self, "start_tls") - - @start_tls.setter - def start_tls(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "start_tls", value) - - @property - @pulumi.getter - def tls(self) -> Optional[pulumi.Input[bool]]: - """ - Enable TLS connection (bool) - """ - return pulumi.get(self, "tls") - - @tls.setter - def tls(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "tls", value) - - @property - @pulumi.getter(name="userDisabledBitMask") - def user_disabled_bit_mask(self) -> Optional[pulumi.Input[int]]: - """ - User disabled bit mask. Default `2` (int) - """ - return pulumi.get(self, "user_disabled_bit_mask") - - @user_disabled_bit_mask.setter - def user_disabled_bit_mask(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "user_disabled_bit_mask", value) - - @property - @pulumi.getter(name="userEnabledAttribute") - def user_enabled_attribute(self) -> Optional[pulumi.Input[str]]: - """ - User enable attribute (string) - """ - return pulumi.get(self, "user_enabled_attribute") - - @user_enabled_attribute.setter - def user_enabled_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_enabled_attribute", value) - - @property - @pulumi.getter(name="userLoginAttribute") - def user_login_attribute(self) -> Optional[pulumi.Input[str]]: - """ - User login attribute. Default `sAMAccountName` (string) - """ - return pulumi.get(self, "user_login_attribute") - - @user_login_attribute.setter - def user_login_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_login_attribute", value) - - @property - @pulumi.getter(name="userNameAttribute") - def user_name_attribute(self) -> Optional[pulumi.Input[str]]: - """ - User name attribute. Default `name` (string) - """ - return pulumi.get(self, "user_name_attribute") - - @user_name_attribute.setter - def user_name_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_name_attribute", value) - - @property - @pulumi.getter(name="userObjectClass") - def user_object_class(self) -> Optional[pulumi.Input[str]]: - """ - User object class. Default `person` (string) - """ - return pulumi.get(self, "user_object_class") - - @user_object_class.setter - def user_object_class(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_object_class", value) - - @property - @pulumi.getter(name="userSearchAttribute") - def user_search_attribute(self) -> Optional[pulumi.Input[str]]: - """ - User search attribute. Default `sAMAccountName|sn|givenName` (string) - """ - return pulumi.get(self, "user_search_attribute") - - @user_search_attribute.setter - def user_search_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_search_attribute", value) - - @property - @pulumi.getter(name="userSearchFilter") - def user_search_filter(self) -> Optional[pulumi.Input[str]]: - """ - User search filter (string) - """ - return pulumi.get(self, "user_search_filter") - - @user_search_filter.setter - def user_search_filter(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_search_filter", value) - - -@pulumi.input_type -class _ActiveDirectoryState: - def __init__(__self__, *, - access_mode: Optional[pulumi.Input[str]] = None, - allowed_principal_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - certificate: Optional[pulumi.Input[str]] = None, - connection_timeout: Optional[pulumi.Input[int]] = None, - default_login_domain: Optional[pulumi.Input[str]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - group_dn_attribute: Optional[pulumi.Input[str]] = None, - group_member_mapping_attribute: Optional[pulumi.Input[str]] = None, - group_member_user_attribute: Optional[pulumi.Input[str]] = None, - group_name_attribute: Optional[pulumi.Input[str]] = None, - group_object_class: Optional[pulumi.Input[str]] = None, - group_search_attribute: Optional[pulumi.Input[str]] = None, - group_search_base: Optional[pulumi.Input[str]] = None, - group_search_filter: Optional[pulumi.Input[str]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - nested_group_membership_enabled: Optional[pulumi.Input[bool]] = None, - port: Optional[pulumi.Input[int]] = None, - servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - service_account_password: Optional[pulumi.Input[str]] = None, - service_account_username: Optional[pulumi.Input[str]] = None, - start_tls: Optional[pulumi.Input[bool]] = None, - test_password: Optional[pulumi.Input[str]] = None, - test_username: Optional[pulumi.Input[str]] = None, - tls: Optional[pulumi.Input[bool]] = None, - type: Optional[pulumi.Input[str]] = None, - user_disabled_bit_mask: Optional[pulumi.Input[int]] = None, - user_enabled_attribute: Optional[pulumi.Input[str]] = None, - user_login_attribute: Optional[pulumi.Input[str]] = None, - user_name_attribute: Optional[pulumi.Input[str]] = None, - user_object_class: Optional[pulumi.Input[str]] = None, - user_search_attribute: Optional[pulumi.Input[str]] = None, - user_search_base: Optional[pulumi.Input[str]] = None, - user_search_filter: Optional[pulumi.Input[str]] = None): - """ - Input properties used for looking up and filtering ActiveDirectory resources. - :param pulumi.Input[str] access_mode: Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_principal_ids: Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `test_username` must be added too. (list) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations of the resource (map) - :param pulumi.Input[str] certificate: CA certificate for TLS if selfsigned (string) - :param pulumi.Input[int] connection_timeout: ActiveDirectory connection timeout. Default `5000` (int) - :param pulumi.Input[str] default_login_domain: ActiveDirectory defult login domain (string) - :param pulumi.Input[bool] enabled: Enable auth config provider. Default `true` (bool) - :param pulumi.Input[str] group_dn_attribute: Group DN attribute. Default `distinguishedName` (string) - :param pulumi.Input[str] group_member_mapping_attribute: Group member mapping attribute. Default `member` (string) - :param pulumi.Input[str] group_member_user_attribute: Group member user attribute. Default `distinguishedName` (string) - :param pulumi.Input[str] group_name_attribute: Group name attribute. Default `name` (string) - :param pulumi.Input[str] group_object_class: Group object class. Default `group` (string) - :param pulumi.Input[str] group_search_attribute: Group search attribute. Default `sAMAccountName` (string) - :param pulumi.Input[str] group_search_base: Group search base (string) - :param pulumi.Input[str] group_search_filter: Group search filter (string) - :param pulumi.Input[Mapping[str, Any]] labels: Labels of the resource (map) - :param pulumi.Input[str] name: (Computed) The name of the resource (string) - :param pulumi.Input[bool] nested_group_membership_enabled: Nested group membership enable. Default `false` (bool) - :param pulumi.Input[int] port: ActiveDirectory port. Default `389` (int) - :param pulumi.Input[Sequence[pulumi.Input[str]]] servers: ActiveDirectory servers list (list) - :param pulumi.Input[str] service_account_password: Service account password for access ActiveDirectory service (string) - :param pulumi.Input[str] service_account_username: Service account DN for access ActiveDirectory service (string) - :param pulumi.Input[bool] start_tls: Enable start TLS connection (bool) - :param pulumi.Input[str] test_password: Password for test access to ActiveDirectory service (string) - :param pulumi.Input[str] test_username: Username for test access to ActiveDirectory service (string) - :param pulumi.Input[bool] tls: Enable TLS connection (bool) - :param pulumi.Input[str] type: (Computed) The type of the resource (string) - :param pulumi.Input[int] user_disabled_bit_mask: User disabled bit mask. Default `2` (int) - :param pulumi.Input[str] user_enabled_attribute: User enable attribute (string) - :param pulumi.Input[str] user_login_attribute: User login attribute. Default `sAMAccountName` (string) - :param pulumi.Input[str] user_name_attribute: User name attribute. Default `name` (string) - :param pulumi.Input[str] user_object_class: User object class. Default `person` (string) - :param pulumi.Input[str] user_search_attribute: User search attribute. Default `sAMAccountName|sn|givenName` (string) - :param pulumi.Input[str] user_search_base: User search base DN (string) - :param pulumi.Input[str] user_search_filter: User search filter (string) - """ - if access_mode is not None: - pulumi.set(__self__, "access_mode", access_mode) - if allowed_principal_ids is not None: - pulumi.set(__self__, "allowed_principal_ids", allowed_principal_ids) - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if certificate is not None: - pulumi.set(__self__, "certificate", certificate) - if connection_timeout is not None: - pulumi.set(__self__, "connection_timeout", connection_timeout) - if default_login_domain is not None: - pulumi.set(__self__, "default_login_domain", default_login_domain) - if enabled is not None: - pulumi.set(__self__, "enabled", enabled) - if group_dn_attribute is not None: - pulumi.set(__self__, "group_dn_attribute", group_dn_attribute) - if group_member_mapping_attribute is not None: - pulumi.set(__self__, "group_member_mapping_attribute", group_member_mapping_attribute) - if group_member_user_attribute is not None: - pulumi.set(__self__, "group_member_user_attribute", group_member_user_attribute) - if group_name_attribute is not None: - pulumi.set(__self__, "group_name_attribute", group_name_attribute) - if group_object_class is not None: - pulumi.set(__self__, "group_object_class", group_object_class) - if group_search_attribute is not None: - pulumi.set(__self__, "group_search_attribute", group_search_attribute) - if group_search_base is not None: - pulumi.set(__self__, "group_search_base", group_search_base) - if group_search_filter is not None: - pulumi.set(__self__, "group_search_filter", group_search_filter) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if name is not None: - pulumi.set(__self__, "name", name) - if nested_group_membership_enabled is not None: - pulumi.set(__self__, "nested_group_membership_enabled", nested_group_membership_enabled) - if port is not None: - pulumi.set(__self__, "port", port) - if servers is not None: - pulumi.set(__self__, "servers", servers) - if service_account_password is not None: - pulumi.set(__self__, "service_account_password", service_account_password) - if service_account_username is not None: - pulumi.set(__self__, "service_account_username", service_account_username) - if start_tls is not None: - pulumi.set(__self__, "start_tls", start_tls) - if test_password is not None: - pulumi.set(__self__, "test_password", test_password) - if test_username is not None: - pulumi.set(__self__, "test_username", test_username) - if tls is not None: - pulumi.set(__self__, "tls", tls) - if type is not None: - pulumi.set(__self__, "type", type) - if user_disabled_bit_mask is not None: - pulumi.set(__self__, "user_disabled_bit_mask", user_disabled_bit_mask) - if user_enabled_attribute is not None: - pulumi.set(__self__, "user_enabled_attribute", user_enabled_attribute) - if user_login_attribute is not None: - pulumi.set(__self__, "user_login_attribute", user_login_attribute) - if user_name_attribute is not None: - pulumi.set(__self__, "user_name_attribute", user_name_attribute) - if user_object_class is not None: - pulumi.set(__self__, "user_object_class", user_object_class) - if user_search_attribute is not None: - pulumi.set(__self__, "user_search_attribute", user_search_attribute) - if user_search_base is not None: - pulumi.set(__self__, "user_search_base", user_search_base) - if user_search_filter is not None: - pulumi.set(__self__, "user_search_filter", user_search_filter) - - @property - @pulumi.getter(name="accessMode") - def access_mode(self) -> Optional[pulumi.Input[str]]: - """ - Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - """ - return pulumi.get(self, "access_mode") - - @access_mode.setter - def access_mode(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "access_mode", value) - - @property - @pulumi.getter(name="allowedPrincipalIds") - def allowed_principal_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `test_username` must be added too. (list) - """ - return pulumi.get(self, "allowed_principal_ids") - - @allowed_principal_ids.setter - def allowed_principal_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "allowed_principal_ids", value) - - @property - @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Annotations of the resource (map) - """ - return pulumi.get(self, "annotations") - - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) - - @property - @pulumi.getter - def certificate(self) -> Optional[pulumi.Input[str]]: - """ - CA certificate for TLS if selfsigned (string) - """ - return pulumi.get(self, "certificate") - - @certificate.setter - def certificate(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "certificate", value) - - @property - @pulumi.getter(name="connectionTimeout") - def connection_timeout(self) -> Optional[pulumi.Input[int]]: - """ - ActiveDirectory connection timeout. Default `5000` (int) - """ - return pulumi.get(self, "connection_timeout") - - @connection_timeout.setter - def connection_timeout(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "connection_timeout", value) - - @property - @pulumi.getter(name="defaultLoginDomain") - def default_login_domain(self) -> Optional[pulumi.Input[str]]: - """ - ActiveDirectory defult login domain (string) - """ - return pulumi.get(self, "default_login_domain") - - @default_login_domain.setter - def default_login_domain(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "default_login_domain", value) - - @property - @pulumi.getter - def enabled(self) -> Optional[pulumi.Input[bool]]: - """ - Enable auth config provider. Default `true` (bool) - """ - return pulumi.get(self, "enabled") - - @enabled.setter - def enabled(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "enabled", value) - - @property - @pulumi.getter(name="groupDnAttribute") - def group_dn_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group DN attribute. Default `distinguishedName` (string) - """ - return pulumi.get(self, "group_dn_attribute") - - @group_dn_attribute.setter - def group_dn_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_dn_attribute", value) - - @property - @pulumi.getter(name="groupMemberMappingAttribute") - def group_member_mapping_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group member mapping attribute. Default `member` (string) - """ - return pulumi.get(self, "group_member_mapping_attribute") - - @group_member_mapping_attribute.setter - def group_member_mapping_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_member_mapping_attribute", value) - - @property - @pulumi.getter(name="groupMemberUserAttribute") - def group_member_user_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group member user attribute. Default `distinguishedName` (string) - """ - return pulumi.get(self, "group_member_user_attribute") - - @group_member_user_attribute.setter - def group_member_user_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_member_user_attribute", value) - - @property - @pulumi.getter(name="groupNameAttribute") - def group_name_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group name attribute. Default `name` (string) - """ - return pulumi.get(self, "group_name_attribute") - - @group_name_attribute.setter - def group_name_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_name_attribute", value) - - @property - @pulumi.getter(name="groupObjectClass") - def group_object_class(self) -> Optional[pulumi.Input[str]]: - """ - Group object class. Default `group` (string) - """ - return pulumi.get(self, "group_object_class") - - @group_object_class.setter - def group_object_class(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_object_class", value) - - @property - @pulumi.getter(name="groupSearchAttribute") - def group_search_attribute(self) -> Optional[pulumi.Input[str]]: - """ - Group search attribute. Default `sAMAccountName` (string) - """ - return pulumi.get(self, "group_search_attribute") - - @group_search_attribute.setter - def group_search_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_search_attribute", value) - - @property - @pulumi.getter(name="groupSearchBase") - def group_search_base(self) -> Optional[pulumi.Input[str]]: - """ - Group search base (string) - """ - return pulumi.get(self, "group_search_base") - - @group_search_base.setter - def group_search_base(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_search_base", value) - - @property - @pulumi.getter(name="groupSearchFilter") - def group_search_filter(self) -> Optional[pulumi.Input[str]]: - """ - Group search filter (string) - """ - return pulumi.get(self, "group_search_filter") - - @group_search_filter.setter - def group_search_filter(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_search_filter", value) - - @property - @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Labels of the resource (map) - """ - return pulumi.get(self, "labels") - - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - (Computed) The name of the resource (string) - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter(name="nestedGroupMembershipEnabled") - def nested_group_membership_enabled(self) -> Optional[pulumi.Input[bool]]: - """ - Nested group membership enable. Default `false` (bool) - """ - return pulumi.get(self, "nested_group_membership_enabled") - - @nested_group_membership_enabled.setter - def nested_group_membership_enabled(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "nested_group_membership_enabled", value) - - @property - @pulumi.getter - def port(self) -> Optional[pulumi.Input[int]]: - """ - ActiveDirectory port. Default `389` (int) - """ - return pulumi.get(self, "port") - - @port.setter - def port(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "port", value) - - @property - @pulumi.getter - def servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - ActiveDirectory servers list (list) - """ - return pulumi.get(self, "servers") - - @servers.setter - def servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "servers", value) - - @property - @pulumi.getter(name="serviceAccountPassword") - def service_account_password(self) -> Optional[pulumi.Input[str]]: - """ - Service account password for access ActiveDirectory service (string) - """ - return pulumi.get(self, "service_account_password") - - @service_account_password.setter - def service_account_password(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "service_account_password", value) - - @property - @pulumi.getter(name="serviceAccountUsername") - def service_account_username(self) -> Optional[pulumi.Input[str]]: - """ - Service account DN for access ActiveDirectory service (string) - """ - return pulumi.get(self, "service_account_username") - - @service_account_username.setter - def service_account_username(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "service_account_username", value) - - @property - @pulumi.getter(name="startTls") - def start_tls(self) -> Optional[pulumi.Input[bool]]: - """ - Enable start TLS connection (bool) - """ - return pulumi.get(self, "start_tls") - - @start_tls.setter - def start_tls(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "start_tls", value) - - @property - @pulumi.getter(name="testPassword") - def test_password(self) -> Optional[pulumi.Input[str]]: - """ - Password for test access to ActiveDirectory service (string) - """ - return pulumi.get(self, "test_password") - - @test_password.setter - def test_password(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "test_password", value) - - @property - @pulumi.getter(name="testUsername") - def test_username(self) -> Optional[pulumi.Input[str]]: - """ - Username for test access to ActiveDirectory service (string) - """ - return pulumi.get(self, "test_username") - - @test_username.setter - def test_username(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "test_username", value) - - @property - @pulumi.getter - def tls(self) -> Optional[pulumi.Input[bool]]: - """ - Enable TLS connection (bool) - """ - return pulumi.get(self, "tls") - - @tls.setter - def tls(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "tls", value) - - @property - @pulumi.getter - def type(self) -> Optional[pulumi.Input[str]]: - """ - (Computed) The type of the resource (string) - """ - return pulumi.get(self, "type") - - @type.setter - def type(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "type", value) - - @property - @pulumi.getter(name="userDisabledBitMask") - def user_disabled_bit_mask(self) -> Optional[pulumi.Input[int]]: - """ - User disabled bit mask. Default `2` (int) - """ - return pulumi.get(self, "user_disabled_bit_mask") - - @user_disabled_bit_mask.setter - def user_disabled_bit_mask(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "user_disabled_bit_mask", value) - - @property - @pulumi.getter(name="userEnabledAttribute") - def user_enabled_attribute(self) -> Optional[pulumi.Input[str]]: - """ - User enable attribute (string) - """ - return pulumi.get(self, "user_enabled_attribute") - - @user_enabled_attribute.setter - def user_enabled_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_enabled_attribute", value) - - @property - @pulumi.getter(name="userLoginAttribute") - def user_login_attribute(self) -> Optional[pulumi.Input[str]]: - """ - User login attribute. Default `sAMAccountName` (string) - """ - return pulumi.get(self, "user_login_attribute") - - @user_login_attribute.setter - def user_login_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_login_attribute", value) - - @property - @pulumi.getter(name="userNameAttribute") - def user_name_attribute(self) -> Optional[pulumi.Input[str]]: - """ - User name attribute. Default `name` (string) - """ - return pulumi.get(self, "user_name_attribute") - - @user_name_attribute.setter - def user_name_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_name_attribute", value) - - @property - @pulumi.getter(name="userObjectClass") - def user_object_class(self) -> Optional[pulumi.Input[str]]: - """ - User object class. Default `person` (string) - """ - return pulumi.get(self, "user_object_class") - - @user_object_class.setter - def user_object_class(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_object_class", value) - - @property - @pulumi.getter(name="userSearchAttribute") - def user_search_attribute(self) -> Optional[pulumi.Input[str]]: - """ - User search attribute. Default `sAMAccountName|sn|givenName` (string) - """ - return pulumi.get(self, "user_search_attribute") - - @user_search_attribute.setter - def user_search_attribute(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_search_attribute", value) - - @property - @pulumi.getter(name="userSearchBase") - def user_search_base(self) -> Optional[pulumi.Input[str]]: - """ - User search base DN (string) - """ - return pulumi.get(self, "user_search_base") - - @user_search_base.setter - def user_search_base(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_search_base", value) - - @property - @pulumi.getter(name="userSearchFilter") - def user_search_filter(self) -> Optional[pulumi.Input[str]]: - """ - User search filter (string) - """ - return pulumi.get(self, "user_search_filter") - - @user_search_filter.setter - def user_search_filter(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "user_search_filter", value) - - -warnings.warn("""rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory""", DeprecationWarning) - - -class ActiveDirectory(pulumi.CustomResource): - warnings.warn("""rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory""", DeprecationWarning) - - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - access_mode: Optional[pulumi.Input[str]] = None, - allowed_principal_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - certificate: Optional[pulumi.Input[str]] = None, - connection_timeout: Optional[pulumi.Input[int]] = None, - default_login_domain: Optional[pulumi.Input[str]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - group_dn_attribute: Optional[pulumi.Input[str]] = None, - group_member_mapping_attribute: Optional[pulumi.Input[str]] = None, - group_member_user_attribute: Optional[pulumi.Input[str]] = None, - group_name_attribute: Optional[pulumi.Input[str]] = None, - group_object_class: Optional[pulumi.Input[str]] = None, - group_search_attribute: Optional[pulumi.Input[str]] = None, - group_search_base: Optional[pulumi.Input[str]] = None, - group_search_filter: Optional[pulumi.Input[str]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - nested_group_membership_enabled: Optional[pulumi.Input[bool]] = None, - port: Optional[pulumi.Input[int]] = None, - servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - service_account_password: Optional[pulumi.Input[str]] = None, - service_account_username: Optional[pulumi.Input[str]] = None, - start_tls: Optional[pulumi.Input[bool]] = None, - test_password: Optional[pulumi.Input[str]] = None, - test_username: Optional[pulumi.Input[str]] = None, - tls: Optional[pulumi.Input[bool]] = None, - user_disabled_bit_mask: Optional[pulumi.Input[int]] = None, - user_enabled_attribute: Optional[pulumi.Input[str]] = None, - user_login_attribute: Optional[pulumi.Input[str]] = None, - user_name_attribute: Optional[pulumi.Input[str]] = None, - user_object_class: Optional[pulumi.Input[str]] = None, - user_search_attribute: Optional[pulumi.Input[str]] = None, - user_search_base: Optional[pulumi.Input[str]] = None, - user_search_filter: Optional[pulumi.Input[str]] = None, - __props__=None): - """ - Provides a Rancher v2 Auth Config ActiveDirectory resource. This can be used to configure and enable Auth Config ActiveDirectory for Rancher v2 RKE clusters and retrieve their information. - - In addition to the built-in local auth, only one external auth config provider can be enabled at a time. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] access_mode: Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_principal_ids: Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `test_username` must be added too. (list) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations of the resource (map) - :param pulumi.Input[str] certificate: CA certificate for TLS if selfsigned (string) - :param pulumi.Input[int] connection_timeout: ActiveDirectory connection timeout. Default `5000` (int) - :param pulumi.Input[str] default_login_domain: ActiveDirectory defult login domain (string) - :param pulumi.Input[bool] enabled: Enable auth config provider. Default `true` (bool) - :param pulumi.Input[str] group_dn_attribute: Group DN attribute. Default `distinguishedName` (string) - :param pulumi.Input[str] group_member_mapping_attribute: Group member mapping attribute. Default `member` (string) - :param pulumi.Input[str] group_member_user_attribute: Group member user attribute. Default `distinguishedName` (string) - :param pulumi.Input[str] group_name_attribute: Group name attribute. Default `name` (string) - :param pulumi.Input[str] group_object_class: Group object class. Default `group` (string) - :param pulumi.Input[str] group_search_attribute: Group search attribute. Default `sAMAccountName` (string) - :param pulumi.Input[str] group_search_base: Group search base (string) - :param pulumi.Input[str] group_search_filter: Group search filter (string) - :param pulumi.Input[Mapping[str, Any]] labels: Labels of the resource (map) - :param pulumi.Input[bool] nested_group_membership_enabled: Nested group membership enable. Default `false` (bool) - :param pulumi.Input[int] port: ActiveDirectory port. Default `389` (int) - :param pulumi.Input[Sequence[pulumi.Input[str]]] servers: ActiveDirectory servers list (list) - :param pulumi.Input[str] service_account_password: Service account password for access ActiveDirectory service (string) - :param pulumi.Input[str] service_account_username: Service account DN for access ActiveDirectory service (string) - :param pulumi.Input[bool] start_tls: Enable start TLS connection (bool) - :param pulumi.Input[str] test_password: Password for test access to ActiveDirectory service (string) - :param pulumi.Input[str] test_username: Username for test access to ActiveDirectory service (string) - :param pulumi.Input[bool] tls: Enable TLS connection (bool) - :param pulumi.Input[int] user_disabled_bit_mask: User disabled bit mask. Default `2` (int) - :param pulumi.Input[str] user_enabled_attribute: User enable attribute (string) - :param pulumi.Input[str] user_login_attribute: User login attribute. Default `sAMAccountName` (string) - :param pulumi.Input[str] user_name_attribute: User name attribute. Default `name` (string) - :param pulumi.Input[str] user_object_class: User object class. Default `person` (string) - :param pulumi.Input[str] user_search_attribute: User search attribute. Default `sAMAccountName|sn|givenName` (string) - :param pulumi.Input[str] user_search_base: User search base DN (string) - :param pulumi.Input[str] user_search_filter: User search filter (string) - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: ActiveDirectoryArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Provides a Rancher v2 Auth Config ActiveDirectory resource. This can be used to configure and enable Auth Config ActiveDirectory for Rancher v2 RKE clusters and retrieve their information. - - In addition to the built-in local auth, only one external auth config provider can be enabled at a time. - - :param str resource_name: The name of the resource. - :param ActiveDirectoryArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(ActiveDirectoryArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - access_mode: Optional[pulumi.Input[str]] = None, - allowed_principal_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - certificate: Optional[pulumi.Input[str]] = None, - connection_timeout: Optional[pulumi.Input[int]] = None, - default_login_domain: Optional[pulumi.Input[str]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - group_dn_attribute: Optional[pulumi.Input[str]] = None, - group_member_mapping_attribute: Optional[pulumi.Input[str]] = None, - group_member_user_attribute: Optional[pulumi.Input[str]] = None, - group_name_attribute: Optional[pulumi.Input[str]] = None, - group_object_class: Optional[pulumi.Input[str]] = None, - group_search_attribute: Optional[pulumi.Input[str]] = None, - group_search_base: Optional[pulumi.Input[str]] = None, - group_search_filter: Optional[pulumi.Input[str]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - nested_group_membership_enabled: Optional[pulumi.Input[bool]] = None, - port: Optional[pulumi.Input[int]] = None, - servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - service_account_password: Optional[pulumi.Input[str]] = None, - service_account_username: Optional[pulumi.Input[str]] = None, - start_tls: Optional[pulumi.Input[bool]] = None, - test_password: Optional[pulumi.Input[str]] = None, - test_username: Optional[pulumi.Input[str]] = None, - tls: Optional[pulumi.Input[bool]] = None, - user_disabled_bit_mask: Optional[pulumi.Input[int]] = None, - user_enabled_attribute: Optional[pulumi.Input[str]] = None, - user_login_attribute: Optional[pulumi.Input[str]] = None, - user_name_attribute: Optional[pulumi.Input[str]] = None, - user_object_class: Optional[pulumi.Input[str]] = None, - user_search_attribute: Optional[pulumi.Input[str]] = None, - user_search_base: Optional[pulumi.Input[str]] = None, - user_search_filter: Optional[pulumi.Input[str]] = None, - __props__=None): - pulumi.log.warn("""ActiveDirectory is deprecated: rancher2.ActiveDirectory has been deprecated in favor of rancher2.AuthConfigActiveDirectory""") - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = ActiveDirectoryArgs.__new__(ActiveDirectoryArgs) - - __props__.__dict__["access_mode"] = access_mode - __props__.__dict__["allowed_principal_ids"] = allowed_principal_ids - __props__.__dict__["annotations"] = annotations - __props__.__dict__["certificate"] = None if certificate is None else pulumi.Output.secret(certificate) - __props__.__dict__["connection_timeout"] = connection_timeout - __props__.__dict__["default_login_domain"] = default_login_domain - __props__.__dict__["enabled"] = enabled - __props__.__dict__["group_dn_attribute"] = group_dn_attribute - __props__.__dict__["group_member_mapping_attribute"] = group_member_mapping_attribute - __props__.__dict__["group_member_user_attribute"] = group_member_user_attribute - __props__.__dict__["group_name_attribute"] = group_name_attribute - __props__.__dict__["group_object_class"] = group_object_class - __props__.__dict__["group_search_attribute"] = group_search_attribute - __props__.__dict__["group_search_base"] = group_search_base - __props__.__dict__["group_search_filter"] = group_search_filter - __props__.__dict__["labels"] = labels - __props__.__dict__["nested_group_membership_enabled"] = nested_group_membership_enabled - __props__.__dict__["port"] = port - if servers is None and not opts.urn: - raise TypeError("Missing required property 'servers'") - __props__.__dict__["servers"] = servers - if service_account_password is None and not opts.urn: - raise TypeError("Missing required property 'service_account_password'") - __props__.__dict__["service_account_password"] = None if service_account_password is None else pulumi.Output.secret(service_account_password) - if service_account_username is None and not opts.urn: - raise TypeError("Missing required property 'service_account_username'") - __props__.__dict__["service_account_username"] = None if service_account_username is None else pulumi.Output.secret(service_account_username) - __props__.__dict__["start_tls"] = start_tls - if test_password is None and not opts.urn: - raise TypeError("Missing required property 'test_password'") - __props__.__dict__["test_password"] = None if test_password is None else pulumi.Output.secret(test_password) - if test_username is None and not opts.urn: - raise TypeError("Missing required property 'test_username'") - __props__.__dict__["test_username"] = test_username - __props__.__dict__["tls"] = tls - __props__.__dict__["user_disabled_bit_mask"] = user_disabled_bit_mask - __props__.__dict__["user_enabled_attribute"] = user_enabled_attribute - __props__.__dict__["user_login_attribute"] = user_login_attribute - __props__.__dict__["user_name_attribute"] = user_name_attribute - __props__.__dict__["user_object_class"] = user_object_class - __props__.__dict__["user_search_attribute"] = user_search_attribute - if user_search_base is None and not opts.urn: - raise TypeError("Missing required property 'user_search_base'") - __props__.__dict__["user_search_base"] = user_search_base - __props__.__dict__["user_search_filter"] = user_search_filter - __props__.__dict__["name"] = None - __props__.__dict__["type"] = None - secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["certificate", "serviceAccountPassword", "serviceAccountUsername", "testPassword"]) - opts = pulumi.ResourceOptions.merge(opts, secret_opts) - super(ActiveDirectory, __self__).__init__( - 'rancher2:index/activeDirectory:ActiveDirectory', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - access_mode: Optional[pulumi.Input[str]] = None, - allowed_principal_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - certificate: Optional[pulumi.Input[str]] = None, - connection_timeout: Optional[pulumi.Input[int]] = None, - default_login_domain: Optional[pulumi.Input[str]] = None, - enabled: Optional[pulumi.Input[bool]] = None, - group_dn_attribute: Optional[pulumi.Input[str]] = None, - group_member_mapping_attribute: Optional[pulumi.Input[str]] = None, - group_member_user_attribute: Optional[pulumi.Input[str]] = None, - group_name_attribute: Optional[pulumi.Input[str]] = None, - group_object_class: Optional[pulumi.Input[str]] = None, - group_search_attribute: Optional[pulumi.Input[str]] = None, - group_search_base: Optional[pulumi.Input[str]] = None, - group_search_filter: Optional[pulumi.Input[str]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - nested_group_membership_enabled: Optional[pulumi.Input[bool]] = None, - port: Optional[pulumi.Input[int]] = None, - servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - service_account_password: Optional[pulumi.Input[str]] = None, - service_account_username: Optional[pulumi.Input[str]] = None, - start_tls: Optional[pulumi.Input[bool]] = None, - test_password: Optional[pulumi.Input[str]] = None, - test_username: Optional[pulumi.Input[str]] = None, - tls: Optional[pulumi.Input[bool]] = None, - type: Optional[pulumi.Input[str]] = None, - user_disabled_bit_mask: Optional[pulumi.Input[int]] = None, - user_enabled_attribute: Optional[pulumi.Input[str]] = None, - user_login_attribute: Optional[pulumi.Input[str]] = None, - user_name_attribute: Optional[pulumi.Input[str]] = None, - user_object_class: Optional[pulumi.Input[str]] = None, - user_search_attribute: Optional[pulumi.Input[str]] = None, - user_search_base: Optional[pulumi.Input[str]] = None, - user_search_filter: Optional[pulumi.Input[str]] = None) -> 'ActiveDirectory': - """ - Get an existing ActiveDirectory resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :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] access_mode: Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_principal_ids: Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `test_username` must be added too. (list) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations of the resource (map) - :param pulumi.Input[str] certificate: CA certificate for TLS if selfsigned (string) - :param pulumi.Input[int] connection_timeout: ActiveDirectory connection timeout. Default `5000` (int) - :param pulumi.Input[str] default_login_domain: ActiveDirectory defult login domain (string) - :param pulumi.Input[bool] enabled: Enable auth config provider. Default `true` (bool) - :param pulumi.Input[str] group_dn_attribute: Group DN attribute. Default `distinguishedName` (string) - :param pulumi.Input[str] group_member_mapping_attribute: Group member mapping attribute. Default `member` (string) - :param pulumi.Input[str] group_member_user_attribute: Group member user attribute. Default `distinguishedName` (string) - :param pulumi.Input[str] group_name_attribute: Group name attribute. Default `name` (string) - :param pulumi.Input[str] group_object_class: Group object class. Default `group` (string) - :param pulumi.Input[str] group_search_attribute: Group search attribute. Default `sAMAccountName` (string) - :param pulumi.Input[str] group_search_base: Group search base (string) - :param pulumi.Input[str] group_search_filter: Group search filter (string) - :param pulumi.Input[Mapping[str, Any]] labels: Labels of the resource (map) - :param pulumi.Input[str] name: (Computed) The name of the resource (string) - :param pulumi.Input[bool] nested_group_membership_enabled: Nested group membership enable. Default `false` (bool) - :param pulumi.Input[int] port: ActiveDirectory port. Default `389` (int) - :param pulumi.Input[Sequence[pulumi.Input[str]]] servers: ActiveDirectory servers list (list) - :param pulumi.Input[str] service_account_password: Service account password for access ActiveDirectory service (string) - :param pulumi.Input[str] service_account_username: Service account DN for access ActiveDirectory service (string) - :param pulumi.Input[bool] start_tls: Enable start TLS connection (bool) - :param pulumi.Input[str] test_password: Password for test access to ActiveDirectory service (string) - :param pulumi.Input[str] test_username: Username for test access to ActiveDirectory service (string) - :param pulumi.Input[bool] tls: Enable TLS connection (bool) - :param pulumi.Input[str] type: (Computed) The type of the resource (string) - :param pulumi.Input[int] user_disabled_bit_mask: User disabled bit mask. Default `2` (int) - :param pulumi.Input[str] user_enabled_attribute: User enable attribute (string) - :param pulumi.Input[str] user_login_attribute: User login attribute. Default `sAMAccountName` (string) - :param pulumi.Input[str] user_name_attribute: User name attribute. Default `name` (string) - :param pulumi.Input[str] user_object_class: User object class. Default `person` (string) - :param pulumi.Input[str] user_search_attribute: User search attribute. Default `sAMAccountName|sn|givenName` (string) - :param pulumi.Input[str] user_search_base: User search base DN (string) - :param pulumi.Input[str] user_search_filter: User search filter (string) - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _ActiveDirectoryState.__new__(_ActiveDirectoryState) - - __props__.__dict__["access_mode"] = access_mode - __props__.__dict__["allowed_principal_ids"] = allowed_principal_ids - __props__.__dict__["annotations"] = annotations - __props__.__dict__["certificate"] = certificate - __props__.__dict__["connection_timeout"] = connection_timeout - __props__.__dict__["default_login_domain"] = default_login_domain - __props__.__dict__["enabled"] = enabled - __props__.__dict__["group_dn_attribute"] = group_dn_attribute - __props__.__dict__["group_member_mapping_attribute"] = group_member_mapping_attribute - __props__.__dict__["group_member_user_attribute"] = group_member_user_attribute - __props__.__dict__["group_name_attribute"] = group_name_attribute - __props__.__dict__["group_object_class"] = group_object_class - __props__.__dict__["group_search_attribute"] = group_search_attribute - __props__.__dict__["group_search_base"] = group_search_base - __props__.__dict__["group_search_filter"] = group_search_filter - __props__.__dict__["labels"] = labels - __props__.__dict__["name"] = name - __props__.__dict__["nested_group_membership_enabled"] = nested_group_membership_enabled - __props__.__dict__["port"] = port - __props__.__dict__["servers"] = servers - __props__.__dict__["service_account_password"] = service_account_password - __props__.__dict__["service_account_username"] = service_account_username - __props__.__dict__["start_tls"] = start_tls - __props__.__dict__["test_password"] = test_password - __props__.__dict__["test_username"] = test_username - __props__.__dict__["tls"] = tls - __props__.__dict__["type"] = type - __props__.__dict__["user_disabled_bit_mask"] = user_disabled_bit_mask - __props__.__dict__["user_enabled_attribute"] = user_enabled_attribute - __props__.__dict__["user_login_attribute"] = user_login_attribute - __props__.__dict__["user_name_attribute"] = user_name_attribute - __props__.__dict__["user_object_class"] = user_object_class - __props__.__dict__["user_search_attribute"] = user_search_attribute - __props__.__dict__["user_search_base"] = user_search_base - __props__.__dict__["user_search_filter"] = user_search_filter - return ActiveDirectory(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter(name="accessMode") - def access_mode(self) -> pulumi.Output[Optional[str]]: - """ - Access mode for auth. `required`, `restricted`, `unrestricted` are supported. Default `unrestricted` (string) - """ - return pulumi.get(self, "access_mode") - - @property - @pulumi.getter(name="allowedPrincipalIds") - def allowed_principal_ids(self) -> pulumi.Output[Optional[Sequence[str]]]: - """ - Allowed principal ids for auth. Required if `access_mode` is `required` or `restricted`. Ex: `activedirectory_user://` `activedirectory_group://`. The local admin (`local://`) and the `test_username` must be added too. (list) - """ - return pulumi.get(self, "allowed_principal_ids") - - @property - @pulumi.getter - def annotations(self) -> pulumi.Output[Mapping[str, Any]]: - """ - Annotations of the resource (map) - """ - return pulumi.get(self, "annotations") - - @property - @pulumi.getter - def certificate(self) -> pulumi.Output[Optional[str]]: - """ - CA certificate for TLS if selfsigned (string) - """ - return pulumi.get(self, "certificate") - - @property - @pulumi.getter(name="connectionTimeout") - def connection_timeout(self) -> pulumi.Output[Optional[int]]: - """ - ActiveDirectory connection timeout. Default `5000` (int) - """ - return pulumi.get(self, "connection_timeout") - - @property - @pulumi.getter(name="defaultLoginDomain") - def default_login_domain(self) -> pulumi.Output[Optional[str]]: - """ - ActiveDirectory defult login domain (string) - """ - return pulumi.get(self, "default_login_domain") - - @property - @pulumi.getter - def enabled(self) -> pulumi.Output[Optional[bool]]: - """ - Enable auth config provider. Default `true` (bool) - """ - return pulumi.get(self, "enabled") - - @property - @pulumi.getter(name="groupDnAttribute") - def group_dn_attribute(self) -> pulumi.Output[str]: - """ - Group DN attribute. Default `distinguishedName` (string) - """ - return pulumi.get(self, "group_dn_attribute") - - @property - @pulumi.getter(name="groupMemberMappingAttribute") - def group_member_mapping_attribute(self) -> pulumi.Output[str]: - """ - Group member mapping attribute. Default `member` (string) - """ - return pulumi.get(self, "group_member_mapping_attribute") - - @property - @pulumi.getter(name="groupMemberUserAttribute") - def group_member_user_attribute(self) -> pulumi.Output[str]: - """ - Group member user attribute. Default `distinguishedName` (string) - """ - return pulumi.get(self, "group_member_user_attribute") - - @property - @pulumi.getter(name="groupNameAttribute") - def group_name_attribute(self) -> pulumi.Output[str]: - """ - Group name attribute. Default `name` (string) - """ - return pulumi.get(self, "group_name_attribute") - - @property - @pulumi.getter(name="groupObjectClass") - def group_object_class(self) -> pulumi.Output[str]: - """ - Group object class. Default `group` (string) - """ - return pulumi.get(self, "group_object_class") - - @property - @pulumi.getter(name="groupSearchAttribute") - def group_search_attribute(self) -> pulumi.Output[str]: - """ - Group search attribute. Default `sAMAccountName` (string) - """ - return pulumi.get(self, "group_search_attribute") - - @property - @pulumi.getter(name="groupSearchBase") - def group_search_base(self) -> pulumi.Output[str]: - """ - Group search base (string) - """ - return pulumi.get(self, "group_search_base") - - @property - @pulumi.getter(name="groupSearchFilter") - def group_search_filter(self) -> pulumi.Output[str]: - """ - Group search filter (string) - """ - return pulumi.get(self, "group_search_filter") - - @property - @pulumi.getter - def labels(self) -> pulumi.Output[Mapping[str, Any]]: - """ - Labels of the resource (map) - """ - return pulumi.get(self, "labels") - - @property - @pulumi.getter - def name(self) -> pulumi.Output[str]: - """ - (Computed) The name of the resource (string) - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter(name="nestedGroupMembershipEnabled") - def nested_group_membership_enabled(self) -> pulumi.Output[bool]: - """ - Nested group membership enable. Default `false` (bool) - """ - return pulumi.get(self, "nested_group_membership_enabled") - - @property - @pulumi.getter - def port(self) -> pulumi.Output[Optional[int]]: - """ - ActiveDirectory port. Default `389` (int) - """ - return pulumi.get(self, "port") - - @property - @pulumi.getter - def servers(self) -> pulumi.Output[Sequence[str]]: - """ - ActiveDirectory servers list (list) - """ - return pulumi.get(self, "servers") - - @property - @pulumi.getter(name="serviceAccountPassword") - def service_account_password(self) -> pulumi.Output[str]: - """ - Service account password for access ActiveDirectory service (string) - """ - return pulumi.get(self, "service_account_password") - - @property - @pulumi.getter(name="serviceAccountUsername") - def service_account_username(self) -> pulumi.Output[str]: - """ - Service account DN for access ActiveDirectory service (string) - """ - return pulumi.get(self, "service_account_username") - - @property - @pulumi.getter(name="startTls") - def start_tls(self) -> pulumi.Output[bool]: - """ - Enable start TLS connection (bool) - """ - return pulumi.get(self, "start_tls") - - @property - @pulumi.getter(name="testPassword") - def test_password(self) -> pulumi.Output[str]: - """ - Password for test access to ActiveDirectory service (string) - """ - return pulumi.get(self, "test_password") - - @property - @pulumi.getter(name="testUsername") - def test_username(self) -> pulumi.Output[str]: - """ - Username for test access to ActiveDirectory service (string) - """ - return pulumi.get(self, "test_username") - - @property - @pulumi.getter - def tls(self) -> pulumi.Output[bool]: - """ - Enable TLS connection (bool) - """ - return pulumi.get(self, "tls") - - @property - @pulumi.getter - def type(self) -> pulumi.Output[str]: - """ - (Computed) The type of the resource (string) - """ - return pulumi.get(self, "type") - - @property - @pulumi.getter(name="userDisabledBitMask") - def user_disabled_bit_mask(self) -> pulumi.Output[Optional[int]]: - """ - User disabled bit mask. Default `2` (int) - """ - return pulumi.get(self, "user_disabled_bit_mask") - - @property - @pulumi.getter(name="userEnabledAttribute") - def user_enabled_attribute(self) -> pulumi.Output[str]: - """ - User enable attribute (string) - """ - return pulumi.get(self, "user_enabled_attribute") - - @property - @pulumi.getter(name="userLoginAttribute") - def user_login_attribute(self) -> pulumi.Output[str]: - """ - User login attribute. Default `sAMAccountName` (string) - """ - return pulumi.get(self, "user_login_attribute") - - @property - @pulumi.getter(name="userNameAttribute") - def user_name_attribute(self) -> pulumi.Output[str]: - """ - User name attribute. Default `name` (string) - """ - return pulumi.get(self, "user_name_attribute") - - @property - @pulumi.getter(name="userObjectClass") - def user_object_class(self) -> pulumi.Output[str]: - """ - User object class. Default `person` (string) - """ - return pulumi.get(self, "user_object_class") - - @property - @pulumi.getter(name="userSearchAttribute") - def user_search_attribute(self) -> pulumi.Output[str]: - """ - User search attribute. Default `sAMAccountName|sn|givenName` (string) - """ - return pulumi.get(self, "user_search_attribute") - - @property - @pulumi.getter(name="userSearchBase") - def user_search_base(self) -> pulumi.Output[str]: - """ - User search base DN (string) - """ - return pulumi.get(self, "user_search_base") - - @property - @pulumi.getter(name="userSearchFilter") - def user_search_filter(self) -> pulumi.Output[str]: - """ - User search filter (string) - """ - return pulumi.get(self, "user_search_filter") - diff --git a/sdk/python/pulumi_rancher2/app_v2.py b/sdk/python/pulumi_rancher2/app_v2.py index a97b2e0e1..201ad9d87 100644 --- a/sdk/python/pulumi_rancher2/app_v2.py +++ b/sdk/python/pulumi_rancher2/app_v2.py @@ -27,6 +27,7 @@ def __init__(__self__, *, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, project_id: Optional[pulumi.Input[str]] = None, + system_default_registry: Optional[pulumi.Input[str]] = None, values: Optional[pulumi.Input[str]] = None, wait: Optional[pulumi.Input[bool]] = None): """ @@ -44,6 +45,7 @@ def __init__(__self__, *, :param pulumi.Input[Mapping[str, Any]] labels: Labels for the app v2 (map) :param pulumi.Input[str] name: The name of the app v2 (string) :param pulumi.Input[str] project_id: Deploy the app v2 within project ID (string) + :param pulumi.Input[str] system_default_registry: System default registry providing images for app deployment (string) :param pulumi.Input[str] values: The app v2 values yaml. Yaml format is required (string) :param pulumi.Input[bool] wait: Wait until app is deployed. Default: `true` (bool) """ @@ -69,6 +71,8 @@ def __init__(__self__, *, pulumi.set(__self__, "name", name) if project_id is not None: pulumi.set(__self__, "project_id", project_id) + if system_default_registry is not None: + pulumi.set(__self__, "system_default_registry", system_default_registry) if values is not None: pulumi.set(__self__, "values", values) if wait is not None: @@ -230,6 +234,18 @@ def project_id(self) -> Optional[pulumi.Input[str]]: def project_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "project_id", value) + @property + @pulumi.getter(name="systemDefaultRegistry") + def system_default_registry(self) -> Optional[pulumi.Input[str]]: + """ + System default registry providing images for app deployment (string) + """ + return pulumi.get(self, "system_default_registry") + + @system_default_registry.setter + def system_default_registry(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "system_default_registry", value) + @property @pulumi.getter def values(self) -> Optional[pulumi.Input[str]]: @@ -295,7 +311,7 @@ def __init__(__self__, *, :param pulumi.Input[str] namespace: The namespace of the app v2 (string) :param pulumi.Input[str] project_id: Deploy the app v2 within project ID (string) :param pulumi.Input[str] repo_name: Repo name (string) - :param pulumi.Input[str] system_default_registry: (Computed) The system default registry of the app (string) + :param pulumi.Input[str] system_default_registry: System default registry providing images for app deployment (string) :param pulumi.Input[str] values: The app v2 values yaml. Yaml format is required (string) :param pulumi.Input[bool] wait: Wait until app is deployed. Default: `true` (bool) """ @@ -522,7 +538,7 @@ def repo_name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="systemDefaultRegistry") def system_default_registry(self) -> Optional[pulumi.Input[str]]: """ - (Computed) The system default registry of the app (string) + System default registry providing images for app deployment (string) """ return pulumi.get(self, "system_default_registry") @@ -573,6 +589,7 @@ def __init__(__self__, namespace: Optional[pulumi.Input[str]] = None, project_id: Optional[pulumi.Input[str]] = None, repo_name: Optional[pulumi.Input[str]] = None, + system_default_registry: Optional[pulumi.Input[str]] = None, values: Optional[pulumi.Input[str]] = None, wait: Optional[pulumi.Input[bool]] = None, __props__=None): @@ -594,6 +611,21 @@ def __init__(__self__, chart_version="9.4.200", values=(lambda path: open(path).read())("values.yaml")) ``` + ### Create an App from a Helm Chart using a different registry + + The `system_default_registry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead. + + ```python + import pulumi + import pulumi_rancher2 as rancher2 + + cis_benchmark = rancher2.AppV2("cisBenchmark", + chart_name="rancher-cis-benchmark", + cluster_id="", + namespace="cis-operator-system", + repo_name="rancher-charts", + system_default_registry=":") + ``` ## Import @@ -618,6 +650,7 @@ def __init__(__self__, :param pulumi.Input[str] namespace: The namespace of the app v2 (string) :param pulumi.Input[str] project_id: Deploy the app v2 within project ID (string) :param pulumi.Input[str] repo_name: Repo name (string) + :param pulumi.Input[str] system_default_registry: System default registry providing images for app deployment (string) :param pulumi.Input[str] values: The app v2 values yaml. Yaml format is required (string) :param pulumi.Input[bool] wait: Wait until app is deployed. Default: `true` (bool) """ @@ -645,6 +678,21 @@ def __init__(__self__, chart_version="9.4.200", values=(lambda path: open(path).read())("values.yaml")) ``` + ### Create an App from a Helm Chart using a different registry + + The `system_default_registry` argument can override the global value at App installation. If argument is not provided, the global value for System Default Registry will be used instead. + + ```python + import pulumi + import pulumi_rancher2 as rancher2 + + cis_benchmark = rancher2.AppV2("cisBenchmark", + chart_name="rancher-cis-benchmark", + cluster_id="", + namespace="cis-operator-system", + repo_name="rancher-charts", + system_default_registry=":") + ``` ## Import @@ -682,6 +730,7 @@ def _internal_init(__self__, namespace: Optional[pulumi.Input[str]] = None, project_id: Optional[pulumi.Input[str]] = None, repo_name: Optional[pulumi.Input[str]] = None, + system_default_registry: Optional[pulumi.Input[str]] = None, values: Optional[pulumi.Input[str]] = None, wait: Optional[pulumi.Input[bool]] = None, __props__=None): @@ -714,11 +763,11 @@ def _internal_init(__self__, if repo_name is None and not opts.urn: raise TypeError("Missing required property 'repo_name'") __props__.__dict__["repo_name"] = repo_name + __props__.__dict__["system_default_registry"] = system_default_registry __props__.__dict__["values"] = values __props__.__dict__["wait"] = wait __props__.__dict__["cluster_name"] = None __props__.__dict__["deployment_values"] = None - __props__.__dict__["system_default_registry"] = None super(AppV2, __self__).__init__( 'rancher2:index/appV2:AppV2', resource_name, @@ -771,7 +820,7 @@ def get(resource_name: str, :param pulumi.Input[str] namespace: The namespace of the app v2 (string) :param pulumi.Input[str] project_id: Deploy the app v2 within project ID (string) :param pulumi.Input[str] repo_name: Repo name (string) - :param pulumi.Input[str] system_default_registry: (Computed) The system default registry of the app (string) + :param pulumi.Input[str] system_default_registry: System default registry providing images for app deployment (string) :param pulumi.Input[str] values: The app v2 values yaml. Yaml format is required (string) :param pulumi.Input[bool] wait: Wait until app is deployed. Default: `true` (bool) """ @@ -925,7 +974,7 @@ def repo_name(self) -> pulumi.Output[str]: @pulumi.getter(name="systemDefaultRegistry") def system_default_registry(self) -> pulumi.Output[str]: """ - (Computed) The system default registry of the app (string) + System default registry providing images for app deployment (string) """ return pulumi.get(self, "system_default_registry") diff --git a/sdk/python/pulumi_rancher2/auth_config_active_directory.py b/sdk/python/pulumi_rancher2/auth_config_active_directory.py index b66b54180..a19f4d9c7 100644 --- a/sdk/python/pulumi_rancher2/auth_config_active_directory.py +++ b/sdk/python/pulumi_rancher2/auth_config_active_directory.py @@ -1304,8 +1304,6 @@ def _internal_init(__self__, __props__.__dict__["user_search_filter"] = user_search_filter __props__.__dict__["name"] = None __props__.__dict__["type"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="rancher2:index/activeDirectory:ActiveDirectory")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["certificate", "serviceAccountPassword", "serviceAccountUsername", "testPassword"]) opts = pulumi.ResourceOptions.merge(opts, secret_opts) super(AuthConfigActiveDirectory, __self__).__init__( diff --git a/sdk/python/pulumi_rancher2/catalog_v2.py b/sdk/python/pulumi_rancher2/catalog_v2.py index 4f67c7095..1e6449502 100644 --- a/sdk/python/pulumi_rancher2/catalog_v2.py +++ b/sdk/python/pulumi_rancher2/catalog_v2.py @@ -32,7 +32,7 @@ def __init__(__self__, *, The set of arguments for constructing a CatalogV2 resource. :param pulumi.Input[str] cluster_id: The cluster id of the catalog V2 (string) :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the catalog v2 (map) - :param pulumi.Input[str] ca_bundle: PEM encoded CA bundle which will be used to validate the repo's certificate (string) + :param pulumi.Input[str] ca_bundle: CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) :param pulumi.Input[bool] enabled: If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) :param pulumi.Input[str] git_branch: Git Repository branch containing Helm chart definitions. Default `master` (string) :param pulumi.Input[str] git_repo: The url of the catalog v2 repo. Conflicts with `url` (string) @@ -101,7 +101,7 @@ def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.getter(name="caBundle") def ca_bundle(self) -> Optional[pulumi.Input[str]]: """ - PEM encoded CA bundle which will be used to validate the repo's certificate (string) + CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) """ return pulumi.get(self, "ca_bundle") @@ -263,7 +263,7 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering CatalogV2 resources. :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the catalog v2 (map) - :param pulumi.Input[str] ca_bundle: PEM encoded CA bundle which will be used to validate the repo's certificate (string) + :param pulumi.Input[str] ca_bundle: CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) :param pulumi.Input[str] cluster_id: The cluster id of the catalog V2 (string) :param pulumi.Input[bool] enabled: If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) :param pulumi.Input[str] git_branch: Git Repository branch containing Helm chart definitions. Default `master` (string) @@ -325,7 +325,7 @@ def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.getter(name="caBundle") def ca_bundle(self) -> Optional[pulumi.Input[str]]: """ - PEM encoded CA bundle which will be used to validate the repo's certificate (string) + CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) """ return pulumi.get(self, "ca_bundle") @@ -524,7 +524,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the catalog v2 (map) - :param pulumi.Input[str] ca_bundle: PEM encoded CA bundle which will be used to validate the repo's certificate (string) + :param pulumi.Input[str] ca_bundle: CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) :param pulumi.Input[str] cluster_id: The cluster id of the catalog V2 (string) :param pulumi.Input[bool] enabled: If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) :param pulumi.Input[str] git_branch: Git Repository branch containing Helm chart definitions. Default `master` (string) @@ -643,7 +643,7 @@ 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[Mapping[str, Any]] annotations: Annotations for the catalog v2 (map) - :param pulumi.Input[str] ca_bundle: PEM encoded CA bundle which will be used to validate the repo's certificate (string) + :param pulumi.Input[str] ca_bundle: CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) :param pulumi.Input[str] cluster_id: The cluster id of the catalog V2 (string) :param pulumi.Input[bool] enabled: If disabled the repo clone will not be updated or allowed to be installed from. Default: `true` (bool) :param pulumi.Input[str] git_branch: Git Repository branch containing Helm chart definitions. Default `master` (string) @@ -691,7 +691,7 @@ def annotations(self) -> pulumi.Output[Mapping[str, Any]]: @pulumi.getter(name="caBundle") def ca_bundle(self) -> pulumi.Output[Optional[str]]: """ - PEM encoded CA bundle which will be used to validate the repo's certificate (string) + CA certificate in base64-encoded DER format which will be used to validate the repo's certificate (string) """ return pulumi.get(self, "ca_bundle") diff --git a/sdk/python/pulumi_rancher2/cluster_alert_group.py b/sdk/python/pulumi_rancher2/cluster_alert_group.py index 830c39479..4648097f1 100644 --- a/sdk/python/pulumi_rancher2/cluster_alert_group.py +++ b/sdk/python/pulumi_rancher2/cluster_alert_group.py @@ -443,8 +443,6 @@ def _internal_init(__self__, __props__.__dict__["name"] = name __props__.__dict__["recipients"] = recipients __props__.__dict__["repeat_interval_seconds"] = repeat_interval_seconds - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="rancher2:index/clusterAlterGroup:ClusterAlterGroup")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(ClusterAlertGroup, __self__).__init__( 'rancher2:index/clusterAlertGroup:ClusterAlertGroup', resource_name, diff --git a/sdk/python/pulumi_rancher2/cluster_alert_rule.py b/sdk/python/pulumi_rancher2/cluster_alert_rule.py index 6772b0c80..d47d6eacd 100644 --- a/sdk/python/pulumi_rancher2/cluster_alert_rule.py +++ b/sdk/python/pulumi_rancher2/cluster_alert_rule.py @@ -636,8 +636,6 @@ def _internal_init(__self__, __props__.__dict__["repeat_interval_seconds"] = repeat_interval_seconds __props__.__dict__["severity"] = severity __props__.__dict__["system_service_rule"] = system_service_rule - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="rancher2:index/clusterAlterRule:ClusterAlterRule")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(ClusterAlertRule, __self__).__init__( 'rancher2:index/clusterAlertRule:ClusterAlertRule', resource_name, diff --git a/sdk/python/pulumi_rancher2/cluster_alter_group.py b/sdk/python/pulumi_rancher2/cluster_alter_group.py deleted file mode 100644 index 3faf7c68d..000000000 --- a/sdk/python/pulumi_rancher2/cluster_alter_group.py +++ /dev/null @@ -1,574 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities -from . import outputs -from ._inputs import * - -__all__ = ['ClusterAlterGroupArgs', 'ClusterAlterGroup'] - -@pulumi.input_type -class ClusterAlterGroupArgs: - def __init__(__self__, *, - cluster_id: pulumi.Input[str], - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - description: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - recipients: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterAlterGroupRecipientArgs']]]] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None): - """ - The set of arguments for constructing a ClusterAlterGroup resource. - :param pulumi.Input[str] cluster_id: The cluster id where create cluster alert group (string) - :param pulumi.Input[Mapping[str, Any]] annotations: The cluster alert group annotations (map) - :param pulumi.Input[str] description: The cluster alert group description (string) - :param pulumi.Input[int] group_interval_seconds: The cluster alert group interval seconds. Default: `180` (int) - :param pulumi.Input[int] group_wait_seconds: The cluster alert group wait seconds. Default: `180` (int) - :param pulumi.Input[Mapping[str, Any]] labels: The cluster alert group labels (map) - :param pulumi.Input[str] name: The cluster alert group name (string) - :param pulumi.Input[Sequence[pulumi.Input['ClusterAlterGroupRecipientArgs']]] recipients: The cluster alert group recipients (list) - :param pulumi.Input[int] repeat_interval_seconds: The cluster alert group wait seconds. Default: `3600` (int) - """ - pulumi.set(__self__, "cluster_id", cluster_id) - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if description is not None: - pulumi.set(__self__, "description", description) - if group_interval_seconds is not None: - pulumi.set(__self__, "group_interval_seconds", group_interval_seconds) - if group_wait_seconds is not None: - pulumi.set(__self__, "group_wait_seconds", group_wait_seconds) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if name is not None: - pulumi.set(__self__, "name", name) - if recipients is not None: - pulumi.set(__self__, "recipients", recipients) - if repeat_interval_seconds is not None: - pulumi.set(__self__, "repeat_interval_seconds", repeat_interval_seconds) - - @property - @pulumi.getter(name="clusterId") - def cluster_id(self) -> pulumi.Input[str]: - """ - The cluster id where create cluster alert group (string) - """ - return pulumi.get(self, "cluster_id") - - @cluster_id.setter - def cluster_id(self, value: pulumi.Input[str]): - pulumi.set(self, "cluster_id", value) - - @property - @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - The cluster alert group annotations (map) - """ - return pulumi.get(self, "annotations") - - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) - - @property - @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: - """ - The cluster alert group description (string) - """ - return pulumi.get(self, "description") - - @description.setter - def description(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "description", value) - - @property - @pulumi.getter(name="groupIntervalSeconds") - def group_interval_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group interval seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_interval_seconds") - - @group_interval_seconds.setter - def group_interval_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "group_interval_seconds", value) - - @property - @pulumi.getter(name="groupWaitSeconds") - def group_wait_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group wait seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_wait_seconds") - - @group_wait_seconds.setter - def group_wait_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "group_wait_seconds", value) - - @property - @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - The cluster alert group labels (map) - """ - return pulumi.get(self, "labels") - - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - The cluster alert group name (string) - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter - def recipients(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterAlterGroupRecipientArgs']]]]: - """ - The cluster alert group recipients (list) - """ - return pulumi.get(self, "recipients") - - @recipients.setter - def recipients(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterAlterGroupRecipientArgs']]]]): - pulumi.set(self, "recipients", value) - - @property - @pulumi.getter(name="repeatIntervalSeconds") - def repeat_interval_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group wait seconds. Default: `3600` (int) - """ - return pulumi.get(self, "repeat_interval_seconds") - - @repeat_interval_seconds.setter - def repeat_interval_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "repeat_interval_seconds", value) - - -@pulumi.input_type -class _ClusterAlterGroupState: - def __init__(__self__, *, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cluster_id: Optional[pulumi.Input[str]] = None, - description: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - recipients: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterAlterGroupRecipientArgs']]]] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None): - """ - Input properties used for looking up and filtering ClusterAlterGroup resources. - :param pulumi.Input[Mapping[str, Any]] annotations: The cluster alert group annotations (map) - :param pulumi.Input[str] cluster_id: The cluster id where create cluster alert group (string) - :param pulumi.Input[str] description: The cluster alert group description (string) - :param pulumi.Input[int] group_interval_seconds: The cluster alert group interval seconds. Default: `180` (int) - :param pulumi.Input[int] group_wait_seconds: The cluster alert group wait seconds. Default: `180` (int) - :param pulumi.Input[Mapping[str, Any]] labels: The cluster alert group labels (map) - :param pulumi.Input[str] name: The cluster alert group name (string) - :param pulumi.Input[Sequence[pulumi.Input['ClusterAlterGroupRecipientArgs']]] recipients: The cluster alert group recipients (list) - :param pulumi.Input[int] repeat_interval_seconds: The cluster alert group wait seconds. Default: `3600` (int) - """ - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if cluster_id is not None: - pulumi.set(__self__, "cluster_id", cluster_id) - if description is not None: - pulumi.set(__self__, "description", description) - if group_interval_seconds is not None: - pulumi.set(__self__, "group_interval_seconds", group_interval_seconds) - if group_wait_seconds is not None: - pulumi.set(__self__, "group_wait_seconds", group_wait_seconds) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if name is not None: - pulumi.set(__self__, "name", name) - if recipients is not None: - pulumi.set(__self__, "recipients", recipients) - if repeat_interval_seconds is not None: - pulumi.set(__self__, "repeat_interval_seconds", repeat_interval_seconds) - - @property - @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - The cluster alert group annotations (map) - """ - return pulumi.get(self, "annotations") - - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) - - @property - @pulumi.getter(name="clusterId") - def cluster_id(self) -> Optional[pulumi.Input[str]]: - """ - The cluster id where create cluster alert group (string) - """ - return pulumi.get(self, "cluster_id") - - @cluster_id.setter - def cluster_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "cluster_id", value) - - @property - @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: - """ - The cluster alert group description (string) - """ - return pulumi.get(self, "description") - - @description.setter - def description(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "description", value) - - @property - @pulumi.getter(name="groupIntervalSeconds") - def group_interval_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group interval seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_interval_seconds") - - @group_interval_seconds.setter - def group_interval_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "group_interval_seconds", value) - - @property - @pulumi.getter(name="groupWaitSeconds") - def group_wait_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group wait seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_wait_seconds") - - @group_wait_seconds.setter - def group_wait_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "group_wait_seconds", value) - - @property - @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - The cluster alert group labels (map) - """ - return pulumi.get(self, "labels") - - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - The cluster alert group name (string) - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter - def recipients(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterAlterGroupRecipientArgs']]]]: - """ - The cluster alert group recipients (list) - """ - return pulumi.get(self, "recipients") - - @recipients.setter - def recipients(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterAlterGroupRecipientArgs']]]]): - pulumi.set(self, "recipients", value) - - @property - @pulumi.getter(name="repeatIntervalSeconds") - def repeat_interval_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group wait seconds. Default: `3600` (int) - """ - return pulumi.get(self, "repeat_interval_seconds") - - @repeat_interval_seconds.setter - def repeat_interval_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "repeat_interval_seconds", value) - - -warnings.warn("""rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup""", DeprecationWarning) - - -class ClusterAlterGroup(pulumi.CustomResource): - warnings.warn("""rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup""", DeprecationWarning) - - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cluster_id: Optional[pulumi.Input[str]] = None, - description: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - recipients: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterAlterGroupRecipientArgs']]]]] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None, - __props__=None): - """ - Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - - ## Example Usage - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - # Create a new Rancher2 Cluster Alert Group - foo = rancher2.ClusterAlertGroup("foo", - cluster_id="", - description="Terraform cluster alert group", - group_interval_seconds=300, - repeat_interval_seconds=3600) - ``` - - ## Import - - Cluster Alert Group can be imported using the Rancher cluster alert group ID - - ```sh - $ pulumi import rancher2:index/clusterAlterGroup:ClusterAlterGroup foo <CLUSTER_ALERT_GROUP_ID> - ``` - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Mapping[str, Any]] annotations: The cluster alert group annotations (map) - :param pulumi.Input[str] cluster_id: The cluster id where create cluster alert group (string) - :param pulumi.Input[str] description: The cluster alert group description (string) - :param pulumi.Input[int] group_interval_seconds: The cluster alert group interval seconds. Default: `180` (int) - :param pulumi.Input[int] group_wait_seconds: The cluster alert group wait seconds. Default: `180` (int) - :param pulumi.Input[Mapping[str, Any]] labels: The cluster alert group labels (map) - :param pulumi.Input[str] name: The cluster alert group name (string) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterAlterGroupRecipientArgs']]]] recipients: The cluster alert group recipients (list) - :param pulumi.Input[int] repeat_interval_seconds: The cluster alert group wait seconds. Default: `3600` (int) - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: ClusterAlterGroupArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - - ## Example Usage - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - # Create a new Rancher2 Cluster Alert Group - foo = rancher2.ClusterAlertGroup("foo", - cluster_id="", - description="Terraform cluster alert group", - group_interval_seconds=300, - repeat_interval_seconds=3600) - ``` - - ## Import - - Cluster Alert Group can be imported using the Rancher cluster alert group ID - - ```sh - $ pulumi import rancher2:index/clusterAlterGroup:ClusterAlterGroup foo <CLUSTER_ALERT_GROUP_ID> - ``` - - :param str resource_name: The name of the resource. - :param ClusterAlterGroupArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(ClusterAlterGroupArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cluster_id: Optional[pulumi.Input[str]] = None, - description: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - recipients: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterAlterGroupRecipientArgs']]]]] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None, - __props__=None): - pulumi.log.warn("""ClusterAlterGroup is deprecated: rancher2.ClusterAlterGroup has been deprecated in favor of rancher2.ClusterAlertGroup""") - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = ClusterAlterGroupArgs.__new__(ClusterAlterGroupArgs) - - __props__.__dict__["annotations"] = annotations - if cluster_id is None and not opts.urn: - raise TypeError("Missing required property 'cluster_id'") - __props__.__dict__["cluster_id"] = cluster_id - __props__.__dict__["description"] = description - __props__.__dict__["group_interval_seconds"] = group_interval_seconds - __props__.__dict__["group_wait_seconds"] = group_wait_seconds - __props__.__dict__["labels"] = labels - __props__.__dict__["name"] = name - __props__.__dict__["recipients"] = recipients - __props__.__dict__["repeat_interval_seconds"] = repeat_interval_seconds - super(ClusterAlterGroup, __self__).__init__( - 'rancher2:index/clusterAlterGroup:ClusterAlterGroup', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cluster_id: Optional[pulumi.Input[str]] = None, - description: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - recipients: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterAlterGroupRecipientArgs']]]]] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None) -> 'ClusterAlterGroup': - """ - Get an existing ClusterAlterGroup resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :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[Mapping[str, Any]] annotations: The cluster alert group annotations (map) - :param pulumi.Input[str] cluster_id: The cluster id where create cluster alert group (string) - :param pulumi.Input[str] description: The cluster alert group description (string) - :param pulumi.Input[int] group_interval_seconds: The cluster alert group interval seconds. Default: `180` (int) - :param pulumi.Input[int] group_wait_seconds: The cluster alert group wait seconds. Default: `180` (int) - :param pulumi.Input[Mapping[str, Any]] labels: The cluster alert group labels (map) - :param pulumi.Input[str] name: The cluster alert group name (string) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterAlterGroupRecipientArgs']]]] recipients: The cluster alert group recipients (list) - :param pulumi.Input[int] repeat_interval_seconds: The cluster alert group wait seconds. Default: `3600` (int) - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _ClusterAlterGroupState.__new__(_ClusterAlterGroupState) - - __props__.__dict__["annotations"] = annotations - __props__.__dict__["cluster_id"] = cluster_id - __props__.__dict__["description"] = description - __props__.__dict__["group_interval_seconds"] = group_interval_seconds - __props__.__dict__["group_wait_seconds"] = group_wait_seconds - __props__.__dict__["labels"] = labels - __props__.__dict__["name"] = name - __props__.__dict__["recipients"] = recipients - __props__.__dict__["repeat_interval_seconds"] = repeat_interval_seconds - return ClusterAlterGroup(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def annotations(self) -> pulumi.Output[Mapping[str, Any]]: - """ - The cluster alert group annotations (map) - """ - return pulumi.get(self, "annotations") - - @property - @pulumi.getter(name="clusterId") - def cluster_id(self) -> pulumi.Output[str]: - """ - The cluster id where create cluster alert group (string) - """ - return pulumi.get(self, "cluster_id") - - @property - @pulumi.getter - def description(self) -> pulumi.Output[Optional[str]]: - """ - The cluster alert group description (string) - """ - return pulumi.get(self, "description") - - @property - @pulumi.getter(name="groupIntervalSeconds") - def group_interval_seconds(self) -> pulumi.Output[Optional[int]]: - """ - The cluster alert group interval seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_interval_seconds") - - @property - @pulumi.getter(name="groupWaitSeconds") - def group_wait_seconds(self) -> pulumi.Output[Optional[int]]: - """ - The cluster alert group wait seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_wait_seconds") - - @property - @pulumi.getter - def labels(self) -> pulumi.Output[Mapping[str, Any]]: - """ - The cluster alert group labels (map) - """ - return pulumi.get(self, "labels") - - @property - @pulumi.getter - def name(self) -> pulumi.Output[str]: - """ - The cluster alert group name (string) - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter - def recipients(self) -> pulumi.Output[Optional[Sequence['outputs.ClusterAlterGroupRecipient']]]: - """ - The cluster alert group recipients (list) - """ - return pulumi.get(self, "recipients") - - @property - @pulumi.getter(name="repeatIntervalSeconds") - def repeat_interval_seconds(self) -> pulumi.Output[Optional[int]]: - """ - The cluster alert group wait seconds. Default: `3600` (int) - """ - return pulumi.get(self, "repeat_interval_seconds") - diff --git a/sdk/python/pulumi_rancher2/cluster_alter_rule.py b/sdk/python/pulumi_rancher2/cluster_alter_rule.py deleted file mode 100644 index 6b9da5d7d..000000000 --- a/sdk/python/pulumi_rancher2/cluster_alter_rule.py +++ /dev/null @@ -1,810 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities -from . import outputs -from ._inputs import * - -__all__ = ['ClusterAlterRuleArgs', 'ClusterAlterRule'] - -@pulumi.input_type -class ClusterAlterRuleArgs: - def __init__(__self__, *, - cluster_id: pulumi.Input[str], - group_id: pulumi.Input[str], - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - event_rule: Optional[pulumi.Input['ClusterAlterRuleEventRuleArgs']] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - inherited: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - metric_rule: Optional[pulumi.Input['ClusterAlterRuleMetricRuleArgs']] = None, - name: Optional[pulumi.Input[str]] = None, - node_rule: Optional[pulumi.Input['ClusterAlterRuleNodeRuleArgs']] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None, - severity: Optional[pulumi.Input[str]] = None, - system_service_rule: Optional[pulumi.Input['ClusterAlterRuleSystemServiceRuleArgs']] = None): - """ - The set of arguments for constructing a ClusterAlterRule resource. - :param pulumi.Input[str] cluster_id: The cluster id where create cluster alert group (string) - :param pulumi.Input[str] group_id: Alert rule group ID - :param pulumi.Input[Mapping[str, Any]] annotations: The cluster alert group annotations (map) - :param pulumi.Input['ClusterAlterRuleEventRuleArgs'] event_rule: Alert event rule - :param pulumi.Input[int] group_interval_seconds: The cluster alert group interval seconds. Default: `180` (int) - :param pulumi.Input[int] group_wait_seconds: The cluster alert group wait seconds. Default: `180` (int) - :param pulumi.Input[bool] inherited: Alert rule inherited - :param pulumi.Input[Mapping[str, Any]] labels: The cluster alert group labels (map) - :param pulumi.Input['ClusterAlterRuleMetricRuleArgs'] metric_rule: Alert metric rule - :param pulumi.Input[str] name: The cluster alert group name (string) - :param pulumi.Input['ClusterAlterRuleNodeRuleArgs'] node_rule: Alert node rule - :param pulumi.Input[int] repeat_interval_seconds: The cluster alert group wait seconds. Default: `3600` (int) - :param pulumi.Input[str] severity: Alert rule severity - :param pulumi.Input['ClusterAlterRuleSystemServiceRuleArgs'] system_service_rule: Alert system service rule - """ - pulumi.set(__self__, "cluster_id", cluster_id) - pulumi.set(__self__, "group_id", group_id) - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if event_rule is not None: - pulumi.set(__self__, "event_rule", event_rule) - if group_interval_seconds is not None: - pulumi.set(__self__, "group_interval_seconds", group_interval_seconds) - if group_wait_seconds is not None: - pulumi.set(__self__, "group_wait_seconds", group_wait_seconds) - if inherited is not None: - pulumi.set(__self__, "inherited", inherited) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if metric_rule is not None: - pulumi.set(__self__, "metric_rule", metric_rule) - if name is not None: - pulumi.set(__self__, "name", name) - if node_rule is not None: - pulumi.set(__self__, "node_rule", node_rule) - if repeat_interval_seconds is not None: - pulumi.set(__self__, "repeat_interval_seconds", repeat_interval_seconds) - if severity is not None: - pulumi.set(__self__, "severity", severity) - if system_service_rule is not None: - pulumi.set(__self__, "system_service_rule", system_service_rule) - - @property - @pulumi.getter(name="clusterId") - def cluster_id(self) -> pulumi.Input[str]: - """ - The cluster id where create cluster alert group (string) - """ - return pulumi.get(self, "cluster_id") - - @cluster_id.setter - def cluster_id(self, value: pulumi.Input[str]): - pulumi.set(self, "cluster_id", value) - - @property - @pulumi.getter(name="groupId") - def group_id(self) -> pulumi.Input[str]: - """ - Alert rule group ID - """ - return pulumi.get(self, "group_id") - - @group_id.setter - def group_id(self, value: pulumi.Input[str]): - pulumi.set(self, "group_id", value) - - @property - @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - The cluster alert group annotations (map) - """ - return pulumi.get(self, "annotations") - - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) - - @property - @pulumi.getter(name="eventRule") - def event_rule(self) -> Optional[pulumi.Input['ClusterAlterRuleEventRuleArgs']]: - """ - Alert event rule - """ - return pulumi.get(self, "event_rule") - - @event_rule.setter - def event_rule(self, value: Optional[pulumi.Input['ClusterAlterRuleEventRuleArgs']]): - pulumi.set(self, "event_rule", value) - - @property - @pulumi.getter(name="groupIntervalSeconds") - def group_interval_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group interval seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_interval_seconds") - - @group_interval_seconds.setter - def group_interval_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "group_interval_seconds", value) - - @property - @pulumi.getter(name="groupWaitSeconds") - def group_wait_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group wait seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_wait_seconds") - - @group_wait_seconds.setter - def group_wait_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "group_wait_seconds", value) - - @property - @pulumi.getter - def inherited(self) -> Optional[pulumi.Input[bool]]: - """ - Alert rule inherited - """ - return pulumi.get(self, "inherited") - - @inherited.setter - def inherited(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "inherited", value) - - @property - @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - The cluster alert group labels (map) - """ - return pulumi.get(self, "labels") - - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) - - @property - @pulumi.getter(name="metricRule") - def metric_rule(self) -> Optional[pulumi.Input['ClusterAlterRuleMetricRuleArgs']]: - """ - Alert metric rule - """ - return pulumi.get(self, "metric_rule") - - @metric_rule.setter - def metric_rule(self, value: Optional[pulumi.Input['ClusterAlterRuleMetricRuleArgs']]): - pulumi.set(self, "metric_rule", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - The cluster alert group name (string) - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter(name="nodeRule") - def node_rule(self) -> Optional[pulumi.Input['ClusterAlterRuleNodeRuleArgs']]: - """ - Alert node rule - """ - return pulumi.get(self, "node_rule") - - @node_rule.setter - def node_rule(self, value: Optional[pulumi.Input['ClusterAlterRuleNodeRuleArgs']]): - pulumi.set(self, "node_rule", value) - - @property - @pulumi.getter(name="repeatIntervalSeconds") - def repeat_interval_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group wait seconds. Default: `3600` (int) - """ - return pulumi.get(self, "repeat_interval_seconds") - - @repeat_interval_seconds.setter - def repeat_interval_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "repeat_interval_seconds", value) - - @property - @pulumi.getter - def severity(self) -> Optional[pulumi.Input[str]]: - """ - Alert rule severity - """ - return pulumi.get(self, "severity") - - @severity.setter - def severity(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "severity", value) - - @property - @pulumi.getter(name="systemServiceRule") - def system_service_rule(self) -> Optional[pulumi.Input['ClusterAlterRuleSystemServiceRuleArgs']]: - """ - Alert system service rule - """ - return pulumi.get(self, "system_service_rule") - - @system_service_rule.setter - def system_service_rule(self, value: Optional[pulumi.Input['ClusterAlterRuleSystemServiceRuleArgs']]): - pulumi.set(self, "system_service_rule", value) - - -@pulumi.input_type -class _ClusterAlterRuleState: - def __init__(__self__, *, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cluster_id: Optional[pulumi.Input[str]] = None, - event_rule: Optional[pulumi.Input['ClusterAlterRuleEventRuleArgs']] = None, - group_id: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - inherited: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - metric_rule: Optional[pulumi.Input['ClusterAlterRuleMetricRuleArgs']] = None, - name: Optional[pulumi.Input[str]] = None, - node_rule: Optional[pulumi.Input['ClusterAlterRuleNodeRuleArgs']] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None, - severity: Optional[pulumi.Input[str]] = None, - system_service_rule: Optional[pulumi.Input['ClusterAlterRuleSystemServiceRuleArgs']] = None): - """ - Input properties used for looking up and filtering ClusterAlterRule resources. - :param pulumi.Input[Mapping[str, Any]] annotations: The cluster alert group annotations (map) - :param pulumi.Input[str] cluster_id: The cluster id where create cluster alert group (string) - :param pulumi.Input['ClusterAlterRuleEventRuleArgs'] event_rule: Alert event rule - :param pulumi.Input[str] group_id: Alert rule group ID - :param pulumi.Input[int] group_interval_seconds: The cluster alert group interval seconds. Default: `180` (int) - :param pulumi.Input[int] group_wait_seconds: The cluster alert group wait seconds. Default: `180` (int) - :param pulumi.Input[bool] inherited: Alert rule inherited - :param pulumi.Input[Mapping[str, Any]] labels: The cluster alert group labels (map) - :param pulumi.Input['ClusterAlterRuleMetricRuleArgs'] metric_rule: Alert metric rule - :param pulumi.Input[str] name: The cluster alert group name (string) - :param pulumi.Input['ClusterAlterRuleNodeRuleArgs'] node_rule: Alert node rule - :param pulumi.Input[int] repeat_interval_seconds: The cluster alert group wait seconds. Default: `3600` (int) - :param pulumi.Input[str] severity: Alert rule severity - :param pulumi.Input['ClusterAlterRuleSystemServiceRuleArgs'] system_service_rule: Alert system service rule - """ - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if cluster_id is not None: - pulumi.set(__self__, "cluster_id", cluster_id) - if event_rule is not None: - pulumi.set(__self__, "event_rule", event_rule) - if group_id is not None: - pulumi.set(__self__, "group_id", group_id) - if group_interval_seconds is not None: - pulumi.set(__self__, "group_interval_seconds", group_interval_seconds) - if group_wait_seconds is not None: - pulumi.set(__self__, "group_wait_seconds", group_wait_seconds) - if inherited is not None: - pulumi.set(__self__, "inherited", inherited) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if metric_rule is not None: - pulumi.set(__self__, "metric_rule", metric_rule) - if name is not None: - pulumi.set(__self__, "name", name) - if node_rule is not None: - pulumi.set(__self__, "node_rule", node_rule) - if repeat_interval_seconds is not None: - pulumi.set(__self__, "repeat_interval_seconds", repeat_interval_seconds) - if severity is not None: - pulumi.set(__self__, "severity", severity) - if system_service_rule is not None: - pulumi.set(__self__, "system_service_rule", system_service_rule) - - @property - @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - The cluster alert group annotations (map) - """ - return pulumi.get(self, "annotations") - - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) - - @property - @pulumi.getter(name="clusterId") - def cluster_id(self) -> Optional[pulumi.Input[str]]: - """ - The cluster id where create cluster alert group (string) - """ - return pulumi.get(self, "cluster_id") - - @cluster_id.setter - def cluster_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "cluster_id", value) - - @property - @pulumi.getter(name="eventRule") - def event_rule(self) -> Optional[pulumi.Input['ClusterAlterRuleEventRuleArgs']]: - """ - Alert event rule - """ - return pulumi.get(self, "event_rule") - - @event_rule.setter - def event_rule(self, value: Optional[pulumi.Input['ClusterAlterRuleEventRuleArgs']]): - pulumi.set(self, "event_rule", value) - - @property - @pulumi.getter(name="groupId") - def group_id(self) -> Optional[pulumi.Input[str]]: - """ - Alert rule group ID - """ - return pulumi.get(self, "group_id") - - @group_id.setter - def group_id(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "group_id", value) - - @property - @pulumi.getter(name="groupIntervalSeconds") - def group_interval_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group interval seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_interval_seconds") - - @group_interval_seconds.setter - def group_interval_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "group_interval_seconds", value) - - @property - @pulumi.getter(name="groupWaitSeconds") - def group_wait_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group wait seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_wait_seconds") - - @group_wait_seconds.setter - def group_wait_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "group_wait_seconds", value) - - @property - @pulumi.getter - def inherited(self) -> Optional[pulumi.Input[bool]]: - """ - Alert rule inherited - """ - return pulumi.get(self, "inherited") - - @inherited.setter - def inherited(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "inherited", value) - - @property - @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - The cluster alert group labels (map) - """ - return pulumi.get(self, "labels") - - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) - - @property - @pulumi.getter(name="metricRule") - def metric_rule(self) -> Optional[pulumi.Input['ClusterAlterRuleMetricRuleArgs']]: - """ - Alert metric rule - """ - return pulumi.get(self, "metric_rule") - - @metric_rule.setter - def metric_rule(self, value: Optional[pulumi.Input['ClusterAlterRuleMetricRuleArgs']]): - pulumi.set(self, "metric_rule", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - The cluster alert group name (string) - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter(name="nodeRule") - def node_rule(self) -> Optional[pulumi.Input['ClusterAlterRuleNodeRuleArgs']]: - """ - Alert node rule - """ - return pulumi.get(self, "node_rule") - - @node_rule.setter - def node_rule(self, value: Optional[pulumi.Input['ClusterAlterRuleNodeRuleArgs']]): - pulumi.set(self, "node_rule", value) - - @property - @pulumi.getter(name="repeatIntervalSeconds") - def repeat_interval_seconds(self) -> Optional[pulumi.Input[int]]: - """ - The cluster alert group wait seconds. Default: `3600` (int) - """ - return pulumi.get(self, "repeat_interval_seconds") - - @repeat_interval_seconds.setter - def repeat_interval_seconds(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "repeat_interval_seconds", value) - - @property - @pulumi.getter - def severity(self) -> Optional[pulumi.Input[str]]: - """ - Alert rule severity - """ - return pulumi.get(self, "severity") - - @severity.setter - def severity(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "severity", value) - - @property - @pulumi.getter(name="systemServiceRule") - def system_service_rule(self) -> Optional[pulumi.Input['ClusterAlterRuleSystemServiceRuleArgs']]: - """ - Alert system service rule - """ - return pulumi.get(self, "system_service_rule") - - @system_service_rule.setter - def system_service_rule(self, value: Optional[pulumi.Input['ClusterAlterRuleSystemServiceRuleArgs']]): - pulumi.set(self, "system_service_rule", value) - - -warnings.warn("""rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule""", DeprecationWarning) - - -class ClusterAlterRule(pulumi.CustomResource): - warnings.warn("""rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule""", DeprecationWarning) - - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cluster_id: Optional[pulumi.Input[str]] = None, - event_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleEventRuleArgs']]] = None, - group_id: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - inherited: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - metric_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleMetricRuleArgs']]] = None, - name: Optional[pulumi.Input[str]] = None, - node_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleNodeRuleArgs']]] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None, - severity: Optional[pulumi.Input[str]] = None, - system_service_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleSystemServiceRuleArgs']]] = None, - __props__=None): - """ - Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - - ## Example Usage - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - # Create a new Rancher2 Cluster Alert Group - foo = rancher2.ClusterAlertGroup("foo", - cluster_id="", - description="Terraform cluster alert group", - group_interval_seconds=300, - repeat_interval_seconds=3600) - ``` - - ## Import - - Cluster Alert Group can be imported using the Rancher cluster alert group ID - - ```sh - $ pulumi import rancher2:index/clusterAlterRule:ClusterAlterRule foo <CLUSTER_ALERT_GROUP_ID> - ``` - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Mapping[str, Any]] annotations: The cluster alert group annotations (map) - :param pulumi.Input[str] cluster_id: The cluster id where create cluster alert group (string) - :param pulumi.Input[pulumi.InputType['ClusterAlterRuleEventRuleArgs']] event_rule: Alert event rule - :param pulumi.Input[str] group_id: Alert rule group ID - :param pulumi.Input[int] group_interval_seconds: The cluster alert group interval seconds. Default: `180` (int) - :param pulumi.Input[int] group_wait_seconds: The cluster alert group wait seconds. Default: `180` (int) - :param pulumi.Input[bool] inherited: Alert rule inherited - :param pulumi.Input[Mapping[str, Any]] labels: The cluster alert group labels (map) - :param pulumi.Input[pulumi.InputType['ClusterAlterRuleMetricRuleArgs']] metric_rule: Alert metric rule - :param pulumi.Input[str] name: The cluster alert group name (string) - :param pulumi.Input[pulumi.InputType['ClusterAlterRuleNodeRuleArgs']] node_rule: Alert node rule - :param pulumi.Input[int] repeat_interval_seconds: The cluster alert group wait seconds. Default: `3600` (int) - :param pulumi.Input[str] severity: Alert rule severity - :param pulumi.Input[pulumi.InputType['ClusterAlterRuleSystemServiceRuleArgs']] system_service_rule: Alert system service rule - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: ClusterAlterRuleArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Provides a Rancher v2 Cluster Alert Group resource. This can be used to create Cluster Alert Group for Rancher v2 environments and retrieve their information. - - ## Example Usage - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - # Create a new Rancher2 Cluster Alert Group - foo = rancher2.ClusterAlertGroup("foo", - cluster_id="", - description="Terraform cluster alert group", - group_interval_seconds=300, - repeat_interval_seconds=3600) - ``` - - ## Import - - Cluster Alert Group can be imported using the Rancher cluster alert group ID - - ```sh - $ pulumi import rancher2:index/clusterAlterRule:ClusterAlterRule foo <CLUSTER_ALERT_GROUP_ID> - ``` - - :param str resource_name: The name of the resource. - :param ClusterAlterRuleArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(ClusterAlterRuleArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cluster_id: Optional[pulumi.Input[str]] = None, - event_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleEventRuleArgs']]] = None, - group_id: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - inherited: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - metric_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleMetricRuleArgs']]] = None, - name: Optional[pulumi.Input[str]] = None, - node_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleNodeRuleArgs']]] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None, - severity: Optional[pulumi.Input[str]] = None, - system_service_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleSystemServiceRuleArgs']]] = None, - __props__=None): - pulumi.log.warn("""ClusterAlterRule is deprecated: rancher2.ClusterAlterRule has been deprecated in favor of rancher2.ClusterAlertRule""") - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = ClusterAlterRuleArgs.__new__(ClusterAlterRuleArgs) - - __props__.__dict__["annotations"] = annotations - if cluster_id is None and not opts.urn: - raise TypeError("Missing required property 'cluster_id'") - __props__.__dict__["cluster_id"] = cluster_id - __props__.__dict__["event_rule"] = event_rule - if group_id is None and not opts.urn: - raise TypeError("Missing required property 'group_id'") - __props__.__dict__["group_id"] = group_id - __props__.__dict__["group_interval_seconds"] = group_interval_seconds - __props__.__dict__["group_wait_seconds"] = group_wait_seconds - __props__.__dict__["inherited"] = inherited - __props__.__dict__["labels"] = labels - __props__.__dict__["metric_rule"] = metric_rule - __props__.__dict__["name"] = name - __props__.__dict__["node_rule"] = node_rule - __props__.__dict__["repeat_interval_seconds"] = repeat_interval_seconds - __props__.__dict__["severity"] = severity - __props__.__dict__["system_service_rule"] = system_service_rule - super(ClusterAlterRule, __self__).__init__( - 'rancher2:index/clusterAlterRule:ClusterAlterRule', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - cluster_id: Optional[pulumi.Input[str]] = None, - event_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleEventRuleArgs']]] = None, - group_id: Optional[pulumi.Input[str]] = None, - group_interval_seconds: Optional[pulumi.Input[int]] = None, - group_wait_seconds: Optional[pulumi.Input[int]] = None, - inherited: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - metric_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleMetricRuleArgs']]] = None, - name: Optional[pulumi.Input[str]] = None, - node_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleNodeRuleArgs']]] = None, - repeat_interval_seconds: Optional[pulumi.Input[int]] = None, - severity: Optional[pulumi.Input[str]] = None, - system_service_rule: Optional[pulumi.Input[pulumi.InputType['ClusterAlterRuleSystemServiceRuleArgs']]] = None) -> 'ClusterAlterRule': - """ - Get an existing ClusterAlterRule resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :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[Mapping[str, Any]] annotations: The cluster alert group annotations (map) - :param pulumi.Input[str] cluster_id: The cluster id where create cluster alert group (string) - :param pulumi.Input[pulumi.InputType['ClusterAlterRuleEventRuleArgs']] event_rule: Alert event rule - :param pulumi.Input[str] group_id: Alert rule group ID - :param pulumi.Input[int] group_interval_seconds: The cluster alert group interval seconds. Default: `180` (int) - :param pulumi.Input[int] group_wait_seconds: The cluster alert group wait seconds. Default: `180` (int) - :param pulumi.Input[bool] inherited: Alert rule inherited - :param pulumi.Input[Mapping[str, Any]] labels: The cluster alert group labels (map) - :param pulumi.Input[pulumi.InputType['ClusterAlterRuleMetricRuleArgs']] metric_rule: Alert metric rule - :param pulumi.Input[str] name: The cluster alert group name (string) - :param pulumi.Input[pulumi.InputType['ClusterAlterRuleNodeRuleArgs']] node_rule: Alert node rule - :param pulumi.Input[int] repeat_interval_seconds: The cluster alert group wait seconds. Default: `3600` (int) - :param pulumi.Input[str] severity: Alert rule severity - :param pulumi.Input[pulumi.InputType['ClusterAlterRuleSystemServiceRuleArgs']] system_service_rule: Alert system service rule - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _ClusterAlterRuleState.__new__(_ClusterAlterRuleState) - - __props__.__dict__["annotations"] = annotations - __props__.__dict__["cluster_id"] = cluster_id - __props__.__dict__["event_rule"] = event_rule - __props__.__dict__["group_id"] = group_id - __props__.__dict__["group_interval_seconds"] = group_interval_seconds - __props__.__dict__["group_wait_seconds"] = group_wait_seconds - __props__.__dict__["inherited"] = inherited - __props__.__dict__["labels"] = labels - __props__.__dict__["metric_rule"] = metric_rule - __props__.__dict__["name"] = name - __props__.__dict__["node_rule"] = node_rule - __props__.__dict__["repeat_interval_seconds"] = repeat_interval_seconds - __props__.__dict__["severity"] = severity - __props__.__dict__["system_service_rule"] = system_service_rule - return ClusterAlterRule(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def annotations(self) -> pulumi.Output[Mapping[str, Any]]: - """ - The cluster alert group annotations (map) - """ - return pulumi.get(self, "annotations") - - @property - @pulumi.getter(name="clusterId") - def cluster_id(self) -> pulumi.Output[str]: - """ - The cluster id where create cluster alert group (string) - """ - return pulumi.get(self, "cluster_id") - - @property - @pulumi.getter(name="eventRule") - def event_rule(self) -> pulumi.Output[Optional['outputs.ClusterAlterRuleEventRule']]: - """ - Alert event rule - """ - return pulumi.get(self, "event_rule") - - @property - @pulumi.getter(name="groupId") - def group_id(self) -> pulumi.Output[str]: - """ - Alert rule group ID - """ - return pulumi.get(self, "group_id") - - @property - @pulumi.getter(name="groupIntervalSeconds") - def group_interval_seconds(self) -> pulumi.Output[Optional[int]]: - """ - The cluster alert group interval seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_interval_seconds") - - @property - @pulumi.getter(name="groupWaitSeconds") - def group_wait_seconds(self) -> pulumi.Output[Optional[int]]: - """ - The cluster alert group wait seconds. Default: `180` (int) - """ - return pulumi.get(self, "group_wait_seconds") - - @property - @pulumi.getter - def inherited(self) -> pulumi.Output[Optional[bool]]: - """ - Alert rule inherited - """ - return pulumi.get(self, "inherited") - - @property - @pulumi.getter - def labels(self) -> pulumi.Output[Mapping[str, Any]]: - """ - The cluster alert group labels (map) - """ - return pulumi.get(self, "labels") - - @property - @pulumi.getter(name="metricRule") - def metric_rule(self) -> pulumi.Output[Optional['outputs.ClusterAlterRuleMetricRule']]: - """ - Alert metric rule - """ - return pulumi.get(self, "metric_rule") - - @property - @pulumi.getter - def name(self) -> pulumi.Output[str]: - """ - The cluster alert group name (string) - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter(name="nodeRule") - def node_rule(self) -> pulumi.Output[Optional['outputs.ClusterAlterRuleNodeRule']]: - """ - Alert node rule - """ - return pulumi.get(self, "node_rule") - - @property - @pulumi.getter(name="repeatIntervalSeconds") - def repeat_interval_seconds(self) -> pulumi.Output[Optional[int]]: - """ - The cluster alert group wait seconds. Default: `3600` (int) - """ - return pulumi.get(self, "repeat_interval_seconds") - - @property - @pulumi.getter - def severity(self) -> pulumi.Output[Optional[str]]: - """ - Alert rule severity - """ - return pulumi.get(self, "severity") - - @property - @pulumi.getter(name="systemServiceRule") - def system_service_rule(self) -> pulumi.Output[Optional['outputs.ClusterAlterRuleSystemServiceRule']]: - """ - Alert system service rule - """ - return pulumi.get(self, "system_service_rule") - diff --git a/sdk/python/pulumi_rancher2/cluster_v2.py b/sdk/python/pulumi_rancher2/cluster_v2.py index acb41bd7a..7de11889c 100644 --- a/sdk/python/pulumi_rancher2/cluster_v2.py +++ b/sdk/python/pulumi_rancher2/cluster_v2.py @@ -33,21 +33,21 @@ def __init__(__self__, *, rke_config: Optional[pulumi.Input['ClusterV2RkeConfigArgs']] = None): """ The set of arguments for constructing a ClusterV2 resource. - :param pulumi.Input[str] kubernetes_version: The kubernetes version of the Cluster v2 (list maxitems:1) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2AgentEnvVarArgs']]] agent_env_vars: Optional Agent Env Vars for Rancher agent (list) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster V2 (map) - :param pulumi.Input[str] cloud_credential_secret_name: Cluster V2 cloud credential secret name (string) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationArgs']]] cluster_agent_deployment_customizations: Optional customization for cluster agent (list) - :param pulumi.Input[str] default_cluster_role_for_project_members: Cluster V2 default cluster role for project members (string) - :param pulumi.Input[str] default_pod_security_admission_configuration_template_name: Cluster V2 default pod security admission configuration template name (string) - :param pulumi.Input[str] default_pod_security_policy_template_name: Cluster V2 default pod security policy template name (string) - :param pulumi.Input[bool] enable_network_policy: Enable k8s network policy at Cluster V2 (bool) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationArgs']]] fleet_agent_deployment_customizations: Optional customization for fleet agent (list) - :param pulumi.Input[str] fleet_namespace: The fleet namespace of the Cluster v2. Default: `\\"fleet-default\\"` (string) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster V2 (map) - :param pulumi.Input['ClusterV2LocalAuthEndpointArgs'] local_auth_endpoint: Cluster V2 local auth endpoint (list maxitems:1) - :param pulumi.Input[str] name: The name of the Cluster v2 (string) - :param pulumi.Input['ClusterV2RkeConfigArgs'] rke_config: The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + :param pulumi.Input[str] kubernetes_version: The RKE2 or K3s version for the cluster. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2AgentEnvVarArgs']]] agent_env_vars: Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. + :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster. + :param pulumi.Input[str] cloud_credential_secret_name: Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationArgs']]] cluster_agent_deployment_customizations: Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. + :param pulumi.Input[str] default_cluster_role_for_project_members: Default cluster role for project members. + :param pulumi.Input[str] default_pod_security_admission_configuration_template_name: The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. + :param pulumi.Input[str] default_pod_security_policy_template_name: Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). + :param pulumi.Input[bool] enable_network_policy: Enable k8s network policy on the cluster. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationArgs']]] fleet_agent_deployment_customizations: Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. + :param pulumi.Input[str] fleet_namespace: Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. + :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster. + :param pulumi.Input['ClusterV2LocalAuthEndpointArgs'] local_auth_endpoint: Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input['ClusterV2RkeConfigArgs'] rke_config: The RKE configuration for the cluster. """ pulumi.set(__self__, "kubernetes_version", kubernetes_version) if agent_env_vars is not None: @@ -83,7 +83,7 @@ def __init__(__self__, *, @pulumi.getter(name="kubernetesVersion") def kubernetes_version(self) -> pulumi.Input[str]: """ - The kubernetes version of the Cluster v2 (list maxitems:1) + The RKE2 or K3s version for the cluster. """ return pulumi.get(self, "kubernetes_version") @@ -95,7 +95,7 @@ def kubernetes_version(self, value: pulumi.Input[str]): @pulumi.getter(name="agentEnvVars") def agent_env_vars(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2AgentEnvVarArgs']]]]: """ - Optional Agent Env Vars for Rancher agent (list) + Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. """ return pulumi.get(self, "agent_env_vars") @@ -107,7 +107,7 @@ def agent_env_vars(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['Clu @pulumi.getter def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - Annotations for the Cluster V2 (map) + Annotations for the Cluster. """ return pulumi.get(self, "annotations") @@ -119,7 +119,7 @@ def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.getter(name="cloudCredentialSecretName") def cloud_credential_secret_name(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 cloud credential secret name (string) + Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. """ return pulumi.get(self, "cloud_credential_secret_name") @@ -131,7 +131,7 @@ def cloud_credential_secret_name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="clusterAgentDeploymentCustomizations") def cluster_agent_deployment_customizations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationArgs']]]]: """ - Optional customization for cluster agent (list) + Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. """ return pulumi.get(self, "cluster_agent_deployment_customizations") @@ -143,7 +143,7 @@ def cluster_agent_deployment_customizations(self, value: Optional[pulumi.Input[S @pulumi.getter(name="defaultClusterRoleForProjectMembers") def default_cluster_role_for_project_members(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 default cluster role for project members (string) + Default cluster role for project members. """ return pulumi.get(self, "default_cluster_role_for_project_members") @@ -155,7 +155,7 @@ def default_cluster_role_for_project_members(self, value: Optional[pulumi.Input[ @pulumi.getter(name="defaultPodSecurityAdmissionConfigurationTemplateName") def default_pod_security_admission_configuration_template_name(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 default pod security admission configuration template name (string) + The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. """ return pulumi.get(self, "default_pod_security_admission_configuration_template_name") @@ -167,7 +167,7 @@ def default_pod_security_admission_configuration_template_name(self, value: Opti @pulumi.getter(name="defaultPodSecurityPolicyTemplateName") def default_pod_security_policy_template_name(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 default pod security policy template name (string) + Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). """ return pulumi.get(self, "default_pod_security_policy_template_name") @@ -179,7 +179,7 @@ def default_pod_security_policy_template_name(self, value: Optional[pulumi.Input @pulumi.getter(name="enableNetworkPolicy") def enable_network_policy(self) -> Optional[pulumi.Input[bool]]: """ - Enable k8s network policy at Cluster V2 (bool) + Enable k8s network policy on the cluster. """ return pulumi.get(self, "enable_network_policy") @@ -191,7 +191,7 @@ def enable_network_policy(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="fleetAgentDeploymentCustomizations") def fleet_agent_deployment_customizations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationArgs']]]]: """ - Optional customization for fleet agent (list) + Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. """ return pulumi.get(self, "fleet_agent_deployment_customizations") @@ -203,7 +203,7 @@ def fleet_agent_deployment_customizations(self, value: Optional[pulumi.Input[Seq @pulumi.getter(name="fleetNamespace") def fleet_namespace(self) -> Optional[pulumi.Input[str]]: """ - The fleet namespace of the Cluster v2. Default: `\\"fleet-default\\"` (string) + Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. """ return pulumi.get(self, "fleet_namespace") @@ -215,7 +215,7 @@ def fleet_namespace(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - Labels for the Cluster V2 (map) + Labels for the Cluster. """ return pulumi.get(self, "labels") @@ -227,7 +227,7 @@ def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.getter(name="localAuthEndpoint") def local_auth_endpoint(self) -> Optional[pulumi.Input['ClusterV2LocalAuthEndpointArgs']]: """ - Cluster V2 local auth endpoint (list maxitems:1) + Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). """ return pulumi.get(self, "local_auth_endpoint") @@ -239,7 +239,7 @@ def local_auth_endpoint(self, value: Optional[pulumi.Input['ClusterV2LocalAuthEn @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -251,7 +251,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="rkeConfig") def rke_config(self) -> Optional[pulumi.Input['ClusterV2RkeConfigArgs']]: """ - The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + The RKE configuration for the cluster. """ return pulumi.get(self, "rke_config") @@ -284,25 +284,25 @@ def __init__(__self__, *, rke_config: Optional[pulumi.Input['ClusterV2RkeConfigArgs']] = None): """ Input properties used for looking up and filtering ClusterV2 resources. - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2AgentEnvVarArgs']]] agent_env_vars: Optional Agent Env Vars for Rancher agent (list) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster V2 (map) - :param pulumi.Input[str] cloud_credential_secret_name: Cluster V2 cloud credential secret name (string) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationArgs']]] cluster_agent_deployment_customizations: Optional customization for cluster agent (list) - :param pulumi.Input['ClusterV2ClusterRegistrationTokenArgs'] cluster_registration_token: (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) - :param pulumi.Input[str] cluster_v1_id: (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) - :param pulumi.Input[str] default_cluster_role_for_project_members: Cluster V2 default cluster role for project members (string) - :param pulumi.Input[str] default_pod_security_admission_configuration_template_name: Cluster V2 default pod security admission configuration template name (string) - :param pulumi.Input[str] default_pod_security_policy_template_name: Cluster V2 default pod security policy template name (string) - :param pulumi.Input[bool] enable_network_policy: Enable k8s network policy at Cluster V2 (bool) - :param pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationArgs']]] fleet_agent_deployment_customizations: Optional customization for fleet agent (list) - :param pulumi.Input[str] fleet_namespace: The fleet namespace of the Cluster v2. Default: `\\"fleet-default\\"` (string) - :param pulumi.Input[str] kube_config: (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) - :param pulumi.Input[str] kubernetes_version: The kubernetes version of the Cluster v2 (list maxitems:1) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster V2 (map) - :param pulumi.Input['ClusterV2LocalAuthEndpointArgs'] local_auth_endpoint: Cluster V2 local auth endpoint (list maxitems:1) - :param pulumi.Input[str] name: The name of the Cluster v2 (string) - :param pulumi.Input[str] resource_version: (Computed) Cluster v2 k8s resource version (string) - :param pulumi.Input['ClusterV2RkeConfigArgs'] rke_config: The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2AgentEnvVarArgs']]] agent_env_vars: Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. + :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster. + :param pulumi.Input[str] cloud_credential_secret_name: Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationArgs']]] cluster_agent_deployment_customizations: Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. + :param pulumi.Input['ClusterV2ClusterRegistrationTokenArgs'] cluster_registration_token: (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. + :param pulumi.Input[str] cluster_v1_id: (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). + :param pulumi.Input[str] default_cluster_role_for_project_members: Default cluster role for project members. + :param pulumi.Input[str] default_pod_security_admission_configuration_template_name: The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. + :param pulumi.Input[str] default_pod_security_policy_template_name: Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). + :param pulumi.Input[bool] enable_network_policy: Enable k8s network policy on the cluster. + :param pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationArgs']]] fleet_agent_deployment_customizations: Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. + :param pulumi.Input[str] fleet_namespace: Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. + :param pulumi.Input[str] kube_config: (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. + :param pulumi.Input[str] kubernetes_version: The RKE2 or K3s version for the cluster. + :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster. + :param pulumi.Input['ClusterV2LocalAuthEndpointArgs'] local_auth_endpoint: Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[str] resource_version: (Computed, string) Cluster's k8s resource version. + :param pulumi.Input['ClusterV2RkeConfigArgs'] rke_config: The RKE configuration for the cluster. """ if agent_env_vars is not None: pulumi.set(__self__, "agent_env_vars", agent_env_vars) @@ -347,7 +347,7 @@ def __init__(__self__, *, @pulumi.getter(name="agentEnvVars") def agent_env_vars(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2AgentEnvVarArgs']]]]: """ - Optional Agent Env Vars for Rancher agent (list) + Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. """ return pulumi.get(self, "agent_env_vars") @@ -359,7 +359,7 @@ def agent_env_vars(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['Clu @pulumi.getter def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - Annotations for the Cluster V2 (map) + Annotations for the Cluster. """ return pulumi.get(self, "annotations") @@ -371,7 +371,7 @@ def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.getter(name="cloudCredentialSecretName") def cloud_credential_secret_name(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 cloud credential secret name (string) + Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. """ return pulumi.get(self, "cloud_credential_secret_name") @@ -383,7 +383,7 @@ def cloud_credential_secret_name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="clusterAgentDeploymentCustomizations") def cluster_agent_deployment_customizations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2ClusterAgentDeploymentCustomizationArgs']]]]: """ - Optional customization for cluster agent (list) + Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. """ return pulumi.get(self, "cluster_agent_deployment_customizations") @@ -395,7 +395,7 @@ def cluster_agent_deployment_customizations(self, value: Optional[pulumi.Input[S @pulumi.getter(name="clusterRegistrationToken") def cluster_registration_token(self) -> Optional[pulumi.Input['ClusterV2ClusterRegistrationTokenArgs']]: """ - (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. """ return pulumi.get(self, "cluster_registration_token") @@ -407,7 +407,7 @@ def cluster_registration_token(self, value: Optional[pulumi.Input['ClusterV2Clus @pulumi.getter(name="clusterV1Id") def cluster_v1_id(self) -> Optional[pulumi.Input[str]]: """ - (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). """ return pulumi.get(self, "cluster_v1_id") @@ -419,7 +419,7 @@ def cluster_v1_id(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="defaultClusterRoleForProjectMembers") def default_cluster_role_for_project_members(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 default cluster role for project members (string) + Default cluster role for project members. """ return pulumi.get(self, "default_cluster_role_for_project_members") @@ -431,7 +431,7 @@ def default_cluster_role_for_project_members(self, value: Optional[pulumi.Input[ @pulumi.getter(name="defaultPodSecurityAdmissionConfigurationTemplateName") def default_pod_security_admission_configuration_template_name(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 default pod security admission configuration template name (string) + The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. """ return pulumi.get(self, "default_pod_security_admission_configuration_template_name") @@ -443,7 +443,7 @@ def default_pod_security_admission_configuration_template_name(self, value: Opti @pulumi.getter(name="defaultPodSecurityPolicyTemplateName") def default_pod_security_policy_template_name(self) -> Optional[pulumi.Input[str]]: """ - Cluster V2 default pod security policy template name (string) + Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). """ return pulumi.get(self, "default_pod_security_policy_template_name") @@ -455,7 +455,7 @@ def default_pod_security_policy_template_name(self, value: Optional[pulumi.Input @pulumi.getter(name="enableNetworkPolicy") def enable_network_policy(self) -> Optional[pulumi.Input[bool]]: """ - Enable k8s network policy at Cluster V2 (bool) + Enable k8s network policy on the cluster. """ return pulumi.get(self, "enable_network_policy") @@ -467,7 +467,7 @@ def enable_network_policy(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter(name="fleetAgentDeploymentCustomizations") def fleet_agent_deployment_customizations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterV2FleetAgentDeploymentCustomizationArgs']]]]: """ - Optional customization for fleet agent (list) + Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. """ return pulumi.get(self, "fleet_agent_deployment_customizations") @@ -479,7 +479,7 @@ def fleet_agent_deployment_customizations(self, value: Optional[pulumi.Input[Seq @pulumi.getter(name="fleetNamespace") def fleet_namespace(self) -> Optional[pulumi.Input[str]]: """ - The fleet namespace of the Cluster v2. Default: `\\"fleet-default\\"` (string) + Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. """ return pulumi.get(self, "fleet_namespace") @@ -491,7 +491,7 @@ def fleet_namespace(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="kubeConfig") def kube_config(self) -> Optional[pulumi.Input[str]]: """ - (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. """ return pulumi.get(self, "kube_config") @@ -503,7 +503,7 @@ def kube_config(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="kubernetesVersion") def kubernetes_version(self) -> Optional[pulumi.Input[str]]: """ - The kubernetes version of the Cluster v2 (list maxitems:1) + The RKE2 or K3s version for the cluster. """ return pulumi.get(self, "kubernetes_version") @@ -515,7 +515,7 @@ def kubernetes_version(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: """ - Labels for the Cluster V2 (map) + Labels for the Cluster. """ return pulumi.get(self, "labels") @@ -527,7 +527,7 @@ def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): @pulumi.getter(name="localAuthEndpoint") def local_auth_endpoint(self) -> Optional[pulumi.Input['ClusterV2LocalAuthEndpointArgs']]: """ - Cluster V2 local auth endpoint (list maxitems:1) + Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). """ return pulumi.get(self, "local_auth_endpoint") @@ -539,7 +539,7 @@ def local_auth_endpoint(self, value: Optional[pulumi.Input['ClusterV2LocalAuthEn @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -551,7 +551,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="resourceVersion") def resource_version(self) -> Optional[pulumi.Input[str]]: """ - (Computed) Cluster v2 k8s resource version (string) + (Computed, string) Cluster's k8s resource version. """ return pulumi.get(self, "resource_version") @@ -563,7 +563,7 @@ def resource_version(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="rkeConfig") def rke_config(self) -> Optional[pulumi.Input['ClusterV2RkeConfigArgs']]: """ - The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + The RKE configuration for the cluster. """ return pulumi.get(self, "rke_config") @@ -599,26 +599,26 @@ def __init__(__self__, Clusters v2 can be imported using the Rancher Cluster v2 ID, that is in the form <FLEET_NAMESPACE>/<CLUSTER_NAME> ```sh - $ pulumi import rancher2:index/clusterV2:ClusterV2 foo <FLEET_NAMESPACE>/<CLUSTER_NAME> + $ pulumi import rancher2:index/clusterV2:ClusterV2 foo / ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2AgentEnvVarArgs']]]] agent_env_vars: Optional Agent Env Vars for Rancher agent (list) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster V2 (map) - :param pulumi.Input[str] cloud_credential_secret_name: Cluster V2 cloud credential secret name (string) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2ClusterAgentDeploymentCustomizationArgs']]]] cluster_agent_deployment_customizations: Optional customization for cluster agent (list) - :param pulumi.Input[str] default_cluster_role_for_project_members: Cluster V2 default cluster role for project members (string) - :param pulumi.Input[str] default_pod_security_admission_configuration_template_name: Cluster V2 default pod security admission configuration template name (string) - :param pulumi.Input[str] default_pod_security_policy_template_name: Cluster V2 default pod security policy template name (string) - :param pulumi.Input[bool] enable_network_policy: Enable k8s network policy at Cluster V2 (bool) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2FleetAgentDeploymentCustomizationArgs']]]] fleet_agent_deployment_customizations: Optional customization for fleet agent (list) - :param pulumi.Input[str] fleet_namespace: The fleet namespace of the Cluster v2. Default: `\\"fleet-default\\"` (string) - :param pulumi.Input[str] kubernetes_version: The kubernetes version of the Cluster v2 (list maxitems:1) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster V2 (map) - :param pulumi.Input[pulumi.InputType['ClusterV2LocalAuthEndpointArgs']] local_auth_endpoint: Cluster V2 local auth endpoint (list maxitems:1) - :param pulumi.Input[str] name: The name of the Cluster v2 (string) - :param pulumi.Input[pulumi.InputType['ClusterV2RkeConfigArgs']] rke_config: The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2AgentEnvVarArgs']]]] agent_env_vars: Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. + :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster. + :param pulumi.Input[str] cloud_credential_secret_name: Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2ClusterAgentDeploymentCustomizationArgs']]]] cluster_agent_deployment_customizations: Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. + :param pulumi.Input[str] default_cluster_role_for_project_members: Default cluster role for project members. + :param pulumi.Input[str] default_pod_security_admission_configuration_template_name: The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. + :param pulumi.Input[str] default_pod_security_policy_template_name: Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). + :param pulumi.Input[bool] enable_network_policy: Enable k8s network policy on the cluster. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2FleetAgentDeploymentCustomizationArgs']]]] fleet_agent_deployment_customizations: Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. + :param pulumi.Input[str] fleet_namespace: Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. + :param pulumi.Input[str] kubernetes_version: The RKE2 or K3s version for the cluster. + :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster. + :param pulumi.Input[pulumi.InputType['ClusterV2LocalAuthEndpointArgs']] local_auth_endpoint: Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[pulumi.InputType['ClusterV2RkeConfigArgs']] rke_config: The RKE configuration for the cluster. """ ... @overload @@ -632,7 +632,7 @@ def __init__(__self__, Clusters v2 can be imported using the Rancher Cluster v2 ID, that is in the form <FLEET_NAMESPACE>/<CLUSTER_NAME> ```sh - $ pulumi import rancher2:index/clusterV2:ClusterV2 foo <FLEET_NAMESPACE>/<CLUSTER_NAME> + $ pulumi import rancher2:index/clusterV2:ClusterV2 foo / ``` :param str resource_name: The name of the resource. @@ -733,25 +733,25 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :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[Sequence[pulumi.Input[pulumi.InputType['ClusterV2AgentEnvVarArgs']]]] agent_env_vars: Optional Agent Env Vars for Rancher agent (list) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster V2 (map) - :param pulumi.Input[str] cloud_credential_secret_name: Cluster V2 cloud credential secret name (string) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2ClusterAgentDeploymentCustomizationArgs']]]] cluster_agent_deployment_customizations: Optional customization for cluster agent (list) - :param pulumi.Input[pulumi.InputType['ClusterV2ClusterRegistrationTokenArgs']] cluster_registration_token: (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) - :param pulumi.Input[str] cluster_v1_id: (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) - :param pulumi.Input[str] default_cluster_role_for_project_members: Cluster V2 default cluster role for project members (string) - :param pulumi.Input[str] default_pod_security_admission_configuration_template_name: Cluster V2 default pod security admission configuration template name (string) - :param pulumi.Input[str] default_pod_security_policy_template_name: Cluster V2 default pod security policy template name (string) - :param pulumi.Input[bool] enable_network_policy: Enable k8s network policy at Cluster V2 (bool) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2FleetAgentDeploymentCustomizationArgs']]]] fleet_agent_deployment_customizations: Optional customization for fleet agent (list) - :param pulumi.Input[str] fleet_namespace: The fleet namespace of the Cluster v2. Default: `\\"fleet-default\\"` (string) - :param pulumi.Input[str] kube_config: (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) - :param pulumi.Input[str] kubernetes_version: The kubernetes version of the Cluster v2 (list maxitems:1) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster V2 (map) - :param pulumi.Input[pulumi.InputType['ClusterV2LocalAuthEndpointArgs']] local_auth_endpoint: Cluster V2 local auth endpoint (list maxitems:1) - :param pulumi.Input[str] name: The name of the Cluster v2 (string) - :param pulumi.Input[str] resource_version: (Computed) Cluster v2 k8s resource version (string) - :param pulumi.Input[pulumi.InputType['ClusterV2RkeConfigArgs']] rke_config: The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2AgentEnvVarArgs']]]] agent_env_vars: Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. + :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for the Cluster. + :param pulumi.Input[str] cloud_credential_secret_name: Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2ClusterAgentDeploymentCustomizationArgs']]]] cluster_agent_deployment_customizations: Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. + :param pulumi.Input[pulumi.InputType['ClusterV2ClusterRegistrationTokenArgs']] cluster_registration_token: (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. + :param pulumi.Input[str] cluster_v1_id: (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). + :param pulumi.Input[str] default_cluster_role_for_project_members: Default cluster role for project members. + :param pulumi.Input[str] default_pod_security_admission_configuration_template_name: The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. + :param pulumi.Input[str] default_pod_security_policy_template_name: Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). + :param pulumi.Input[bool] enable_network_policy: Enable k8s network policy on the cluster. + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterV2FleetAgentDeploymentCustomizationArgs']]]] fleet_agent_deployment_customizations: Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. + :param pulumi.Input[str] fleet_namespace: Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. + :param pulumi.Input[str] kube_config: (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. + :param pulumi.Input[str] kubernetes_version: The RKE2 or K3s version for the cluster. + :param pulumi.Input[Mapping[str, Any]] labels: Labels for the Cluster. + :param pulumi.Input[pulumi.InputType['ClusterV2LocalAuthEndpointArgs']] local_auth_endpoint: Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). + :param pulumi.Input[str] name: The name of the cluster. + :param pulumi.Input[str] resource_version: (Computed, string) Cluster's k8s resource version. + :param pulumi.Input[pulumi.InputType['ClusterV2RkeConfigArgs']] rke_config: The RKE configuration for the cluster. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -782,7 +782,7 @@ def get(resource_name: str, @pulumi.getter(name="agentEnvVars") def agent_env_vars(self) -> pulumi.Output[Optional[Sequence['outputs.ClusterV2AgentEnvVar']]]: """ - Optional Agent Env Vars for Rancher agent (list) + Agent env vars is a list of additional environment variables to be appended to the `cattle-cluster-agent` and `fleet-agent` deployment, and the plan for the [system upgrade controller](https://github.com/rancher/system-upgrade-controller) to upgrade nodes. """ return pulumi.get(self, "agent_env_vars") @@ -790,7 +790,7 @@ def agent_env_vars(self) -> pulumi.Output[Optional[Sequence['outputs.ClusterV2Ag @pulumi.getter def annotations(self) -> pulumi.Output[Mapping[str, Any]]: """ - Annotations for the Cluster V2 (map) + Annotations for the Cluster. """ return pulumi.get(self, "annotations") @@ -798,7 +798,7 @@ def annotations(self) -> pulumi.Output[Mapping[str, Any]]: @pulumi.getter(name="cloudCredentialSecretName") def cloud_credential_secret_name(self) -> pulumi.Output[Optional[str]]: """ - Cluster V2 cloud credential secret name (string) + Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. """ return pulumi.get(self, "cloud_credential_secret_name") @@ -806,7 +806,7 @@ def cloud_credential_secret_name(self) -> pulumi.Output[Optional[str]]: @pulumi.getter(name="clusterAgentDeploymentCustomizations") def cluster_agent_deployment_customizations(self) -> pulumi.Output[Optional[Sequence['outputs.ClusterV2ClusterAgentDeploymentCustomization']]]: """ - Optional customization for cluster agent (list) + Cluster agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `cattle-cluster-agent` deployment. This argument is available in Rancher v2.7.5 and above. """ return pulumi.get(self, "cluster_agent_deployment_customizations") @@ -814,7 +814,7 @@ def cluster_agent_deployment_customizations(self) -> pulumi.Output[Optional[Sequ @pulumi.getter(name="clusterRegistrationToken") def cluster_registration_token(self) -> pulumi.Output['outputs.ClusterV2ClusterRegistrationToken']: """ - (Computed/Sensitive) Cluster Registration Token generated for the cluster v2 (list maxitems:1) + (Computed, sensitive, list, max length: 1) Cluster Registration Token generated for the cluster. """ return pulumi.get(self, "cluster_registration_token") @@ -822,7 +822,7 @@ def cluster_registration_token(self) -> pulumi.Output['outputs.ClusterV2ClusterR @pulumi.getter(name="clusterV1Id") def cluster_v1_id(self) -> pulumi.Output[str]: """ - (Computed) Cluster v1 id for cluster v2. (e.g to be used with `rancher2_sync`) (string) + (Computed, string) Cluster v1 id for cluster v2. (e.g. to be used with `rancher2_sync`). """ return pulumi.get(self, "cluster_v1_id") @@ -830,7 +830,7 @@ def cluster_v1_id(self) -> pulumi.Output[str]: @pulumi.getter(name="defaultClusterRoleForProjectMembers") def default_cluster_role_for_project_members(self) -> pulumi.Output[Optional[str]]: """ - Cluster V2 default cluster role for project members (string) + Default cluster role for project members. """ return pulumi.get(self, "default_cluster_role_for_project_members") @@ -838,7 +838,7 @@ def default_cluster_role_for_project_members(self) -> pulumi.Output[Optional[str @pulumi.getter(name="defaultPodSecurityAdmissionConfigurationTemplateName") def default_pod_security_admission_configuration_template_name(self) -> pulumi.Output[Optional[str]]: """ - Cluster V2 default pod security admission configuration template name (string) + The name of the pre-defined pod security admission configuration template to be applied to the cluster. Rancher admins (or those with the right permissions) can create, manage, and edit those templates. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/psa-config-templates). The argument is available in Rancher v2.7.2 and above. """ return pulumi.get(self, "default_pod_security_admission_configuration_template_name") @@ -846,7 +846,7 @@ def default_pod_security_admission_configuration_template_name(self) -> pulumi.O @pulumi.getter(name="defaultPodSecurityPolicyTemplateName") def default_pod_security_policy_template_name(self) -> pulumi.Output[Optional[str]]: """ - Cluster V2 default pod security policy template name (string) + Default pod security policy template name specifies the default PSP for the cluster. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/create-pod-security-policies). """ return pulumi.get(self, "default_pod_security_policy_template_name") @@ -854,7 +854,7 @@ def default_pod_security_policy_template_name(self) -> pulumi.Output[Optional[st @pulumi.getter(name="enableNetworkPolicy") def enable_network_policy(self) -> pulumi.Output[bool]: """ - Enable k8s network policy at Cluster V2 (bool) + Enable k8s network policy on the cluster. """ return pulumi.get(self, "enable_network_policy") @@ -862,7 +862,7 @@ def enable_network_policy(self) -> pulumi.Output[bool]: @pulumi.getter(name="fleetAgentDeploymentCustomizations") def fleet_agent_deployment_customizations(self) -> pulumi.Output[Optional[Sequence['outputs.ClusterV2FleetAgentDeploymentCustomization']]]: """ - Optional customization for fleet agent (list) + Fleet agent deployment customization specifies the additional tolerations, new affinity rules, and new resource requirements on the `fleet-agent` deployment. The argument is available in Rancher v2.7.5 and above. """ return pulumi.get(self, "fleet_agent_deployment_customizations") @@ -870,7 +870,7 @@ def fleet_agent_deployment_customizations(self) -> pulumi.Output[Optional[Sequen @pulumi.getter(name="fleetNamespace") def fleet_namespace(self) -> pulumi.Output[Optional[str]]: """ - The fleet namespace of the Cluster v2. Default: `\\"fleet-default\\"` (string) + Fleet namespace is the namespace where the cluster is to create in the local cluster. It is recommended to leave it as the default value. """ return pulumi.get(self, "fleet_namespace") @@ -878,7 +878,7 @@ def fleet_namespace(self) -> pulumi.Output[Optional[str]]: @pulumi.getter(name="kubeConfig") def kube_config(self) -> pulumi.Output[str]: """ - (Computed/Sensitive) Kube Config generated for the cluster v2. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected` (string) + (Computed/Sensitive) Kube Config generated for the cluster. Note: When the cluster has `local_auth_endpoint` enabled, the kube_config will not be available until the cluster is `connected`. """ return pulumi.get(self, "kube_config") @@ -886,7 +886,7 @@ def kube_config(self) -> pulumi.Output[str]: @pulumi.getter(name="kubernetesVersion") def kubernetes_version(self) -> pulumi.Output[str]: """ - The kubernetes version of the Cluster v2 (list maxitems:1) + The RKE2 or K3s version for the cluster. """ return pulumi.get(self, "kubernetes_version") @@ -894,7 +894,7 @@ def kubernetes_version(self) -> pulumi.Output[str]: @pulumi.getter def labels(self) -> pulumi.Output[Mapping[str, Any]]: """ - Labels for the Cluster V2 (map) + Labels for the Cluster. """ return pulumi.get(self, "labels") @@ -902,7 +902,7 @@ def labels(self) -> pulumi.Output[Mapping[str, Any]]: @pulumi.getter(name="localAuthEndpoint") def local_auth_endpoint(self) -> pulumi.Output[Optional['outputs.ClusterV2LocalAuthEndpoint']]: """ - Cluster V2 local auth endpoint (list maxitems:1) + Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). """ return pulumi.get(self, "local_auth_endpoint") @@ -910,7 +910,7 @@ def local_auth_endpoint(self) -> pulumi.Output[Optional['outputs.ClusterV2LocalA @pulumi.getter def name(self) -> pulumi.Output[str]: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -918,7 +918,7 @@ def name(self) -> pulumi.Output[str]: @pulumi.getter(name="resourceVersion") def resource_version(self) -> pulumi.Output[str]: """ - (Computed) Cluster v2 k8s resource version (string) + (Computed, string) Cluster's k8s resource version. """ return pulumi.get(self, "resource_version") @@ -926,7 +926,7 @@ def resource_version(self) -> pulumi.Output[str]: @pulumi.getter(name="rkeConfig") def rke_config(self) -> pulumi.Output['outputs.ClusterV2RkeConfig']: """ - The RKE configuration for `k3s` and `rke2` Clusters v2. (list maxitems:1) + The RKE configuration for the cluster. """ return pulumi.get(self, "rke_config") diff --git a/sdk/python/pulumi_rancher2/get_cluster_alter_rule.py b/sdk/python/pulumi_rancher2/get_cluster_alert_rule.py similarity index 90% rename from sdk/python/pulumi_rancher2/get_cluster_alter_rule.py rename to sdk/python/pulumi_rancher2/get_cluster_alert_rule.py index 2693a4632..649ce3609 100644 --- a/sdk/python/pulumi_rancher2/get_cluster_alter_rule.py +++ b/sdk/python/pulumi_rancher2/get_cluster_alert_rule.py @@ -11,16 +11,16 @@ from . import outputs __all__ = [ - 'GetClusterAlterRuleResult', - 'AwaitableGetClusterAlterRuleResult', - 'get_cluster_alter_rule', - 'get_cluster_alter_rule_output', + 'GetClusterAlertRuleResult', + 'AwaitableGetClusterAlertRuleResult', + 'get_cluster_alert_rule', + 'get_cluster_alert_rule_output', ] @pulumi.output_type -class GetClusterAlterRuleResult: +class GetClusterAlertRuleResult: """ - A collection of values returned by getClusterAlterRule. + A collection of values returned by getClusterAlertRule. """ def __init__(__self__, annotations=None, cluster_id=None, event_rule=None, group_id=None, group_interval_seconds=None, group_wait_seconds=None, id=None, inherited=None, labels=None, metric_rule=None, name=None, node_rule=None, repeat_interval_seconds=None, severity=None, system_service_rule=None): if annotations and not isinstance(annotations, dict): @@ -84,7 +84,7 @@ def cluster_id(self) -> str: @property @pulumi.getter(name="eventRule") - def event_rule(self) -> 'outputs.GetClusterAlterRuleEventRuleResult': + def event_rule(self) -> 'outputs.GetClusterAlertRuleEventRuleResult': """ (Computed) The cluster alert rule event rule. ConflictsWith: `"metric_rule", "node_rule", "system_service_rule"` (list Maxitems:1) """ @@ -140,7 +140,7 @@ def labels(self) -> Optional[Mapping[str, Any]]: @property @pulumi.getter(name="metricRule") - def metric_rule(self) -> 'outputs.GetClusterAlterRuleMetricRuleResult': + def metric_rule(self) -> 'outputs.GetClusterAlertRuleMetricRuleResult': """ (Computed) The cluster alert rule metric rule. ConflictsWith: `"event_rule", "node_rule", "system_service_rule"`` (list Maxitems:1) """ @@ -153,7 +153,7 @@ def name(self) -> str: @property @pulumi.getter(name="nodeRule") - def node_rule(self) -> 'outputs.GetClusterAlterRuleNodeRuleResult': + def node_rule(self) -> 'outputs.GetClusterAlertRuleNodeRuleResult': """ (Computed) The cluster alert rule node rule. ConflictsWith: `"event_rule", "metric_rule", "system_service_rule"`` (list Maxitems:1) """ @@ -177,19 +177,19 @@ def severity(self) -> str: @property @pulumi.getter(name="systemServiceRule") - def system_service_rule(self) -> 'outputs.GetClusterAlterRuleSystemServiceRuleResult': + def system_service_rule(self) -> 'outputs.GetClusterAlertRuleSystemServiceRuleResult': """ (Computed) The cluster alert rule system service rule. ConflictsWith: `"event_rule", "metric_rule", "node_rule"`` (list Maxitems:1) """ return pulumi.get(self, "system_service_rule") -class AwaitableGetClusterAlterRuleResult(GetClusterAlterRuleResult): +class AwaitableGetClusterAlertRuleResult(GetClusterAlertRuleResult): # pylint: disable=using-constant-test def __await__(self): if False: yield self - return GetClusterAlterRuleResult( + return GetClusterAlertRuleResult( annotations=self.annotations, cluster_id=self.cluster_id, event_rule=self.event_rule, @@ -207,10 +207,10 @@ def __await__(self): system_service_rule=self.system_service_rule) -def get_cluster_alter_rule(cluster_id: Optional[str] = None, +def get_cluster_alert_rule(cluster_id: Optional[str] = None, labels: Optional[Mapping[str, Any]] = None, name: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClusterAlterRuleResult: + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClusterAlertRuleResult: """ Use this data source to retrieve information about a Rancher v2 cluster alert rule. @@ -220,7 +220,7 @@ def get_cluster_alter_rule(cluster_id: Optional[str] = None, import pulumi import pulumi_rancher2 as rancher2 - foo = rancher2.get_cluster_alter_rule(cluster_id="", + foo = rancher2.get_cluster_alert_rule(cluster_id="", name="") ``` @@ -234,9 +234,9 @@ def get_cluster_alter_rule(cluster_id: Optional[str] = None, __args__['labels'] = labels __args__['name'] = name opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('rancher2:index/getClusterAlterRule:getClusterAlterRule', __args__, opts=opts, typ=GetClusterAlterRuleResult).value + __ret__ = pulumi.runtime.invoke('rancher2:index/getClusterAlertRule:getClusterAlertRule', __args__, opts=opts, typ=GetClusterAlertRuleResult).value - return AwaitableGetClusterAlterRuleResult( + return AwaitableGetClusterAlertRuleResult( annotations=pulumi.get(__ret__, 'annotations'), cluster_id=pulumi.get(__ret__, 'cluster_id'), event_rule=pulumi.get(__ret__, 'event_rule'), @@ -254,11 +254,11 @@ def get_cluster_alter_rule(cluster_id: Optional[str] = None, system_service_rule=pulumi.get(__ret__, 'system_service_rule')) -@_utilities.lift_output_func(get_cluster_alter_rule) -def get_cluster_alter_rule_output(cluster_id: Optional[pulumi.Input[str]] = None, +@_utilities.lift_output_func(get_cluster_alert_rule) +def get_cluster_alert_rule_output(cluster_id: Optional[pulumi.Input[str]] = None, labels: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None, name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterAlterRuleResult]: + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetClusterAlertRuleResult]: """ Use this data source to retrieve information about a Rancher v2 cluster alert rule. @@ -268,7 +268,7 @@ def get_cluster_alter_rule_output(cluster_id: Optional[pulumi.Input[str]] = None import pulumi import pulumi_rancher2 as rancher2 - foo = rancher2.get_cluster_alter_rule(cluster_id="", + foo = rancher2.get_cluster_alert_rule(cluster_id="", name="") ``` diff --git a/sdk/python/pulumi_rancher2/get_global_role.py b/sdk/python/pulumi_rancher2/get_global_role.py index 2b132a305..f3945d8a8 100644 --- a/sdk/python/pulumi_rancher2/get_global_role.py +++ b/sdk/python/pulumi_rancher2/get_global_role.py @@ -22,7 +22,7 @@ class GetGlobalRoleResult: """ A collection of values returned by getGlobalRole. """ - def __init__(__self__, annotations=None, builtin=None, description=None, id=None, labels=None, name=None, new_user_default=None, rules=None): + def __init__(__self__, annotations=None, builtin=None, description=None, id=None, inherited_cluster_roles=None, labels=None, name=None, new_user_default=None, rules=None): if annotations and not isinstance(annotations, dict): raise TypeError("Expected argument 'annotations' to be a dict") pulumi.set(__self__, "annotations", annotations) @@ -35,6 +35,9 @@ def __init__(__self__, annotations=None, builtin=None, description=None, id=None if id and not isinstance(id, str): raise TypeError("Expected argument 'id' to be a str") pulumi.set(__self__, "id", id) + if inherited_cluster_roles and not isinstance(inherited_cluster_roles, list): + raise TypeError("Expected argument 'inherited_cluster_roles' to be a list") + pulumi.set(__self__, "inherited_cluster_roles", inherited_cluster_roles) if labels and not isinstance(labels, dict): raise TypeError("Expected argument 'labels' to be a dict") pulumi.set(__self__, "labels", labels) @@ -80,6 +83,14 @@ def id(self) -> str: """ return pulumi.get(self, "id") + @property + @pulumi.getter(name="inheritedClusterRoles") + def inherited_cluster_roles(self) -> Optional[Sequence[str]]: + """ + (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) + """ + return pulumi.get(self, "inherited_cluster_roles") + @property @pulumi.getter def labels(self) -> Mapping[str, Any]: @@ -120,13 +131,15 @@ def __await__(self): builtin=self.builtin, description=self.description, id=self.id, + inherited_cluster_roles=self.inherited_cluster_roles, labels=self.labels, name=self.name, new_user_default=self.new_user_default, rules=self.rules) -def get_global_role(name: Optional[str] = None, +def get_global_role(inherited_cluster_roles: Optional[Sequence[str]] = None, + name: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGlobalRoleResult: """ Use this data source to retrieve information about a Rancher v2 global role resource. @@ -141,9 +154,11 @@ def get_global_role(name: Optional[str] = None, ``` + :param Sequence[str] inherited_cluster_roles: (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) :param str name: The name of the Global Role (string) """ __args__ = dict() + __args__['inheritedClusterRoles'] = inherited_cluster_roles __args__['name'] = name opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('rancher2:index/getGlobalRole:getGlobalRole', __args__, opts=opts, typ=GetGlobalRoleResult).value @@ -153,6 +168,7 @@ def get_global_role(name: Optional[str] = None, builtin=pulumi.get(__ret__, 'builtin'), description=pulumi.get(__ret__, 'description'), id=pulumi.get(__ret__, 'id'), + inherited_cluster_roles=pulumi.get(__ret__, 'inherited_cluster_roles'), labels=pulumi.get(__ret__, 'labels'), name=pulumi.get(__ret__, 'name'), new_user_default=pulumi.get(__ret__, 'new_user_default'), @@ -160,7 +176,8 @@ def get_global_role(name: Optional[str] = None, @_utilities.lift_output_func(get_global_role) -def get_global_role_output(name: Optional[pulumi.Input[str]] = None, +def get_global_role_output(inherited_cluster_roles: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, + name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGlobalRoleResult]: """ Use this data source to retrieve information about a Rancher v2 global role resource. @@ -175,6 +192,7 @@ def get_global_role_output(name: Optional[pulumi.Input[str]] = None, ``` + :param Sequence[str] inherited_cluster_roles: (Optional) Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster (list) :param str name: The name of the Global Role (string) """ ... diff --git a/sdk/python/pulumi_rancher2/get_role_tempalte.py b/sdk/python/pulumi_rancher2/get_role_tempalte.py deleted file mode 100644 index 2fed9d68a..000000000 --- a/sdk/python/pulumi_rancher2/get_role_tempalte.py +++ /dev/null @@ -1,264 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities -from . import outputs - -__all__ = [ - 'GetRoleTempalteResult', - 'AwaitableGetRoleTempalteResult', - 'get_role_tempalte', - 'get_role_tempalte_output', -] - -warnings.warn("""rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate""", DeprecationWarning) - -@pulumi.output_type -class GetRoleTempalteResult: - """ - A collection of values returned by getRoleTempalte. - """ - def __init__(__self__, administrative=None, annotations=None, builtin=None, context=None, default_role=None, description=None, external=None, hidden=None, id=None, labels=None, locked=None, name=None, role_template_ids=None, rules=None): - if administrative and not isinstance(administrative, bool): - raise TypeError("Expected argument 'administrative' to be a bool") - pulumi.set(__self__, "administrative", administrative) - if annotations and not isinstance(annotations, dict): - raise TypeError("Expected argument 'annotations' to be a dict") - pulumi.set(__self__, "annotations", annotations) - if builtin and not isinstance(builtin, bool): - raise TypeError("Expected argument 'builtin' to be a bool") - pulumi.set(__self__, "builtin", builtin) - if context and not isinstance(context, str): - raise TypeError("Expected argument 'context' to be a str") - pulumi.set(__self__, "context", context) - if default_role and not isinstance(default_role, bool): - raise TypeError("Expected argument 'default_role' to be a bool") - pulumi.set(__self__, "default_role", default_role) - if description and not isinstance(description, str): - raise TypeError("Expected argument 'description' to be a str") - pulumi.set(__self__, "description", description) - if external and not isinstance(external, bool): - raise TypeError("Expected argument 'external' to be a bool") - pulumi.set(__self__, "external", external) - if hidden and not isinstance(hidden, bool): - raise TypeError("Expected argument 'hidden' to be a bool") - pulumi.set(__self__, "hidden", hidden) - if id and not isinstance(id, str): - raise TypeError("Expected argument 'id' to be a str") - pulumi.set(__self__, "id", id) - if labels and not isinstance(labels, dict): - raise TypeError("Expected argument 'labels' to be a dict") - pulumi.set(__self__, "labels", labels) - if locked and not isinstance(locked, bool): - raise TypeError("Expected argument 'locked' to be a bool") - pulumi.set(__self__, "locked", locked) - if name and not isinstance(name, str): - raise TypeError("Expected argument 'name' to be a str") - pulumi.set(__self__, "name", name) - if role_template_ids and not isinstance(role_template_ids, list): - raise TypeError("Expected argument 'role_template_ids' to be a list") - pulumi.set(__self__, "role_template_ids", role_template_ids) - if rules and not isinstance(rules, list): - raise TypeError("Expected argument 'rules' to be a list") - pulumi.set(__self__, "rules", rules) - - @property - @pulumi.getter - def administrative(self) -> bool: - """ - (Computed) Administrative role template (bool) - """ - return pulumi.get(self, "administrative") - - @property - @pulumi.getter - def annotations(self) -> Mapping[str, Any]: - """ - (Computed) Annotations for role template object (map) - """ - return pulumi.get(self, "annotations") - - @property - @pulumi.getter - def builtin(self) -> bool: - """ - (Computed) Builtin role template (string) - """ - return pulumi.get(self, "builtin") - - @property - @pulumi.getter - def context(self) -> str: - return pulumi.get(self, "context") - - @property - @pulumi.getter(name="defaultRole") - def default_role(self) -> bool: - """ - (Computed) Default role template for new created cluster or project (bool) - """ - return pulumi.get(self, "default_role") - - @property - @pulumi.getter - def description(self) -> str: - """ - (Computed) Role template description (string) - """ - return pulumi.get(self, "description") - - @property - @pulumi.getter - def external(self) -> bool: - """ - (Computed) External role template (bool) - """ - return pulumi.get(self, "external") - - @property - @pulumi.getter - def hidden(self) -> bool: - """ - (Computed) Hidden role template (bool) - """ - return pulumi.get(self, "hidden") - - @property - @pulumi.getter - def id(self) -> str: - """ - The provider-assigned unique ID for this managed resource. - """ - return pulumi.get(self, "id") - - @property - @pulumi.getter - def labels(self) -> Mapping[str, Any]: - """ - (Computed) Labels for role template object (map) - """ - return pulumi.get(self, "labels") - - @property - @pulumi.getter - def locked(self) -> bool: - """ - (Computed) Locked role template (bool) - """ - return pulumi.get(self, "locked") - - @property - @pulumi.getter - def name(self) -> str: - return pulumi.get(self, "name") - - @property - @pulumi.getter(name="roleTemplateIds") - def role_template_ids(self) -> Sequence[str]: - """ - (Computed) Inherit role template IDs (list) - """ - return pulumi.get(self, "role_template_ids") - - @property - @pulumi.getter - def rules(self) -> Sequence['outputs.GetRoleTempalteRuleResult']: - """ - (Computed) Role template policy rules (list) - """ - return pulumi.get(self, "rules") - - -class AwaitableGetRoleTempalteResult(GetRoleTempalteResult): - # pylint: disable=using-constant-test - def __await__(self): - if False: - yield self - return GetRoleTempalteResult( - administrative=self.administrative, - annotations=self.annotations, - builtin=self.builtin, - context=self.context, - default_role=self.default_role, - description=self.description, - external=self.external, - hidden=self.hidden, - id=self.id, - labels=self.labels, - locked=self.locked, - name=self.name, - role_template_ids=self.role_template_ids, - rules=self.rules) - - -def get_role_tempalte(context: Optional[str] = None, - name: Optional[str] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRoleTempalteResult: - """ - Use this data source to retrieve information about a Rancher v2 role template resource. - - ## Example Usage - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - foo = rancher2.get_role_template(name="foo") - ``` - - - :param str context: Role template context. `cluster` and `project` values are supported (string) - :param str name: The name of the Role Template (string) - """ - pulumi.log.warn("""get_role_tempalte is deprecated: rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate""") - __args__ = dict() - __args__['context'] = context - __args__['name'] = name - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) - __ret__ = pulumi.runtime.invoke('rancher2:index/getRoleTempalte:getRoleTempalte', __args__, opts=opts, typ=GetRoleTempalteResult).value - - return AwaitableGetRoleTempalteResult( - administrative=pulumi.get(__ret__, 'administrative'), - annotations=pulumi.get(__ret__, 'annotations'), - builtin=pulumi.get(__ret__, 'builtin'), - context=pulumi.get(__ret__, 'context'), - default_role=pulumi.get(__ret__, 'default_role'), - description=pulumi.get(__ret__, 'description'), - external=pulumi.get(__ret__, 'external'), - hidden=pulumi.get(__ret__, 'hidden'), - id=pulumi.get(__ret__, 'id'), - labels=pulumi.get(__ret__, 'labels'), - locked=pulumi.get(__ret__, 'locked'), - name=pulumi.get(__ret__, 'name'), - role_template_ids=pulumi.get(__ret__, 'role_template_ids'), - rules=pulumi.get(__ret__, 'rules')) - - -@_utilities.lift_output_func(get_role_tempalte) -def get_role_tempalte_output(context: Optional[pulumi.Input[Optional[str]]] = None, - name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleTempalteResult]: - """ - Use this data source to retrieve information about a Rancher v2 role template resource. - - ## Example Usage - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - foo = rancher2.get_role_template(name="foo") - ``` - - - :param str context: Role template context. `cluster` and `project` values are supported (string) - :param str name: The name of the Role Template (string) - """ - pulumi.log.warn("""get_role_tempalte is deprecated: rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate""") - ... diff --git a/sdk/python/pulumi_rancher2/global_role.py b/sdk/python/pulumi_rancher2/global_role.py index 6949028e0..00ae564dd 100644 --- a/sdk/python/pulumi_rancher2/global_role.py +++ b/sdk/python/pulumi_rancher2/global_role.py @@ -18,6 +18,7 @@ class GlobalRoleArgs: def __init__(__self__, *, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, description: Optional[pulumi.Input[str]] = None, + inherited_cluster_roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, new_user_default: Optional[pulumi.Input[bool]] = None, @@ -26,6 +27,7 @@ def __init__(__self__, *, The set of arguments for constructing a GlobalRole resource. :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for global role object (map) :param pulumi.Input[str] description: Global role description (string) + :param pulumi.Input[Sequence[pulumi.Input[str]]] inherited_cluster_roles: Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster :param pulumi.Input[Mapping[str, Any]] labels: Labels for global role object (map) :param pulumi.Input[str] name: Global role name (string) :param pulumi.Input[bool] new_user_default: Whether or not this role should be added to new users. Default `false` (bool) @@ -35,6 +37,8 @@ def __init__(__self__, *, pulumi.set(__self__, "annotations", annotations) if description is not None: pulumi.set(__self__, "description", description) + if inherited_cluster_roles is not None: + pulumi.set(__self__, "inherited_cluster_roles", inherited_cluster_roles) if labels is not None: pulumi.set(__self__, "labels", labels) if name is not None: @@ -68,6 +72,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter(name="inheritedClusterRoles") + def inherited_cluster_roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + """ + return pulumi.get(self, "inherited_cluster_roles") + + @inherited_cluster_roles.setter + def inherited_cluster_roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "inherited_cluster_roles", value) + @property @pulumi.getter def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: @@ -123,6 +139,7 @@ def __init__(__self__, *, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, builtin: Optional[pulumi.Input[bool]] = None, description: Optional[pulumi.Input[str]] = None, + inherited_cluster_roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, new_user_default: Optional[pulumi.Input[bool]] = None, @@ -132,6 +149,7 @@ def __init__(__self__, *, :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for global role object (map) :param pulumi.Input[bool] builtin: (Computed) Builtin global role (bool) :param pulumi.Input[str] description: Global role description (string) + :param pulumi.Input[Sequence[pulumi.Input[str]]] inherited_cluster_roles: Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster :param pulumi.Input[Mapping[str, Any]] labels: Labels for global role object (map) :param pulumi.Input[str] name: Global role name (string) :param pulumi.Input[bool] new_user_default: Whether or not this role should be added to new users. Default `false` (bool) @@ -143,6 +161,8 @@ def __init__(__self__, *, pulumi.set(__self__, "builtin", builtin) if description is not None: pulumi.set(__self__, "description", description) + if inherited_cluster_roles is not None: + pulumi.set(__self__, "inherited_cluster_roles", inherited_cluster_roles) if labels is not None: pulumi.set(__self__, "labels", labels) if name is not None: @@ -188,6 +208,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter(name="inheritedClusterRoles") + def inherited_cluster_roles(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + """ + return pulumi.get(self, "inherited_cluster_roles") + + @inherited_cluster_roles.setter + def inherited_cluster_roles(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "inherited_cluster_roles", value) + @property @pulumi.getter def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: @@ -244,6 +276,7 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, description: Optional[pulumi.Input[str]] = None, + inherited_cluster_roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, new_user_default: Optional[pulumi.Input[bool]] = None, @@ -281,6 +314,7 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for global role object (map) :param pulumi.Input[str] description: Global role description (string) + :param pulumi.Input[Sequence[pulumi.Input[str]]] inherited_cluster_roles: Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster :param pulumi.Input[Mapping[str, Any]] labels: Labels for global role object (map) :param pulumi.Input[str] name: Global role name (string) :param pulumi.Input[bool] new_user_default: Whether or not this role should be added to new users. Default `false` (bool) @@ -337,6 +371,7 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, description: Optional[pulumi.Input[str]] = None, + inherited_cluster_roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, new_user_default: Optional[pulumi.Input[bool]] = None, @@ -352,6 +387,7 @@ def _internal_init(__self__, __props__.__dict__["annotations"] = annotations __props__.__dict__["description"] = description + __props__.__dict__["inherited_cluster_roles"] = inherited_cluster_roles __props__.__dict__["labels"] = labels __props__.__dict__["name"] = name __props__.__dict__["new_user_default"] = new_user_default @@ -370,6 +406,7 @@ def get(resource_name: str, annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, builtin: Optional[pulumi.Input[bool]] = None, description: Optional[pulumi.Input[str]] = None, + inherited_cluster_roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, name: Optional[pulumi.Input[str]] = None, new_user_default: Optional[pulumi.Input[bool]] = None, @@ -384,6 +421,7 @@ def get(resource_name: str, :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for global role object (map) :param pulumi.Input[bool] builtin: (Computed) Builtin global role (bool) :param pulumi.Input[str] description: Global role description (string) + :param pulumi.Input[Sequence[pulumi.Input[str]]] inherited_cluster_roles: Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster :param pulumi.Input[Mapping[str, Any]] labels: Labels for global role object (map) :param pulumi.Input[str] name: Global role name (string) :param pulumi.Input[bool] new_user_default: Whether or not this role should be added to new users. Default `false` (bool) @@ -396,6 +434,7 @@ def get(resource_name: str, __props__.__dict__["annotations"] = annotations __props__.__dict__["builtin"] = builtin __props__.__dict__["description"] = description + __props__.__dict__["inherited_cluster_roles"] = inherited_cluster_roles __props__.__dict__["labels"] = labels __props__.__dict__["name"] = name __props__.__dict__["new_user_default"] = new_user_default @@ -426,6 +465,14 @@ def description(self) -> pulumi.Output[str]: """ return pulumi.get(self, "description") + @property + @pulumi.getter(name="inheritedClusterRoles") + def inherited_cluster_roles(self) -> pulumi.Output[Optional[Sequence[str]]]: + """ + Names of role templates whose permissions are granted by this global role in every cluster besides the local cluster + """ + return pulumi.get(self, "inherited_cluster_roles") + @property @pulumi.getter def labels(self) -> pulumi.Output[Mapping[str, Any]]: diff --git a/sdk/python/pulumi_rancher2/machine_config_v2.py b/sdk/python/pulumi_rancher2/machine_config_v2.py index 292a7eb7f..b4b9f4b5b 100644 --- a/sdk/python/pulumi_rancher2/machine_config_v2.py +++ b/sdk/python/pulumi_rancher2/machine_config_v2.py @@ -456,9 +456,7 @@ def __init__(__self__, """ Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above. - `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere` cloud providers are supported for machine config V2 - - **Note:** This resource is used by + The supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`. ## Example Usage ### Using the Harvester Node Driver @@ -536,9 +534,7 @@ def __init__(__self__, """ Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above. - `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere` cloud providers are supported for machine config V2 - - **Note:** This resource is used by + The supported cloud providers includes `amazonec2`, `azure`, `digitalocean`, `harvester`, `linode`, `openstack`, and `vsphere`. ## Example Usage ### Using the Harvester Node Driver diff --git a/sdk/python/pulumi_rancher2/outputs.py b/sdk/python/pulumi_rancher2/outputs.py index 414e388ed..e0482013b 100644 --- a/sdk/python/pulumi_rancher2/outputs.py +++ b/sdk/python/pulumi_rancher2/outputs.py @@ -29,11 +29,6 @@ 'ClusterAlertRuleMetricRule', 'ClusterAlertRuleNodeRule', 'ClusterAlertRuleSystemServiceRule', - 'ClusterAlterGroupRecipient', - 'ClusterAlterRuleEventRule', - 'ClusterAlterRuleMetricRule', - 'ClusterAlterRuleNodeRule', - 'ClusterAlterRuleSystemServiceRule', 'ClusterClusterAgentDeploymentCustomization', 'ClusterClusterAgentDeploymentCustomizationAppendToleration', 'ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement', @@ -219,6 +214,14 @@ 'ClusterV2RkeConfigMachineSelectorConfig', 'ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector', 'ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression', + 'ClusterV2RkeConfigMachineSelectorFile', + 'ClusterV2RkeConfigMachineSelectorFileFileSource', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceSecret', + 'ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem', + 'ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector', + 'ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression', 'ClusterV2RkeConfigRegistries', 'ClusterV2RkeConfigRegistriesConfig', 'ClusterV2RkeConfigRegistriesMirror', @@ -291,16 +294,15 @@ 'ProjectResourceQuotaNamespaceDefaultLimit', 'ProjectResourceQuotaProjectLimit', 'RegistryRegistry', - 'RoleTempalteRule', 'RoleTemplateRule', 'GetClusterAksConfigResult', 'GetClusterAksConfigV2Result', 'GetClusterAksConfigV2NodePoolResult', 'GetClusterAlertGroupRecipientResult', - 'GetClusterAlterRuleEventRuleResult', - 'GetClusterAlterRuleMetricRuleResult', - 'GetClusterAlterRuleNodeRuleResult', - 'GetClusterAlterRuleSystemServiceRuleResult', + 'GetClusterAlertRuleEventRuleResult', + 'GetClusterAlertRuleMetricRuleResult', + 'GetClusterAlertRuleNodeRuleResult', + 'GetClusterAlertRuleSystemServiceRuleResult', 'GetClusterClusterAuthEndpointResult', 'GetClusterClusterMonitoringInputResult', 'GetClusterClusterRegistrationTokenResult', @@ -472,6 +474,14 @@ 'GetClusterV2RkeConfigMachineSelectorConfigResult', 'GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorResult', 'GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionResult', + 'GetClusterV2RkeConfigMachineSelectorFileResult', + 'GetClusterV2RkeConfigMachineSelectorFileFileSourceResult', + 'GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult', + 'GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult', + 'GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult', + 'GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult', + 'GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult', + 'GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult', 'GetClusterV2RkeConfigRegistriesResult', 'GetClusterV2RkeConfigRegistriesConfigResult', 'GetClusterV2RkeConfigRegistriesMirrorResult', @@ -526,7 +536,6 @@ 'GetProjectResourceQuotaNamespaceDefaultLimitResult', 'GetProjectResourceQuotaProjectLimitResult', 'GetRegistryRegistryResult', - 'GetRoleTempalteRuleResult', 'GetRoleTemplateRuleResult', ] @@ -2588,318 +2597,6 @@ def condition(self) -> Optional[str]: return pulumi.get(self, "condition") -@pulumi.output_type -class ClusterAlterGroupRecipient(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "notifierId": - suggest = "notifier_id" - elif key == "defaultRecipient": - suggest = "default_recipient" - elif key == "notifierType": - suggest = "notifier_type" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in ClusterAlterGroupRecipient. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - ClusterAlterGroupRecipient.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - ClusterAlterGroupRecipient.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - notifier_id: str, - default_recipient: Optional[bool] = None, - notifier_type: Optional[str] = None, - recipient: Optional[str] = None): - """ - :param str notifier_id: Recipient notifier ID (string) - :param bool default_recipient: Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - :param str notifier_type: Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - :param str recipient: Recipient (string) - """ - pulumi.set(__self__, "notifier_id", notifier_id) - if default_recipient is not None: - pulumi.set(__self__, "default_recipient", default_recipient) - if notifier_type is not None: - pulumi.set(__self__, "notifier_type", notifier_type) - if recipient is not None: - pulumi.set(__self__, "recipient", recipient) - - @property - @pulumi.getter(name="notifierId") - def notifier_id(self) -> str: - """ - Recipient notifier ID (string) - """ - return pulumi.get(self, "notifier_id") - - @property - @pulumi.getter(name="defaultRecipient") - def default_recipient(self) -> Optional[bool]: - """ - Use notifier default recipient, overriding `recipient` argument if set. Default: `false` (bool) - """ - return pulumi.get(self, "default_recipient") - - @property - @pulumi.getter(name="notifierType") - def notifier_type(self) -> Optional[str]: - """ - Recipient notifier ID. Supported values : `"dingtalk" | "msteams" | "pagerduty" | "slack" | "email" | "webhook" | "wechat"` (string) - """ - return pulumi.get(self, "notifier_type") - - @property - @pulumi.getter - def recipient(self) -> Optional[str]: - """ - Recipient (string) - """ - return pulumi.get(self, "recipient") - - -@pulumi.output_type -class ClusterAlterRuleEventRule(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "resourceKind": - suggest = "resource_kind" - elif key == "eventType": - suggest = "event_type" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in ClusterAlterRuleEventRule. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - ClusterAlterRuleEventRule.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - ClusterAlterRuleEventRule.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - resource_kind: str, - event_type: Optional[str] = None): - """ - :param str resource_kind: Resource kind - :param str event_type: Event type - """ - pulumi.set(__self__, "resource_kind", resource_kind) - if event_type is not None: - pulumi.set(__self__, "event_type", event_type) - - @property - @pulumi.getter(name="resourceKind") - def resource_kind(self) -> str: - """ - Resource kind - """ - return pulumi.get(self, "resource_kind") - - @property - @pulumi.getter(name="eventType") - def event_type(self) -> Optional[str]: - """ - Event type - """ - return pulumi.get(self, "event_type") - - -@pulumi.output_type -class ClusterAlterRuleMetricRule(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "thresholdValue": - suggest = "threshold_value" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in ClusterAlterRuleMetricRule. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - ClusterAlterRuleMetricRule.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - ClusterAlterRuleMetricRule.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - duration: str, - expression: str, - threshold_value: float, - comparison: Optional[str] = None, - description: Optional[str] = None): - """ - :param str duration: Metric rule duration - :param str expression: Metric rule expression - :param float threshold_value: Metric rule threshold value - :param str comparison: Metric rule comparison - :param str description: The cluster alert group description (string) - """ - pulumi.set(__self__, "duration", duration) - pulumi.set(__self__, "expression", expression) - pulumi.set(__self__, "threshold_value", threshold_value) - if comparison is not None: - pulumi.set(__self__, "comparison", comparison) - if description is not None: - pulumi.set(__self__, "description", description) - - @property - @pulumi.getter - def duration(self) -> str: - """ - Metric rule duration - """ - return pulumi.get(self, "duration") - - @property - @pulumi.getter - def expression(self) -> str: - """ - Metric rule expression - """ - return pulumi.get(self, "expression") - - @property - @pulumi.getter(name="thresholdValue") - def threshold_value(self) -> float: - """ - Metric rule threshold value - """ - return pulumi.get(self, "threshold_value") - - @property - @pulumi.getter - def comparison(self) -> Optional[str]: - """ - Metric rule comparison - """ - return pulumi.get(self, "comparison") - - @property - @pulumi.getter - def description(self) -> Optional[str]: - """ - The cluster alert group description (string) - """ - return pulumi.get(self, "description") - - -@pulumi.output_type -class ClusterAlterRuleNodeRule(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "cpuThreshold": - suggest = "cpu_threshold" - elif key == "memThreshold": - suggest = "mem_threshold" - elif key == "nodeId": - suggest = "node_id" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in ClusterAlterRuleNodeRule. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - ClusterAlterRuleNodeRule.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - ClusterAlterRuleNodeRule.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - condition: Optional[str] = None, - cpu_threshold: Optional[int] = None, - mem_threshold: Optional[int] = None, - node_id: Optional[str] = None, - selector: Optional[Mapping[str, Any]] = None): - """ - :param str condition: Node rule condition - :param int cpu_threshold: Node rule cpu threshold - :param int mem_threshold: Node rule mem threshold - :param str node_id: Node ID - :param Mapping[str, Any] selector: Node rule selector - """ - if condition is not None: - pulumi.set(__self__, "condition", condition) - if cpu_threshold is not None: - pulumi.set(__self__, "cpu_threshold", cpu_threshold) - if mem_threshold is not None: - pulumi.set(__self__, "mem_threshold", mem_threshold) - if node_id is not None: - pulumi.set(__self__, "node_id", node_id) - if selector is not None: - pulumi.set(__self__, "selector", selector) - - @property - @pulumi.getter - def condition(self) -> Optional[str]: - """ - Node rule condition - """ - return pulumi.get(self, "condition") - - @property - @pulumi.getter(name="cpuThreshold") - def cpu_threshold(self) -> Optional[int]: - """ - Node rule cpu threshold - """ - return pulumi.get(self, "cpu_threshold") - - @property - @pulumi.getter(name="memThreshold") - def mem_threshold(self) -> Optional[int]: - """ - Node rule mem threshold - """ - return pulumi.get(self, "mem_threshold") - - @property - @pulumi.getter(name="nodeId") - def node_id(self) -> Optional[str]: - """ - Node ID - """ - return pulumi.get(self, "node_id") - - @property - @pulumi.getter - def selector(self) -> Optional[Mapping[str, Any]]: - """ - Node rule selector - """ - return pulumi.get(self, "selector") - - -@pulumi.output_type -class ClusterAlterRuleSystemServiceRule(dict): - def __init__(__self__, *, - condition: Optional[str] = None): - """ - :param str condition: System service rule condition - """ - if condition is not None: - pulumi.set(__self__, "condition", condition) - - @property - @pulumi.getter - def condition(self) -> Optional[str]: - """ - System service rule condition - """ - return pulumi.get(self, "condition") - - @pulumi.output_type class ClusterClusterAgentDeploymentCustomization(dict): @staticmethod @@ -3844,7 +3541,7 @@ def __init__(__self__, *, """ :param str cloud_credential_id: The EKS cloud_credential id (string) :param bool imported: Is GKE cluster imported? Default: `false` (bool) - :param str kms_key: The AWS kms key to use (string) + :param str kms_key: The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) :param str kubernetes_version: The Kubernetes version that will be used for your master *and* OKE worker nodes (string) :param Sequence[str] logging_types: The AWS cloudwatch logging types. `audit`, `api`, `scheduler`, `controllerManager` and `authenticator` values are allowed (list) :param str name: The name of the Cluster (string) @@ -3911,7 +3608,7 @@ def imported(self) -> Optional[bool]: @pulumi.getter(name="kmsKey") def kms_key(self) -> Optional[str]: """ - The AWS kms key to use (string) + The AWS kms label ARN to use (string, e.g. arn:aws:kms::<123456789100>:alias/) """ return pulumi.get(self, "kms_key") @@ -9077,7 +8774,9 @@ class ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "insecureFlag": + if key == "gracefulShutdownTimeout": + suggest = "graceful_shutdown_timeout" + elif key == "insecureFlag": suggest = "insecure_flag" elif key == "soapRoundtripCount": suggest = "soap_roundtrip_count" @@ -9095,6 +8794,7 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, datacenters: Optional[str] = None, + graceful_shutdown_timeout: Optional[str] = None, insecure_flag: Optional[bool] = None, password: Optional[str] = None, port: Optional[str] = None, @@ -9110,6 +8810,8 @@ def __init__(__self__, *, """ if datacenters is not None: pulumi.set(__self__, "datacenters", datacenters) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) if insecure_flag is not None: pulumi.set(__self__, "insecure_flag", insecure_flag) if password is not None: @@ -9129,6 +8831,11 @@ def datacenters(self) -> Optional[str]: """ return pulumi.get(self, "datacenters") + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[str]: + return pulumi.get(self, "graceful_shutdown_timeout") + @property @pulumi.getter(name="insecureFlag") def insecure_flag(self) -> Optional[bool]: @@ -15901,7 +15608,9 @@ class ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereC @staticmethod def __key_warning(key: str): suggest = None - if key == "insecureFlag": + if key == "gracefulShutdownTimeout": + suggest = "graceful_shutdown_timeout" + elif key == "insecureFlag": suggest = "insecure_flag" elif key == "soapRoundtripCount": suggest = "soap_roundtrip_count" @@ -15919,6 +15628,7 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, datacenters: Optional[str] = None, + graceful_shutdown_timeout: Optional[str] = None, insecure_flag: Optional[bool] = None, password: Optional[str] = None, port: Optional[str] = None, @@ -15926,6 +15636,8 @@ def __init__(__self__, *, user: Optional[str] = None): if datacenters is not None: pulumi.set(__self__, "datacenters", datacenters) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) if insecure_flag is not None: pulumi.set(__self__, "insecure_flag", insecure_flag) if password is not None: @@ -15942,6 +15654,11 @@ def __init__(__self__, *, def datacenters(self) -> Optional[str]: return pulumi.get(self, "datacenters") + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[str]: + return pulumi.get(self, "graceful_shutdown_timeout") + @property @pulumi.getter(name="insecureFlag") def insecure_flag(self) -> Optional[bool]: @@ -19483,8 +19200,8 @@ def __init__(__self__, *, name: str, value: str): """ - :param str name: The name of the Cluster v2 (string) - :param str value: The taint value (string) + :param str name: The name of the cluster. + :param str value: The taint value. """ pulumi.set(__self__, "name", name) pulumi.set(__self__, "value", value) @@ -19493,7 +19210,7 @@ def __init__(__self__, *, @pulumi.getter def name(self) -> str: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -19501,7 +19218,7 @@ def name(self) -> str: @pulumi.getter def value(self) -> str: """ - The taint value (string) + The taint value. """ return pulumi.get(self, "value") @@ -19534,9 +19251,9 @@ def __init__(__self__, *, override_affinity: Optional[str] = None, override_resource_requirements: Optional[Sequence['outputs.ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement']] = None): """ - :param Sequence['ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs'] append_tolerations: User defined tolerations to append to agent (list) - :param str override_affinity: User defined affinity to override default agent affinity (string) - :param Sequence['ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs'] override_resource_requirements: User defined resource requirements to set on the agent (list) + :param Sequence['ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs'] append_tolerations: A list of tolerations to be appended to the default tolerations. + :param str override_affinity: Override affinity overrides the global default affinity setting. + :param Sequence['ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirementArgs'] override_resource_requirements: Override resource requirements overrides the default value for requests and/or limits. """ if append_tolerations is not None: pulumi.set(__self__, "append_tolerations", append_tolerations) @@ -19549,7 +19266,7 @@ def __init__(__self__, *, @pulumi.getter(name="appendTolerations") def append_tolerations(self) -> Optional[Sequence['outputs.ClusterV2ClusterAgentDeploymentCustomizationAppendToleration']]: """ - User defined tolerations to append to agent (list) + A list of tolerations to be appended to the default tolerations. """ return pulumi.get(self, "append_tolerations") @@ -19557,7 +19274,7 @@ def append_tolerations(self) -> Optional[Sequence['outputs.ClusterV2ClusterAgent @pulumi.getter(name="overrideAffinity") def override_affinity(self) -> Optional[str]: """ - User defined affinity to override default agent affinity (string) + Override affinity overrides the global default affinity setting. """ return pulumi.get(self, "override_affinity") @@ -19565,7 +19282,7 @@ def override_affinity(self) -> Optional[str]: @pulumi.getter(name="overrideResourceRequirements") def override_resource_requirements(self) -> Optional[Sequence['outputs.ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement']]: """ - User defined resource requirements to set on the agent (list) + Override resource requirements overrides the default value for requests and/or limits. """ return pulumi.get(self, "override_resource_requirements") @@ -19579,11 +19296,11 @@ def __init__(__self__, *, seconds: Optional[int] = None, value: Optional[str] = None): """ - :param str key: Machine selector label match expressions key (string) - :param str effect: The taint effect. Default: `\\"NoExecute\\"` (string) - :param str operator: Machine selector label match expressions operator (string) - :param int seconds: The number of seconds a pod will stay bound to a node with a matching taint (int) - :param str value: The taint value (string) + :param str key: Key is the name of the key of the item to retrieve. + :param str effect: The taint effect. Default: `\\"NoExecute\\"`. + :param str operator: Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + :param int seconds: The number of seconds a pod will stay bound to a node with a matching taint. + :param str value: The taint value. """ pulumi.set(__self__, "key", key) if effect is not None: @@ -19599,7 +19316,7 @@ def __init__(__self__, *, @pulumi.getter def key(self) -> str: """ - Machine selector label match expressions key (string) + Key is the name of the key of the item to retrieve. """ return pulumi.get(self, "key") @@ -19607,7 +19324,7 @@ def key(self) -> str: @pulumi.getter def effect(self) -> Optional[str]: """ - The taint effect. Default: `\\"NoExecute\\"` (string) + The taint effect. Default: `\\"NoExecute\\"`. """ return pulumi.get(self, "effect") @@ -19615,7 +19332,7 @@ def effect(self) -> Optional[str]: @pulumi.getter def operator(self) -> Optional[str]: """ - Machine selector label match expressions operator (string) + Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. """ return pulumi.get(self, "operator") @@ -19623,7 +19340,7 @@ def operator(self) -> Optional[str]: @pulumi.getter def seconds(self) -> Optional[int]: """ - The number of seconds a pod will stay bound to a node with a matching taint (int) + The number of seconds a pod will stay bound to a node with a matching taint. """ return pulumi.get(self, "seconds") @@ -19631,7 +19348,7 @@ def seconds(self) -> Optional[int]: @pulumi.getter def value(self) -> Optional[str]: """ - The taint value (string) + The taint value. """ return pulumi.get(self, "value") @@ -19667,10 +19384,10 @@ def __init__(__self__, *, memory_limit: Optional[str] = None, memory_request: Optional[str] = None): """ - :param str cpu_limit: The maximum CPU limit for agent (string) - :param str cpu_request: The minimum CPU required for agent (string) - :param str memory_limit: The maximum memory limit for agent (string) - :param str memory_request: The minimum memory required for agent (string) + :param str cpu_limit: The maximum CPU limit for agent. + :param str cpu_request: The minimum CPU required for agent. + :param str memory_limit: The maximum memory limit for agent. + :param str memory_request: The minimum memory required for agent. """ if cpu_limit is not None: pulumi.set(__self__, "cpu_limit", cpu_limit) @@ -19685,7 +19402,7 @@ def __init__(__self__, *, @pulumi.getter(name="cpuLimit") def cpu_limit(self) -> Optional[str]: """ - The maximum CPU limit for agent (string) + The maximum CPU limit for agent. """ return pulumi.get(self, "cpu_limit") @@ -19693,7 +19410,7 @@ def cpu_limit(self) -> Optional[str]: @pulumi.getter(name="cpuRequest") def cpu_request(self) -> Optional[str]: """ - The minimum CPU required for agent (string) + The minimum CPU required for agent. """ return pulumi.get(self, "cpu_request") @@ -19701,7 +19418,7 @@ def cpu_request(self) -> Optional[str]: @pulumi.getter(name="memoryLimit") def memory_limit(self) -> Optional[str]: """ - The maximum memory limit for agent (string) + The maximum memory limit for agent. """ return pulumi.get(self, "memory_limit") @@ -19709,7 +19426,7 @@ def memory_limit(self) -> Optional[str]: @pulumi.getter(name="memoryRequest") def memory_request(self) -> Optional[str]: """ - The minimum memory required for agent (string) + The minimum memory required for agent. """ return pulumi.get(self, "memory_request") @@ -19760,19 +19477,19 @@ def __init__(__self__, *, token: Optional[str] = None, windows_node_command: Optional[str] = None): """ - :param Mapping[str, Any] annotations: Annotations for the Cluster V2 (map) - :param str cluster_id: Cluster ID (string) - :param str command: Command to execute in a imported k8s cluster (string) - :param str id: (Computed) The ID of the resource (string) - :param str insecure_command: Insecure command to execute in a imported k8s cluster (string) - :param str insecure_node_command: Insecure node command to execute in a imported k8s cluster (string) - :param str insecure_windows_node_command: Insecure windows command to execute in a imported k8s cluster (string) - :param Mapping[str, Any] labels: Labels for the Cluster V2 (map) - :param str manifest_url: K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) - :param str name: The name of the Cluster v2 (string) - :param str node_command: Node command to execute in linux nodes for custom k8s cluster (string) - :param str token: Token for cluster registration token object (string) - :param str windows_node_command: Node command to execute in windows nodes for custom k8s cluster (string) + :param Mapping[str, Any] annotations: Annotations for the Cluster. + :param str cluster_id: Cluster ID. + :param str command: Command to execute in an imported k8s cluster. + :param str id: (Computed, string) The ID of the resource. + :param str insecure_command: Insecure command to execute in an imported k8s cluster. + :param str insecure_node_command: Insecure node command to execute in an imported k8s cluster. + :param str insecure_windows_node_command: Insecure windows command to execute in an imported k8s cluster. + :param Mapping[str, Any] labels: Labels for the Cluster. + :param str manifest_url: K8s manifest url to execute with `kubectl` to import an existing k8s cluster. + :param str name: The name of the cluster. + :param str node_command: Node command to execute in Linux nodes for custom k8s cluster. + :param str token: Token for cluster registration token object. + :param str windows_node_command: Node command to execute in Windows nodes for custom k8s cluster. """ if annotations is not None: pulumi.set(__self__, "annotations", annotations) @@ -19805,7 +19522,7 @@ def __init__(__self__, *, @pulumi.getter def annotations(self) -> Optional[Mapping[str, Any]]: """ - Annotations for the Cluster V2 (map) + Annotations for the Cluster. """ return pulumi.get(self, "annotations") @@ -19813,7 +19530,7 @@ def annotations(self) -> Optional[Mapping[str, Any]]: @pulumi.getter(name="clusterId") def cluster_id(self) -> Optional[str]: """ - Cluster ID (string) + Cluster ID. """ return pulumi.get(self, "cluster_id") @@ -19821,7 +19538,7 @@ def cluster_id(self) -> Optional[str]: @pulumi.getter def command(self) -> Optional[str]: """ - Command to execute in a imported k8s cluster (string) + Command to execute in an imported k8s cluster. """ return pulumi.get(self, "command") @@ -19829,7 +19546,7 @@ def command(self) -> Optional[str]: @pulumi.getter def id(self) -> Optional[str]: """ - (Computed) The ID of the resource (string) + (Computed, string) The ID of the resource. """ return pulumi.get(self, "id") @@ -19837,7 +19554,7 @@ def id(self) -> Optional[str]: @pulumi.getter(name="insecureCommand") def insecure_command(self) -> Optional[str]: """ - Insecure command to execute in a imported k8s cluster (string) + Insecure command to execute in an imported k8s cluster. """ return pulumi.get(self, "insecure_command") @@ -19845,7 +19562,7 @@ def insecure_command(self) -> Optional[str]: @pulumi.getter(name="insecureNodeCommand") def insecure_node_command(self) -> Optional[str]: """ - Insecure node command to execute in a imported k8s cluster (string) + Insecure node command to execute in an imported k8s cluster. """ return pulumi.get(self, "insecure_node_command") @@ -19853,7 +19570,7 @@ def insecure_node_command(self) -> Optional[str]: @pulumi.getter(name="insecureWindowsNodeCommand") def insecure_windows_node_command(self) -> Optional[str]: """ - Insecure windows command to execute in a imported k8s cluster (string) + Insecure windows command to execute in an imported k8s cluster. """ return pulumi.get(self, "insecure_windows_node_command") @@ -19861,7 +19578,7 @@ def insecure_windows_node_command(self) -> Optional[str]: @pulumi.getter def labels(self) -> Optional[Mapping[str, Any]]: """ - Labels for the Cluster V2 (map) + Labels for the Cluster. """ return pulumi.get(self, "labels") @@ -19869,7 +19586,7 @@ def labels(self) -> Optional[Mapping[str, Any]]: @pulumi.getter(name="manifestUrl") def manifest_url(self) -> Optional[str]: """ - K8s manifest url to execute with `kubectl` to import an existing k8s cluster (string) + K8s manifest url to execute with `kubectl` to import an existing k8s cluster. """ return pulumi.get(self, "manifest_url") @@ -19877,7 +19594,7 @@ def manifest_url(self) -> Optional[str]: @pulumi.getter def name(self) -> Optional[str]: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -19885,7 +19602,7 @@ def name(self) -> Optional[str]: @pulumi.getter(name="nodeCommand") def node_command(self) -> Optional[str]: """ - Node command to execute in linux nodes for custom k8s cluster (string) + Node command to execute in Linux nodes for custom k8s cluster. """ return pulumi.get(self, "node_command") @@ -19893,7 +19610,7 @@ def node_command(self) -> Optional[str]: @pulumi.getter def token(self) -> Optional[str]: """ - Token for cluster registration token object (string) + Token for cluster registration token object. """ return pulumi.get(self, "token") @@ -19901,7 +19618,7 @@ def token(self) -> Optional[str]: @pulumi.getter(name="windowsNodeCommand") def windows_node_command(self) -> Optional[str]: """ - Node command to execute in windows nodes for custom k8s cluster (string) + Node command to execute in Windows nodes for custom k8s cluster. """ return pulumi.get(self, "windows_node_command") @@ -19934,9 +19651,9 @@ def __init__(__self__, *, override_affinity: Optional[str] = None, override_resource_requirements: Optional[Sequence['outputs.ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement']] = None): """ - :param Sequence['ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs'] append_tolerations: User defined tolerations to append to agent (list) - :param str override_affinity: User defined affinity to override default agent affinity (string) - :param Sequence['ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs'] override_resource_requirements: User defined resource requirements to set on the agent (list) + :param Sequence['ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs'] append_tolerations: A list of tolerations to be appended to the default tolerations. + :param str override_affinity: Override affinity overrides the global default affinity setting. + :param Sequence['ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirementArgs'] override_resource_requirements: Override resource requirements overrides the default value for requests and/or limits. """ if append_tolerations is not None: pulumi.set(__self__, "append_tolerations", append_tolerations) @@ -19949,7 +19666,7 @@ def __init__(__self__, *, @pulumi.getter(name="appendTolerations") def append_tolerations(self) -> Optional[Sequence['outputs.ClusterV2FleetAgentDeploymentCustomizationAppendToleration']]: """ - User defined tolerations to append to agent (list) + A list of tolerations to be appended to the default tolerations. """ return pulumi.get(self, "append_tolerations") @@ -19957,7 +19674,7 @@ def append_tolerations(self) -> Optional[Sequence['outputs.ClusterV2FleetAgentDe @pulumi.getter(name="overrideAffinity") def override_affinity(self) -> Optional[str]: """ - User defined affinity to override default agent affinity (string) + Override affinity overrides the global default affinity setting. """ return pulumi.get(self, "override_affinity") @@ -19965,7 +19682,7 @@ def override_affinity(self) -> Optional[str]: @pulumi.getter(name="overrideResourceRequirements") def override_resource_requirements(self) -> Optional[Sequence['outputs.ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement']]: """ - User defined resource requirements to set on the agent (list) + Override resource requirements overrides the default value for requests and/or limits. """ return pulumi.get(self, "override_resource_requirements") @@ -19979,11 +19696,11 @@ def __init__(__self__, *, seconds: Optional[int] = None, value: Optional[str] = None): """ - :param str key: Machine selector label match expressions key (string) - :param str effect: The taint effect. Default: `\\"NoExecute\\"` (string) - :param str operator: Machine selector label match expressions operator (string) - :param int seconds: The number of seconds a pod will stay bound to a node with a matching taint (int) - :param str value: The taint value (string) + :param str key: Key is the name of the key of the item to retrieve. + :param str effect: The taint effect. Default: `\\"NoExecute\\"`. + :param str operator: Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + :param int seconds: The number of seconds a pod will stay bound to a node with a matching taint. + :param str value: The taint value. """ pulumi.set(__self__, "key", key) if effect is not None: @@ -19999,7 +19716,7 @@ def __init__(__self__, *, @pulumi.getter def key(self) -> str: """ - Machine selector label match expressions key (string) + Key is the name of the key of the item to retrieve. """ return pulumi.get(self, "key") @@ -20007,7 +19724,7 @@ def key(self) -> str: @pulumi.getter def effect(self) -> Optional[str]: """ - The taint effect. Default: `\\"NoExecute\\"` (string) + The taint effect. Default: `\\"NoExecute\\"`. """ return pulumi.get(self, "effect") @@ -20015,7 +19732,7 @@ def effect(self) -> Optional[str]: @pulumi.getter def operator(self) -> Optional[str]: """ - Machine selector label match expressions operator (string) + Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. """ return pulumi.get(self, "operator") @@ -20023,7 +19740,7 @@ def operator(self) -> Optional[str]: @pulumi.getter def seconds(self) -> Optional[int]: """ - The number of seconds a pod will stay bound to a node with a matching taint (int) + The number of seconds a pod will stay bound to a node with a matching taint. """ return pulumi.get(self, "seconds") @@ -20031,7 +19748,7 @@ def seconds(self) -> Optional[int]: @pulumi.getter def value(self) -> Optional[str]: """ - The taint value (string) + The taint value. """ return pulumi.get(self, "value") @@ -20067,10 +19784,10 @@ def __init__(__self__, *, memory_limit: Optional[str] = None, memory_request: Optional[str] = None): """ - :param str cpu_limit: The maximum CPU limit for agent (string) - :param str cpu_request: The minimum CPU required for agent (string) - :param str memory_limit: The maximum memory limit for agent (string) - :param str memory_request: The minimum memory required for agent (string) + :param str cpu_limit: The maximum CPU limit for agent. + :param str cpu_request: The minimum CPU required for agent. + :param str memory_limit: The maximum memory limit for agent. + :param str memory_request: The minimum memory required for agent. """ if cpu_limit is not None: pulumi.set(__self__, "cpu_limit", cpu_limit) @@ -20085,7 +19802,7 @@ def __init__(__self__, *, @pulumi.getter(name="cpuLimit") def cpu_limit(self) -> Optional[str]: """ - The maximum CPU limit for agent (string) + The maximum CPU limit for agent. """ return pulumi.get(self, "cpu_limit") @@ -20093,7 +19810,7 @@ def cpu_limit(self) -> Optional[str]: @pulumi.getter(name="cpuRequest") def cpu_request(self) -> Optional[str]: """ - The minimum CPU required for agent (string) + The minimum CPU required for agent. """ return pulumi.get(self, "cpu_request") @@ -20101,7 +19818,7 @@ def cpu_request(self) -> Optional[str]: @pulumi.getter(name="memoryLimit") def memory_limit(self) -> Optional[str]: """ - The maximum memory limit for agent (string) + The maximum memory limit for agent. """ return pulumi.get(self, "memory_limit") @@ -20109,7 +19826,7 @@ def memory_limit(self) -> Optional[str]: @pulumi.getter(name="memoryRequest") def memory_request(self) -> Optional[str]: """ - The minimum memory required for agent (string) + The minimum memory required for agent. """ return pulumi.get(self, "memory_request") @@ -20138,9 +19855,9 @@ def __init__(__self__, *, enabled: Optional[bool] = None, fqdn: Optional[str] = None): """ - :param str ca_certs: CA certs for the authorized cluster endpoint (string) - :param bool enabled: Drain options enabled? Default `true` (bool) - :param str fqdn: FQDN for the authorized cluster endpoint (string) + :param str ca_certs: CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. + :param bool enabled: If `enabled` is set to true, nodes will be drained before upgrade. + :param str fqdn: FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. """ if ca_certs is not None: pulumi.set(__self__, "ca_certs", ca_certs) @@ -20153,7 +19870,7 @@ def __init__(__self__, *, @pulumi.getter(name="caCerts") def ca_certs(self) -> Optional[str]: """ - CA certs for the authorized cluster endpoint (string) + CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. """ return pulumi.get(self, "ca_certs") @@ -20161,7 +19878,7 @@ def ca_certs(self) -> Optional[str]: @pulumi.getter def enabled(self) -> Optional[bool]: """ - Drain options enabled? Default `true` (bool) + If `enabled` is set to true, nodes will be drained before upgrade. """ return pulumi.get(self, "enabled") @@ -20169,7 +19886,7 @@ def enabled(self) -> Optional[bool]: @pulumi.getter def fqdn(self) -> Optional[str]: """ - FQDN for the authorized cluster endpoint (string) + FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. """ return pulumi.get(self, "fqdn") @@ -20197,6 +19914,8 @@ def __key_warning(key: str): suggest = "machine_pools" elif key == "machineSelectorConfigs": suggest = "machine_selector_configs" + elif key == "machineSelectorFiles": + suggest = "machine_selector_files" elif key == "rotateCertificates": suggest = "rotate_certificates" elif key == "upgradeStrategy": @@ -20224,23 +19943,25 @@ def __init__(__self__, *, machine_pool_defaults: Optional[Sequence['outputs.ClusterV2RkeConfigMachinePoolDefault']] = None, machine_pools: Optional[Sequence['outputs.ClusterV2RkeConfigMachinePool']] = None, machine_selector_configs: Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorConfig']] = None, + machine_selector_files: Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFile']] = None, registries: Optional['outputs.ClusterV2RkeConfigRegistries'] = None, rotate_certificates: Optional['outputs.ClusterV2RkeConfigRotateCertificates'] = None, upgrade_strategy: Optional['outputs.ClusterV2RkeConfigUpgradeStrategy'] = None): """ - :param str additional_manifest: Cluster V2 additional manifest (string) - :param str chart_values: Cluster V2 chart values. Must be in YAML format (string) - :param 'ClusterV2RkeConfigEtcdArgs' etcd: Cluster V2 etcd (list maxitems:1) - :param 'ClusterV2RkeConfigEtcdSnapshotCreateArgs' etcd_snapshot_create: Cluster V2 etcd snapshot create (list maxitems:1) - :param 'ClusterV2RkeConfigEtcdSnapshotRestoreArgs' etcd_snapshot_restore: Cluster V2 etcd snapshot restore (list maxitems:1) - :param 'ClusterV2RkeConfigLocalAuthEndpointArgs' local_auth_endpoint: Cluster V2 local auth endpoint (list maxitems:1) - :param str machine_global_config: Cluster V2 machine global config. Must be in YAML format (string) + :param str additional_manifest: The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. + :param str chart_values: The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). + :param 'ClusterV2RkeConfigEtcdArgs' etcd: Etcd configures the behavior of the automatic etcd snapshot feature. + :param 'ClusterV2RkeConfigEtcdSnapshotCreateArgs' etcd_snapshot_create: Cluster V2 etcd snapshot create. + :param 'ClusterV2RkeConfigEtcdSnapshotRestoreArgs' etcd_snapshot_restore: Cluster V2 etcd snapshot restore. + :param 'ClusterV2RkeConfigLocalAuthEndpointArgs' local_auth_endpoint: Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). + :param str machine_global_config: Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). :param Sequence['ClusterV2RkeConfigMachinePoolDefaultArgs'] machine_pool_defaults: Default values for machine pool configurations if unset - :param Sequence['ClusterV2RkeConfigMachinePoolArgs'] machine_pools: Cluster V2 machine pools (list) - :param Sequence['ClusterV2RkeConfigMachineSelectorConfigArgs'] machine_selector_configs: Cluster V2 machine selector config (list) - :param 'ClusterV2RkeConfigRegistriesArgs' registries: Cluster V2 docker registries (list maxitems:1) - :param 'ClusterV2RkeConfigRotateCertificatesArgs' rotate_certificates: Cluster V2 certificate rotation (list maxitems:1) - :param 'ClusterV2RkeConfigUpgradeStrategyArgs' upgrade_strategy: Cluster V2 upgrade strategy (list maxitems:1) + :param Sequence['ClusterV2RkeConfigMachinePoolArgs'] machine_pools: Cluster V2 machine pools. + :param Sequence['ClusterV2RkeConfigMachineSelectorConfigArgs'] machine_selector_configs: Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. + :param Sequence['ClusterV2RkeConfigMachineSelectorFileArgs'] machine_selector_files: Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + :param 'ClusterV2RkeConfigRegistriesArgs' registries: Docker registries from which the cluster pulls images. + :param 'ClusterV2RkeConfigRotateCertificatesArgs' rotate_certificates: Cluster V2 certificate rotation. + :param 'ClusterV2RkeConfigUpgradeStrategyArgs' upgrade_strategy: Cluster upgrade strategy. """ if additional_manifest is not None: pulumi.set(__self__, "additional_manifest", additional_manifest) @@ -20262,6 +19983,8 @@ def __init__(__self__, *, pulumi.set(__self__, "machine_pools", machine_pools) if machine_selector_configs is not None: pulumi.set(__self__, "machine_selector_configs", machine_selector_configs) + if machine_selector_files is not None: + pulumi.set(__self__, "machine_selector_files", machine_selector_files) if registries is not None: pulumi.set(__self__, "registries", registries) if rotate_certificates is not None: @@ -20273,7 +19996,7 @@ def __init__(__self__, *, @pulumi.getter(name="additionalManifest") def additional_manifest(self) -> Optional[str]: """ - Cluster V2 additional manifest (string) + The value of the additional manifest is delivered to the path `/var/lib/rancher/rke2/server/manifests/rancher/addons.yaml` or `/var/lib/rancher/k3s/server/manifests/rancher/addons.yaml` on the control plane nodes. """ return pulumi.get(self, "additional_manifest") @@ -20281,7 +20004,7 @@ def additional_manifest(self) -> Optional[str]: @pulumi.getter(name="chartValues") def chart_values(self) -> Optional[str]: """ - Cluster V2 chart values. Must be in YAML format (string) + The value for the system charts installed by the distribution. For more information about how RKE2 or K3s manage packaged components, please refer to [RKE2 documentation](https://docs.rke2.io/helm) or [K3s documentation](https://docs.k3s.io/installation/packaged-components). """ return pulumi.get(self, "chart_values") @@ -20289,7 +20012,7 @@ def chart_values(self) -> Optional[str]: @pulumi.getter def etcd(self) -> Optional['outputs.ClusterV2RkeConfigEtcd']: """ - Cluster V2 etcd (list maxitems:1) + Etcd configures the behavior of the automatic etcd snapshot feature. """ return pulumi.get(self, "etcd") @@ -20297,7 +20020,7 @@ def etcd(self) -> Optional['outputs.ClusterV2RkeConfigEtcd']: @pulumi.getter(name="etcdSnapshotCreate") def etcd_snapshot_create(self) -> Optional['outputs.ClusterV2RkeConfigEtcdSnapshotCreate']: """ - Cluster V2 etcd snapshot create (list maxitems:1) + Cluster V2 etcd snapshot create. """ return pulumi.get(self, "etcd_snapshot_create") @@ -20305,7 +20028,7 @@ def etcd_snapshot_create(self) -> Optional['outputs.ClusterV2RkeConfigEtcdSnapsh @pulumi.getter(name="etcdSnapshotRestore") def etcd_snapshot_restore(self) -> Optional['outputs.ClusterV2RkeConfigEtcdSnapshotRestore']: """ - Cluster V2 etcd snapshot restore (list maxitems:1) + Cluster V2 etcd snapshot restore. """ return pulumi.get(self, "etcd_snapshot_restore") @@ -20313,7 +20036,7 @@ def etcd_snapshot_restore(self) -> Optional['outputs.ClusterV2RkeConfigEtcdSnaps @pulumi.getter(name="localAuthEndpoint") def local_auth_endpoint(self) -> Optional['outputs.ClusterV2RkeConfigLocalAuthEndpoint']: """ - Cluster V2 local auth endpoint (list maxitems:1) + Local auth endpoint configures the Authorized Cluster Endpoint (ACE) which can be used to directly access the Kubernetes API server, without requiring communication through Rancher. For more information, please refer to [Rancher Documentation](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/register-existing-clusters#authorized-cluster-endpoint-support-for-rke2-and-k3s-clusters). """ warnings.warn("""Use rancher2_cluster_v2.local_auth_endpoint instead""", DeprecationWarning) pulumi.log.warn("""local_auth_endpoint is deprecated: Use rancher2_cluster_v2.local_auth_endpoint instead""") @@ -20324,7 +20047,7 @@ def local_auth_endpoint(self) -> Optional['outputs.ClusterV2RkeConfigLocalAuthEn @pulumi.getter(name="machineGlobalConfig") def machine_global_config(self) -> Optional[str]: """ - Cluster V2 machine global config. Must be in YAML format (string) + Machine global config specifies the distribution-specified server configuration applied to all nodes. For the full list of server configurations, please refer to [RKE2 server configuration](https://docs.rke2.io/reference/server_config) or [K3s server configuration](https://docs.k3s.io/cli/server). """ return pulumi.get(self, "machine_global_config") @@ -20340,7 +20063,7 @@ def machine_pool_defaults(self) -> Optional[Sequence['outputs.ClusterV2RkeConfig @pulumi.getter(name="machinePools") def machine_pools(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachinePool']]: """ - Cluster V2 machine pools (list) + Cluster V2 machine pools. """ return pulumi.get(self, "machine_pools") @@ -20348,15 +20071,23 @@ def machine_pools(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachineP @pulumi.getter(name="machineSelectorConfigs") def machine_selector_configs(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorConfig']]: """ - Cluster V2 machine selector config (list) + Machine selector config is the same as machine_global_config except that a label selector can be specified with the configuration. The configuration will only be applied to nodes that match the provided label selector. The configuration from machine_selector_config takes precedence over the one from machine_global_config. This argument is available in Rancher v2.7.2 and later. """ return pulumi.get(self, "machine_selector_configs") + @property + @pulumi.getter(name="machineSelectorFiles") + def machine_selector_files(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFile']]: + """ + Machine selector files provide a means to deliver files to nodes so that the files can be in place before initiating RKE2/K3s server or agent processes. Please refer to Rancher documentation for [RKE2 Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorfiles) and [K3s Cluster Configuration Reference](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorfiles). This argument is available in Rancher v2.7.2 and later. + """ + return pulumi.get(self, "machine_selector_files") + @property @pulumi.getter def registries(self) -> Optional['outputs.ClusterV2RkeConfigRegistries']: """ - Cluster V2 docker registries (list maxitems:1) + Docker registries from which the cluster pulls images. """ return pulumi.get(self, "registries") @@ -20364,7 +20095,7 @@ def registries(self) -> Optional['outputs.ClusterV2RkeConfigRegistries']: @pulumi.getter(name="rotateCertificates") def rotate_certificates(self) -> Optional['outputs.ClusterV2RkeConfigRotateCertificates']: """ - Cluster V2 certificate rotation (list maxitems:1) + Cluster V2 certificate rotation. """ return pulumi.get(self, "rotate_certificates") @@ -20372,7 +20103,7 @@ def rotate_certificates(self) -> Optional['outputs.ClusterV2RkeConfigRotateCerti @pulumi.getter(name="upgradeStrategy") def upgrade_strategy(self) -> Optional['outputs.ClusterV2RkeConfigUpgradeStrategy']: """ - Cluster V2 upgrade strategy (list maxitems:1) + Cluster upgrade strategy. """ return pulumi.get(self, "upgrade_strategy") @@ -20408,10 +20139,10 @@ def __init__(__self__, *, snapshot_retention: Optional[int] = None, snapshot_schedule_cron: Optional[str] = None): """ - :param bool disable_snapshots: Disable ETCD snapshots. Default: `false` (bool) - :param 'ClusterV2RkeConfigEtcdS3ConfigArgs' s3_config: Creation option for etcd service (list maxitems:1) - :param int snapshot_retention: ETCD snapshot retention (int) - :param str snapshot_schedule_cron: ETCD snapshot schedule cron (e.g `\\"0 */5 * * *\\"`) (string) + :param bool disable_snapshots: Disable ETCD snapshots. + :param 'ClusterV2RkeConfigEtcdS3ConfigArgs' s3_config: Creation option for etcd service. + :param int snapshot_retention: ETCD snapshot retention. + :param str snapshot_schedule_cron: ETCD snapshot schedule cron (e.g `\\"0 */5 * * *\\"`). """ if disable_snapshots is not None: pulumi.set(__self__, "disable_snapshots", disable_snapshots) @@ -20426,7 +20157,7 @@ def __init__(__self__, *, @pulumi.getter(name="disableSnapshots") def disable_snapshots(self) -> Optional[bool]: """ - Disable ETCD snapshots. Default: `false` (bool) + Disable ETCD snapshots. """ return pulumi.get(self, "disable_snapshots") @@ -20434,7 +20165,7 @@ def disable_snapshots(self) -> Optional[bool]: @pulumi.getter(name="s3Config") def s3_config(self) -> Optional['outputs.ClusterV2RkeConfigEtcdS3Config']: """ - Creation option for etcd service (list maxitems:1) + Creation option for etcd service. """ return pulumi.get(self, "s3_config") @@ -20442,7 +20173,7 @@ def s3_config(self) -> Optional['outputs.ClusterV2RkeConfigEtcdS3Config']: @pulumi.getter(name="snapshotRetention") def snapshot_retention(self) -> Optional[int]: """ - ETCD snapshot retention (int) + ETCD snapshot retention. """ return pulumi.get(self, "snapshot_retention") @@ -20450,7 +20181,7 @@ def snapshot_retention(self) -> Optional[int]: @pulumi.getter(name="snapshotScheduleCron") def snapshot_schedule_cron(self) -> Optional[str]: """ - ETCD snapshot schedule cron (e.g `\\"0 */5 * * *\\"`) (string) + ETCD snapshot schedule cron (e.g `\\"0 */5 * * *\\"`). """ return pulumi.get(self, "snapshot_schedule_cron") @@ -20487,13 +20218,13 @@ def __init__(__self__, *, region: Optional[str] = None, skip_ssl_verify: Optional[bool] = None): """ - :param str bucket: Bucket name for S3 service (string) - :param str endpoint: ETCD snapshot S3 endpoint (string) - :param str cloud_credential_name: ETCD snapshot S3 cloud credential name (string) - :param str endpoint_ca: ETCD snapshot S3 endpoint CA (string) - :param str folder: ETCD snapshot S3 folder (string) - :param str region: ETCD snapshot S3 region (string) - :param bool skip_ssl_verify: Disable ETCD skip ssl verify. Default: `false` (bool) + :param str bucket: Bucket name for S3 service. + :param str endpoint: ETCD snapshot S3 endpoint. + :param str cloud_credential_name: ETCD snapshot S3 cloud credential name. + :param str endpoint_ca: ETCD snapshot S3 endpoint CA. + :param str folder: ETCD snapshot S3 folder. + :param str region: ETCD snapshot S3 region. + :param bool skip_ssl_verify: Disable ETCD skip ssl verify. """ pulumi.set(__self__, "bucket", bucket) pulumi.set(__self__, "endpoint", endpoint) @@ -20512,7 +20243,7 @@ def __init__(__self__, *, @pulumi.getter def bucket(self) -> str: """ - Bucket name for S3 service (string) + Bucket name for S3 service. """ return pulumi.get(self, "bucket") @@ -20520,7 +20251,7 @@ def bucket(self) -> str: @pulumi.getter def endpoint(self) -> str: """ - ETCD snapshot S3 endpoint (string) + ETCD snapshot S3 endpoint. """ return pulumi.get(self, "endpoint") @@ -20528,7 +20259,7 @@ def endpoint(self) -> str: @pulumi.getter(name="cloudCredentialName") def cloud_credential_name(self) -> Optional[str]: """ - ETCD snapshot S3 cloud credential name (string) + ETCD snapshot S3 cloud credential name. """ return pulumi.get(self, "cloud_credential_name") @@ -20536,7 +20267,7 @@ def cloud_credential_name(self) -> Optional[str]: @pulumi.getter(name="endpointCa") def endpoint_ca(self) -> Optional[str]: """ - ETCD snapshot S3 endpoint CA (string) + ETCD snapshot S3 endpoint CA. """ return pulumi.get(self, "endpoint_ca") @@ -20544,7 +20275,7 @@ def endpoint_ca(self) -> Optional[str]: @pulumi.getter def folder(self) -> Optional[str]: """ - ETCD snapshot S3 folder (string) + ETCD snapshot S3 folder. """ return pulumi.get(self, "folder") @@ -20552,7 +20283,7 @@ def folder(self) -> Optional[str]: @pulumi.getter def region(self) -> Optional[str]: """ - ETCD snapshot S3 region (string) + ETCD snapshot S3 region. """ return pulumi.get(self, "region") @@ -20560,7 +20291,7 @@ def region(self) -> Optional[str]: @pulumi.getter(name="skipSslVerify") def skip_ssl_verify(self) -> Optional[bool]: """ - Disable ETCD skip ssl verify. Default: `false` (bool) + Disable ETCD skip ssl verify. """ return pulumi.get(self, "skip_ssl_verify") @@ -20570,7 +20301,7 @@ class ClusterV2RkeConfigEtcdSnapshotCreate(dict): def __init__(__self__, *, generation: int): """ - :param int generation: ETCD snapshot desired generation (int) + :param int generation: ETCD snapshot desired generation. """ pulumi.set(__self__, "generation", generation) @@ -20578,7 +20309,7 @@ def __init__(__self__, *, @pulumi.getter def generation(self) -> int: """ - ETCD snapshot desired generation (int) + ETCD snapshot desired generation. """ return pulumi.get(self, "generation") @@ -20607,9 +20338,9 @@ def __init__(__self__, *, name: str, restore_rke_config: Optional[str] = None): """ - :param int generation: ETCD snapshot desired generation (int) - :param str name: The name of the Cluster v2 (string) - :param str restore_rke_config: ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + :param int generation: ETCD snapshot desired generation. + :param str name: The name of the cluster. + :param str restore_rke_config: ETCD restore RKE config (set to none, all, or kubernetesVersion). """ pulumi.set(__self__, "generation", generation) pulumi.set(__self__, "name", name) @@ -20620,7 +20351,7 @@ def __init__(__self__, *, @pulumi.getter def generation(self) -> int: """ - ETCD snapshot desired generation (int) + ETCD snapshot desired generation. """ return pulumi.get(self, "generation") @@ -20628,7 +20359,7 @@ def generation(self) -> int: @pulumi.getter def name(self) -> str: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -20636,7 +20367,7 @@ def name(self) -> str: @pulumi.getter(name="restoreRkeConfig") def restore_rke_config(self) -> Optional[str]: """ - ETCD restore RKE config (set to none, all, or kubernetesVersion) (string) + ETCD restore RKE config (set to none, all, or kubernetesVersion). """ return pulumi.get(self, "restore_rke_config") @@ -20665,9 +20396,9 @@ def __init__(__self__, *, enabled: Optional[bool] = None, fqdn: Optional[str] = None): """ - :param str ca_certs: CA certs for the authorized cluster endpoint (string) - :param bool enabled: Drain options enabled? Default `true` (bool) - :param str fqdn: FQDN for the authorized cluster endpoint (string) + :param str ca_certs: CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. + :param bool enabled: If `enabled` is set to true, nodes will be drained before upgrade. + :param str fqdn: FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. """ if ca_certs is not None: pulumi.set(__self__, "ca_certs", ca_certs) @@ -20680,7 +20411,7 @@ def __init__(__self__, *, @pulumi.getter(name="caCerts") def ca_certs(self) -> Optional[str]: """ - CA certs for the authorized cluster endpoint (string) + CA certs for the authorized cluster endpoint. It is only needed if there is a load balancer in front of the downstream cluster that is using an untrusted certificate. If you have a valid certificate, then nothing needs to be added to the CA Certificates field. """ return pulumi.get(self, "ca_certs") @@ -20688,7 +20419,7 @@ def ca_certs(self) -> Optional[str]: @pulumi.getter def enabled(self) -> Optional[bool]: """ - Drain options enabled? Default `true` (bool) + If `enabled` is set to true, nodes will be drained before upgrade. """ return pulumi.get(self, "enabled") @@ -20696,7 +20427,7 @@ def enabled(self) -> Optional[bool]: @pulumi.getter def fqdn(self) -> Optional[str]: """ - FQDN for the authorized cluster endpoint (string) + FQDN for the authorized cluster endpoint. If one is entered, it should point to the downstream cluster. """ return pulumi.get(self, "fqdn") @@ -20768,26 +20499,26 @@ def __init__(__self__, *, unhealthy_range: Optional[str] = None, worker_role: Optional[bool] = None): """ - :param 'ClusterV2RkeConfigMachinePoolMachineConfigArgs' machine_config: Machine pool node config (list) - :param str name: The name of the Cluster v2 (string) - :param Mapping[str, Any] annotations: Annotations for the Cluster V2 (map) - :param str cloud_credential_secret_name: Cluster V2 cloud credential secret name (string) - :param bool control_plane_role: Machine pool control plane role? (bool) - :param bool drain_before_delete: Machine Pool Drain Before Delete? (bool) - :param bool etcd_role: Machine pool etcd role? (bool) + :param 'ClusterV2RkeConfigMachinePoolMachineConfigArgs' machine_config: Machine pool node config. + :param str name: The name of the cluster. + :param Mapping[str, Any] annotations: Annotations for the Cluster. + :param str cloud_credential_secret_name: Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. + :param bool control_plane_role: Machine pool control plane role? + :param bool drain_before_delete: Machine Pool Drain Before Delete? + :param bool etcd_role: Machine pool etcd role? :param int hostname_length_limit: maximum length for autogenerated hostname - :param Mapping[str, Any] labels: Labels for the Cluster V2 (map) - :param Mapping[str, Any] machine_labels: Labels for Machine pool nodes (map) - :param str max_unhealthy: Max unhealthy nodes for automated replacement to be allowed (string) - :param int node_drain_timeout: Seconds a machine has to drain before deletion (int) - :param int node_startup_timeout_seconds: Seconds a new node has to become active before it is replaced (int) - :param bool paused: Machine pool paused? (bool) - :param int quantity: Machine pool quantity (int) - :param 'ClusterV2RkeConfigMachinePoolRollingUpdateArgs' rolling_update: Machine pool rolling update (List maxitems:1) - :param Sequence['ClusterV2RkeConfigMachinePoolTaintArgs'] taints: Machine pool taints (list) - :param int unhealthy_node_timeout_seconds: Seconds an unhealthy node has to become active before it is replaced (int) - :param str unhealthy_range: Range of unhealthy nodes for automated replacement to be allowed (string) - :param bool worker_role: Machine pool worker role? (bool) + :param Mapping[str, Any] labels: Labels for the Cluster. + :param Mapping[str, Any] machine_labels: Labels for Machine pool nodes. + :param str max_unhealthy: Max unhealthy nodes for automated replacement to be allowed. + :param int node_drain_timeout: Seconds a machine has to drain before deletion. + :param int node_startup_timeout_seconds: Seconds a new node has to become active before it is replaced. + :param bool paused: Machine pool paused? + :param int quantity: Machine pool quantity. + :param 'ClusterV2RkeConfigMachinePoolRollingUpdateArgs' rolling_update: Machine pool rolling update. + :param Sequence['ClusterV2RkeConfigMachinePoolTaintArgs'] taints: Machine pool taints. + :param int unhealthy_node_timeout_seconds: Seconds an unhealthy node has to become active before it is replaced. + :param str unhealthy_range: Range of unhealthy nodes for automated replacement to be allowed. + :param bool worker_role: Machine pool worker role? """ pulumi.set(__self__, "machine_config", machine_config) pulumi.set(__self__, "name", name) @@ -20832,7 +20563,7 @@ def __init__(__self__, *, @pulumi.getter(name="machineConfig") def machine_config(self) -> 'outputs.ClusterV2RkeConfigMachinePoolMachineConfig': """ - Machine pool node config (list) + Machine pool node config. """ return pulumi.get(self, "machine_config") @@ -20840,7 +20571,7 @@ def machine_config(self) -> 'outputs.ClusterV2RkeConfigMachinePoolMachineConfig' @pulumi.getter def name(self) -> str: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") @@ -20848,7 +20579,7 @@ def name(self) -> str: @pulumi.getter def annotations(self) -> Optional[Mapping[str, Any]]: """ - Annotations for the Cluster V2 (map) + Annotations for the Cluster. """ return pulumi.get(self, "annotations") @@ -20856,7 +20587,7 @@ def annotations(self) -> Optional[Mapping[str, Any]]: @pulumi.getter(name="cloudCredentialSecretName") def cloud_credential_secret_name(self) -> Optional[str]: """ - Cluster V2 cloud credential secret name (string) + Cloud credential secret name is the secret to be used when a cloud credential secret name is not specified at the machine pool level. """ return pulumi.get(self, "cloud_credential_secret_name") @@ -20864,7 +20595,7 @@ def cloud_credential_secret_name(self) -> Optional[str]: @pulumi.getter(name="controlPlaneRole") def control_plane_role(self) -> Optional[bool]: """ - Machine pool control plane role? (bool) + Machine pool control plane role? """ return pulumi.get(self, "control_plane_role") @@ -20872,7 +20603,7 @@ def control_plane_role(self) -> Optional[bool]: @pulumi.getter(name="drainBeforeDelete") def drain_before_delete(self) -> Optional[bool]: """ - Machine Pool Drain Before Delete? (bool) + Machine Pool Drain Before Delete? """ return pulumi.get(self, "drain_before_delete") @@ -20880,7 +20611,7 @@ def drain_before_delete(self) -> Optional[bool]: @pulumi.getter(name="etcdRole") def etcd_role(self) -> Optional[bool]: """ - Machine pool etcd role? (bool) + Machine pool etcd role? """ return pulumi.get(self, "etcd_role") @@ -20896,7 +20627,7 @@ def hostname_length_limit(self) -> Optional[int]: @pulumi.getter def labels(self) -> Optional[Mapping[str, Any]]: """ - Labels for the Cluster V2 (map) + Labels for the Cluster. """ return pulumi.get(self, "labels") @@ -20904,7 +20635,7 @@ def labels(self) -> Optional[Mapping[str, Any]]: @pulumi.getter(name="machineLabels") def machine_labels(self) -> Optional[Mapping[str, Any]]: """ - Labels for Machine pool nodes (map) + Labels for Machine pool nodes. """ return pulumi.get(self, "machine_labels") @@ -20912,7 +20643,7 @@ def machine_labels(self) -> Optional[Mapping[str, Any]]: @pulumi.getter(name="maxUnhealthy") def max_unhealthy(self) -> Optional[str]: """ - Max unhealthy nodes for automated replacement to be allowed (string) + Max unhealthy nodes for automated replacement to be allowed. """ return pulumi.get(self, "max_unhealthy") @@ -20920,7 +20651,7 @@ def max_unhealthy(self) -> Optional[str]: @pulumi.getter(name="nodeDrainTimeout") def node_drain_timeout(self) -> Optional[int]: """ - Seconds a machine has to drain before deletion (int) + Seconds a machine has to drain before deletion. """ return pulumi.get(self, "node_drain_timeout") @@ -20928,7 +20659,7 @@ def node_drain_timeout(self) -> Optional[int]: @pulumi.getter(name="nodeStartupTimeoutSeconds") def node_startup_timeout_seconds(self) -> Optional[int]: """ - Seconds a new node has to become active before it is replaced (int) + Seconds a new node has to become active before it is replaced. """ return pulumi.get(self, "node_startup_timeout_seconds") @@ -20936,7 +20667,7 @@ def node_startup_timeout_seconds(self) -> Optional[int]: @pulumi.getter def paused(self) -> Optional[bool]: """ - Machine pool paused? (bool) + Machine pool paused? """ return pulumi.get(self, "paused") @@ -20944,7 +20675,7 @@ def paused(self) -> Optional[bool]: @pulumi.getter def quantity(self) -> Optional[int]: """ - Machine pool quantity (int) + Machine pool quantity. """ return pulumi.get(self, "quantity") @@ -20952,7 +20683,7 @@ def quantity(self) -> Optional[int]: @pulumi.getter(name="rollingUpdate") def rolling_update(self) -> Optional['outputs.ClusterV2RkeConfigMachinePoolRollingUpdate']: """ - Machine pool rolling update (List maxitems:1) + Machine pool rolling update. """ return pulumi.get(self, "rolling_update") @@ -20960,7 +20691,7 @@ def rolling_update(self) -> Optional['outputs.ClusterV2RkeConfigMachinePoolRolli @pulumi.getter def taints(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachinePoolTaint']]: """ - Machine pool taints (list) + Machine pool taints. """ return pulumi.get(self, "taints") @@ -20968,7 +20699,7 @@ def taints(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachinePoolTain @pulumi.getter(name="unhealthyNodeTimeoutSeconds") def unhealthy_node_timeout_seconds(self) -> Optional[int]: """ - Seconds an unhealthy node has to become active before it is replaced (int) + Seconds an unhealthy node has to become active before it is replaced. """ return pulumi.get(self, "unhealthy_node_timeout_seconds") @@ -20976,7 +20707,7 @@ def unhealthy_node_timeout_seconds(self) -> Optional[int]: @pulumi.getter(name="unhealthyRange") def unhealthy_range(self) -> Optional[str]: """ - Range of unhealthy nodes for automated replacement to be allowed (string) + Range of unhealthy nodes for automated replacement to be allowed. """ return pulumi.get(self, "unhealthy_range") @@ -20984,7 +20715,7 @@ def unhealthy_range(self) -> Optional[str]: @pulumi.getter(name="workerRole") def worker_role(self) -> Optional[bool]: """ - Machine pool worker role? (bool) + Machine pool worker role? """ return pulumi.get(self, "worker_role") @@ -21027,21 +20758,42 @@ def hostname_length_limit(self) -> Optional[int]: @pulumi.output_type class ClusterV2RkeConfigMachinePoolMachineConfig(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "apiVersion": + suggest = "api_version" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ClusterV2RkeConfigMachinePoolMachineConfig. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ClusterV2RkeConfigMachinePoolMachineConfig.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ClusterV2RkeConfigMachinePoolMachineConfig.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, kind: str, - name: str): + name: str, + api_version: Optional[str] = None): """ - :param str kind: Machine config kind (string) - :param str name: The name of the Cluster v2 (string) + :param str kind: Machine config kind. + :param str name: The name of the cluster. + :param str api_version: Api version of the machine_config. """ pulumi.set(__self__, "kind", kind) pulumi.set(__self__, "name", name) + if api_version is not None: + pulumi.set(__self__, "api_version", api_version) @property @pulumi.getter def kind(self) -> str: """ - Machine config kind (string) + Machine config kind. """ return pulumi.get(self, "kind") @@ -21049,10 +20801,18 @@ def kind(self) -> str: @pulumi.getter def name(self) -> str: """ - The name of the Cluster v2 (string) + The name of the cluster. """ return pulumi.get(self, "name") + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[str]: + """ + Api version of the machine_config. + """ + return pulumi.get(self, "api_version") + @pulumi.output_type class ClusterV2RkeConfigMachinePoolRollingUpdate(dict): @@ -21079,8 +20839,8 @@ def __init__(__self__, *, max_surge: Optional[str] = None, max_unavailable: Optional[str] = None): """ - :param str max_surge: Rolling update max surge (string) - :param str max_unavailable: Rolling update max unavailable (string) + :param str max_surge: Rolling update max surge. + :param str max_unavailable: Rolling update max unavailable. """ if max_surge is not None: pulumi.set(__self__, "max_surge", max_surge) @@ -21091,7 +20851,7 @@ def __init__(__self__, *, @pulumi.getter(name="maxSurge") def max_surge(self) -> Optional[str]: """ - Rolling update max surge (string) + Rolling update max surge. """ return pulumi.get(self, "max_surge") @@ -21099,7 +20859,7 @@ def max_surge(self) -> Optional[str]: @pulumi.getter(name="maxUnavailable") def max_unavailable(self) -> Optional[str]: """ - Rolling update max unavailable (string) + Rolling update max unavailable. """ return pulumi.get(self, "max_unavailable") @@ -21111,9 +20871,9 @@ def __init__(__self__, *, value: str, effect: Optional[str] = None): """ - :param str key: Machine selector label match expressions key (string) - :param str value: The taint value (string) - :param str effect: The taint effect. Default: `\\"NoExecute\\"` (string) + :param str key: Key is the name of the key of the item to retrieve. + :param str value: The taint value. + :param str effect: The taint effect. Default: `\\"NoExecute\\"`. """ pulumi.set(__self__, "key", key) pulumi.set(__self__, "value", value) @@ -21124,7 +20884,7 @@ def __init__(__self__, *, @pulumi.getter def key(self) -> str: """ - Machine selector label match expressions key (string) + Key is the name of the key of the item to retrieve. """ return pulumi.get(self, "key") @@ -21132,7 +20892,7 @@ def key(self) -> str: @pulumi.getter def value(self) -> str: """ - The taint value (string) + The taint value. """ return pulumi.get(self, "value") @@ -21140,7 +20900,7 @@ def value(self) -> str: @pulumi.getter def effect(self) -> Optional[str]: """ - The taint effect. Default: `\\"NoExecute\\"` (string) + The taint effect. Default: `\\"NoExecute\\"`. """ return pulumi.get(self, "effect") @@ -21168,8 +20928,8 @@ def __init__(__self__, *, config: Optional[str] = None, machine_label_selector: Optional['outputs.ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector'] = None): """ - :param str config: Machine selector config. Must be in YAML format (string) - :param 'ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs' machine_label_selector: Machine selector label (list maxitems:1) + :param str config: Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) + :param 'ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorArgs' machine_label_selector: Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. """ if config is not None: pulumi.set(__self__, "config", config) @@ -21180,7 +20940,7 @@ def __init__(__self__, *, @pulumi.getter def config(self) -> Optional[str]: """ - Machine selector config. Must be in YAML format (string) + Config is the distribution-specify configuration to be applied to nodes that match the provided label selector. For more information, please refer to Rancher's documentation for [RKE2 Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/rke2-cluster-configuration#machineselectorconfig) or [K3s Cluster Configuration](https://ranchermanager.docs.rancher.com/reference-guides/cluster-configuration/rancher-server-configuration/k3s-cluster-configuration#machineselectorconfig) """ return pulumi.get(self, "config") @@ -21188,7 +20948,7 @@ def config(self) -> Optional[str]: @pulumi.getter(name="machineLabelSelector") def machine_label_selector(self) -> Optional['outputs.ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector']: """ - Machine selector label (list maxitems:1) + Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. """ return pulumi.get(self, "machine_label_selector") @@ -21218,8 +20978,8 @@ def __init__(__self__, *, match_expressions: Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression']] = None, match_labels: Optional[Mapping[str, Any]] = None): """ - :param Sequence['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs'] match_expressions: Machine selector label match expressions (list) - :param Mapping[str, Any] match_labels: Machine selector label match labels (map) + :param Sequence['ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpressionArgs'] match_expressions: Match expressions is a list of label selector requirements. The requirements are ANDed. + :param Mapping[str, Any] match_labels: Machine selector label is a map of {key,value} pairs, the requirements are ANDed. """ if match_expressions is not None: pulumi.set(__self__, "match_expressions", match_expressions) @@ -21230,7 +20990,7 @@ def __init__(__self__, *, @pulumi.getter(name="matchExpressions") def match_expressions(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression']]: """ - Machine selector label match expressions (list) + Match expressions is a list of label selector requirements. The requirements are ANDed. """ return pulumi.get(self, "match_expressions") @@ -21238,7 +20998,7 @@ def match_expressions(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMach @pulumi.getter(name="matchLabels") def match_labels(self) -> Optional[Mapping[str, Any]]: """ - Machine selector label match labels (map) + Machine selector label is a map of {key,value} pairs, the requirements are ANDed. """ return pulumi.get(self, "match_labels") @@ -21250,9 +21010,9 @@ def __init__(__self__, *, operator: Optional[str] = None, values: Optional[Sequence[str]] = None): """ - :param str key: Machine selector label match expressions key (string) - :param str operator: Machine selector label match expressions operator (string) - :param Sequence[str] values: Machine selector label match expressions values (List string) + :param str key: Key is the name of the key of the item to retrieve. + :param str operator: Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + :param Sequence[str] values: Values is a list of string values. """ if key is not None: pulumi.set(__self__, "key", key) @@ -21265,7 +21025,7 @@ def __init__(__self__, *, @pulumi.getter def key(self) -> Optional[str]: """ - Machine selector label match expressions key (string) + Key is the name of the key of the item to retrieve. """ return pulumi.get(self, "key") @@ -21273,7 +21033,7 @@ def key(self) -> Optional[str]: @pulumi.getter def operator(self) -> Optional[str]: """ - Machine selector label match expressions operator (string) + Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. """ return pulumi.get(self, "operator") @@ -21281,7 +21041,429 @@ def operator(self) -> Optional[str]: @pulumi.getter def values(self) -> Optional[Sequence[str]]: """ - Machine selector label match expressions values (List string) + Values is a list of string values. + """ + return pulumi.get(self, "values") + + +@pulumi.output_type +class ClusterV2RkeConfigMachineSelectorFile(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "fileSources": + suggest = "file_sources" + elif key == "machineLabelSelector": + suggest = "machine_label_selector" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ClusterV2RkeConfigMachineSelectorFile. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ClusterV2RkeConfigMachineSelectorFile.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ClusterV2RkeConfigMachineSelectorFile.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + file_sources: Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFileFileSource']] = None, + machine_label_selector: Optional['outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector'] = None): + """ + :param Sequence['ClusterV2RkeConfigMachineSelectorFileFileSourceArgs'] file_sources: File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + :param 'ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs' machine_label_selector: Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + """ + if file_sources is not None: + pulumi.set(__self__, "file_sources", file_sources) + if machine_label_selector is not None: + pulumi.set(__self__, "machine_label_selector", machine_label_selector) + + @property + @pulumi.getter(name="fileSources") + def file_sources(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFileFileSource']]: + """ + File sources represents the source of the files. Multiple files can be delivered to nodes that match the provided label selector. + """ + return pulumi.get(self, "file_sources") + + @property + @pulumi.getter(name="machineLabelSelector") + def machine_label_selector(self) -> Optional['outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector']: + """ + Machine selector label is a label query over a set of resources. The result of match_labels and match_expressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + """ + return pulumi.get(self, "machine_label_selector") + + +@pulumi.output_type +class ClusterV2RkeConfigMachineSelectorFileFileSource(dict): + def __init__(__self__, *, + configmap: Optional['outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap'] = None, + secret: Optional['outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecret'] = None): + """ + :param 'ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs' configmap: Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + :param 'ClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs' secret: Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + """ + if configmap is not None: + pulumi.set(__self__, "configmap", configmap) + if secret is not None: + pulumi.set(__self__, "secret", secret) + + @property + @pulumi.getter + def configmap(self) -> Optional['outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap']: + """ + Configmap represents a K8s configmap which is the source of files. It is mutually exclusive with secret. + """ + return pulumi.get(self, "configmap") + + @property + @pulumi.getter + def secret(self) -> Optional['outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecret']: + """ + Secret represents a K8s secret which is the source of files. It is mutually exclusive with configmap. + """ + return pulumi.get(self, "secret") + + +@pulumi.output_type +class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "defaultPermissions": + suggest = "default_permissions" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmap.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + name: str, + default_permissions: Optional[str] = None, + items: Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem']] = None): + """ + :param str name: The name of the cluster. + :param str default_permissions: The numeric representation of the default file permissions for all files defined under the items. + :param Sequence['ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs'] items: Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + """ + pulumi.set(__self__, "name", name) + if default_permissions is not None: + pulumi.set(__self__, "default_permissions", default_permissions) + if items is not None: + pulumi.set(__self__, "items", items) + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the cluster. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="defaultPermissions") + def default_permissions(self) -> Optional[str]: + """ + The numeric representation of the default file permissions for all files defined under the items. + """ + return pulumi.get(self, "default_permissions") + + @property + @pulumi.getter + def items(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem']]: + """ + Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + """ + return pulumi.get(self, "items") + + +@pulumi.output_type +class ClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItem(dict): + def __init__(__self__, *, + key: str, + path: str, + dynamic: Optional[bool] = None, + hash: Optional[str] = None, + permissions: Optional[str] = None): + """ + :param str key: Key is the name of the key of the item to retrieve. + :param str path: Path is the absolute path to put the file in the target node. + :param bool dynamic: If true, the file is ignored when determining whether the node should be drained before updating the node plan. + :param str hash: Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + :param str permissions: Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "path", path) + if dynamic is not None: + pulumi.set(__self__, "dynamic", dynamic) + if hash is not None: + pulumi.set(__self__, "hash", hash) + if permissions is not None: + pulumi.set(__self__, "permissions", permissions) + + @property + @pulumi.getter + def key(self) -> str: + """ + Key is the name of the key of the item to retrieve. + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def path(self) -> str: + """ + Path is the absolute path to put the file in the target node. + """ + return pulumi.get(self, "path") + + @property + @pulumi.getter + def dynamic(self) -> Optional[bool]: + """ + If true, the file is ignored when determining whether the node should be drained before updating the node plan. + """ + return pulumi.get(self, "dynamic") + + @property + @pulumi.getter + def hash(self) -> Optional[str]: + """ + Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + """ + return pulumi.get(self, "hash") + + @property + @pulumi.getter + def permissions(self) -> Optional[str]: + """ + Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + """ + return pulumi.get(self, "permissions") + + +@pulumi.output_type +class ClusterV2RkeConfigMachineSelectorFileFileSourceSecret(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "defaultPermissions": + suggest = "default_permissions" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ClusterV2RkeConfigMachineSelectorFileFileSourceSecret. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ClusterV2RkeConfigMachineSelectorFileFileSourceSecret.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ClusterV2RkeConfigMachineSelectorFileFileSourceSecret.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + name: str, + default_permissions: Optional[str] = None, + items: Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem']] = None): + """ + :param str name: The name of the cluster. + :param str default_permissions: The numeric representation of the default file permissions for all files defined under the items. + :param Sequence['ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs'] items: Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + """ + pulumi.set(__self__, "name", name) + if default_permissions is not None: + pulumi.set(__self__, "default_permissions", default_permissions) + if items is not None: + pulumi.set(__self__, "items", items) + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the cluster. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="defaultPermissions") + def default_permissions(self) -> Optional[str]: + """ + The numeric representation of the default file permissions for all files defined under the items. + """ + return pulumi.get(self, "default_permissions") + + @property + @pulumi.getter + def items(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem']]: + """ + Items is a list of configurations for files, such as where to retrieve the content from the source, where to put the file on nodes, etc. + """ + return pulumi.get(self, "items") + + +@pulumi.output_type +class ClusterV2RkeConfigMachineSelectorFileFileSourceSecretItem(dict): + def __init__(__self__, *, + key: str, + path: str, + dynamic: Optional[bool] = None, + hash: Optional[str] = None, + permissions: Optional[str] = None): + """ + :param str key: Key is the name of the key of the item to retrieve. + :param str path: Path is the absolute path to put the file in the target node. + :param bool dynamic: If true, the file is ignored when determining whether the node should be drained before updating the node plan. + :param str hash: Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + :param str permissions: Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "path", path) + if dynamic is not None: + pulumi.set(__self__, "dynamic", dynamic) + if hash is not None: + pulumi.set(__self__, "hash", hash) + if permissions is not None: + pulumi.set(__self__, "permissions", permissions) + + @property + @pulumi.getter + def key(self) -> str: + """ + Key is the name of the key of the item to retrieve. + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def path(self) -> str: + """ + Path is the absolute path to put the file in the target node. + """ + return pulumi.get(self, "path") + + @property + @pulumi.getter + def dynamic(self) -> Optional[bool]: + """ + If true, the file is ignored when determining whether the node should be drained before updating the node plan. + """ + return pulumi.get(self, "dynamic") + + @property + @pulumi.getter + def hash(self) -> Optional[str]: + """ + Hash is the base64 encoded value of the SHA256 checksum of the file's content. If specified, it is used to validate the integrity of the file content. + """ + return pulumi.get(self, "hash") + + @property + @pulumi.getter + def permissions(self) -> Optional[str]: + """ + Permissions is the numeric representation of the file permission. It takes precedence over the default permissions at the outer level. + """ + return pulumi.get(self, "permissions") + + +@pulumi.output_type +class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "matchExpressions": + suggest = "match_expressions" + elif key == "matchLabels": + suggest = "match_labels" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + ClusterV2RkeConfigMachineSelectorFileMachineLabelSelector.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + match_expressions: Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression']] = None, + match_labels: Optional[Mapping[str, Any]] = None): + """ + :param Sequence['ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs'] match_expressions: Match expressions is a list of label selector requirements. The requirements are ANDed. + :param Mapping[str, Any] match_labels: Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + """ + if match_expressions is not None: + pulumi.set(__self__, "match_expressions", match_expressions) + if match_labels is not None: + pulumi.set(__self__, "match_labels", match_labels) + + @property + @pulumi.getter(name="matchExpressions") + def match_expressions(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression']]: + """ + Match expressions is a list of label selector requirements. The requirements are ANDed. + """ + return pulumi.get(self, "match_expressions") + + @property + @pulumi.getter(name="matchLabels") + def match_labels(self) -> Optional[Mapping[str, Any]]: + """ + Machine selector label is a map of {key,value} pairs, the requirements are ANDed. + """ + return pulumi.get(self, "match_labels") + + +@pulumi.output_type +class ClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpression(dict): + def __init__(__self__, *, + key: Optional[str] = None, + operator: Optional[str] = None, + values: Optional[Sequence[str]] = None): + """ + :param str key: Key is the name of the key of the item to retrieve. + :param str operator: Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + :param Sequence[str] values: Values is a list of string values. + """ + if key is not None: + pulumi.set(__self__, "key", key) + if operator is not None: + pulumi.set(__self__, "operator", operator) + if values is not None: + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def key(self) -> Optional[str]: + """ + Key is the name of the key of the item to retrieve. + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def operator(self) -> Optional[str]: + """ + Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + """ + return pulumi.get(self, "operator") + + @property + @pulumi.getter + def values(self) -> Optional[Sequence[str]]: + """ + Values is a list of string values. """ return pulumi.get(self, "values") @@ -21292,8 +21474,8 @@ def __init__(__self__, *, configs: Optional[Sequence['outputs.ClusterV2RkeConfigRegistriesConfig']] = None, mirrors: Optional[Sequence['outputs.ClusterV2RkeConfigRegistriesMirror']] = None): """ - :param Sequence['ClusterV2RkeConfigRegistriesConfigArgs'] configs: Cluster V2 docker registries config (list) - :param Sequence['ClusterV2RkeConfigRegistriesMirrorArgs'] mirrors: Cluster V2 docker registries mirror (list) + :param Sequence['ClusterV2RkeConfigRegistriesConfigArgs'] configs: Cluster V2 docker registries config. + :param Sequence['ClusterV2RkeConfigRegistriesMirrorArgs'] mirrors: Cluster V2 docker registries mirror. """ if configs is not None: pulumi.set(__self__, "configs", configs) @@ -21304,7 +21486,7 @@ def __init__(__self__, *, @pulumi.getter def configs(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigRegistriesConfig']]: """ - Cluster V2 docker registries config (list) + Cluster V2 docker registries config. """ return pulumi.get(self, "configs") @@ -21312,7 +21494,7 @@ def configs(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigRegistriesConf @pulumi.getter def mirrors(self) -> Optional[Sequence['outputs.ClusterV2RkeConfigRegistriesMirror']]: """ - Cluster V2 docker registries mirror (list) + Cluster V2 docker registries mirror. """ return pulumi.get(self, "mirrors") @@ -21347,11 +21529,11 @@ def __init__(__self__, *, insecure: Optional[bool] = None, tls_secret_name: Optional[str] = None): """ - :param str hostname: Registry hostname (string) - :param str auth_config_secret_name: Registry auth config secret name (string) - :param str ca_bundle: Registry CA bundle (string) - :param bool insecure: Registry insecure connectivity (bool) - :param str tls_secret_name: Registry TLS secret name. TLS is a pair of Cert/Key (string) + :param str hostname: Registry hostname. + :param str auth_config_secret_name: Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. + :param str ca_bundle: Registry CA bundle. + :param bool insecure: Registry insecure connectivity. + :param str tls_secret_name: Registry TLS secret name. TLS is a pair of Cert/Key. """ pulumi.set(__self__, "hostname", hostname) if auth_config_secret_name is not None: @@ -21367,7 +21549,7 @@ def __init__(__self__, *, @pulumi.getter def hostname(self) -> str: """ - Registry hostname (string) + Registry hostname. """ return pulumi.get(self, "hostname") @@ -21375,7 +21557,7 @@ def hostname(self) -> str: @pulumi.getter(name="authConfigSecretName") def auth_config_secret_name(self) -> Optional[str]: """ - Registry auth config secret name (string) + Name of the secret that contains two keys with base64 encoded values: the username and password for the specified custom registry. No secret is required if the system-default-registry is not authenticated. """ return pulumi.get(self, "auth_config_secret_name") @@ -21383,7 +21565,7 @@ def auth_config_secret_name(self) -> Optional[str]: @pulumi.getter(name="caBundle") def ca_bundle(self) -> Optional[str]: """ - Registry CA bundle (string) + Registry CA bundle. """ return pulumi.get(self, "ca_bundle") @@ -21391,7 +21573,7 @@ def ca_bundle(self) -> Optional[str]: @pulumi.getter def insecure(self) -> Optional[bool]: """ - Registry insecure connectivity (bool) + Registry insecure connectivity. """ return pulumi.get(self, "insecure") @@ -21399,7 +21581,7 @@ def insecure(self) -> Optional[bool]: @pulumi.getter(name="tlsSecretName") def tls_secret_name(self) -> Optional[str]: """ - Registry TLS secret name. TLS is a pair of Cert/Key (string) + Registry TLS secret name. TLS is a pair of Cert/Key. """ return pulumi.get(self, "tls_secret_name") @@ -21411,9 +21593,9 @@ def __init__(__self__, *, endpoints: Optional[Sequence[str]] = None, rewrites: Optional[Mapping[str, Any]] = None): """ - :param str hostname: Registry hostname (string) - :param Sequence[str] endpoints: Registry mirror endpoints (List) - :param Mapping[str, Any] rewrites: Registry mirror rewrites (map) + :param str hostname: Registry hostname. + :param Sequence[str] endpoints: Registry mirror endpoints. + :param Mapping[str, Any] rewrites: Registry mirror rewrites. """ pulumi.set(__self__, "hostname", hostname) if endpoints is not None: @@ -21425,7 +21607,7 @@ def __init__(__self__, *, @pulumi.getter def hostname(self) -> str: """ - Registry hostname (string) + Registry hostname. """ return pulumi.get(self, "hostname") @@ -21433,7 +21615,7 @@ def hostname(self) -> str: @pulumi.getter def endpoints(self) -> Optional[Sequence[str]]: """ - Registry mirror endpoints (List) + Registry mirror endpoints. """ return pulumi.get(self, "endpoints") @@ -21441,7 +21623,7 @@ def endpoints(self) -> Optional[Sequence[str]]: @pulumi.getter def rewrites(self) -> Optional[Mapping[str, Any]]: """ - Registry mirror rewrites (map) + Registry mirror rewrites. """ return pulumi.get(self, "rewrites") @@ -21452,8 +21634,8 @@ def __init__(__self__, *, generation: int, services: Optional[Sequence[str]] = None): """ - :param int generation: ETCD snapshot desired generation (int) - :param Sequence[str] services: Service certificates to rotate with this generation (string) + :param int generation: ETCD snapshot desired generation. + :param Sequence[str] services: Service certificates to rotate with this generation. """ pulumi.set(__self__, "generation", generation) if services is not None: @@ -21463,7 +21645,7 @@ def __init__(__self__, *, @pulumi.getter def generation(self) -> int: """ - ETCD snapshot desired generation (int) + ETCD snapshot desired generation. """ return pulumi.get(self, "generation") @@ -21471,7 +21653,7 @@ def generation(self) -> int: @pulumi.getter def services(self) -> Optional[Sequence[str]]: """ - Service certificates to rotate with this generation (string) + Service certificates to rotate with this generation. """ return pulumi.get(self, "services") @@ -21507,10 +21689,10 @@ def __init__(__self__, *, worker_concurrency: Optional[str] = None, worker_drain_options: Optional['outputs.ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions'] = None): """ - :param str control_plane_concurrency: How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) - :param 'ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs' control_plane_drain_options: Controlplane nodes drain options (list maxitems:1) - :param str worker_concurrency: How many worker nodes should be upgrade at time. Percentages are also accepted (string) - :param 'ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs' worker_drain_options: Worker nodes drain options (list maxitems:1) + :param str control_plane_concurrency: How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. + :param 'ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptionsArgs' control_plane_drain_options: Controlplane nodes drain options. + :param str worker_concurrency: How many worker nodes should be upgraded at a time. Percentages are also accepted. + :param 'ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptionsArgs' worker_drain_options: Worker nodes drain options. """ if control_plane_concurrency is not None: pulumi.set(__self__, "control_plane_concurrency", control_plane_concurrency) @@ -21525,7 +21707,7 @@ def __init__(__self__, *, @pulumi.getter(name="controlPlaneConcurrency") def control_plane_concurrency(self) -> Optional[str]: """ - How many controlplane nodes should be upgrade at time, 0 is infinite. Percentages are also accepted (string) + How many control plane nodes should be upgraded at a time, 0 is infinite. Percentages are also accepted. """ return pulumi.get(self, "control_plane_concurrency") @@ -21533,7 +21715,7 @@ def control_plane_concurrency(self) -> Optional[str]: @pulumi.getter(name="controlPlaneDrainOptions") def control_plane_drain_options(self) -> Optional['outputs.ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions']: """ - Controlplane nodes drain options (list maxitems:1) + Controlplane nodes drain options. """ return pulumi.get(self, "control_plane_drain_options") @@ -21541,7 +21723,7 @@ def control_plane_drain_options(self) -> Optional['outputs.ClusterV2RkeConfigUpg @pulumi.getter(name="workerConcurrency") def worker_concurrency(self) -> Optional[str]: """ - How many worker nodes should be upgrade at time. Percentages are also accepted (string) + How many worker nodes should be upgraded at a time. Percentages are also accepted. """ return pulumi.get(self, "worker_concurrency") @@ -21549,7 +21731,7 @@ def worker_concurrency(self) -> Optional[str]: @pulumi.getter(name="workerDrainOptions") def worker_drain_options(self) -> Optional['outputs.ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions']: """ - Worker nodes drain options (list maxitems:1) + Worker nodes drain options. """ return pulumi.get(self, "worker_drain_options") @@ -21594,15 +21776,15 @@ def __init__(__self__, *, skip_wait_for_delete_timeout_seconds: Optional[int] = None, timeout: Optional[int] = None): """ - :param bool delete_empty_dir_data: Drain options delete empty dir data. Default `false` (bool) - :param bool disable_eviction: Drain options disable eviction. Default `false` (bool) - :param bool enabled: Drain options enabled? Default `true` (bool) - :param bool force: Drain options force. Default `false` (bool) - :param int grace_period: Drain options grace period (int) - :param bool ignore_daemon_sets: Drain options ignore daemon sets. Default `true` (bool) - :param bool ignore_errors: Drain options ignore errors. Default `false` (bool) - :param int skip_wait_for_delete_timeout_seconds: Drain options skip wait for delete timeout seconds (int) - :param int timeout: Drain options timeout (int) + :param bool delete_empty_dir_data: if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). + :param bool disable_eviction: If `disable_eviction` is set to true, force drain to use delete rather than evict. + :param bool enabled: If `enabled` is set to true, nodes will be drained before upgrade. + :param bool force: If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. + :param int grace_period: Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. + :param bool ignore_daemon_sets: If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. + :param bool ignore_errors: If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. + :param int skip_wait_for_delete_timeout_seconds: Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. + :param int timeout: Time to wait (in seconds) before giving up for one try. """ if delete_empty_dir_data is not None: pulumi.set(__self__, "delete_empty_dir_data", delete_empty_dir_data) @@ -21627,7 +21809,7 @@ def __init__(__self__, *, @pulumi.getter(name="deleteEmptyDirData") def delete_empty_dir_data(self) -> Optional[bool]: """ - Drain options delete empty dir data. Default `false` (bool) + if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). """ return pulumi.get(self, "delete_empty_dir_data") @@ -21635,7 +21817,7 @@ def delete_empty_dir_data(self) -> Optional[bool]: @pulumi.getter(name="disableEviction") def disable_eviction(self) -> Optional[bool]: """ - Drain options disable eviction. Default `false` (bool) + If `disable_eviction` is set to true, force drain to use delete rather than evict. """ return pulumi.get(self, "disable_eviction") @@ -21643,7 +21825,7 @@ def disable_eviction(self) -> Optional[bool]: @pulumi.getter def enabled(self) -> Optional[bool]: """ - Drain options enabled? Default `true` (bool) + If `enabled` is set to true, nodes will be drained before upgrade. """ return pulumi.get(self, "enabled") @@ -21651,7 +21833,7 @@ def enabled(self) -> Optional[bool]: @pulumi.getter def force(self) -> Optional[bool]: """ - Drain options force. Default `false` (bool) + If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. """ return pulumi.get(self, "force") @@ -21659,7 +21841,7 @@ def force(self) -> Optional[bool]: @pulumi.getter(name="gracePeriod") def grace_period(self) -> Optional[int]: """ - Drain options grace period (int) + Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. """ return pulumi.get(self, "grace_period") @@ -21667,7 +21849,7 @@ def grace_period(self) -> Optional[int]: @pulumi.getter(name="ignoreDaemonSets") def ignore_daemon_sets(self) -> Optional[bool]: """ - Drain options ignore daemon sets. Default `true` (bool) + If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. """ return pulumi.get(self, "ignore_daemon_sets") @@ -21675,7 +21857,7 @@ def ignore_daemon_sets(self) -> Optional[bool]: @pulumi.getter(name="ignoreErrors") def ignore_errors(self) -> Optional[bool]: """ - Drain options ignore errors. Default `false` (bool) + If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. """ return pulumi.get(self, "ignore_errors") @@ -21683,7 +21865,7 @@ def ignore_errors(self) -> Optional[bool]: @pulumi.getter(name="skipWaitForDeleteTimeoutSeconds") def skip_wait_for_delete_timeout_seconds(self) -> Optional[int]: """ - Drain options skip wait for delete timeout seconds (int) + Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. """ return pulumi.get(self, "skip_wait_for_delete_timeout_seconds") @@ -21691,7 +21873,7 @@ def skip_wait_for_delete_timeout_seconds(self) -> Optional[int]: @pulumi.getter def timeout(self) -> Optional[int]: """ - Drain options timeout (int) + Time to wait (in seconds) before giving up for one try. """ return pulumi.get(self, "timeout") @@ -21736,15 +21918,15 @@ def __init__(__self__, *, skip_wait_for_delete_timeout_seconds: Optional[int] = None, timeout: Optional[int] = None): """ - :param bool delete_empty_dir_data: Drain options delete empty dir data. Default `false` (bool) - :param bool disable_eviction: Drain options disable eviction. Default `false` (bool) - :param bool enabled: Drain options enabled? Default `true` (bool) - :param bool force: Drain options force. Default `false` (bool) - :param int grace_period: Drain options grace period (int) - :param bool ignore_daemon_sets: Drain options ignore daemon sets. Default `true` (bool) - :param bool ignore_errors: Drain options ignore errors. Default `false` (bool) - :param int skip_wait_for_delete_timeout_seconds: Drain options skip wait for delete timeout seconds (int) - :param int timeout: Drain options timeout (int) + :param bool delete_empty_dir_data: if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). + :param bool disable_eviction: If `disable_eviction` is set to true, force drain to use delete rather than evict. + :param bool enabled: If `enabled` is set to true, nodes will be drained before upgrade. + :param bool force: If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. + :param int grace_period: Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. + :param bool ignore_daemon_sets: If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. + :param bool ignore_errors: If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. + :param int skip_wait_for_delete_timeout_seconds: Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. + :param int timeout: Time to wait (in seconds) before giving up for one try. """ if delete_empty_dir_data is not None: pulumi.set(__self__, "delete_empty_dir_data", delete_empty_dir_data) @@ -21769,7 +21951,7 @@ def __init__(__self__, *, @pulumi.getter(name="deleteEmptyDirData") def delete_empty_dir_data(self) -> Optional[bool]: """ - Drain options delete empty dir data. Default `false` (bool) + if `delete_empty_dir_data` is set to true, continue draining even if there are pods using emptyDir (local storage). """ return pulumi.get(self, "delete_empty_dir_data") @@ -21777,7 +21959,7 @@ def delete_empty_dir_data(self) -> Optional[bool]: @pulumi.getter(name="disableEviction") def disable_eviction(self) -> Optional[bool]: """ - Drain options disable eviction. Default `false` (bool) + If `disable_eviction` is set to true, force drain to use delete rather than evict. """ return pulumi.get(self, "disable_eviction") @@ -21785,7 +21967,7 @@ def disable_eviction(self) -> Optional[bool]: @pulumi.getter def enabled(self) -> Optional[bool]: """ - Drain options enabled? Default `true` (bool) + If `enabled` is set to true, nodes will be drained before upgrade. """ return pulumi.get(self, "enabled") @@ -21793,7 +21975,7 @@ def enabled(self) -> Optional[bool]: @pulumi.getter def force(self) -> Optional[bool]: """ - Drain options force. Default `false` (bool) + If `force` is set to true, drain nodes even if there are standalone pods that are not managed by a ReplicationController, Job, or DaemonSet. Drain will not proceed without `force` set to true if there are such pods. """ return pulumi.get(self, "force") @@ -21801,7 +21983,7 @@ def force(self) -> Optional[bool]: @pulumi.getter(name="gracePeriod") def grace_period(self) -> Optional[int]: """ - Drain options grace period (int) + Time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used. """ return pulumi.get(self, "grace_period") @@ -21809,7 +21991,7 @@ def grace_period(self) -> Optional[int]: @pulumi.getter(name="ignoreDaemonSets") def ignore_daemon_sets(self) -> Optional[bool]: """ - Drain options ignore daemon sets. Default `true` (bool) + If `ignore_daemon_sets` is set to false, drain will not proceed if there are DaemonSet-managed pods. """ return pulumi.get(self, "ignore_daemon_sets") @@ -21817,7 +21999,7 @@ def ignore_daemon_sets(self) -> Optional[bool]: @pulumi.getter(name="ignoreErrors") def ignore_errors(self) -> Optional[bool]: """ - Drain options ignore errors. Default `false` (bool) + If `ignore_errors` is set to true, errors that occurred between drain nodes in group are ignored. """ return pulumi.get(self, "ignore_errors") @@ -21825,7 +22007,7 @@ def ignore_errors(self) -> Optional[bool]: @pulumi.getter(name="skipWaitForDeleteTimeoutSeconds") def skip_wait_for_delete_timeout_seconds(self) -> Optional[int]: """ - Drain options skip wait for delete timeout seconds (int) + Skip waiting for the pods that have a DeletionTimeStamp > N seconds to be deleted. Seconds must be greater than 0 to skip. Such pods will be force deleted. """ return pulumi.get(self, "skip_wait_for_delete_timeout_seconds") @@ -21833,7 +22015,7 @@ def skip_wait_for_delete_timeout_seconds(self) -> Optional[int]: @pulumi.getter def timeout(self) -> Optional[int]: """ - Drain options timeout (int) + Time to wait (in seconds) before giving up for one try. """ return pulumi.get(self, "timeout") @@ -24591,6 +24773,8 @@ def __key_warning(key: str): suggest = "datastore_cluster" elif key == "diskSize": suggest = "disk_size" + elif key == "gracefulShutdownTimeout": + suggest = "graceful_shutdown_timeout" elif key == "memorySize": suggest = "memory_size" elif key == "sshPassword": @@ -24638,6 +24822,7 @@ def __init__(__self__, *, datastore_cluster: Optional[str] = None, disk_size: Optional[str] = None, folder: Optional[str] = None, + graceful_shutdown_timeout: Optional[str] = None, hostsystem: Optional[str] = None, memory_size: Optional[str] = None, networks: Optional[Sequence[str]] = None, @@ -24670,6 +24855,7 @@ def __init__(__self__, *, :param str datastore_cluster: vSphere datastore cluster for virtual machine (string) :param str disk_size: vSphere size of disk for docker VM (in MB). Default `20480` (string) :param str folder: vSphere folder for the docker VM. This folder must already exist in the datacenter (string) + :param str graceful_shutdown_timeout: Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) :param str hostsystem: vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) :param str memory_size: vSphere size of memory for docker VM (in MB). Default `2048` (string) :param Sequence[str] networks: vSphere network where the docker VM will be attached (list) @@ -24716,6 +24902,8 @@ def __init__(__self__, *, pulumi.set(__self__, "disk_size", disk_size) if folder is not None: pulumi.set(__self__, "folder", folder) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) if hostsystem is not None: pulumi.set(__self__, "hostsystem", hostsystem) if memory_size is not None: @@ -24863,6 +25051,14 @@ def folder(self) -> Optional[str]: """ return pulumi.get(self, "folder") + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[str]: + """ + Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string) + """ + return pulumi.get(self, "graceful_shutdown_timeout") + @property @pulumi.getter def hostsystem(self) -> Optional[str]: @@ -28504,6 +28700,8 @@ def __key_warning(key: str): suggest = "datastore_cluster" elif key == "diskSize": suggest = "disk_size" + elif key == "gracefulShutdownTimeout": + suggest = "graceful_shutdown_timeout" elif key == "memorySize": suggest = "memory_size" elif key == "sshPassword": @@ -28551,6 +28749,7 @@ def __init__(__self__, *, datastore_cluster: Optional[str] = None, disk_size: Optional[str] = None, folder: Optional[str] = None, + graceful_shutdown_timeout: Optional[str] = None, hostsystem: Optional[str] = None, memory_size: Optional[str] = None, networks: Optional[Sequence[str]] = None, @@ -28583,6 +28782,7 @@ def __init__(__self__, *, :param str datastore_cluster: vSphere datastore cluster for virtual machine. From Rancher v2.3.3 (string) :param str disk_size: vSphere size of disk for docker VM (in MB). Default `20480` (string) :param str folder: vSphere folder for the docker VM. This folder must already exist in the datacenter (string) + :param str graceful_shutdown_timeout: Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero :param str hostsystem: vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string) :param str memory_size: vSphere size of memory for docker VM (in MB). Default `2048` (string) :param Sequence[str] networks: vSphere network where the docker VM will be attached (list) @@ -28629,6 +28829,8 @@ def __init__(__self__, *, pulumi.set(__self__, "disk_size", disk_size) if folder is not None: pulumi.set(__self__, "folder", folder) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) if hostsystem is not None: pulumi.set(__self__, "hostsystem", hostsystem) if memory_size is not None: @@ -28776,6 +28978,14 @@ def folder(self) -> Optional[str]: """ return pulumi.get(self, "folder") + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[str]: + """ + Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero + """ + return pulumi.get(self, "graceful_shutdown_timeout") + @property @pulumi.getter def hostsystem(self) -> Optional[str]: @@ -30766,94 +30976,6 @@ def username(self) -> Optional[str]: return pulumi.get(self, "username") -@pulumi.output_type -class RoleTempalteRule(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "apiGroups": - suggest = "api_groups" - elif key == "nonResourceUrls": - suggest = "non_resource_urls" - elif key == "resourceNames": - suggest = "resource_names" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in RoleTempalteRule. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - RoleTempalteRule.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - RoleTempalteRule.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - api_groups: Optional[Sequence[str]] = None, - non_resource_urls: Optional[Sequence[str]] = None, - resource_names: Optional[Sequence[str]] = None, - resources: Optional[Sequence[str]] = None, - verbs: Optional[Sequence[str]] = None): - """ - :param Sequence[str] api_groups: Policy rule api groups (list) - :param Sequence[str] non_resource_urls: Policy rule non resource urls (list) - :param Sequence[str] resource_names: Policy rule resource names (list) - :param Sequence[str] resources: Policy rule resources (list) - :param Sequence[str] verbs: Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - """ - if api_groups is not None: - pulumi.set(__self__, "api_groups", api_groups) - if non_resource_urls is not None: - pulumi.set(__self__, "non_resource_urls", non_resource_urls) - if resource_names is not None: - pulumi.set(__self__, "resource_names", resource_names) - if resources is not None: - pulumi.set(__self__, "resources", resources) - if verbs is not None: - pulumi.set(__self__, "verbs", verbs) - - @property - @pulumi.getter(name="apiGroups") - def api_groups(self) -> Optional[Sequence[str]]: - """ - Policy rule api groups (list) - """ - return pulumi.get(self, "api_groups") - - @property - @pulumi.getter(name="nonResourceUrls") - def non_resource_urls(self) -> Optional[Sequence[str]]: - """ - Policy rule non resource urls (list) - """ - return pulumi.get(self, "non_resource_urls") - - @property - @pulumi.getter(name="resourceNames") - def resource_names(self) -> Optional[Sequence[str]]: - """ - Policy rule resource names (list) - """ - return pulumi.get(self, "resource_names") - - @property - @pulumi.getter - def resources(self) -> Optional[Sequence[str]]: - """ - Policy rule resources (list) - """ - return pulumi.get(self, "resources") - - @property - @pulumi.getter - def verbs(self) -> Optional[Sequence[str]]: - """ - Policy rule verbs. `bind`, `create`, `delete`, `deletecollection`, `escalate`, `get`, `impersonate`, `list`, `patch`, `update`, `use`, `view`, `watch`, `own` and `*` values are supported (list) - """ - return pulumi.get(self, "verbs") - - @pulumi.output_type class RoleTemplateRule(dict): @staticmethod @@ -31987,7 +32109,7 @@ def default_recipient(self) -> Optional[bool]: @pulumi.output_type -class GetClusterAlterRuleEventRuleResult(dict): +class GetClusterAlertRuleEventRuleResult(dict): def __init__(__self__, *, resource_kind: str, event_type: Optional[str] = None): @@ -32017,7 +32139,7 @@ def event_type(self) -> Optional[str]: @pulumi.output_type -class GetClusterAlterRuleMetricRuleResult(dict): +class GetClusterAlertRuleMetricRuleResult(dict): def __init__(__self__, *, duration: str, expression: str, @@ -32081,7 +32203,7 @@ def description(self) -> Optional[str]: @pulumi.output_type -class GetClusterAlterRuleNodeRuleResult(dict): +class GetClusterAlertRuleNodeRuleResult(dict): def __init__(__self__, *, condition: Optional[str] = None, cpu_threshold: Optional[int] = None, @@ -32148,7 +32270,7 @@ def selector(self) -> Optional[Mapping[str, Any]]: @pulumi.output_type -class GetClusterAlterRuleSystemServiceRuleResult(dict): +class GetClusterAlertRuleSystemServiceRuleResult(dict): def __init__(__self__, *, condition: Optional[str] = None): """ @@ -36179,13 +36301,16 @@ def __init__(__self__, *, password: str, port: str, soap_roundtrip_count: int, - user: str): + user: str, + graceful_shutdown_timeout: Optional[str] = None): pulumi.set(__self__, "datacenters", datacenters) pulumi.set(__self__, "insecure_flag", insecure_flag) pulumi.set(__self__, "password", password) pulumi.set(__self__, "port", port) pulumi.set(__self__, "soap_roundtrip_count", soap_roundtrip_count) pulumi.set(__self__, "user", user) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) @property @pulumi.getter @@ -36217,6 +36342,11 @@ def soap_roundtrip_count(self) -> int: def user(self) -> str: return pulumi.get(self, "user") + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[str]: + return pulumi.get(self, "graceful_shutdown_timeout") + @pulumi.output_type class GetClusterRkeConfigCloudProviderVsphereCloudProviderNetworkResult(dict): @@ -40126,13 +40256,16 @@ def __init__(__self__, *, password: str, port: str, soap_roundtrip_count: int, - user: str): + user: str, + graceful_shutdown_timeout: Optional[str] = None): pulumi.set(__self__, "datacenters", datacenters) pulumi.set(__self__, "insecure_flag", insecure_flag) pulumi.set(__self__, "password", password) pulumi.set(__self__, "port", port) pulumi.set(__self__, "soap_roundtrip_count", soap_roundtrip_count) pulumi.set(__self__, "user", user) + if graceful_shutdown_timeout is not None: + pulumi.set(__self__, "graceful_shutdown_timeout", graceful_shutdown_timeout) @property @pulumi.getter @@ -40164,6 +40297,11 @@ def soap_roundtrip_count(self) -> int: def user(self) -> str: return pulumi.get(self, "user") + @property + @pulumi.getter(name="gracefulShutdownTimeout") + def graceful_shutdown_timeout(self) -> Optional[str]: + return pulumi.get(self, "graceful_shutdown_timeout") + @pulumi.output_type class GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkResult(dict): @@ -42861,6 +42999,7 @@ def __init__(__self__, *, machine_pool_defaults: Sequence['outputs.GetClusterV2RkeConfigMachinePoolDefaultResult'], machine_pools: Sequence['outputs.GetClusterV2RkeConfigMachinePoolResult'], machine_selector_configs: Sequence['outputs.GetClusterV2RkeConfigMachineSelectorConfigResult'], + machine_selector_files: Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileResult'], additional_manifest: Optional[str] = None, chart_values: Optional[str] = None, etcd_snapshot_create: Optional['outputs.GetClusterV2RkeConfigEtcdSnapshotCreateResult'] = None, @@ -42875,6 +43014,7 @@ def __init__(__self__, *, :param Sequence['GetClusterV2RkeConfigMachinePoolDefaultArgs'] machine_pool_defaults: Default values for machine pool configurations if unset :param Sequence['GetClusterV2RkeConfigMachinePoolArgs'] machine_pools: Cluster V2 machine pools :param Sequence['GetClusterV2RkeConfigMachineSelectorConfigArgs'] machine_selector_configs: Cluster V2 machine selector config + :param Sequence['GetClusterV2RkeConfigMachineSelectorFileArgs'] machine_selector_files: Cluster V2 machine selector files :param str additional_manifest: Cluster V2 additional manifest :param str chart_values: Cluster V2 chart values. It should be in YAML format :param 'GetClusterV2RkeConfigEtcdSnapshotCreateArgs' etcd_snapshot_create: Cluster V2 etcd snapshot create @@ -42889,6 +43029,7 @@ def __init__(__self__, *, pulumi.set(__self__, "machine_pool_defaults", machine_pool_defaults) pulumi.set(__self__, "machine_pools", machine_pools) pulumi.set(__self__, "machine_selector_configs", machine_selector_configs) + pulumi.set(__self__, "machine_selector_files", machine_selector_files) if additional_manifest is not None: pulumi.set(__self__, "additional_manifest", additional_manifest) if chart_values is not None: @@ -42940,6 +43081,14 @@ def machine_selector_configs(self) -> Sequence['outputs.GetClusterV2RkeConfigMac """ return pulumi.get(self, "machine_selector_configs") + @property + @pulumi.getter(name="machineSelectorFiles") + def machine_selector_files(self) -> Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileResult']: + """ + Cluster V2 machine selector files + """ + return pulumi.get(self, "machine_selector_files") + @property @pulumi.getter(name="additionalManifest") def additional_manifest(self) -> Optional[str]: @@ -43513,13 +43662,17 @@ def hostname_length_limit(self) -> Optional[int]: class GetClusterV2RkeConfigMachinePoolMachineConfigResult(dict): def __init__(__self__, *, kind: str, - name: str): + name: str, + api_version: Optional[str] = None): """ :param str kind: Machine config kind :param str name: The name of the Cluster v2 (string) + :param str api_version: Machine config API version """ pulumi.set(__self__, "kind", kind) pulumi.set(__self__, "name", name) + if api_version is not None: + pulumi.set(__self__, "api_version", api_version) @property @pulumi.getter @@ -43537,6 +43690,14 @@ def name(self) -> str: """ return pulumi.get(self, "name") + @property + @pulumi.getter(name="apiVersion") + def api_version(self) -> Optional[str]: + """ + Machine config API version + """ + return pulumi.get(self, "api_version") + @pulumi.output_type class GetClusterV2RkeConfigMachinePoolRollingUpdateResult(dict): @@ -43701,6 +43862,356 @@ def values(self) -> Optional[Sequence[str]]: return pulumi.get(self, "values") +@pulumi.output_type +class GetClusterV2RkeConfigMachineSelectorFileResult(dict): + def __init__(__self__, *, + file_sources: Optional[Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceResult']] = None, + machine_label_selector: Optional['outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult'] = None): + """ + :param Sequence['GetClusterV2RkeConfigMachineSelectorFileFileSourceArgs'] file_sources: File sources + :param 'GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorArgs' machine_label_selector: Machine label selector + """ + if file_sources is not None: + pulumi.set(__self__, "file_sources", file_sources) + if machine_label_selector is not None: + pulumi.set(__self__, "machine_label_selector", machine_label_selector) + + @property + @pulumi.getter(name="fileSources") + def file_sources(self) -> Optional[Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceResult']]: + """ + File sources + """ + return pulumi.get(self, "file_sources") + + @property + @pulumi.getter(name="machineLabelSelector") + def machine_label_selector(self) -> Optional['outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult']: + """ + Machine label selector + """ + return pulumi.get(self, "machine_label_selector") + + +@pulumi.output_type +class GetClusterV2RkeConfigMachineSelectorFileFileSourceResult(dict): + def __init__(__self__, *, + configmap: Optional['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult'] = None, + secret: Optional['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult'] = None): + """ + :param 'GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapArgs' configmap: The configmap which is the source of files + :param 'GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretArgs' secret: The secret which is the source of files + """ + if configmap is not None: + pulumi.set(__self__, "configmap", configmap) + if secret is not None: + pulumi.set(__self__, "secret", secret) + + @property + @pulumi.getter + def configmap(self) -> Optional['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult']: + """ + The configmap which is the source of files + """ + return pulumi.get(self, "configmap") + + @property + @pulumi.getter + def secret(self) -> Optional['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult']: + """ + The secret which is the source of files + """ + return pulumi.get(self, "secret") + + +@pulumi.output_type +class GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapResult(dict): + def __init__(__self__, *, + name: str, + default_permissions: Optional[str] = None, + items: Optional[Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult']] = None): + """ + :param str name: The name of the Cluster v2 (string) + :param str default_permissions: The default permissions to be applied when they are not set at the item level + :param Sequence['GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemArgs'] items: Items(files) to retrieve from the K8s object + """ + pulumi.set(__self__, "name", name) + if default_permissions is not None: + pulumi.set(__self__, "default_permissions", default_permissions) + if items is not None: + pulumi.set(__self__, "items", items) + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the Cluster v2 (string) + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="defaultPermissions") + def default_permissions(self) -> Optional[str]: + """ + The default permissions to be applied when they are not set at the item level + """ + return pulumi.get(self, "default_permissions") + + @property + @pulumi.getter + def items(self) -> Optional[Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult']]: + """ + Items(files) to retrieve from the K8s object + """ + return pulumi.get(self, "items") + + +@pulumi.output_type +class GetClusterV2RkeConfigMachineSelectorFileFileSourceConfigmapItemResult(dict): + def __init__(__self__, *, + key: str, + path: str, + dynamic: Optional[bool] = None, + hash: Optional[str] = None, + permissions: Optional[str] = None): + """ + :param str key: The key of the item(file) to retrieve + :param str path: The path to put the file in the target node + :param bool dynamic: If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + :param str hash: The base64 encoded value of the SHA256 checksum of the file's content + :param str permissions: The numeric representation of the file permissions + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "path", path) + if dynamic is not None: + pulumi.set(__self__, "dynamic", dynamic) + if hash is not None: + pulumi.set(__self__, "hash", hash) + if permissions is not None: + pulumi.set(__self__, "permissions", permissions) + + @property + @pulumi.getter + def key(self) -> str: + """ + The key of the item(file) to retrieve + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def path(self) -> str: + """ + The path to put the file in the target node + """ + return pulumi.get(self, "path") + + @property + @pulumi.getter + def dynamic(self) -> Optional[bool]: + """ + If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + """ + return pulumi.get(self, "dynamic") + + @property + @pulumi.getter + def hash(self) -> Optional[str]: + """ + The base64 encoded value of the SHA256 checksum of the file's content + """ + return pulumi.get(self, "hash") + + @property + @pulumi.getter + def permissions(self) -> Optional[str]: + """ + The numeric representation of the file permissions + """ + return pulumi.get(self, "permissions") + + +@pulumi.output_type +class GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretResult(dict): + def __init__(__self__, *, + name: str, + default_permissions: Optional[str] = None, + items: Optional[Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult']] = None): + """ + :param str name: The name of the Cluster v2 (string) + :param str default_permissions: The default permissions to be applied when they are not set at the item level + :param Sequence['GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemArgs'] items: Items(files) to retrieve from the K8s object + """ + pulumi.set(__self__, "name", name) + if default_permissions is not None: + pulumi.set(__self__, "default_permissions", default_permissions) + if items is not None: + pulumi.set(__self__, "items", items) + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the Cluster v2 (string) + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="defaultPermissions") + def default_permissions(self) -> Optional[str]: + """ + The default permissions to be applied when they are not set at the item level + """ + return pulumi.get(self, "default_permissions") + + @property + @pulumi.getter + def items(self) -> Optional[Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult']]: + """ + Items(files) to retrieve from the K8s object + """ + return pulumi.get(self, "items") + + +@pulumi.output_type +class GetClusterV2RkeConfigMachineSelectorFileFileSourceSecretItemResult(dict): + def __init__(__self__, *, + key: str, + path: str, + dynamic: Optional[bool] = None, + hash: Optional[str] = None, + permissions: Optional[str] = None): + """ + :param str key: The key of the item(file) to retrieve + :param str path: The path to put the file in the target node + :param bool dynamic: If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + :param str hash: The base64 encoded value of the SHA256 checksum of the file's content + :param str permissions: The numeric representation of the file permissions + """ + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "path", path) + if dynamic is not None: + pulumi.set(__self__, "dynamic", dynamic) + if hash is not None: + pulumi.set(__self__, "hash", hash) + if permissions is not None: + pulumi.set(__self__, "permissions", permissions) + + @property + @pulumi.getter + def key(self) -> str: + """ + The key of the item(file) to retrieve + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def path(self) -> str: + """ + The path to put the file in the target node + """ + return pulumi.get(self, "path") + + @property + @pulumi.getter + def dynamic(self) -> Optional[bool]: + """ + If ture, the file is ignored when determining whether the node should be drained before updating the node plan (default: true). + """ + return pulumi.get(self, "dynamic") + + @property + @pulumi.getter + def hash(self) -> Optional[str]: + """ + The base64 encoded value of the SHA256 checksum of the file's content + """ + return pulumi.get(self, "hash") + + @property + @pulumi.getter + def permissions(self) -> Optional[str]: + """ + The numeric representation of the file permissions + """ + return pulumi.get(self, "permissions") + + +@pulumi.output_type +class GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorResult(dict): + def __init__(__self__, *, + match_expressions: Optional[Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult']] = None, + match_labels: Optional[Mapping[str, Any]] = None): + """ + :param Sequence['GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionArgs'] match_expressions: Label selector match expressions + :param Mapping[str, Any] match_labels: Label selector match labels + """ + if match_expressions is not None: + pulumi.set(__self__, "match_expressions", match_expressions) + if match_labels is not None: + pulumi.set(__self__, "match_labels", match_labels) + + @property + @pulumi.getter(name="matchExpressions") + def match_expressions(self) -> Optional[Sequence['outputs.GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult']]: + """ + Label selector match expressions + """ + return pulumi.get(self, "match_expressions") + + @property + @pulumi.getter(name="matchLabels") + def match_labels(self) -> Optional[Mapping[str, Any]]: + """ + Label selector match labels + """ + return pulumi.get(self, "match_labels") + + +@pulumi.output_type +class GetClusterV2RkeConfigMachineSelectorFileMachineLabelSelectorMatchExpressionResult(dict): + def __init__(__self__, *, + key: Optional[str] = None, + operator: Optional[str] = None, + values: Optional[Sequence[str]] = None): + """ + :param str key: Label selector requirement key + :param str operator: Label selector operator + :param Sequence[str] values: Label selector requirement values + """ + if key is not None: + pulumi.set(__self__, "key", key) + if operator is not None: + pulumi.set(__self__, "operator", operator) + if values is not None: + pulumi.set(__self__, "values", values) + + @property + @pulumi.getter + def key(self) -> Optional[str]: + """ + Label selector requirement key + """ + return pulumi.get(self, "key") + + @property + @pulumi.getter + def operator(self) -> Optional[str]: + """ + Label selector operator + """ + return pulumi.get(self, "operator") + + @property + @pulumi.getter + def values(self) -> Optional[Sequence[str]]: + """ + Label selector requirement values + """ + return pulumi.get(self, "values") + + @pulumi.output_type class GetClusterV2RkeConfigRegistriesResult(dict): def __init__(__self__, *, @@ -46130,73 +46641,6 @@ def username(self) -> Optional[str]: return pulumi.get(self, "username") -@pulumi.output_type -class GetRoleTempalteRuleResult(dict): - def __init__(__self__, *, - api_groups: Optional[Sequence[str]] = None, - non_resource_urls: Optional[Sequence[str]] = None, - resource_names: Optional[Sequence[str]] = None, - resources: Optional[Sequence[str]] = None, - verbs: Optional[Sequence[str]] = None): - """ - :param Sequence[str] api_groups: Policy rule api groups - :param Sequence[str] non_resource_urls: Policy rule non resource urls - :param Sequence[str] resource_names: Policy rule resource names - :param Sequence[str] resources: Policy rule resources - :param Sequence[str] verbs: Policy rule verbs - """ - if api_groups is not None: - pulumi.set(__self__, "api_groups", api_groups) - if non_resource_urls is not None: - pulumi.set(__self__, "non_resource_urls", non_resource_urls) - if resource_names is not None: - pulumi.set(__self__, "resource_names", resource_names) - if resources is not None: - pulumi.set(__self__, "resources", resources) - if verbs is not None: - pulumi.set(__self__, "verbs", verbs) - - @property - @pulumi.getter(name="apiGroups") - def api_groups(self) -> Optional[Sequence[str]]: - """ - Policy rule api groups - """ - return pulumi.get(self, "api_groups") - - @property - @pulumi.getter(name="nonResourceUrls") - def non_resource_urls(self) -> Optional[Sequence[str]]: - """ - Policy rule non resource urls - """ - return pulumi.get(self, "non_resource_urls") - - @property - @pulumi.getter(name="resourceNames") - def resource_names(self) -> Optional[Sequence[str]]: - """ - Policy rule resource names - """ - return pulumi.get(self, "resource_names") - - @property - @pulumi.getter - def resources(self) -> Optional[Sequence[str]]: - """ - Policy rule resources - """ - return pulumi.get(self, "resources") - - @property - @pulumi.getter - def verbs(self) -> Optional[Sequence[str]]: - """ - Policy rule verbs - """ - return pulumi.get(self, "verbs") - - @pulumi.output_type class GetRoleTemplateRuleResult(dict): def __init__(__self__, *, diff --git a/sdk/python/pulumi_rancher2/project_role_template_binding.py b/sdk/python/pulumi_rancher2/project_role_template_binding.py index 62bc3720f..fbc2f610b 100644 --- a/sdk/python/pulumi_rancher2/project_role_template_binding.py +++ b/sdk/python/pulumi_rancher2/project_role_template_binding.py @@ -25,7 +25,7 @@ def __init__(__self__, *, user_principal_id: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a ProjectRoleTemplateBinding resource. - :param pulumi.Input[str] project_id: The project id where bind project role template (string) + :param pulumi.Input[str] project_id: The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) :param pulumi.Input[str] role_template_id: The role template id from create project role template binding (string) :param pulumi.Input[Mapping[str, Any]] annotations: Annotations of the resource (map) :param pulumi.Input[str] group_id: The group ID to assign project role template binding (string) @@ -58,7 +58,7 @@ def __init__(__self__, *, @pulumi.getter(name="projectId") def project_id(self) -> pulumi.Input[str]: """ - The project id where bind project role template (string) + The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) """ return pulumi.get(self, "project_id") @@ -186,7 +186,7 @@ def __init__(__self__, *, **Note:** user `user_id | user_principal_id` OR group `group_id | group_principal_id` must be defined :param pulumi.Input[str] name: The name of the project role template binding (string) - :param pulumi.Input[str] project_id: The project id where bind project role template (string) + :param pulumi.Input[str] project_id: The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) :param pulumi.Input[str] role_template_id: The role template id from create project role template binding (string) :param pulumi.Input[str] user_id: The user ID to assign project role template binding (string) :param pulumi.Input[str] user_principal_id: The user_principal ID to assign project role template binding (string) @@ -276,7 +276,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="projectId") def project_id(self) -> Optional[pulumi.Input[str]]: """ - The project id where bind project role template (string) + The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) """ return pulumi.get(self, "project_id") @@ -369,7 +369,7 @@ def __init__(__self__, **Note:** user `user_id | user_principal_id` OR group `group_id | group_principal_id` must be defined :param pulumi.Input[str] name: The name of the project role template binding (string) - :param pulumi.Input[str] project_id: The project id where bind project role template (string) + :param pulumi.Input[str] project_id: The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) :param pulumi.Input[str] role_template_id: The role template id from create project role template binding (string) :param pulumi.Input[str] user_id: The user ID to assign project role template binding (string) :param pulumi.Input[str] user_principal_id: The user_principal ID to assign project role template binding (string) @@ -483,7 +483,7 @@ def get(resource_name: str, **Note:** user `user_id | user_principal_id` OR group `group_id | group_principal_id` must be defined :param pulumi.Input[str] name: The name of the project role template binding (string) - :param pulumi.Input[str] project_id: The project id where bind project role template (string) + :param pulumi.Input[str] project_id: The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) :param pulumi.Input[str] role_template_id: The role template id from create project role template binding (string) :param pulumi.Input[str] user_id: The user ID to assign project role template binding (string) :param pulumi.Input[str] user_principal_id: The user_principal ID to assign project role template binding (string) @@ -549,7 +549,7 @@ def name(self) -> pulumi.Output[str]: @pulumi.getter(name="projectId") def project_id(self) -> pulumi.Output[str]: """ - The project id where bind project role template (string) + The project id where bind project role template, in format `cluster_id:project_id`, e.g. `c-abc12:p-def34` (string) """ return pulumi.get(self, "project_id") diff --git a/sdk/python/pulumi_rancher2/role_tempalte.py b/sdk/python/pulumi_rancher2/role_tempalte.py deleted file mode 100644 index 1bcb4173a..000000000 --- a/sdk/python/pulumi_rancher2/role_tempalte.py +++ /dev/null @@ -1,786 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import copy -import warnings -import pulumi -import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload -from . import _utilities -from . import outputs -from ._inputs import * - -__all__ = ['RoleTempalteArgs', 'RoleTempalte'] - -@pulumi.input_type -class RoleTempalteArgs: - def __init__(__self__, *, - administrative: Optional[pulumi.Input[bool]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - context: Optional[pulumi.Input[str]] = None, - default_role: Optional[pulumi.Input[bool]] = None, - description: Optional[pulumi.Input[str]] = None, - external: Optional[pulumi.Input[bool]] = None, - hidden: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - locked: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - role_template_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input['RoleTempalteRuleArgs']]]] = None): - """ - The set of arguments for constructing a RoleTempalte resource. - :param pulumi.Input[bool] administrative: Administrative role template. Default `false` (bool) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for role template object (map) - :param pulumi.Input[str] context: Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - :param pulumi.Input[bool] default_role: Default role template for new created cluster or project. Default `false` (bool) - :param pulumi.Input[str] description: Role template description (string) - :param pulumi.Input[bool] external: External role template. Default `false` (bool) - :param pulumi.Input[bool] hidden: Hidden role template. Default `false` (bool) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for role template object (map) - :param pulumi.Input[bool] locked: Locked role template. Default `false` (bool) - :param pulumi.Input[str] name: Role template name (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] role_template_ids: Inherit role template IDs (list) - :param pulumi.Input[Sequence[pulumi.Input['RoleTempalteRuleArgs']]] rules: Role template policy rules (list) - """ - if administrative is not None: - pulumi.set(__self__, "administrative", administrative) - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if context is not None: - pulumi.set(__self__, "context", context) - if default_role is not None: - pulumi.set(__self__, "default_role", default_role) - if description is not None: - pulumi.set(__self__, "description", description) - if external is not None: - pulumi.set(__self__, "external", external) - if hidden is not None: - pulumi.set(__self__, "hidden", hidden) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if locked is not None: - pulumi.set(__self__, "locked", locked) - if name is not None: - pulumi.set(__self__, "name", name) - if role_template_ids is not None: - pulumi.set(__self__, "role_template_ids", role_template_ids) - if rules is not None: - pulumi.set(__self__, "rules", rules) - - @property - @pulumi.getter - def administrative(self) -> Optional[pulumi.Input[bool]]: - """ - Administrative role template. Default `false` (bool) - """ - return pulumi.get(self, "administrative") - - @administrative.setter - def administrative(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "administrative", value) - - @property - @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Annotations for role template object (map) - """ - return pulumi.get(self, "annotations") - - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) - - @property - @pulumi.getter - def context(self) -> Optional[pulumi.Input[str]]: - """ - Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - """ - return pulumi.get(self, "context") - - @context.setter - def context(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "context", value) - - @property - @pulumi.getter(name="defaultRole") - def default_role(self) -> Optional[pulumi.Input[bool]]: - """ - Default role template for new created cluster or project. Default `false` (bool) - """ - return pulumi.get(self, "default_role") - - @default_role.setter - def default_role(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "default_role", value) - - @property - @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: - """ - Role template description (string) - """ - return pulumi.get(self, "description") - - @description.setter - def description(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "description", value) - - @property - @pulumi.getter - def external(self) -> Optional[pulumi.Input[bool]]: - """ - External role template. Default `false` (bool) - """ - return pulumi.get(self, "external") - - @external.setter - def external(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "external", value) - - @property - @pulumi.getter - def hidden(self) -> Optional[pulumi.Input[bool]]: - """ - Hidden role template. Default `false` (bool) - """ - return pulumi.get(self, "hidden") - - @hidden.setter - def hidden(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "hidden", value) - - @property - @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Labels for role template object (map) - """ - return pulumi.get(self, "labels") - - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) - - @property - @pulumi.getter - def locked(self) -> Optional[pulumi.Input[bool]]: - """ - Locked role template. Default `false` (bool) - """ - return pulumi.get(self, "locked") - - @locked.setter - def locked(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "locked", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - Role template name (string) - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter(name="roleTemplateIds") - def role_template_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Inherit role template IDs (list) - """ - return pulumi.get(self, "role_template_ids") - - @role_template_ids.setter - def role_template_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "role_template_ids", value) - - @property - @pulumi.getter - def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RoleTempalteRuleArgs']]]]: - """ - Role template policy rules (list) - """ - return pulumi.get(self, "rules") - - @rules.setter - def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RoleTempalteRuleArgs']]]]): - pulumi.set(self, "rules", value) - - -@pulumi.input_type -class _RoleTempalteState: - def __init__(__self__, *, - administrative: Optional[pulumi.Input[bool]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - builtin: Optional[pulumi.Input[bool]] = None, - context: Optional[pulumi.Input[str]] = None, - default_role: Optional[pulumi.Input[bool]] = None, - description: Optional[pulumi.Input[str]] = None, - external: Optional[pulumi.Input[bool]] = None, - hidden: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - locked: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - role_template_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input['RoleTempalteRuleArgs']]]] = None): - """ - Input properties used for looking up and filtering RoleTempalte resources. - :param pulumi.Input[bool] administrative: Administrative role template. Default `false` (bool) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for role template object (map) - :param pulumi.Input[bool] builtin: (Computed) Builtin role template (string) - :param pulumi.Input[str] context: Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - :param pulumi.Input[bool] default_role: Default role template for new created cluster or project. Default `false` (bool) - :param pulumi.Input[str] description: Role template description (string) - :param pulumi.Input[bool] external: External role template. Default `false` (bool) - :param pulumi.Input[bool] hidden: Hidden role template. Default `false` (bool) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for role template object (map) - :param pulumi.Input[bool] locked: Locked role template. Default `false` (bool) - :param pulumi.Input[str] name: Role template name (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] role_template_ids: Inherit role template IDs (list) - :param pulumi.Input[Sequence[pulumi.Input['RoleTempalteRuleArgs']]] rules: Role template policy rules (list) - """ - if administrative is not None: - pulumi.set(__self__, "administrative", administrative) - if annotations is not None: - pulumi.set(__self__, "annotations", annotations) - if builtin is not None: - pulumi.set(__self__, "builtin", builtin) - if context is not None: - pulumi.set(__self__, "context", context) - if default_role is not None: - pulumi.set(__self__, "default_role", default_role) - if description is not None: - pulumi.set(__self__, "description", description) - if external is not None: - pulumi.set(__self__, "external", external) - if hidden is not None: - pulumi.set(__self__, "hidden", hidden) - if labels is not None: - pulumi.set(__self__, "labels", labels) - if locked is not None: - pulumi.set(__self__, "locked", locked) - if name is not None: - pulumi.set(__self__, "name", name) - if role_template_ids is not None: - pulumi.set(__self__, "role_template_ids", role_template_ids) - if rules is not None: - pulumi.set(__self__, "rules", rules) - - @property - @pulumi.getter - def administrative(self) -> Optional[pulumi.Input[bool]]: - """ - Administrative role template. Default `false` (bool) - """ - return pulumi.get(self, "administrative") - - @administrative.setter - def administrative(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "administrative", value) - - @property - @pulumi.getter - def annotations(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Annotations for role template object (map) - """ - return pulumi.get(self, "annotations") - - @annotations.setter - def annotations(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "annotations", value) - - @property - @pulumi.getter - def builtin(self) -> Optional[pulumi.Input[bool]]: - """ - (Computed) Builtin role template (string) - """ - return pulumi.get(self, "builtin") - - @builtin.setter - def builtin(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "builtin", value) - - @property - @pulumi.getter - def context(self) -> Optional[pulumi.Input[str]]: - """ - Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - """ - return pulumi.get(self, "context") - - @context.setter - def context(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "context", value) - - @property - @pulumi.getter(name="defaultRole") - def default_role(self) -> Optional[pulumi.Input[bool]]: - """ - Default role template for new created cluster or project. Default `false` (bool) - """ - return pulumi.get(self, "default_role") - - @default_role.setter - def default_role(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "default_role", value) - - @property - @pulumi.getter - def description(self) -> Optional[pulumi.Input[str]]: - """ - Role template description (string) - """ - return pulumi.get(self, "description") - - @description.setter - def description(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "description", value) - - @property - @pulumi.getter - def external(self) -> Optional[pulumi.Input[bool]]: - """ - External role template. Default `false` (bool) - """ - return pulumi.get(self, "external") - - @external.setter - def external(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "external", value) - - @property - @pulumi.getter - def hidden(self) -> Optional[pulumi.Input[bool]]: - """ - Hidden role template. Default `false` (bool) - """ - return pulumi.get(self, "hidden") - - @hidden.setter - def hidden(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "hidden", value) - - @property - @pulumi.getter - def labels(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: - """ - Labels for role template object (map) - """ - return pulumi.get(self, "labels") - - @labels.setter - def labels(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): - pulumi.set(self, "labels", value) - - @property - @pulumi.getter - def locked(self) -> Optional[pulumi.Input[bool]]: - """ - Locked role template. Default `false` (bool) - """ - return pulumi.get(self, "locked") - - @locked.setter - def locked(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "locked", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - """ - Role template name (string) - """ - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter(name="roleTemplateIds") - def role_template_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: - """ - Inherit role template IDs (list) - """ - return pulumi.get(self, "role_template_ids") - - @role_template_ids.setter - def role_template_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): - pulumi.set(self, "role_template_ids", value) - - @property - @pulumi.getter - def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RoleTempalteRuleArgs']]]]: - """ - Role template policy rules (list) - """ - return pulumi.get(self, "rules") - - @rules.setter - def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RoleTempalteRuleArgs']]]]): - pulumi.set(self, "rules", value) - - -warnings.warn("""rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate""", DeprecationWarning) - - -class RoleTempalte(pulumi.CustomResource): - warnings.warn("""rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate""", DeprecationWarning) - - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - administrative: Optional[pulumi.Input[bool]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - context: Optional[pulumi.Input[str]] = None, - default_role: Optional[pulumi.Input[bool]] = None, - description: Optional[pulumi.Input[str]] = None, - external: Optional[pulumi.Input[bool]] = None, - hidden: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - locked: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - role_template_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleTempalteRuleArgs']]]]] = None, - __props__=None): - """ - Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. - - `cluster` and `project` scopes are supported for role templates. - - ## Example Usage - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - # Create a new rancher2 cluster Role Template - foo = rancher2.RoleTemplate("foo", - context="cluster", - default_role=True, - description="Terraform role template acceptance test", - rules=[rancher2.RoleTemplateRuleArgs( - api_groups=["*"], - resources=["secrets"], - verbs=["create"], - )]) - ``` - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - # Create a new rancher2 project Role Template - foo = rancher2.RoleTemplate("foo", - context="project", - default_role=True, - description="Terraform role template acceptance test", - rules=[rancher2.RoleTemplateRuleArgs( - api_groups=["*"], - resources=["secrets"], - verbs=["create"], - )]) - ``` - - ## Import - - Role Template can be imported using the Rancher Role Template ID - - ```sh - $ pulumi import rancher2:index/roleTempalte:RoleTempalte foo <role_template_id> - ``` - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[bool] administrative: Administrative role template. Default `false` (bool) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for role template object (map) - :param pulumi.Input[str] context: Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - :param pulumi.Input[bool] default_role: Default role template for new created cluster or project. Default `false` (bool) - :param pulumi.Input[str] description: Role template description (string) - :param pulumi.Input[bool] external: External role template. Default `false` (bool) - :param pulumi.Input[bool] hidden: Hidden role template. Default `false` (bool) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for role template object (map) - :param pulumi.Input[bool] locked: Locked role template. Default `false` (bool) - :param pulumi.Input[str] name: Role template name (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] role_template_ids: Inherit role template IDs (list) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleTempalteRuleArgs']]]] rules: Role template policy rules (list) - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: Optional[RoleTempalteArgs] = None, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Provides a Rancher v2 Role Template resource. This can be used to create Role Template for Rancher v2 and retrieve their information. - - `cluster` and `project` scopes are supported for role templates. - - ## Example Usage - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - # Create a new rancher2 cluster Role Template - foo = rancher2.RoleTemplate("foo", - context="cluster", - default_role=True, - description="Terraform role template acceptance test", - rules=[rancher2.RoleTemplateRuleArgs( - api_groups=["*"], - resources=["secrets"], - verbs=["create"], - )]) - ``` - - ```python - import pulumi - import pulumi_rancher2 as rancher2 - - # Create a new rancher2 project Role Template - foo = rancher2.RoleTemplate("foo", - context="project", - default_role=True, - description="Terraform role template acceptance test", - rules=[rancher2.RoleTemplateRuleArgs( - api_groups=["*"], - resources=["secrets"], - verbs=["create"], - )]) - ``` - - ## Import - - Role Template can be imported using the Rancher Role Template ID - - ```sh - $ pulumi import rancher2:index/roleTempalte:RoleTempalte foo <role_template_id> - ``` - - :param str resource_name: The name of the resource. - :param RoleTempalteArgs args: The arguments to use to populate this resource's properties. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - def __init__(__self__, resource_name: str, *args, **kwargs): - resource_args, opts = _utilities.get_resource_args_opts(RoleTempalteArgs, pulumi.ResourceOptions, *args, **kwargs) - if resource_args is not None: - __self__._internal_init(resource_name, opts, **resource_args.__dict__) - else: - __self__._internal_init(resource_name, *args, **kwargs) - - def _internal_init(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - administrative: Optional[pulumi.Input[bool]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - context: Optional[pulumi.Input[str]] = None, - default_role: Optional[pulumi.Input[bool]] = None, - description: Optional[pulumi.Input[str]] = None, - external: Optional[pulumi.Input[bool]] = None, - hidden: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - locked: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - role_template_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleTempalteRuleArgs']]]]] = None, - __props__=None): - pulumi.log.warn("""RoleTempalte is deprecated: rancher2.RoleTempalte has been deprecated in favor of rancher2.RoleTemplate""") - opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = RoleTempalteArgs.__new__(RoleTempalteArgs) - - __props__.__dict__["administrative"] = administrative - __props__.__dict__["annotations"] = annotations - __props__.__dict__["context"] = context - __props__.__dict__["default_role"] = default_role - __props__.__dict__["description"] = description - __props__.__dict__["external"] = external - __props__.__dict__["hidden"] = hidden - __props__.__dict__["labels"] = labels - __props__.__dict__["locked"] = locked - __props__.__dict__["name"] = name - __props__.__dict__["role_template_ids"] = role_template_ids - __props__.__dict__["rules"] = rules - __props__.__dict__["builtin"] = None - super(RoleTempalte, __self__).__init__( - 'rancher2:index/roleTempalte:RoleTempalte', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - administrative: Optional[pulumi.Input[bool]] = None, - annotations: Optional[pulumi.Input[Mapping[str, Any]]] = None, - builtin: Optional[pulumi.Input[bool]] = None, - context: Optional[pulumi.Input[str]] = None, - default_role: Optional[pulumi.Input[bool]] = None, - description: Optional[pulumi.Input[str]] = None, - external: Optional[pulumi.Input[bool]] = None, - hidden: Optional[pulumi.Input[bool]] = None, - labels: Optional[pulumi.Input[Mapping[str, Any]]] = None, - locked: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - role_template_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleTempalteRuleArgs']]]]] = None) -> 'RoleTempalte': - """ - Get an existing RoleTempalte resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :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[bool] administrative: Administrative role template. Default `false` (bool) - :param pulumi.Input[Mapping[str, Any]] annotations: Annotations for role template object (map) - :param pulumi.Input[bool] builtin: (Computed) Builtin role template (string) - :param pulumi.Input[str] context: Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - :param pulumi.Input[bool] default_role: Default role template for new created cluster or project. Default `false` (bool) - :param pulumi.Input[str] description: Role template description (string) - :param pulumi.Input[bool] external: External role template. Default `false` (bool) - :param pulumi.Input[bool] hidden: Hidden role template. Default `false` (bool) - :param pulumi.Input[Mapping[str, Any]] labels: Labels for role template object (map) - :param pulumi.Input[bool] locked: Locked role template. Default `false` (bool) - :param pulumi.Input[str] name: Role template name (string) - :param pulumi.Input[Sequence[pulumi.Input[str]]] role_template_ids: Inherit role template IDs (list) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleTempalteRuleArgs']]]] rules: Role template policy rules (list) - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _RoleTempalteState.__new__(_RoleTempalteState) - - __props__.__dict__["administrative"] = administrative - __props__.__dict__["annotations"] = annotations - __props__.__dict__["builtin"] = builtin - __props__.__dict__["context"] = context - __props__.__dict__["default_role"] = default_role - __props__.__dict__["description"] = description - __props__.__dict__["external"] = external - __props__.__dict__["hidden"] = hidden - __props__.__dict__["labels"] = labels - __props__.__dict__["locked"] = locked - __props__.__dict__["name"] = name - __props__.__dict__["role_template_ids"] = role_template_ids - __props__.__dict__["rules"] = rules - return RoleTempalte(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter - def administrative(self) -> pulumi.Output[Optional[bool]]: - """ - Administrative role template. Default `false` (bool) - """ - return pulumi.get(self, "administrative") - - @property - @pulumi.getter - def annotations(self) -> pulumi.Output[Mapping[str, Any]]: - """ - Annotations for role template object (map) - """ - return pulumi.get(self, "annotations") - - @property - @pulumi.getter - def builtin(self) -> pulumi.Output[bool]: - """ - (Computed) Builtin role template (string) - """ - return pulumi.get(self, "builtin") - - @property - @pulumi.getter - def context(self) -> pulumi.Output[Optional[str]]: - """ - Role template context. `cluster` and `project` values are supported. Default: `cluster` (string) - """ - return pulumi.get(self, "context") - - @property - @pulumi.getter(name="defaultRole") - def default_role(self) -> pulumi.Output[Optional[bool]]: - """ - Default role template for new created cluster or project. Default `false` (bool) - """ - return pulumi.get(self, "default_role") - - @property - @pulumi.getter - def description(self) -> pulumi.Output[str]: - """ - Role template description (string) - """ - return pulumi.get(self, "description") - - @property - @pulumi.getter - def external(self) -> pulumi.Output[Optional[bool]]: - """ - External role template. Default `false` (bool) - """ - return pulumi.get(self, "external") - - @property - @pulumi.getter - def hidden(self) -> pulumi.Output[Optional[bool]]: - """ - Hidden role template. Default `false` (bool) - """ - return pulumi.get(self, "hidden") - - @property - @pulumi.getter - def labels(self) -> pulumi.Output[Mapping[str, Any]]: - """ - Labels for role template object (map) - """ - return pulumi.get(self, "labels") - - @property - @pulumi.getter - def locked(self) -> pulumi.Output[Optional[bool]]: - """ - Locked role template. Default `false` (bool) - """ - return pulumi.get(self, "locked") - - @property - @pulumi.getter - def name(self) -> pulumi.Output[str]: - """ - Role template name (string) - """ - return pulumi.get(self, "name") - - @property - @pulumi.getter(name="roleTemplateIds") - def role_template_ids(self) -> pulumi.Output[Sequence[str]]: - """ - Inherit role template IDs (list) - """ - return pulumi.get(self, "role_template_ids") - - @property - @pulumi.getter - def rules(self) -> pulumi.Output[Sequence['outputs.RoleTempalteRule']]: - """ - Role template policy rules (list) - """ - return pulumi.get(self, "rules") - diff --git a/sdk/python/pulumi_rancher2/role_template.py b/sdk/python/pulumi_rancher2/role_template.py index 7cc9abfe2..f3fe9f767 100644 --- a/sdk/python/pulumi_rancher2/role_template.py +++ b/sdk/python/pulumi_rancher2/role_template.py @@ -611,8 +611,6 @@ def _internal_init(__self__, __props__.__dict__["role_template_ids"] = role_template_ids __props__.__dict__["rules"] = rules __props__.__dict__["builtin"] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="rancher2:index/roleTempalte:RoleTempalte")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(RoleTemplate, __self__).__init__( 'rancher2:index/roleTemplate:RoleTemplate', resource_name,